Esempio n. 1
0
  eventBus.on('connection.remove', function(event) {
    var gfx = getBendpointsContainer(event.element);

    if (gfx) {
      svgRemove(gfx);
    }
  });
Esempio n. 2
0
  eventBus.on('create.cleanup', function(event) {
    var context = event.context;

    if (context.visual) {
      svgRemove(context.visual);
    }
  });
Esempio n. 3
0
  /**
   * Remove resizer frame.
   *
   * @param {Object} context
   */
  function removeFrame(context) {
    var shape = context.shape,
        frame = context.frame;

    if (frame) {
      svgRemove(context.frame);
    }

    canvas.removeMarker(shape, MARKER_RESIZING);
  }
Esempio n. 4
0
GraphicsFactory.prototype.remove = function(element) {
  var gfx = this._elementRegistry.getGraphics(element);

  // remove
  svgRemove(gfx.parentNode);
};
Esempio n. 5
0
    remove: function(context) {

      if (context.frame) {
        svgRemove(context.frame);
      }
    }
Esempio n. 6
0
 forEach(domQueryAll('.' + SEGMENT_DRAGGER_CLS, gfx), function(node) {
   svgRemove(node);
 });
Esempio n. 7
0
 forEach(domQueryAll('.' + BENDPOINT_CLS, gfx), function(node) {
   svgRemove(node);
 });