@zeainc/zea-ux
Version:
49 lines • 1.53 kB
TypeScript
import { Color, Lines, TreeItem, Xfo } from '@zeainc/zea-engine';
import CreateGeomChange from './CreateGeomChange';
/**
* Class representing a create freehand line change.
*
* **Events**
* * **updated:** Triggered when the change is updated
*
* @extends CreateGeomChange
*/
declare class CreateFreehandLineChange extends CreateGeomChange {
thickness: number;
vertexCount: number;
used: number;
line: Lines;
/**
* Create a create freehand line change.
*
* @param parentItem - The parentItem value.
* @param xfo - The xfo value.
* @param color - The color value.
* @param thickness - The thickness value.
*/
constructor(parentItem: TreeItem, xfo: Xfo, color: Color, thickness?: number);
protected createGeomItem(): void;
/**
* Updates free hand line using the specified data.
*
* @param updateData - The updateData param.
*/
update(updateData: Record<any, any>): void;
/**
* Serializes change as a JSON object.
*
* @param context - The appData param.
* @return {object} The return value.
*/
toJSON(context: Record<any, any>): Record<string, any>;
/**
* Restores free hand line from a JSON object.
*
* @param j - The j param.
* @param context - The appData param.
*/
fromJSON(j: Record<any, any>, context: Record<any, any>): void;
}
export default CreateFreehandLineChange;
export { CreateFreehandLineChange };
//# sourceMappingURL=CreateFreehandLineChange.d.ts.map