Skip to content

Class: MarkerMatrixCell ​

Experimental

One cell of a MarkerMatrix: an instanced draw of two shared columns.

Implements ​

Properties ​

PropertyModifierTypeDescription
materialreadonlyShaderMaterialExperimental
matrixreadonlyMarkerMatrixExperimental
objectreadonlyMesh<InstancedBufferGeometry, ShaderMaterial>Experimental Root object to add to a viewport's scene.

Accessors ​

columns ​

Get Signature ​

ts
get columns(): Readonly<MarkerMatrixCellData>;

Experimental

Columns drawn along x and y.

Returns ​

Readonly<MarkerMatrixCellData>


drawn ​

Get Signature ​

ts
get drawn(): boolean;

Experimental

Whether the cell has been rendered at least once (it then holds GPU buffers).

Returns ​

boolean


geometry ​

Get Signature ​

ts
get geometry(): InstancedBufferGeometry;

Experimental

Returns ​

InstancedBufferGeometry


ready ​

Get Signature ​

ts
get ready(): Promise<void>;

Experimental

Resolves once the custom symbols and images of the shared style are ready (plan E8.11).

Returns ​

Promise<void>

Methods ​

dispose() ​

ts
dispose(): void;

Experimental

Release GPU resources. The primitive must not be used afterwards.

Returns ​

void

Implementation of ​

Primitive.dispose


setTransform() ​

ts
setTransform(transform): void;

Experimental

Set the data → world transform (cheap: uniforms only, no buffer uploads).

Parameters ​

ParameterType
transformDataTransform

Returns ​

void

Implementation of ​

Primitive.setTransform


setViewport() ​

ts
setViewport(size): void;

Experimental

Update viewport-dependent uniforms (resolution, pixel ratio).

Parameters ​

ParameterType
sizeViewportSize

Returns ​

void

Implementation of ​

Primitive.setViewport


update() ​

ts
update(data): void;

Experimental

Point the cell at other columns.

Parameters ​

ParameterType
dataPartial<MarkerMatrixCellData>

Returns ​

void

Implementation of ​

Primitive.update

Released under the MIT License.