2021-04-06 17:06:09 +00:00
|
|
|
/**
|
2022-03-05 16:49:35 +00:00
|
|
|
* LogarithmPlotter - 2D plotter software to make BODE plots, sequences and distribution functions.
|
2024-01-10 23:11:09 +00:00
|
|
|
* Copyright (C) 2021-2024 Ad5001
|
2021-04-06 17:06:09 +00:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// This library helps containing actions to be undone or redone (in other words, editing history)
|
|
|
|
// Each type of event is repertoried as an action that can be listed for everything that's undoable.
|
|
|
|
|
2024-09-23 16:32:11 +00:00
|
|
|
import { Action as A } from "./common.mjs"
|
|
|
|
import Create from "./create.mjs"
|
|
|
|
import Delete from "./delete.mjs"
|
|
|
|
import EP from "./editproperty.mjs"
|
|
|
|
import Pos from "./position.mjs"
|
|
|
|
import V from "./visibility.mjs"
|
|
|
|
import Name from "./name.mjs"
|
|
|
|
import Color from "./color.mjs"
|
2021-04-06 17:06:09 +00:00
|
|
|
|
2021-08-14 16:57:29 +00:00
|
|
|
|
2024-03-28 02:09:37 +00:00
|
|
|
export const Action = A
|
|
|
|
export const CreateNewObject = Create
|
|
|
|
export const DeleteObject = Delete
|
|
|
|
export const EditedProperty = EP
|
|
|
|
export const EditedPosition = Pos
|
|
|
|
export const EditedVisibility = V
|
|
|
|
export const NameChanged = Name
|
|
|
|
export const ColorChanged = Color
|
2021-04-06 17:06:09 +00:00
|
|
|
|
2024-03-28 02:09:37 +00:00
|
|
|
export const Actions = {
|
2021-05-07 22:34:11 +00:00
|
|
|
"Action": Action,
|
|
|
|
"CreateNewObject": CreateNewObject,
|
|
|
|
"DeleteObject": DeleteObject,
|
|
|
|
"EditedProperty": EditedProperty,
|
2022-10-19 15:11:54 +00:00
|
|
|
"EditedPosition": EditedPosition,
|
2021-05-07 22:34:11 +00:00
|
|
|
"EditedVisibility": EditedVisibility,
|
2022-01-30 02:16:47 +00:00
|
|
|
"NameChanged": NameChanged,
|
|
|
|
"ColorChanged": ColorChanged,
|
2021-05-07 22:34:11 +00:00
|
|
|
}
|