Instantiate the layer class.
Name | Type | Description |
---|---|---|
context |
Context | context object |
Members
-
Set or get the sub-object filtering distance threshold.
-
Set or get the sub-object filtering mode, the default is: pixel filtering.
-
Set or get sub-object filter pixel threshold.
-
Set or get the maximum visible height of the layer.
-
Set or get the minimum visible height of the layer.
-
Get or set whether the object is selectable.
-
Default Value:
true
-
selectedColor : Color
-
Set or get the highlight color of the selected object.
-
shadowType : ShadowType
-
Get or set the shadow mode. The default value is NONE.
-
Default Value:
NONE
-
Sets the slice side length.
Methods
-
Add instances in batches.
Name Type Description url
String instance model skeleton url attrs
Array instance attribute -
get instance
Name Type Description url
String instance url ids
Array instance ids array -
Gets the visibility of the corresponding viewport of the layer.
Name Type Description index
Number Viewport index. Returns:
is visible. -
Remove instances in bulk
Name Type Description url
String instance url ids
Array instance ids array -
Deselects all instances.
-
Sets the visibility of the layer corresponding to the viewport.
Name Type Description index
Number viewport index visible
Boolean is visible -
Update instanced frame state
Name Type Description frameState
FrameState optional frame state -
Update all slices of the layer