Lines Matching refs:connection

2827 	DefaultRenderer.prototype.drawConnection = function drawConnection(visuals, connection) {  argument
2829 var line = createLine(connection.waypoints, this.CONNECTION_STYLE);
2853 DefaultRenderer.prototype.getConnectionPath = function getConnectionPath(connection) { argument
2854 var waypoints = connection.waypoints;
4371 connection: [ 'waypoints' ]
5038 Canvas.prototype.addConnection = function(connection, parent, parentIndex) { argument
5039 return this._addElement('connection', connection, parent, parentIndex);
5117 Canvas.prototype.removeConnection = function(connection) { argument
5140 return this._removeElement(connection, 'connection');
6358 connection: Connection,
17179 function createPathFromConnection(connection) { argument
17180 var waypoints = connection.waypoints;
20703 Outline.prototype.updateConnectionOutline = function(outline, connection) { argument
20705 var bbox = getBBox(connection);
26049 function getDefaultWeight(connection) { argument
26050 return connection.source === source ? 1 : -1;
26102 .map(function(connection) { argument
26103 var weight = getWeight(connection);
26106 ? getDistance(connection.source, source)
26107 : getDistance(source, connection.source);
26110 id: connection.source.id,
26118 .map(function(connection) { argument
26119 var weight = getWeight(connection);
26122 ? getDistance(source, connection.target)
26123 : getDistance(connection.target, source);
26126 id: connection.target.id,
26197 return shape.incoming.map(function(connection) { argument
26198 return connection.source;
26203 return shape.outgoing.map(function(connection) { argument
26204 return connection.target;
26401 filter: function(connection) { argument
26402 return is$1(connection, 'bpmn:SequenceFlow');
28423 function calculateIntersectionThreshold(connection, intersection) { argument
28424 var waypoints = connection.waypoints,
28455 function activateBendpointMove(event, connection) { argument
28456 var waypoints = connection.waypoints,
28464 threshold = calculateIntersectionThreshold(connection, intersection);
28467 connectionSegmentMove.start(event, connection, intersection.index);
28469 bendpointMove.start(event, connection, intersection.index, !intersection.bendpoint);
28511 function createBendpoints(gfx, connection) { argument
28512 connection.waypoints.forEach(function(p, idx) {
28524 function createSegmentDraggers(gfx, connection) { argument
28526 var waypoints = connection.waypoints;
28542 bindInteractionEvents(segmentDraggerGfx, 'mousemove', connection);
28559 function addHandles(connection) { argument
28561 var gfx = getBendpointsContainer(connection);
28564 gfx = getBendpointsContainer(connection, true);
28566 createBendpoints(gfx, connection);
28567 createSegmentDraggers(gfx, connection);
28573 function updateHandles(connection) { argument
28575 var gfx = getBendpointsContainer(connection);
28580 createSegmentDraggers(gfx, connection);
28581 createBendpoints(gfx, connection);
28774 this.start = function(event, connection, bendpointIndex, insert) { argument
28775 var gfx = canvas.getGraphics(connection),
28776 source = connection.source,
28777 target = connection.target,
28778 waypoints = connection.waypoints,
28793 connection: connection,
28800 connection: connection,
28812 connection: connection,
28817 connection: connection,
28829 connection = context.connection,
28830 source = connection.source,
28831 target = connection.target,
28847 connection: connection,
28861 connection: connection,
28890 connection = context.connection,
28892 newWaypoints = connection.waypoints.slice(),
28926 newWaypoints = this.cropWaypoints(connection, newWaypoints);
28928 modeling.updateWaypoints(connection, filterRedundantWaypoints(newWaypoints), hints);
28948 modeling.reconnect(connection, source, target, docking, hints);
28962 BendpointMove.prototype.cropWaypoints = function(connection, newWaypoints) { argument
28969 var waypoints = connection.waypoints;
28971 connection.waypoints = newWaypoints;
28973 connection.waypoints = connectionDocking.getCroppedWaypoints(connection);
28975 newWaypoints = connection.waypoints;
28977 connection.waypoints = waypoints;
29023 connection = context.connection,
29025 waypoints = connection.waypoints,
29036 connection.waypoints = newWaypoints;
29043 canvas.addMarker(connection, MARKER_ELEMENT_HIDDEN);
29044 canvas.addMarker(connection, MARKER_CONNECT_UPDATING$1);
29091 connection = context.connection,
29092 source = connection.source,
29093 target = connection.target,
29094 newWaypoints = connection.waypoints.slice(),
29145 newWaypoints = bendpointMove.cropWaypoints(connection, newWaypoints);
29161 connection = context.connection,
29167 connection.waypoints = waypoints;
29172 canvas.removeMarker(connection, MARKER_CONNECT_UPDATING$1);
29173 canvas.removeMarker(connection, MARKER_ELEMENT_HIDDEN);
29263 this.start = function(event, connection, idx) { argument
29266 gfx = canvas.getGraphics(connection),
29269 waypoints = connection.waypoints,
29286 segmentStart = getDocking$2(segmentStart, connection.source, axis);
29290 segmentEnd = getDocking$2(segmentEnd, connection.target, axis);
29305 connection: connection, property in ConnectionSegmentMove.context
29317 connection: connection,
29332 function cropConnection(connection, newWaypoints) { argument
29339 var oldWaypoints = connection.waypoints,
29343 connection.waypoints = newWaypoints;
29345 croppedWaypoints = connectionDocking.getCroppedWaypoints(connection);
29348 connection.waypoints = oldWaypoints;
29356 graphicsFactory.update('connection', data.connection, data.connectionGfx);
29410 connection = event.connection,
29413 context.originalWaypoints = connection.waypoints.slice();
29419 canvas.addMarker(connection, MARKER_CONNECT_UPDATING);
29425 connection = context.connection,
29451 sourceToSegmentOrientation = getOrientation(connection.source, newSegmentStart);
29474 targetToSegmentOrientation = getOrientation(connection.target, newSegmentEnd);
29494 context.newWaypoints = connection.waypoints = cropConnection(connection, newWaypoints);
29529 connection = context.connection;
29536 canvas.removeMarker(connection, MARKER_CONNECT_UPDATING);
29544 connection = context.connection;
29546 connection.waypoints = context.originalWaypoints;
29554 connection = context.connection,
29573 croppedWaypoints = cropConnection(connection, filteredWaypoints),
29583 modeling.updateWaypoints(connection, croppedWaypoints, hints);
29773 connection = context.connection,
29774 waypoints = connection.waypoints,
29793 referenceWaypoints.unshift(mid(connection.source));
29797 referenceWaypoints.unshift(mid(connection.target));
29866 waypoints = context.connection.waypoints,
30249 connection;
30266 connection = getConnection(canConnect, source, target);
30269 if (!connection) {
30274 connection.waypoints = waypoints || [];
30278 connection.waypoints = this._layouter.layoutConnection(connection, {
30283 waypoints: hints.waypoints || connection.waypoints
30288 if (!connection.waypoints || !connection.waypoints.length) {
30289 connection.waypoints = [
30297 connection.waypoints = this._connectionDocking.getCroppedWaypoints(connection, source, target);
30300 this._graphicsFactory.drawConnection(connectionPreviewGfx, connection);
30321 var connection = this.createNoopConnection(waypoints[0], waypoints[1]);
30323 append(connectionPreviewGfx, connection);
30402 var connection = create$1('polyline');
30404 attr(connection, {
30411 attr(connection, { 'points': [ start.x, start.y, end.x, end.y ] });
30413 return connection;
31893 connection: connect === true ? {} : connect,
33155 var connection = this._elementFactory.createConnection(omit(attrs, [ 'id' ]));
33157 return connection;
37918 connection = context.connection,
37920 waypoints = connection.waypoints;
37930 modeling.updateWaypoints(connection, self.snapMiddleSegments(waypoints));
39681 connection = context.connection,
39682 source = connection.source,
39683 target = connection.target,
39954 var associations = filter(shape.incoming.concat(shape.outgoing), function(connection) { argument
39955 return is$1(connection, 'bpmn:Association');
40099 forEach(newSource.outgoing, function(connection) { argument
40100 var target = connection.target,
40761 function cleanupTargetRef(element, connection) { argument
40769 if (!usesTargetRef(element, targetRefProp, connection)) {
40783 connection = context.connection,
40784 connectionBo = connection.businessObject,
40785 target = connection.target,
40792 var dataAssociation = connection.businessObject,
40831 connection = context.connection;
40833 if (is$1(connection, 'bpmn:DataInputAssociation')) {
41333 incomingConnection && filter(oldIncoming, function(connection) { argument
41334 return connection.source === incomingConnection.source;
41337 outgoingConnection && filter(oldOutgoing, function(connection) { argument
41338 return connection.target === outgoingConnection.target;
41372 var connection = find(newParent.children, function(element) {
41378 if (connection) {
41379 context.targetFlow = connection;
41521 function isSequenceFlow(connection) { argument
41522 return is$1(connection, 'bpmn:SequenceFlow');
41794 function fixDockings(connection) { argument
41795 var waypoints = connection.waypoints;
41800 getMid(connection.source)
41806 getMid(connection.target)
42613 var element = context.shape || context.connection,
42692 connection = context.connection,
42693 label = connection.label,
42695 newWaypoints = context.newWaypoints || connection.waypoints,
42721 var connection = context.connection,
42722 label = connection.label,
42906 function getResizedSourceAnchor(connection, shape, oldBounds) { argument
42908 var waypoints = safeGetWaypoints(connection),
42921 function getResizedTargetAnchor(connection, shape, oldBounds) { argument
42923 var waypoints = safeGetWaypoints(connection),
42936 function getMovedSourceAnchor(connection, source, moveDelta) { argument
42938 var waypoints = safeGetWaypoints(connection),
42946 function getMovedTargetAnchor(connection, target, moveDelta) { argument
42948 var waypoints = safeGetWaypoints(connection),
42975 function safeGetWaypoints(connection) { argument
42977 var waypoints = connection.waypoints;
42980 throw new Error('connection#' + connection.id + ': no waypoints');
43064 element.incoming.forEach(function(connection) { argument
43065 if (is$1(connection, 'bpmn:MessageFlow')) {
43066 incoming.push(connection);
43070 element.outgoing.forEach(function(connection) { argument
43071 if (is$1(connection, 'bpmn:MessageFlow')) {
43072 outgoing.push(connection);
43123 function fixConnection(connection) { argument
43125 var source = connection.source,
43126 target = connection.target,
43127 parent = connection.parent;
43147 if (is$1(connection, 'bpmn:SequenceFlow')) {
43159 if (is$1(connection, 'bpmn:MessageFlow')) {
43170 if (is$1(connection, 'bpmn:Association') && !bpmnRules.canConnectAssociation(source, target)) {
43178 modeling.removeConnection(connection);
43186 waypoints: connection.waypoints.slice()
43194 connection = context.connection,
43195 source = context.newSource || connection.source,
43196 target = context.newTarget || connection.target,
43202 if (!allowed || allowed.type === connection.type) {
43208 waypoints: connection.waypoints.slice()
43212 modeling.removeConnection(connection);
43215 context.connection = replacement;
43218 cleanDraggingSelection(connection, replacement);
43259 connection;
43263 connection = find(
43268 if (connection) {
43269 modeling.updateProperties(connection, { conditionExpression: undefined });
44057 connection = context.connection,
44058 connectionBo = connection.businessObject;
44241 connection = context.connection,
44242 source = connection.source;
44244 if (isDefaultFlow(connection, source)) {
44262 function isDefaultFlow(connection, source) { argument
44264 if (!is$1(connection, 'bpmn:SequenceFlow')) {
44269 sequenceFlow = getBusinessObject(connection);
44410 var connection = context.connection,
44414 return canConnect(source, target, connection);
44419 type: context.connection.type
44723 function canConnect(source, target, connection) { argument
44729 if (!is$1(connection, 'bpmn:DataAssociation')) {
45262 function isOutgoingEventBasedGatewayConnection(connection) { argument
45264 if (connection && connection.source) {
45265 return is$1(connection.source, 'bpmn:EventBasedGateway');
45360 element = context.shape || context.connection,
45378 element = context.shape || context.connection,
46583 element = context.connection || context.shape;
46791 forEach(attacher.outgoing.slice(), function(connection) { argument
46793 connection: connection,
46794 source: connection.source,
46795 target: connection.target
46799 modeling.removeConnection(connection);
46804 forEach(attacher.incoming.slice(), function(connection) { argument
46806 connection: connection,
46807 source: connection.source,
46808 target: connection.target
46812 modeling.removeConnection(connection);
47147 forEach(incoming.concat(outgoing), function(connection) { argument
47148 var source = connection.source,
47149 target = connection.target;
47156 if (!includes$3(waypointsUpdatingConnections, connection)) {
47157 waypointsUpdatingConnections.push(connection);
47796 forEach(shape.outgoing, function(connection) { argument
47797 if (element === connection) {
47806 forEach(shape.incoming, function(connection) { argument
47807 if (element === connection) {
47816 forEach(shape.outgoing, function(connection) { argument
47817 if (element === connection) {
47826 forEach(shape.incoming, function(connection) { argument
47827 if (element === connection) {
47936 forEach(movingConnections, function(connection) { argument
47937 canvas.removeMarker(connection, MARKER_DRAGGING$1);
48118 connection;
48121 connection = context.connection;
48122 connection.waypoints = connectionDocking.getCroppedWaypoints(connection);
48145 self.updateParent(context.shape || context.connection, context.oldParent);
48151 var element = context.shape || context.connection,
48262 self.updateConnectionWaypoints(e.context.connection);
48280 connection = context.connection,
48283 connectionBo = getBusinessObject(connection),
48310 connection = context.connection,
48313 connectionBo = getBusinessObject(connection),
48683 BpmnUpdater.prototype.updateConnectionWaypoints = function(connection) { argument
48684connection.businessObject.di.set('waypoint', this._bpmnFactory.createDiWaypoints(connection.waypoi…
48690 var connection = context.connection,
48691 businessObject = getBusinessObject(connection),
48692 newSource = getBusinessObject(connection.source),
48693 newTarget = getBusinessObject(connection.target),
48744 this.updateConnectionWaypoints(connection);
48773 element = context.shape || context.connection;
49123 this._modeling.connect(context.shape, context.source, context.connection);
49125 this._modeling.connect(context.source, context.shape, context.connection);
49158 var connection = context.connection,
49173 connection.source = source;
49174 connection.target = target;
49176 if (!connection.waypoints) {
49177 connection.waypoints = this._layouter.layoutConnection(connection, hints);
49181 this._canvas.addConnection(connection, parent, parentIndex);
49183 return connection;
49187 var connection = context.connection;
49189 this._canvas.removeConnection(connection);
49191 connection.source = null;
49192 connection.target = null;
49194 return connection;
49453 var connection = context.connection,
49454 parent = connection.parent;
49459 context.parentIndex = indexOf(parent.children, connection);
49461 context.source = connection.source;
49462 context.target = connection.target;
49464 this._canvas.removeConnection(connection);
49466 connection.source = null;
49467 connection.target = null;
49469 return connection;
49477 var connection = context.connection,
49481 connection.source = context.source;
49482 connection.target = context.target;
49485 add(parent.children, connection, parentIndex);
49487 this._canvas.addConnection(connection, parent);
49489 return connection;
49548 saveClear(shape.incoming, function(connection) { argument
49552 modeling.removeConnection(connection, { nested: true });
49555 saveClear(shape.outgoing, function(connection) { argument
49556 modeling.removeConnection(connection, { nested: true });
49774 var connection = context.connection;
49776 var oldWaypoints = connection.waypoints;
49782 connection.waypoints = this._layouter.layoutConnection(connection, context.hints);
49784 return connection;
49789 var connection = context.connection;
49791 connection.waypoints = context.oldWaypoints;
49793 return connection;
49807 var connection = context.connection,
49810 var newParent = context.newParent || connection.parent,
49812 oldParent = connection.parent;
49816 context.oldParentIndex = remove(oldParent.children, connection);
49819 add(newParent.children, connection, newParentIndex);
49822 connection.parent = newParent;
49825 forEach(connection.waypoints, function(p) {
49835 return connection;
49840 var connection = context.connection,
49841 newParent = connection.parent,
49847 remove(newParent.children, connection);
49850 add(oldParent.children, connection, oldParentIndex);
49853 connection.parent = oldParent;
49856 forEach(connection.waypoints, function(p) {
49866 return connection;
50126 connection = context.connection,
50134 context.oldWaypoints = connection.waypoints;
50135 connection.waypoints = dockingOrPoints;
50139 context.oldSource = connection.source;
50140 connection.source = newSource;
50144 context.oldTarget = connection.target;
50145 connection.target = newTarget;
50148 return connection;
50152 var connection = context.connection,
50186 this._modeling.layoutConnection(connection, layoutConnectionHints);
50193 connection = context.connection;
50196 connection.source = oldSource;
50200 connection.target = oldTarget;
50204 connection.waypoints = oldWaypoints;
50207 return connection;
50257 function canReconnect(source, target, connection) { argument
50259 connection: connection,
50300 forEach(incoming, function(connection) { argument
50301 var source = connection.source,
50302 allowed = canReconnect(source, newShape, connection);
50306 connection, newShape,
50307 getResizedTargetAnchor(connection, newShape, oldBounds),
50313 forEach(outgoing, function(connection) { argument
50314 var target = connection.target,
50315 allowed = canReconnect(newShape, target, connection);
50319 connection, newShape,
50320 getResizedSourceAnchor(connection, newShape, oldBounds),
50349 …ReplaceShapeHandler.prototype.reconnectStart = function(connection, newSource, dockingPoint, hints… argument
50350 this._modeling.reconnectStart(connection, newSource, dockingPoint, hints);
50354 ReplaceShapeHandler.prototype.reconnectEnd = function(connection, newTarget, dockingPoint, hints) { argument
50355 this._modeling.reconnectEnd(connection, newTarget, dockingPoint, hints);
50545 forEach(connections, function(connection) { argument
50546 var source = connection.source,
50547 target = connection.target,
50548 waypoints = copyWaypoints(connection),
50573 self._modeling.updateWaypoints(connection, waypoints, {
50580 layoutHints.connectionStart = getMovedSourceAnchor(connection, source, delta);
50582 layoutHints.connectionEnd = getMovedTargetAnchor(connection, target, delta);
50585 connection, source, oldBounds[source.id]
50589 connection, target, oldBounds[target.id]
50593 self._modeling.layoutConnection(connection, layoutHints);
50605 function copyWaypoints(connection) { argument
50606 return map$1(connection.waypoints, function(waypoint) {
50829 var connection = context.connection,
50832 context.oldWaypoints = connection.waypoints;
50834 connection.waypoints = newWaypoints;
50836 return connection;
50841 var connection = context.connection,
50844 connection.waypoints = oldWaypoints;
50846 return connection;
50996 …Modeling$1.prototype.moveConnection = function(connection, delta, newParent, newParentIndex, hints… argument
51004 connection: connection, property in AnonymousFunctionf8d14cd15bf00.context
51015 Modeling$1.prototype.layoutConnection = function(connection, hints) { argument
51017 connection: connection, property in AnonymousFunctionf8d14cd15c000.context
51037 …Modeling$1.prototype.createConnection = function(source, target, parentIndex, connection, parent, … argument
51041 parent = connection;
51042 connection = parentIndex;
51046 connection = this._create('connection', connection);
51053 connection: connection, property in AnonymousFunctionf8d14cd15c100.context
51059 return context.connection;
51181 connection: hints.connection, property in AnonymousFunctionf8d14cd15c500.context
51222 Modeling$1.prototype.removeConnection = function(connection, hints) { argument
51224 connection: connection, property in AnonymousFunctionf8d14cd15c900.context
51275 Modeling$1.prototype.updateWaypoints = function(connection, newWaypoints, hints) { argument
51277 connection: connection, property in AnonymousFunctionf8d14cd15ce00.context
51285 Modeling$1.prototype.reconnect = function(connection, source, target, dockingOrPoints, hints) { argument
51287 connection: connection, property in AnonymousFunctionf8d14cd15cf00.context
51297 Modeling$1.prototype.reconnectStart = function(connection, newSource, dockingOrPoints, hints) { argument
51302 this.reconnect(connection, newSource, connection.target, dockingOrPoints, assign(hints, {
51307 Modeling$1.prototype.reconnectEnd = function(connection, newTarget, dockingOrPoints, hints) { argument
51312 this.reconnect(connection, connection.source, newTarget, dockingOrPoints, assign(hints, {
52660 BaseLayouter.prototype.layoutConnection = function(connection, hints) { argument
52665 hints.connectionStart || getMid(hints.source || connection.source),
52666 hints.connectionEnd || getMid(hints.target || connection.target)
53426 BpmnLayouter.prototype.layoutConnection = function(connection, hints) { argument
53431 var source = hints.source || connection.source,
53432 target = hints.target || connection.target,
53433 waypoints = hints.waypoints || connection.waypoints,
53451 if (is$1(connection, 'bpmn:Association') ||
53452 is$1(connection, 'bpmn:DataAssociation')) {
53459 if (is$1(connection, 'bpmn:MessageFlow')) {
53461 } else if (is$1(connection, 'bpmn:SequenceFlow') || isCompensationAssociation(source, target)) {
53469 preferredLayouts: getLoopPreferredLayout(source, connection)
53625 function getLoopPreferredLayout(source, connection) { argument
53626 var waypoints = connection.waypoints;
53800 CroppingConnectionDocking.prototype.getCroppedWaypoints = function(connection, source, target) { argument
53802 source = source || connection.source;
53803 target = target || connection.target;
53805 var sourceDocking = this.getDockingPoint(connection, source, true),
53806 targetDocking = this.getDockingPoint(connection, target);
53808 var croppedWaypoints = connection.waypoints.slice(sourceDocking.idx + 1, targetDocking.idx);
53821 CroppingConnectionDocking.prototype.getDockingPoint = function(connection, shape, dockStart) { argument
53823 var waypoints = connection.waypoints,
53831 croppedPoint = this._getIntersection(shape, connection, dockStart);
53843 CroppingConnectionDocking.prototype._getIntersection = function(shape, connection, takeFirst) { argument
53846 connectionPath = this._getConnectionPath(connection);
53851 CroppingConnectionDocking.prototype._getConnectionPath = function(connection) { argument
53852 return this._graphicsFactory.getConnectionPath(connection);
56318 forEach(shape.outgoing, function(connection) { argument
56319 var docking = connection.waypoints[0];
56323 …snapContext.setSnapOrigin(connection.id + '-docking', getDockingSnapOrigin(docking, isMove, event)…
56326 forEach(shape.incoming, function(connection) { argument
56327 var docking = connection.waypoints[connection.waypoints.length - 1];
56331 …snapContext.setSnapOrigin(connection.id + '-docking', getDockingSnapOrigin(docking, isMove, event)…
56363 forEach(shape.incoming, function(connection) { argument
56366 if (!includes(snapTargets, connection.source)) {
56367 snapPoints.add('mid', getMid(connection.source));
56370 var docking = connection.waypoints[0];
56371 snapPoints.add(connection.id + '-docking', docking.original || docking);
56375 forEach(shape.outgoing, function(connection) { argument
56378 if (!includes(snapTargets, connection.target)) {
56379 snapPoints.add('mid', getMid(connection.target));
56382 var docking = connection.waypoints[ connection.waypoints.length - 1 ];
56384 snapPoints.add(connection.id + '-docking', docking.original || docking);