Class: Layer
#
HierarchyShapeContainer
↳ Layer
#
Constructors#
constructor+ new Layer(name?
: string): Layer
#
ParametersName | Type | Default value |
---|---|---|
name | string | "New Layer" |
Returns: Layer
Overrides: ShapeContainer.constructor
#
Accessors#
active• get active(): boolean
Returns: boolean
• set active(active
: boolean): void
#
ParametersName | Type |
---|---|
active | boolean |
Returns: void
#
attr• get attr(): Attributes
Returns: Attributes
#
children• get children(): Shape[]
Returns: Shape[]
#
fill• set fill(fill
: string): void
#
ParametersName | Type |
---|---|
fill | string |
Returns: void
#
name• get name(): string
Returns: string
• set name(name
: string): void
#
ParametersName | Type |
---|---|
name | string |
Returns: void
#
stroke• set stroke(stroke
: number): void
#
ParametersName | Type |
---|---|
stroke | number |
Returns: void
#
strokeWidth• set strokeWidth(strokeWidth
: number): void
#
ParametersName | Type |
---|---|
strokeWidth | number |
Returns: void
#
transform• set transform(transform
: string): void
#
ParametersName | Type |
---|---|
transform | string |
Returns: void
#
type• get type(): string
Returns: string
#
uuid• get uuid(): string
Returns: string
#
Methods#
addChildrenâ–¸ addChildren(children
: Shape): void
#
ParametersName | Type |
---|---|
children | Shape |
Returns: void
Inherited from: ShapeContainer.addChildren
#
addShapeâ–¸ addShape(shape
: Shape): void
#
ParametersName | Type |
---|---|
shape | Shape |
Returns: void
#
drawâ–¸ draw(shape
: Shape, requestRender
: Function): void
#
ParametersName | Type |
---|---|
shape | Shape |
requestRender | Function |
Returns: void
#
drawShapeâ–¸ drawShape(): void
Returns: void
Inherited from: ShapeContainer.drawShape
#
onViewUpdateâ–¸ onViewUpdate(): void
Returns: void
Inherited from: ShapeContainer.onViewUpdate
#
setAttributesâ–¸ setAttributes(attr
: Attributes): void
#
ParametersName | Type |
---|---|
attr | Attributes |
Returns: void
Inherited from: ShapeContainer.setAttributes
#
toObjectâ–¸ toObject(): ShapeChildren
Returns: ShapeChildren
Inherited from: ShapeContainer.toObject
#
transformAttributesâ–¸ transformAttributes(): Attributes
Returns: Attributes
Inherited from: ShapeContainer.transformAttributes