eventBus.on('connection.remove', function(event) { var gfx = getBendpointsContainer(event.element); if (gfx) { svgRemove(gfx); } });
eventBus.on('create.cleanup', function(event) { var context = event.context; if (context.visual) { svgRemove(context.visual); } });
/** * 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); }
GraphicsFactory.prototype.remove = function(element) { var gfx = this._elementRegistry.getGraphics(element); // remove svgRemove(gfx.parentNode); };
remove: function(context) { if (context.frame) { svgRemove(context.frame); } }
forEach(domQueryAll('.' + SEGMENT_DRAGGER_CLS, gfx), function(node) { svgRemove(node); });
forEach(domQueryAll('.' + BENDPOINT_CLS, gfx), function(node) { svgRemove(node); });