editor › Globals › IMeshAnchorChangeEvent
Interface: IMeshAnchorChangeEvent
Emitted when a MeshAnchor changes. It may contain additional anchors in case multiple successors are equally valid.
Hierarchy
↳ IMeshAnchorChangeEvent
Index
Properties
Properties
Readonly overallChange
• overallChange: MeshAnchorChange
Defined in src/model/data/Concepts/Anchors/IMeshAnchorChangeEvent.ts:12
Description what happened overall
Readonly previousTarget
• previousTarget: Mesh
Defined in src/model/data/Concepts/Anchors/IMeshAnchorChangeEvent.ts:27
The Mesh the emitting anchor was targeting before this event.
Optional Readonly scale
• scale? : number
Defined in src/model/data/Concepts/Anchors/IMeshAnchorChangeEvent.ts:32
Iff the overallChange is MeshAnchorChange.SCALE, this must be supplied.
Readonly source
• source: IAnchor
Inherited from IAnchorChangeEvent.source
Defined in src/model/data/Concepts/Anchors/IAnchorChangeEvent.ts:13
The anchor this event comes from. If the event goes through a chain of anchors, each anchor should emit an event referencing itself (IModelElements should only receive events from anchors they directly reference).
Optional Readonly splitAnchors
• splitAnchors? : IMeshAnchor[]
Defined in src/model/data/Concepts/Anchors/IMeshAnchorChangeEvent.ts:22
If the overallChange is SPLIT, this contains an array of additionally valid anchors in addition to the source anchor. Concepts should decide what they do with them.
If the event goes through a chain of anchors, the split anchors should be similar to the source anchor, meaning they should be of the type of source, which is directly referenced by the concept, i.e. potential chains of anchors must be re-created and cloned on the way.