Common options for edge/node/group/port definitions in a view.

interface ViewOptionsCommon {
    events?: ViewEventOptions;
    mergeStrategy?: string;
    parent?: string | string[];
}

Hierarchy (view full)

Properties

events?: ViewEventOptions

Optional map of event bindings.

mergeStrategy?: string

When merging a type description into its parent(s), values in the child for connector, anchor and anchors will always overwrite any such values in the parent. But other values, such as overlays, will be merged with their parent's entry for that key. You can force a child's type to override every corresponding value in its parent by setting mergeStrategy:'override'.

parent?: string | string[]

Optional ID of one or more edge definitions to include in this definition. The child definition is merged on top of the parent definition(s). Circular references are not allowed and will throw an error.

Version :