Interface ViewLayerParams

Parameters for a ViewLayer.

interface ViewLayerParams {
    autoDestroy?: boolean;
    id: string;
    visible?: boolean;
}

Properties

autoDestroy?: boolean

When true, View destroys the ViewLayer as soon as there are no ViewObjects that need it. When false, the View will retain it.

id: string

ID for the new ViewLayer.

The ViewLayer is registered by this ID in View.layers.

visible?: boolean

Default initial visibility of the ViewObjects in the new ViewLayer.