Search code examples
backbone.jsjointjsrappid

Adding cell to JointJS graph silently


In JointJS, how can I add a cell to a graph without triggering any events? When I pass the optional arguments:

{
    silent: true
}

The cell is not rendered in the paper.


Solution

  • This is by design, checkout Selection Collection section of jointjs docs.

    selection.collection.add(element, { silent: true}); // add element to the collection, but renders no selection box.