Skip to content

FoliagePreviewArea beta ​

Interface of @v12-engine/editor

ts
export interface FoliagePreviewArea

The cells a preview plays over (EditorFoliagePreview.area): the Patch tool's selection on the layer, else the patch of the style (or the layer) nearest where the camera looks, a few cells about; with its middle and how far it reaches

Members ​

cells ​

ts
readonly cells: readonly number[];

Its cells, by index (z * width + x)

layer ​

ts
readonly layer: string;

The layer of cells, by its id

middle ​

ts
readonly middle: Vec2;

Its middle, in cells

reach ​

ts
readonly reach: number;

How far from its middle its farthest cell is, in cells