Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

LayerImageOptions

Defined in: packages/node-image/src/types.ts:61

Options for the layerImage() function. Extends schema options with programmatic-only options.

  • SchemaOptions

readonly optional colorAttribute?: string

Defined in: packages/node-image/src/types.ts:41

SchemaOptions.colorAttribute


readonly optional drawingMode?: "image" | "color"

Defined in: packages/node-image/src/types.ts:39

SchemaOptions.drawingMode


readonly optional imageAttribute?: string

Defined in: packages/node-image/src/types.ts:42

SchemaOptions.imageAttribute


readonly optional name?: string

Defined in: packages/node-image/src/types.ts:38

SchemaOptions.name


readonly optional padding?: number

Defined in: packages/node-image/src/types.ts:40

SchemaOptions.padding


optional textureManager?: TextureManager

Defined in: packages/node-image/src/types.ts:67

Optional TextureManager instance to use. If not provided, a new one will be created internally. Pass an existing TextureManager to share textures across multiple layer instances.


optional textureManagerOptions?: Partial<TextureManagerOptions>

Defined in: packages/node-image/src/types.ts:73

Options for creating the internal TextureManager. Only used if textureManager is not provided.