UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

19 lines 885 B
import { ShapeItem } from "./ShapeItem"; import { RectangleF } from "../../Math/RectangleF"; import { Path } from "../../Math/Path"; import { ResizeGripsPermissions } from "./ResizeGripsPermissions"; export class EllipseItem extends ShapeItem { constructor(sourceRec = new RectangleF(0, 0, 10, 10)) { super(Path.ellipse(sourceRec.left, sourceRec.top, sourceRec.width, sourceRec.height)); this.type = EllipseItem.type; this.sourceRectangle = sourceRec; this.manipulationPermissions.resizeGrips = new ResizeGripsPermissions(true, true); } clone(generateNewIds = false, appropriateParentContainer = false) { const item = new EllipseItem(); this._copy(this, item, generateNewIds, appropriateParentContainer); return item; } } EllipseItem.type = "EllipseItem"; //# sourceMappingURL=EllipseItem.js.map