scmJS docs

api.selection

SelectionApi

What is selected on each object layer, the marked area, the active layer and the locked ones.

What is selected on each object layer, by index into the scenario's lists, with a setter for each; the Clipboard layer's marked area; the active layer; and the Layers panel's locks.

Members

markedArea

markedArea(): Rect | null;

The Cut / Copy / Paste layer's marked rectangle, in tiles.

markArea

markArea(rect: Rect | null): void;

units

units(): number[];

setUnits

setUnits(indices: readonly number[]): void;

sprites

sprites(): number[];

setSprites

setSprites(indices: readonly number[]): void;

doodads

doodads(): number[];

setDoodads

setDoodads(indices: readonly number[]): void;

locations

locations(): number[];

setLocations

setLocations(indices: readonly number[]): void;

layer

layer(): EditorLayer;

setLayer

setLayer(layer: EditorLayer): void;

lockedLayers

lockedLayers(): EditorLayer[];

Layers the Layers panel has locked: their tools refuse to change the map.

setLayerLocked

setLayerLocked(layer: EditorLayer, locked: boolean): void;

scmJS 0.20.0 + main@c323d11 · Generated from the repository. The source is under the MIT license, which does not cover what ATTRIBUTION.md lists. StarCraft and Brood War are trademarks of Blizzard Entertainment; this project ships none of their data.