Class ShapeItem
Constructors
(constructor)(sourcePath)
Constructs a new instance of the ShapeItem class
Declaration
constructor(sourcePath?: Path);
Parameters
| Type |
Name |
Description |
| Path |
sourcePath |
|
Properties
altBorderColor
Declaration
get altBorderColor(): Color;
set altBorderColor(value: Color);
Property Value
borderColor
Declaration
get borderColor(): Color;
set borderColor(value: Color);
Property Value
borderWidth
Declaration
get borderWidth(): number;
set borderWidth(value: number);
Property Value
dash
Declaration
get dash(): number[];
set dash(value: number[]);
Property Value
| Type |
Description |
| number[] |
|
fillColor
Declaration
get fillColor(): Color;
set fillColor(value: Color);
Property Value
fixedBorderWidth
Declaration
get fixedBorderWidth(): boolean;
set fixedBorderWidth(value: boolean);
Property Value
overprintFill
Declaration
get overprintFill(): boolean;
set overprintFill(value: boolean);
Property Value
overprintStroke
Declaration
get overprintStroke(): boolean;
set overprintStroke(value: boolean);
Property Value
shapePermissions
Declaration
get shapePermissions(): ShapePermissions;
set shapePermissions(value: ShapePermissions);
Property Value
sourcePath
Declaration
get sourcePath(): Path;
set sourcePath(value: Path);
Property Value
sourcePathId
Declaration
Property Value
sourcePathLoaded
Declaration
sourcePathLoaded: boolean;
Property Value
sourceRectangle
Declaration
get sourceRectangle(): RectangleF;
set sourceRectangle(value: RectangleF);
Property Value
type
Declaration
Property Value
type
Declaration
Property Value
violationSettings
Declaration
get violationSettings(): ShapeViolationSettings;
set violationSettings(value: ShapeViolationSettings);
Property Value
| Type |
Description |
| ShapeViolationSettings |
|
Methods
_copy(source, destination, generateNewIds, appropriateParentContainer)
Declaration
protected _copy(source: ShapeItem, destination: ShapeItem, generateNewIds: boolean, appropriateParentContainer: boolean): void;
Parameters
| Type |
Name |
Description |
| ShapeItem |
source |
|
| ShapeItem |
destination |
|
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
_setViolationSettings(value, skipTypeCheck)
Declaration
protected _setViolationSettings(value: ShapeViolationSettings, skipTypeCheck?: boolean): void;
Parameters
| Type |
Name |
Description |
| ShapeViolationSettings |
value |
|
| boolean |
skipTypeCheck |
|
Returns
applyPermissionsConstrain()
Declaration
applyPermissionsConstrain(): void;
Returns
clone(generateNewIds, appropriateParentContainer)
Declaration
clone(generateNewIds?: boolean, appropriateParentContainer?: boolean): ShapeItem;
Parameters
| Type |
Name |
Description |
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
equals(other)
Declaration
equals(other: ShapeItem): boolean;
Parameters
Returns
getPathLoadedEvent()
Declaration
getPathLoadedEvent(): EventObject<unknown>;
Returns
getSimplifiedObject(omitProperties)
Declaration
getSimplifiedObject(omitProperties?: string[] | string): Object;
Parameters
| Type |
Name |
Description |
| string[] | string |
omitProperties |
|
Returns