@zeainc/zea-ux
Version:
45 lines • 1.3 kB
TypeScript
import { Xfo, Color, GeomItem, TreeItem } from '@zeainc/zea-engine';
import Change from '../../../UndoRedo/Change';
/**
* Class representing a create geom change.
*
* @extends Change
*/
declare class CreateGeomChange extends Change {
parentItem: TreeItem;
geomItem: GeomItem;
childIndex: number;
xfo: Xfo;
color: Color;
/**
* Create a create circle change.
* @param name - The name value.
*/
constructor(name: string, parentItem: TreeItem, xfo: Xfo, color?: Color);
protected createGeomItem(): void;
/**
* Removes recently created geometry from its parent.
*/
undo(): void;
/**
* Restores recently created geometry and adds it to the specified parent tree item.
*/
redo(): void;
/**
* Serializes the change as a JSON object.
*
* @param context - The context value
* @return - The serialized change
*/
toJSON(context?: Record<any, any>): Record<any, any>;
/**
* Restores geometry from using the specified JSON
*
* @param j - The j param.
* @param context - The appData param.
*/
fromJSON(j: Record<any, any>, context: Record<any, any>): void;
}
export default CreateGeomChange;
export { CreateGeomChange };
//# sourceMappingURL=CreateGeomChange.d.ts.map