Back to Website
Show / Hide Table of Contents

Class LayerCollection

Inheritance
Collection<Layer>
LayerCollection
Package: @aurigma/design-atoms

Constructors

(constructor)(_canvas)

Constructs a new instance of the LayerCollection class

Declaration
constructor(_canvas: ICanvas);
Parameters
Type Name Description
ICanvas _canvas

Methods

clear()

Declaration
clear(): void;
Returns
Type Description
void

getItemHandlersByName(name)

Declaration
getItemHandlersByName(name: any): any[];
Parameters
Type Name Description
any name
Returns
Type Description
any[]

getLayerByContainerId(id)

Declaration
getLayerByContainerId(id: any): Layer;
Parameters
Type Name Description
any id
Returns
Type Description
Layer

getLayerById(id)

Declaration
getLayerById(id: any): Layer;
Parameters
Type Name Description
any id
Returns
Type Description
Layer

getLayersByName(name)

Declaration
getLayersByName(name: any): any[];
Parameters
Type Name Description
any name
Returns
Type Description
any[]

insertAt(index, items)

Declaration
insertAt(index: number, items: Layer | Layer[]): void;
Parameters
Type Name Description
number index
Layer | Layer[] items
Returns
Type Description
void

move(oldIndex, newIndex)

Declaration
move(oldIndex: any, newIndex: any): Layer;
Parameters
Type Name Description
any oldIndex
any newIndex
Returns
Type Description
Layer

removeRange(from, to)

Declaration
removeRange(from: number, to: number): Layer[];
Parameters
Type Name Description
number from
number to
Returns
Type Description
Layer[]
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback