Instantiate a layer class.
Name | Type | Description |
---|---|---|
context |
Context | Context object |
Members
-
Set or get the sub-object filter distance threshold.
-
Set or get the sub-object filtering mode. The default is: pixel filtering.
-
Set or get the 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.
-
pickEnable : Color
-
Set whether the object is optional.
-
selectedColor : Color
-
Set or get the highlighted color selected by the object.
-
Set the length of the slice side.
Methods
-
Add instances in bulk.
Name Type Description url
String Instance model skeleton url attrs
Array Instance attribute -
Get an instance.
Name Type Description url
String Instance url ids
Array Instance ids array -
Get the visibility of the layer corresponding to the viewport.
Name Type Description index
Viewport index Returns:
Is it visible? -
Batch removal of instances
Name Type Description url
String Instance url ids
Array Instance ids array -
Cancel the selected state of all instances.
-
Set the visibility of the layer corresponding to the viewport.
Name Type Description index
Number Viewport index visible
Boolean Is it visible? -
Name Type Description frameState
-
Update all slices of the layer