Skip to content

editorGlobalsIModelElementDependencyDefiner

Interface: IModelElementDependencyDefiner

Defines the dependency between two IModelElement. An IModelElement returning this expresses that it depends on getTargets() or some entity (e.g. a specific surface of a mesh) within the target IModelElement(s).

Hierarchy

  • IModelElementDependencyDefiner

IAnchor

IPositionableElementTransformsDefiner

Index

Methods

Methods

getIsValid

getIsValid(): boolean

Defined in src/model/data/Concepts/Anchors/IAnchor.ts:68

Whether this instance is valid, a.k.a. has a valid target assigned and points to something useful within that target. IModelElementDependencyDefiner might invalidate if the target changes.

If the IModelElementDependencyDefiner does not need a target, it can be valid even without having one defined.

Validity should be lazily evaluated and not destructive action should be (automatically) taken if the anchor is invalid. Only high level control classes (Realizers, Tools, BoxelCSG) should clean up invalid anchors and model elements. An anchor becoming invalid should not trigger any events.

Returns: boolean


getTargets

getTargets(): IModelElement[]

Defined in src/model/data/Concepts/Anchors/IAnchor.ts:55

The targets this IModelElementDependencyDefiner points to. This means that the IModelElementDependencyDefiner itself depends on some specifics of the target IModelElements.

Usually, there will be one target. Some implementations, however, may define zero or multiple targets.

Returns: IModelElement[]