Interface SurfaceGroupMemberAddedParams

Payload for a group:member:added event from the Surface.

interface SurfaceGroupMemberAddedParams {
    el: Element;
    group: Group;
    groupEl: Element;
    pos?: PointXY;
    sourceGroup?: Group;
    uigroup: UIGroup<any>;
    vertex: Node | Group;
    vertexIsNew?: boolean;
}

Hierarchy (view full)

Properties

el: Element

DOM element representing the member that was added to the group

group: Group

Group the vertex was added to

groupEl: Element

DOM element representing the group

pos?: PointXY

Optional new location for the vertex that was added

sourceGroup?: Group

If a vertex being added to some group is currently a member of some other group, that group is provided here.

uigroup: UIGroup<any>

The group's representation in the UI model.

vertex: Node | Group

Vertex that was added to the group

vertexIsNew?: boolean

Set to true if the vertex is also brand new, not copied from elsewhere in the dataset.

Version :