Skip to content

@graphty/graphty-element / index / NodeThumbnailOptions

Interface: NodeThumbnailOptions ​

Defined in: graphty-element/src/meshes/NodeThumbnail.ts:21

What a node thumbnail draws.

Properties ​

color? ​

readonly optional color?: string

Defined in: graphty-element/src/meshes/NodeThumbnail.ts:25

Its color, as node.color takes it. Defaults to a mid gray.


shape ​

readonly shape: string

Defined in: graphty-element/src/meshes/NodeThumbnail.ts:23

A node shape, as node.shape takes it ("box", "icosahedron").


size? ​

readonly optional size?: number

Defined in: graphty-element/src/meshes/NodeThumbnail.ts:27

The picture's width and height, in pixels. Defaults to 32.