The layer component.
groupComponent Types
Get the index of the current layer the object is assigned to.
returnsThe index of the layer the object is assigned to, or `null` if the layer does not exist.
layer(): string | null
Get the name of the current layer the object is assigned to.
returnsThe name of the layer the object is assigned to.
layer(name: string):
Set the name of the layer the object should be assigned to.