Skip to content

visualOptionsFromData

visualOptionsFromData(data): VisualComponentOptions

Defined in: renderer/src/VisualComponent.ts:92

Copy the shared visual fields out of a snapshot into the options object a subclass’s fromSnapshot hands to its constructor. Each subclass then adds only its own fields (texture key, text, anchor, …) on top.

VisualComponentData

VisualComponentOptions