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