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 urlString Instance model skeleton url attrsArray Instance attribute -
Get an instance.
Name Type Description urlString Instance url idsArray Instance ids array -
Get the visibility of the layer corresponding to the viewport.
Name Type Description indexViewport index Returns:
Is it visible? -
Batch removal of instances
Name Type Description urlString Instance url idsArray Instance ids array -
Cancel the selected state of all instances.
-
Set the visibility of the layer corresponding to the viewport.
Name Type Description indexNumber Viewport index visibleBoolean Is it visible? -
Name Type Description frameState -
Update all slices of the layer
