Skip to main content

PropertyMapping

A mapping of some property/properties to a set of appearance values. Currently only used by edges.

Type Parameters

D

D

Identifies the type that each mapping has. For instance, for EdgePropertyMappings, this type is EdgeDefinition.

Properties

mappings

mappings: Record<string, D>

A map whose keys are expected values for the given property (or a space-separated string of values if an array of properties was provided), and the values are the type to apply.


name?

optional name: string

Optional name to use for the mapping in the UI (for example, in an inspector)


property

property: string | string[]

Property or properties to map. If an array is provided, values are matched against all properties in the order given.