@genexus/diagram-editors 0.6.28 → 0.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{editor-9cced5be.js → editor-386996a2.js} +10 -248
- package/dist/cjs/gx-bpmn-editor.cjs.entry.js +5 -78
- package/dist/cjs/gx-report-layout-editor.cjs.entry.js +3 -18
- package/dist/collection/components/bpmn/bpmn-editor-component.js +1 -3
- package/dist/collection/components/bpmn/bpmn-editor.js +0 -17
- package/dist/collection/components/bpmn/bpmn-graph.js +2 -32
- package/dist/collection/components/bpmn/layout.js +0 -2
- package/dist/collection/components/bpmn/shapes/activity-shape.js +0 -21
- package/dist/collection/components/bpmn/shapes/connector-shape.js +0 -1
- package/dist/collection/components/bpmn/shapes/gateway-shape.js +1 -1
- package/dist/collection/components/common/cell.js +1 -1
- package/dist/collection/components/common/common-style-tokens.js +1 -1
- package/dist/collection/components/common/connection-handler.js +3 -33
- package/dist/collection/components/common/editor.js +2 -58
- package/dist/collection/components/common/event-converter.js +3 -5
- package/dist/collection/components/common/graph-handler.js +0 -14
- package/dist/collection/components/common/graph.js +2 -85
- package/dist/collection/components/common/mx.js +0 -51
- package/dist/collection/components/common/panning-handler.js +0 -2
- package/dist/collection/components/report/report-editor-component.js +1 -1
- package/dist/collection/components/report/report-editor.js +1 -12
- package/dist/collection/components/report/report-graph.js +0 -2
- package/dist/collection/components/report/shapes/rectangle-shape.js +0 -2
- package/dist/diagram-editors/diagram-editors.esm.js +1 -1
- package/dist/diagram-editors/{p-8a30f84f.system.entry.js → p-009a6590.system.entry.js} +1 -1
- package/dist/diagram-editors/{p-463219e1.entry.js → p-0cbf75ed.entry.js} +1 -1
- package/dist/diagram-editors/{p-c0e810b9.js → p-52c75d65.js} +0 -0
- package/dist/diagram-editors/{p-2e394866.system.entry.js → p-60b39e5b.system.entry.js} +1 -1
- package/dist/diagram-editors/{p-6ccd3391.system.js → p-80e1f1a5.system.js} +0 -0
- package/dist/diagram-editors/p-e435d3dc.system.js +1 -1
- package/dist/diagram-editors/{p-ad14c977.entry.js → p-f022f8f7.entry.js} +1 -1
- package/dist/esm/{editor-80533af4.js → editor-4d1ececd.js} +10 -248
- package/dist/esm/gx-bpmn-editor.entry.js +5 -78
- package/dist/esm/gx-report-layout-editor.entry.js +3 -18
- package/dist/esm-es5/{editor-80533af4.js → editor-4d1ececd.js} +10 -245
- package/dist/esm-es5/gx-bpmn-editor.entry.js +5 -78
- package/dist/esm-es5/gx-report-layout-editor.entry.js +3 -18
- package/package.json +2 -2
|
@@ -92532,7 +92532,7 @@ var CommonStyleTokens;
|
|
|
92532
92532
|
CommonStyleTokens.PREVIEW_COLOR = '#5bb2ff';
|
|
92533
92533
|
CommonStyleTokens.EDGE_SELECTION_COLOR = 'red';
|
|
92534
92534
|
CommonStyleTokens.HIGHLIGHT_CONNECTION_COLOR = '#ffb754';
|
|
92535
|
-
CommonStyleTokens.GUIDE_COLOR = CommonStyleTokens.PREVIEW_COLOR;
|
|
92535
|
+
CommonStyleTokens.GUIDE_COLOR = CommonStyleTokens.PREVIEW_COLOR;
|
|
92536
92536
|
CommonStyleTokens.GUIDE_STROKE_WIDTH = 2;
|
|
92537
92537
|
CommonStyleTokens.DROP_TARGET_COLOR = CommonStyleTokens.GUIDE_COLOR;
|
|
92538
92538
|
})(CommonStyleTokens || (CommonStyleTokens = {}));
|
|
@@ -92575,9 +92575,7 @@ mx.mxMarker.addMarker('oval', function (canvas, shape, type, pe, unitX, unitY, s
|
|
|
92575
92575
|
}
|
|
92576
92576
|
};
|
|
92577
92577
|
});
|
|
92578
|
-
// Enables snapping waypoints to terminals (this is useful when managing orthogonal edge segments)
|
|
92579
92578
|
mx.mxEdgeHandler.prototype.snapToTerminals = true;
|
|
92580
|
-
/// Custom functions for SVG direct manipulation
|
|
92581
92579
|
const _SYM_SVG_GROUPS = Symbol('svgGrpups');
|
|
92582
92580
|
const svgCanvas = mx.mxSvgCanvas2D.prototype;
|
|
92583
92581
|
svgCanvas[_SYM_SVG_GROUPS] = [];
|
|
@@ -92614,55 +92612,6 @@ svgCanvas.addSvgElement = function (name, attrs = {}) {
|
|
|
92614
92612
|
}
|
|
92615
92613
|
return e;
|
|
92616
92614
|
};
|
|
92617
|
-
//mx.mxCellHighlight.prototype.drawHighlight = () => {};
|
|
92618
|
-
// mx.mxMarker.addMarker('classic', function (canvas, shape, type, pe, unitX, unitY, size, source, sw, filled) {
|
|
92619
|
-
// let widthFactor = 2;
|
|
92620
|
-
// // The angle of the forward facing arrow sides against the x axis is
|
|
92621
|
-
// // 26.565 degrees, 1/sin(26.565) = 2.236 / 2 = 1.118 ( / 2 allows for
|
|
92622
|
-
// // only half the strokewidth is processed ).
|
|
92623
|
-
// var endOffsetX = unitX * sw * 1.118;
|
|
92624
|
-
// var endOffsetY = unitY * sw * 1.118;
|
|
92625
|
-
// unitX = unitX * (size + sw);
|
|
92626
|
-
// unitY = unitY * (size + sw);
|
|
92627
|
-
// var pt = pe.clone();
|
|
92628
|
-
// pt.x -= endOffsetX;
|
|
92629
|
-
// pt.y -= endOffsetY;
|
|
92630
|
-
// var f = (type != mx.mxConstants.ARROW_CLASSIC && type != mx.mxConstants.ARROW_CLASSIC_THIN) ? 1 : 3 / 4;
|
|
92631
|
-
// pe.x += -unitX * f - endOffsetX;
|
|
92632
|
-
// pe.y += -unitY * f - endOffsetY;
|
|
92633
|
-
// return function () {
|
|
92634
|
-
// canvas.begin();
|
|
92635
|
-
// canvas.moveTo(pt.x, pt.y);
|
|
92636
|
-
// canvas.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor);
|
|
92637
|
-
// if (type == mx.mxConstants.ARROW_CLASSIC || type == mx.mxConstants.ARROW_CLASSIC_THIN) {
|
|
92638
|
-
// canvas.lineTo(pt.x - unitX * 3 / 4, pt.y - unitY * 3 / 4);
|
|
92639
|
-
// }
|
|
92640
|
-
// canvas.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor);
|
|
92641
|
-
// canvas.close();
|
|
92642
|
-
// if (filled) {
|
|
92643
|
-
// canvas.fillAndStroke();
|
|
92644
|
-
// }
|
|
92645
|
-
// else {
|
|
92646
|
-
// canvas.stroke();
|
|
92647
|
-
// }
|
|
92648
|
-
// pt.x -= endOffsetX * 5;
|
|
92649
|
-
// pt.y -= endOffsetY * 5;
|
|
92650
|
-
// canvas.begin();
|
|
92651
|
-
// canvas.moveTo(pt.x, pt.y);
|
|
92652
|
-
// canvas.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor);
|
|
92653
|
-
// if (type == mx.mxConstants.ARROW_CLASSIC || type == mx.mxConstants.ARROW_CLASSIC_THIN) {
|
|
92654
|
-
// canvas.lineTo(pt.x - unitX * 3 / 4, pt.y - unitY * 3 / 4);
|
|
92655
|
-
// }
|
|
92656
|
-
// canvas.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor);
|
|
92657
|
-
// canvas.close();
|
|
92658
|
-
// if (filled) {
|
|
92659
|
-
// canvas.fillAndStroke();
|
|
92660
|
-
// }
|
|
92661
|
-
// else {
|
|
92662
|
-
// canvas.stroke();
|
|
92663
|
-
// }
|
|
92664
|
-
// };
|
|
92665
|
-
// });
|
|
92666
92615
|
|
|
92667
92616
|
class Cell extends mx.mxCell {
|
|
92668
92617
|
constructor(descriptor, value, geometry) {
|
|
@@ -92721,7 +92670,7 @@ class Cell extends mx.mxCell {
|
|
|
92721
92670
|
return Object.assign({}, value);
|
|
92722
92671
|
}
|
|
92723
92672
|
}
|
|
92724
|
-
Cell.prototype.mxTransient = [...Cell.prototype.mxTransient, '_descriptor'];
|
|
92673
|
+
Cell.prototype.mxTransient = [...Cell.prototype.mxTransient, '_descriptor'];
|
|
92725
92674
|
|
|
92726
92675
|
const _LABEL_ATTR = 'label';
|
|
92727
92676
|
class CellDescriptor {
|
|
@@ -92857,17 +92806,16 @@ class EventConverter {
|
|
|
92857
92806
|
}
|
|
92858
92807
|
static convertChildChange(change, graph) {
|
|
92859
92808
|
if (change.child instanceof Cell) {
|
|
92860
|
-
//console.log('============= CHILD Change =============')
|
|
92861
92809
|
let cell = change.child;
|
|
92862
92810
|
let parentGuid = null, slotId;
|
|
92863
92811
|
if (change.parent) {
|
|
92864
92812
|
if (change.parent instanceof Cell) {
|
|
92865
|
-
let parentElement = change.child.getParentDiagramElement();
|
|
92813
|
+
let parentElement = change.child.getParentDiagramElement();
|
|
92866
92814
|
parentGuid = parentElement.id;
|
|
92867
92815
|
slotId = change.parent.descriptor.slotId;
|
|
92868
92816
|
}
|
|
92869
92817
|
else
|
|
92870
|
-
parentGuid = Guid.EMPTY.toString();
|
|
92818
|
+
parentGuid = Guid.EMPTY.toString();
|
|
92871
92819
|
}
|
|
92872
92820
|
return {
|
|
92873
92821
|
type: EventType.ChildChange,
|
|
@@ -92898,7 +92846,6 @@ class EventConverter {
|
|
|
92898
92846
|
}
|
|
92899
92847
|
static convertGeometryChange(change, graph) {
|
|
92900
92848
|
if (change.cell instanceof Cell) {
|
|
92901
|
-
//console.log('============= Geo Change =============')
|
|
92902
92849
|
let geo = change.geometry;
|
|
92903
92850
|
if (geo.offset) {
|
|
92904
92851
|
let vstate = graph.view.getState(change.cell, true);
|
|
@@ -92956,14 +92903,11 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
92956
92903
|
}
|
|
92957
92904
|
createMarker() {
|
|
92958
92905
|
let marker = super.createMarker();
|
|
92959
|
-
// This is to disable the creation of new edges by clicking on potential source vertexes.
|
|
92960
|
-
// let intersects = marker.intersects;
|
|
92961
92906
|
marker.intersects = mx.mxUtils.bind(this, function (state, evt) {
|
|
92962
92907
|
if (this.connectImage != null || this.isConnecting()) {
|
|
92963
92908
|
return true;
|
|
92964
92909
|
}
|
|
92965
92910
|
return false;
|
|
92966
|
-
//return intersects.call(marker, state, evt);
|
|
92967
92911
|
});
|
|
92968
92912
|
return marker;
|
|
92969
92913
|
}
|
|
@@ -92986,23 +92930,8 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
92986
92930
|
let t = this.graph.view.translate;
|
|
92987
92931
|
let s = this.graph.view.scale;
|
|
92988
92932
|
let point = new mx.mxPoint(this.currentPoint.x / s - t.x, this.currentPoint.y / s - t.y);
|
|
92989
|
-
geo.x = Math.round(point.x - geo.width / 2);
|
|
92990
|
-
geo.y = Math.round(point.y - geo.height / 2);
|
|
92991
|
-
// // Aligns with source if within certain tolerance
|
|
92992
|
-
// let tol = (this as any).getAlignmentTolerance();
|
|
92993
|
-
// if (tol > 0) {
|
|
92994
|
-
// let sourceState = this.graph.view.getState(source);
|
|
92995
|
-
// if (sourceState != null) {
|
|
92996
|
-
// let x = sourceState.x / s - t.x;
|
|
92997
|
-
// let y = sourceState.y / s - t.y;
|
|
92998
|
-
// if (Math.abs(x - geo.x) <= tol) {
|
|
92999
|
-
// geo.x = Math.round(x);
|
|
93000
|
-
// }
|
|
93001
|
-
// if (Math.abs(y - geo.y) <= tol) {
|
|
93002
|
-
// geo.y = Math.round(y);
|
|
93003
|
-
// }
|
|
93004
|
-
// }
|
|
93005
|
-
// }
|
|
92933
|
+
geo.x = Math.round(point.x - geo.width / 2);
|
|
92934
|
+
geo.y = Math.round(point.y - geo.height / 2);
|
|
93006
92935
|
}
|
|
93007
92936
|
this.currentVertexType = null;
|
|
93008
92937
|
return clone;
|
|
@@ -93039,8 +92968,6 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93039
92968
|
}
|
|
93040
92969
|
connect(source, target, evt, dropTarget) {
|
|
93041
92970
|
if (target != null || this.isCreateTarget(evt) || this.graph.allowDanglingEdges) {
|
|
93042
|
-
// Uses the common parent of source and target or
|
|
93043
|
-
// the default parent to insert the edge
|
|
93044
92971
|
var model = this.graph.getModel();
|
|
93045
92972
|
var terminalInserted = false;
|
|
93046
92973
|
var edge = null;
|
|
@@ -93051,8 +92978,6 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93051
92978
|
if (target != null) {
|
|
93052
92979
|
dropTarget = this.graph.getDropTarget([target], evt, dropTarget);
|
|
93053
92980
|
terminalInserted = true;
|
|
93054
|
-
// Disables edges as drop targets if the target cell was created
|
|
93055
|
-
// FIXME: Should not shift if vertex was aligned (same in Java)
|
|
93056
92981
|
if (dropTarget == null || !this.graph.getModel().isEdge(dropTarget)) {
|
|
93057
92982
|
var pstate = this.graph.getView().getState(dropTarget);
|
|
93058
92983
|
if (pstate != null) {
|
|
@@ -93066,7 +92991,7 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93066
92991
|
}
|
|
93067
92992
|
this.graph.addCell(target, dropTarget);
|
|
93068
92993
|
}
|
|
93069
|
-
else if (!this.graph.allowDanglingEdges) {
|
|
92994
|
+
else if (!this.graph.allowDanglingEdges) {
|
|
93070
92995
|
return;
|
|
93071
92996
|
}
|
|
93072
92997
|
}
|
|
@@ -93080,8 +93005,6 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93080
93005
|
parent = model.getParent(parent);
|
|
93081
93006
|
}
|
|
93082
93007
|
}
|
|
93083
|
-
// Uses the value of the preview edge state for inserting
|
|
93084
|
-
// the new edge into the graph
|
|
93085
93008
|
var value = null;
|
|
93086
93009
|
var style = null;
|
|
93087
93010
|
if (this.edgeState != null) {
|
|
@@ -93090,15 +93013,12 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93090
93013
|
}
|
|
93091
93014
|
edge = this.insertEdge(parent, null, value, source, target, style);
|
|
93092
93015
|
if (edge != null) {
|
|
93093
|
-
// Updates the connection constraints
|
|
93094
93016
|
this.graph.setConnectionConstraint(edge, source, true, this.sourceConstraint);
|
|
93095
93017
|
this.graph.setConnectionConstraint(edge, target, false, this.constraintHandler.currentConstraint);
|
|
93096
|
-
// Uses geometry of the preview edge state
|
|
93097
93018
|
if (this.edgeState != null) {
|
|
93098
93019
|
model.setGeometry(edge, this.edgeState.cell.geometry);
|
|
93099
93020
|
}
|
|
93100
93021
|
var parent = model.getParent(source);
|
|
93101
|
-
// Inserts edge before source
|
|
93102
93022
|
if (this.isInsertBefore(edge, source, target, evt, dropTarget)) {
|
|
93103
93023
|
var tmp = source;
|
|
93104
93024
|
while (tmp.parent != null && tmp.geometry != null &&
|
|
@@ -93109,14 +93029,12 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93109
93029
|
model.add(parent, edge, tmp.parent.getIndex(tmp));
|
|
93110
93030
|
}
|
|
93111
93031
|
}
|
|
93112
|
-
// Makes sure the edge has a non-null, relative geometry
|
|
93113
93032
|
var geo = model.getGeometry(edge);
|
|
93114
93033
|
if (geo == null) {
|
|
93115
93034
|
geo = new mx.mxGeometry();
|
|
93116
93035
|
geo.relative = true;
|
|
93117
93036
|
model.setGeometry(edge, geo);
|
|
93118
93037
|
}
|
|
93119
|
-
// Uses scaled waypoints in geometry
|
|
93120
93038
|
if (this.waypoints != null && this.waypoints.length > 0) {
|
|
93121
93039
|
var s = this.graph.view.scale;
|
|
93122
93040
|
var tr = this.graph.view.translate;
|
|
@@ -93141,7 +93059,6 @@ class ConnectionHandler extends mx.mxConnectionHandler {
|
|
|
93141
93059
|
}
|
|
93142
93060
|
catch (e) {
|
|
93143
93061
|
mx.mxLog.show();
|
|
93144
|
-
//mx.mxLog.debug(e.message);
|
|
93145
93062
|
}
|
|
93146
93063
|
finally {
|
|
93147
93064
|
model.endUpdate();
|
|
@@ -93237,8 +93154,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93237
93154
|
shouldRemoveCellsFromParent(parent, cells, evt) {
|
|
93238
93155
|
return false;
|
|
93239
93156
|
}
|
|
93240
|
-
// Modify mouseDown and mouseUp event handlers to use Right button clicks only for selction if current target node is not selected.
|
|
93241
|
-
// This is to avoid inteference with context menu management which is done in the host of this component.
|
|
93242
93157
|
mouseDown(sender, me) {
|
|
93243
93158
|
let graph = this.graph;
|
|
93244
93159
|
if (me.getEvent().button === 2) {
|
|
@@ -93277,9 +93192,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93277
93192
|
mouseUp(sender, me) {
|
|
93278
93193
|
if (me.getEvent().button === 2)
|
|
93279
93194
|
return;
|
|
93280
|
-
// Some computations for the case when some element is dropped over an edge (only valid for orthogonal edges). Default edge spliting algorithm do not try to align the dropped
|
|
93281
|
-
// element with the source nor the target element. This tries to fix some of this issue. Basically we check if the drop is on the first or last segment.
|
|
93282
|
-
// If this condition is met and depending on the case, we align the dropped element with the source or the target element of the edge.
|
|
93283
93195
|
let self = this;
|
|
93284
93196
|
let cell = self.cell;
|
|
93285
93197
|
if (!cell)
|
|
@@ -93337,7 +93249,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93337
93249
|
var graph = self.graph;
|
|
93338
93250
|
if (!me.isConsumed() && graph.isMouseDown && self.cell != null &&
|
|
93339
93251
|
self.first != null && self.bounds != null && !self.suspended) {
|
|
93340
|
-
// Stops moving if a multi touch event is received
|
|
93341
93252
|
if (mx.mxEvent.isMultiTouchEvent(me.getEvent())) {
|
|
93342
93253
|
this.reset();
|
|
93343
93254
|
return;
|
|
@@ -93345,7 +93256,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93345
93256
|
var delta = this.getDelta(me);
|
|
93346
93257
|
var tol = graph.tolerance;
|
|
93347
93258
|
if (self.shape != null || self.livePreviewActive || Math.abs(delta.x) > tol || Math.abs(delta.y) > tol) {
|
|
93348
|
-
// Highlight is used for highlighting drop targets
|
|
93349
93259
|
if (self.highlight == null) {
|
|
93350
93260
|
self.highlight = new mx.mxCellHighlight(graph, mx.mxConstants.DROP_TARGET_COLOR, 3, undefined);
|
|
93351
93261
|
}
|
|
@@ -93356,7 +93266,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93356
93266
|
var target = null;
|
|
93357
93267
|
self.cloning = clone;
|
|
93358
93268
|
if (graph.isDropEnabled() && self.highlightEnabled && self.cells.indexOf(cell) < 0) {
|
|
93359
|
-
// Contains a call to getCellAt to find the cell under the mouse
|
|
93360
93269
|
target = graph.getDropTarget(self.cells, me.getEvent(), cell, clone);
|
|
93361
93270
|
}
|
|
93362
93271
|
var state = graph.getView().getState(target);
|
|
@@ -93413,7 +93322,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93413
93322
|
if (self.guide != null && hideGuide) {
|
|
93414
93323
|
self.guide.hide();
|
|
93415
93324
|
}
|
|
93416
|
-
// Constrained movement if shift key is pressed
|
|
93417
93325
|
if (graph.isConstrainedEvent(me.getEvent())) {
|
|
93418
93326
|
if (Math.abs(delta.x) > Math.abs(delta.y)) {
|
|
93419
93327
|
delta.y = 0;
|
|
@@ -93430,9 +93338,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93430
93338
|
}
|
|
93431
93339
|
this.updateHint(me);
|
|
93432
93340
|
this.consumeMouseEvent(mx.mxEvent.MOUSE_MOVE, me);
|
|
93433
|
-
// Cancels the bubbling of events to the container so
|
|
93434
|
-
// that the droptarget is not reset due to an mouseMove
|
|
93435
|
-
// fired on the container with no associated state.
|
|
93436
93341
|
mx.mxEvent.consume(me.getEvent());
|
|
93437
93342
|
}
|
|
93438
93343
|
else if ((this.isMoveEnabled() || this.isCloneEnabled()) && self.updateCursor && !me.isConsumed() &&
|
|
@@ -93446,8 +93351,6 @@ class GraphHandler extends mx.mxGraphHandler {
|
|
|
93446
93351
|
cursor = mx.mxConstants.CURSOR_MOVABLE_VERTEX;
|
|
93447
93352
|
}
|
|
93448
93353
|
}
|
|
93449
|
-
// Sets the cursor on the original source state under the mouse
|
|
93450
|
-
// instead of the event source state which can be the parent
|
|
93451
93354
|
if (cursor != null && me.sourceState != null) {
|
|
93452
93355
|
me.sourceState.setCursor(cursor);
|
|
93453
93356
|
}
|
|
@@ -93461,8 +93364,6 @@ class PanningHandler extends mx.mxPanningHandler {
|
|
|
93461
93364
|
let ctrlDown = navigator.platform === 'MacIntel' ? mx.mxEvent.isMetaDown(evt) : mx.mxEvent.isControlDown(evt);
|
|
93462
93365
|
return (this.useLeftButtonForPanning && me.getState() == null &&
|
|
93463
93366
|
mx.mxEvent.isLeftMouseButton(evt)) || (ctrlDown && !mx.mxEvent.isShiftDown(evt));
|
|
93464
|
-
//((mx.mxEvent.isControlDown(evt) || mx.mxEvent.isMetaDown(evt))
|
|
93465
|
-
// || (this.usePopupTrigger && mx.mxEvent.isPopupTrigger(evt))
|
|
93466
93367
|
}
|
|
93467
93368
|
;
|
|
93468
93369
|
}
|
|
@@ -93709,21 +93610,7 @@ class Graph extends mx.mxGraph {
|
|
|
93709
93610
|
this.installGlobalStyles(options.globalStyles);
|
|
93710
93611
|
if (options.bottomPad)
|
|
93711
93612
|
this.createBottomPad(options.bottomPad);
|
|
93712
|
-
// let createLabel = (<any>mx.mxCellRenderer).prototype.createLabel;
|
|
93713
|
-
// console.log('MXGRAPH COLOC', createLabel, mx.mxCellRenderer.prototype);
|
|
93714
|
-
// (<any>mx.mxCellRenderer).prototype.createLabel = (state, value) => {
|
|
93715
|
-
// console.log('MXGRAPG label state', state, value);
|
|
93716
|
-
// let color = mx.mxConstants.STYLE_FONTCOLOR;
|
|
93717
|
-
// if (color === 'blue')
|
|
93718
|
-
// mx.mxConstants.STYLE_FONTCOLOR = 'green';
|
|
93719
|
-
// else
|
|
93720
|
-
// mx.mxConstants.STYLE_FONTCOLOR = 'blue';
|
|
93721
|
-
// createLabel.call(mx.mxCellRenderer.prototype, state, value);
|
|
93722
|
-
// if (state.text)
|
|
93723
|
-
// console.log('LABEL', state.text, state.text.color);
|
|
93724
|
-
// }
|
|
93725
93613
|
}
|
|
93726
|
-
//#region Initialization
|
|
93727
93614
|
installCellDescriptors(descriptors) {
|
|
93728
93615
|
this._cellDescriptors = new Map();
|
|
93729
93616
|
if (!descriptors)
|
|
@@ -93778,8 +93665,6 @@ class Graph extends mx.mxGraph {
|
|
|
93778
93665
|
createCellEditor() {
|
|
93779
93666
|
return new CellEditor(this);
|
|
93780
93667
|
}
|
|
93781
|
-
//#endregion
|
|
93782
|
-
//#region Utility Members
|
|
93783
93668
|
get editorHelper() {
|
|
93784
93669
|
return this._editorHelper;
|
|
93785
93670
|
}
|
|
@@ -93826,7 +93711,7 @@ class Graph extends mx.mxGraph {
|
|
|
93826
93711
|
cell.setVertex(descriptor.isVertex);
|
|
93827
93712
|
cell.setEdge(descriptor.isEdge);
|
|
93828
93713
|
cell.setStyle(descriptor.getDefaultStyle());
|
|
93829
|
-
this.setCellValue(cell, (_b = options.value) !== null && _b !== void 0 ? _b : {});
|
|
93714
|
+
this.setCellValue(cell, (_b = options.value) !== null && _b !== void 0 ? _b : {});
|
|
93830
93715
|
if (options.assignName &&
|
|
93831
93716
|
descriptor.nameAttribute &&
|
|
93832
93717
|
descriptor.baseName &&
|
|
@@ -93846,8 +93731,6 @@ class Graph extends mx.mxGraph {
|
|
|
93846
93731
|
let pos = this.convertLogicalPointToPixels(cell, { x: props.x, y: props.y });
|
|
93847
93732
|
let geo = cell.isEdge() ? new mx.mxGeometry() : new mx.mxGeometry(pos.x, pos.y, this.convertLogicalToPixels(cell, props.width), this.convertLogicalToPixels(cell, props.height));
|
|
93848
93733
|
let style = cell.getStyle();
|
|
93849
|
-
// if (cell.isEdge())
|
|
93850
|
-
// console.log('Set edge ', props);
|
|
93851
93734
|
if (props.fromPoint) {
|
|
93852
93735
|
let fromGeo = cell.source.geometry;
|
|
93853
93736
|
let fromPos = this.convertPixelsPointToLogical(cell.source, { x: fromGeo.x, y: fromGeo.y });
|
|
@@ -93876,7 +93759,6 @@ class Graph extends mx.mxGraph {
|
|
|
93876
93759
|
else {
|
|
93877
93760
|
let fromPoint = this._getTerminalLogicalPointFromStyle(cell, true);
|
|
93878
93761
|
let toPoint = this._getTerminalLogicalPointFromStyle(cell, false);
|
|
93879
|
-
//console.log('Term points', fromPoint, toPoint);
|
|
93880
93762
|
center = this._getPointListCenter([fromPoint, toPoint]);
|
|
93881
93763
|
}
|
|
93882
93764
|
}
|
|
@@ -93932,7 +93814,6 @@ class Graph extends mx.mxGraph {
|
|
|
93932
93814
|
}
|
|
93933
93815
|
if (offset && edgeCenter)
|
|
93934
93816
|
labelPosition = { x: edgeCenter.x + offset.x, y: edgeCenter.y + offset.y };
|
|
93935
|
-
//console.log('Label pos', labelPosition, edgeCenter, offset);
|
|
93936
93817
|
}
|
|
93937
93818
|
return {
|
|
93938
93819
|
x: position === null || position === void 0 ? void 0 : position.x,
|
|
@@ -94083,9 +93964,7 @@ class Graph extends mx.mxGraph {
|
|
|
94083
93964
|
let mxNext = new mx.mxPoint(next.x, next.y);
|
|
94084
93965
|
let location = this.convertPixelsPointToLogical(terminal, { x: geo.x, y: geo.y });
|
|
94085
93966
|
let bounds = new mx.mxRectangle(location.x, location.y, geo.width, geo.height);
|
|
94086
|
-
//console.log('\tBounds', bounds);
|
|
94087
93967
|
let point = perimeter(bounds, { style: this.getCellStyle(terminal) }, mxNext, orthogonal);
|
|
94088
|
-
// GX Win compatibility: move last point a little backwards
|
|
94089
93968
|
if (orthogonal) {
|
|
94090
93969
|
let EPSILON = 3;
|
|
94091
93970
|
if (Math.abs(next.x - point.x) < EPSILON && Math.abs(next.y - point.y) < EPSILON)
|
|
@@ -94172,49 +94051,32 @@ class Graph extends mx.mxGraph {
|
|
|
94172
94051
|
}
|
|
94173
94052
|
return result;
|
|
94174
94053
|
}
|
|
94175
|
-
//#endregion
|
|
94176
|
-
//#region Customization
|
|
94177
94054
|
selectCellForEvent(cell, evt) {
|
|
94178
94055
|
if (cell instanceof Cell && !cell.descriptor.isDiagramElement)
|
|
94179
94056
|
cell = cell.getParentDiagramElement();
|
|
94180
94057
|
return super.selectCellForEvent(cell, evt);
|
|
94181
94058
|
}
|
|
94182
|
-
// isLabelMovable(cell) {
|
|
94183
|
-
// return super.isLabelMovable(cell);
|
|
94184
|
-
// }
|
|
94185
94059
|
getDropTarget(cells, evt, cell, clone) {
|
|
94186
94060
|
let target = super.getDropTarget(cells, evt, cell, clone);
|
|
94187
94061
|
if (!target)
|
|
94188
94062
|
target = this.getDefaultParent();
|
|
94189
94063
|
return target;
|
|
94190
94064
|
}
|
|
94191
|
-
// isSwimlane(cell) {
|
|
94192
|
-
// return true;
|
|
94193
|
-
// }
|
|
94194
94065
|
isExtendParentsOnAdd(cell) {
|
|
94195
94066
|
return false;
|
|
94196
94067
|
}
|
|
94197
94068
|
isExtendParent(cell) {
|
|
94198
94069
|
return true;
|
|
94199
94070
|
}
|
|
94200
|
-
// isExtendParentsOnMove() {
|
|
94201
|
-
// return true;
|
|
94202
|
-
// }
|
|
94203
94071
|
isConstrainChild(cell) {
|
|
94204
94072
|
return true;
|
|
94205
94073
|
}
|
|
94206
|
-
// isCellFoldable(cell: mxgraph.mxCell, collapse: boolean) {
|
|
94207
|
-
// return false;
|
|
94208
|
-
// }
|
|
94209
94074
|
isCellLocked(cell) {
|
|
94210
94075
|
return false;
|
|
94211
94076
|
}
|
|
94212
94077
|
isCellDisconnectable(cell, terminal, source) {
|
|
94213
94078
|
return true;
|
|
94214
94079
|
}
|
|
94215
|
-
// isCellMovable(cell: mxgraph.mxCell) {
|
|
94216
|
-
// return !cell.isEdge();
|
|
94217
|
-
// }
|
|
94218
94080
|
isCellResizable(cell) {
|
|
94219
94081
|
if (cell instanceof Cell) {
|
|
94220
94082
|
let descriptor = cell.descriptor;
|
|
@@ -94227,15 +94089,6 @@ class Graph extends mx.mxGraph {
|
|
|
94227
94089
|
return true;
|
|
94228
94090
|
return false;
|
|
94229
94091
|
}
|
|
94230
|
-
// translateCell(cell, dx, dy) {
|
|
94231
|
-
// super.translateCell(cell, dx, dy);
|
|
94232
|
-
// }
|
|
94233
|
-
// moveCells(cells: mxgraph.mxCell[], dx?: number, dy?: number, clone?: boolean, target?: mxgraph.mxCell, evt?: Event, mapping?): mxgraph.mxCell[] {
|
|
94234
|
-
// return super.moveCells(cells, dx, dy, clone, target, evt, mapping);
|
|
94235
|
-
// }
|
|
94236
|
-
// isAllowOverlapParent(cell) {
|
|
94237
|
-
// return true;
|
|
94238
|
-
// }
|
|
94239
94092
|
convertValueToString(cell) {
|
|
94240
94093
|
if (cell instanceof Cell) {
|
|
94241
94094
|
let value = cell.getValue();
|
|
@@ -94249,13 +94102,9 @@ class Graph extends mx.mxGraph {
|
|
|
94249
94102
|
}
|
|
94250
94103
|
cellLabelChanged(cell, newValue, autoSize) {
|
|
94251
94104
|
if (cell instanceof Cell && cell.value && typeof cell.value === 'object') {
|
|
94252
|
-
// Clones the value for correct undo/redo
|
|
94253
94105
|
let clone = cell.cloneValue();
|
|
94254
94106
|
clone[cell.descriptor.labelAttribute] = newValue;
|
|
94255
94107
|
newValue = clone;
|
|
94256
|
-
// let style = cell.getStyle();
|
|
94257
|
-
// mx.mxUtils.setCellStyles(this.getModel(), [cell], mx.mxConstants.STYLE_NOLABEL, 0);
|
|
94258
|
-
//console.log('LABVEL changed', label)
|
|
94259
94108
|
}
|
|
94260
94109
|
super.cellLabelChanged(cell, newValue, autoSize);
|
|
94261
94110
|
}
|
|
@@ -94272,8 +94121,6 @@ class Graph extends mx.mxGraph {
|
|
|
94272
94121
|
}
|
|
94273
94122
|
return null;
|
|
94274
94123
|
}
|
|
94275
|
-
//#endregion
|
|
94276
|
-
//#region Memento state
|
|
94277
94124
|
getState() {
|
|
94278
94125
|
return {
|
|
94279
94126
|
elements: this.getElementsState(this.getDefaultParent().children)
|
|
@@ -94354,22 +94201,6 @@ class Graph extends mx.mxGraph {
|
|
|
94354
94201
|
}
|
|
94355
94202
|
}
|
|
94356
94203
|
});
|
|
94357
|
-
// setTimeout(() => {
|
|
94358
|
-
// let queue = states.slice(0);
|
|
94359
|
-
// while (queue.length > 0) {
|
|
94360
|
-
// let elementState = queue.shift();
|
|
94361
|
-
// let element = <Cell>this.model.getCell(elementState.guid);
|
|
94362
|
-
// if (element.isEdge()) {
|
|
94363
|
-
// this.setCellGraphicalProperties(element, elementState.graphicalProperties);
|
|
94364
|
-
// }
|
|
94365
|
-
// if (elementState.slots) {
|
|
94366
|
-
// for (let slotState of elementState.slots) {
|
|
94367
|
-
// for (let childState of slotState.elements)
|
|
94368
|
-
// queue.push(childState);
|
|
94369
|
-
// }
|
|
94370
|
-
// }
|
|
94371
|
-
// }
|
|
94372
|
-
// });
|
|
94373
94204
|
}
|
|
94374
94205
|
addElementFromState(state, parent) {
|
|
94375
94206
|
var _a;
|
|
@@ -94397,10 +94228,6 @@ class Graph extends mx.mxGraph {
|
|
|
94397
94228
|
gp.x += offset.width;
|
|
94398
94229
|
if (gp.y !== undefined)
|
|
94399
94230
|
gp.y += offset.height;
|
|
94400
|
-
// if (gp.labelPosition) {
|
|
94401
|
-
// gp.labelPosition.x += offset.width;
|
|
94402
|
-
// gp.labelPosition.y += offset.height;
|
|
94403
|
-
// }
|
|
94404
94231
|
if (gp.points) {
|
|
94405
94232
|
for (let point of gp.points) {
|
|
94406
94233
|
point.x += offset.width;
|
|
@@ -94427,23 +94254,14 @@ class Graph extends mx.mxGraph {
|
|
|
94427
94254
|
let newGuid = Guid.newInstance().toString();
|
|
94428
94255
|
guidMap.set(state.guid, newGuid);
|
|
94429
94256
|
state.guid = newGuid;
|
|
94430
|
-
// let descriptor = this.getCellDescriptor(state.type);
|
|
94431
|
-
// if (descriptor && descriptor.nameAttribute) {
|
|
94432
|
-
// let name = state.properties[descriptor.nameAttribute];
|
|
94433
|
-
// state.properties[descriptor.nameAttribute] = this.getNewCellName(name);
|
|
94434
|
-
// }
|
|
94435
94257
|
}
|
|
94436
94258
|
setElementDelayedState(cell, state) {
|
|
94437
|
-
// Second pass to allow finishing the construction of the diagram element, setting for example terminal connections
|
|
94438
94259
|
if (cell.isEdge()) {
|
|
94439
94260
|
let from = this.model.getCell(state.fromGuid.toString());
|
|
94440
94261
|
this.model.setTerminal(cell, from, true);
|
|
94441
94262
|
let to = this.model.getCell(state.toGuid.toString());
|
|
94442
94263
|
this.model.setTerminal(cell, to, false);
|
|
94443
94264
|
this.setCellGraphicalProperties(cell, state.graphicalProperties);
|
|
94444
|
-
// let style = cell.getStyle();
|
|
94445
|
-
// style += ';entryX=0.25;entryY=0;';
|
|
94446
|
-
// cell.setStyle(style);
|
|
94447
94265
|
}
|
|
94448
94266
|
}
|
|
94449
94267
|
setSlotState(cell, state) {
|
|
@@ -94516,7 +94334,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94516
94334
|
mx.mxEvent.disableContextMenu(this.container);
|
|
94517
94335
|
this.initialize(options);
|
|
94518
94336
|
}
|
|
94519
|
-
//#region Initialization
|
|
94520
94337
|
createGraph(options) {
|
|
94521
94338
|
return new Graph(options);
|
|
94522
94339
|
}
|
|
@@ -94524,11 +94341,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94524
94341
|
this.graph.setAllowDanglingEdges(false);
|
|
94525
94342
|
this.graph.vertexLabelsMovable = true;
|
|
94526
94343
|
this.graph.resizeContainer = false;
|
|
94527
|
-
// this.graph.ignoreScrollbars = true;
|
|
94528
|
-
// this.graph.translateToScrollPosition = true;
|
|
94529
|
-
// this.graph.extendParents = false;
|
|
94530
|
-
// this.graph.constrainChildren = false;
|
|
94531
|
-
// this.graph.extendParentsOnAdd = false;
|
|
94532
94344
|
if (options.guides)
|
|
94533
94345
|
this.installGuides();
|
|
94534
94346
|
if (options.undoManager)
|
|
@@ -94539,7 +94351,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94539
94351
|
mx.mxEvent.addListener(this.container, 'dragover', (e) => this.onDragOver(e));
|
|
94540
94352
|
mx.mxEvent.addListener(this.container, 'drop', (e) => this.onDropOver(e));
|
|
94541
94353
|
}
|
|
94542
|
-
// Config graph after installing key handler, because otherwise panning conflicts with custom key strokes for Undo/Redo and selection moving
|
|
94543
94354
|
this.graph.graphHandler.scrollOnMove = !!options.scrollOnMove;
|
|
94544
94355
|
this.graph.setResizeContainer(!!options.resizeContainer);
|
|
94545
94356
|
this.graph.setGridEnabled(!!options.grid);
|
|
@@ -94564,7 +94375,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94564
94375
|
let listener = (_, evt) => this.undoManager.undoableEditHappened(evt.getProperty('edit'));
|
|
94565
94376
|
this.graph.getModel().addListener(mx.mxEvent.UNDO, listener);
|
|
94566
94377
|
this.graph.getView().addListener(mx.mxEvent.UNDO, listener);
|
|
94567
|
-
// Keeps the selection state in sync
|
|
94568
94378
|
let undoHandler = (_, evt) => {
|
|
94569
94379
|
let changes = evt.getProperty('edit').changes;
|
|
94570
94380
|
this.graph.setSelectionCells(this.graph.getSelectionCellsForChanges(changes));
|
|
@@ -94594,7 +94404,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94594
94404
|
}
|
|
94595
94405
|
installRubberBand() {
|
|
94596
94406
|
this.rubberBand = new mx.mxRubberband(this.graph);
|
|
94597
|
-
// Modify mouseDown event handlers to ignore Right button clicks to avoid inteference with context menu management which is done in the host of this component.
|
|
94598
94407
|
const mouseDown = this.rubberBand.mouseDown;
|
|
94599
94408
|
this.rubberBand.mouseDown = (sender, me) => {
|
|
94600
94409
|
if (me.getEvent().button === 2) {
|
|
@@ -94605,8 +94414,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94605
94414
|
mouseDown.call(this.rubberBand, sender, me);
|
|
94606
94415
|
};
|
|
94607
94416
|
}
|
|
94608
|
-
//#endregion
|
|
94609
|
-
//#region Utility Methods
|
|
94610
94417
|
setProperties(id, props, graphicalProps) {
|
|
94611
94418
|
this._pauseGraphChangeEvents = true;
|
|
94612
94419
|
this.undoManager.enabled = false;
|
|
@@ -94654,11 +94461,10 @@ class Editor extends mx.mxEventSource {
|
|
|
94654
94461
|
if (json.format === this.clipboardFormat) {
|
|
94655
94462
|
let editorGuid = new Guid(json.editorGuid);
|
|
94656
94463
|
if (Guid.equals(editorGuid, this._guid)) {
|
|
94657
|
-
this.graph.addElementsFromState(json.content, this.getParentForPaste(), false, COPY_OFFSET);
|
|
94658
|
-
// IDs unless an element with the same ID already exists.
|
|
94464
|
+
this.graph.addElementsFromState(json.content, this.getParentForPaste(), false, COPY_OFFSET);
|
|
94659
94465
|
}
|
|
94660
94466
|
else
|
|
94661
|
-
this.graph.addElementsFromState(json.content, this.getParentForPaste(), true);
|
|
94467
|
+
this.graph.addElementsFromState(json.content, this.getParentForPaste(), true);
|
|
94662
94468
|
}
|
|
94663
94469
|
}
|
|
94664
94470
|
}
|
|
@@ -94687,12 +94493,9 @@ class Editor extends mx.mxEventSource {
|
|
|
94687
94493
|
}
|
|
94688
94494
|
});
|
|
94689
94495
|
}
|
|
94690
|
-
//#endregion
|
|
94691
|
-
//#region Event Handling
|
|
94692
94496
|
onGraphChange(evt) {
|
|
94693
94497
|
if (this._pauseGraphChangeEvents)
|
|
94694
94498
|
return;
|
|
94695
|
-
// console.log('Model change', evt);
|
|
94696
94499
|
setTimeout(() => {
|
|
94697
94500
|
let events = EventConverter.convert(evt, this.graph);
|
|
94698
94501
|
if (events.length > 0)
|
|
@@ -94706,13 +94509,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94706
94509
|
if (cell instanceof Cell)
|
|
94707
94510
|
data.push(cell.id);
|
|
94708
94511
|
}
|
|
94709
|
-
//console.log('SEL', selection);
|
|
94710
|
-
// if (selection.length > 0)
|
|
94711
|
-
// {
|
|
94712
|
-
// let vstate = this.graph.view.getState(selection[0]);
|
|
94713
|
-
// if (vstate)
|
|
94714
|
-
// console.log('VState', vstate);
|
|
94715
|
-
// }
|
|
94716
94512
|
this.fireEvent(new mx.mxEventObject(Editor.EVENT_SELECTION_CHANGED, 'data', data)), this;
|
|
94717
94513
|
}
|
|
94718
94514
|
onUndoRedo(evt) {
|
|
@@ -94751,9 +94547,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94751
94547
|
}
|
|
94752
94548
|
}
|
|
94753
94549
|
async onDropOver(evt) {
|
|
94754
|
-
// console.log('Dop Evt', evt);
|
|
94755
|
-
// console.log(evt.dataTransfer.getData('text'));
|
|
94756
|
-
// console.log(evt.dataTransfer.getData('text2'));
|
|
94757
94550
|
let type = evt.dataTransfer.getData('text');
|
|
94758
94551
|
let state = {};
|
|
94759
94552
|
if (this.graph.editorHelper) {
|
|
@@ -94766,7 +94559,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94766
94559
|
let cellDescriptor = this.graph.getCellDescriptor(type);
|
|
94767
94560
|
evt.stopPropagation();
|
|
94768
94561
|
evt.preventDefault();
|
|
94769
|
-
// Gets drop location point for vertex
|
|
94770
94562
|
let size = cellDescriptor.size;
|
|
94771
94563
|
let pt = mx.mxUtils.convertPoint(this.graph.container, mx.mxEvent.getClientX(evt), mx.mxEvent.getClientY(evt));
|
|
94772
94564
|
let tr = this.graph.view.translate;
|
|
@@ -94803,8 +94595,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94803
94595
|
getDropTarget(x, y) {
|
|
94804
94596
|
return null;
|
|
94805
94597
|
}
|
|
94806
|
-
//#endregion
|
|
94807
|
-
//#region Memento state
|
|
94808
94598
|
async setState(state) {
|
|
94809
94599
|
this._pauseGraphChangeEvents = true;
|
|
94810
94600
|
this.undoManager.enabled = false;
|
|
@@ -94825,34 +94615,6 @@ class Editor extends mx.mxEventSource {
|
|
|
94825
94615
|
}
|
|
94826
94616
|
Editor.EVENT_MODEL_CHANGED = 'modelChanged';
|
|
94827
94617
|
Editor.EVENT_SELECTION_CHANGED = 'selectionChanged';
|
|
94828
|
-
// Some ideas for panning with mousewheel (THIS IS NOT WORKING)
|
|
94829
|
-
// startX: number;
|
|
94830
|
-
// startY: number;
|
|
94831
|
-
// protected subscribeToEvents() {
|
|
94832
|
-
// mx.mxEvent.addListener(this.container, 'mousewheel', ((evt) => {
|
|
94833
|
-
// this.container.addEventListener('mousewheel', (evt: any) => {
|
|
94834
|
-
// // let pt = mx.mxUtils.convertPoint(this.graph.container, mx.mxEvent.getClientX(evt), mx.mxEvent.getClientY(evt));
|
|
94835
|
-
// // let tr = this.graph.view.translate;
|
|
94836
|
-
// // let scale = this.graph.view.scale;
|
|
94837
|
-
// // let x = pt.x / scale - tr.x;
|
|
94838
|
-
// // let y = pt.y / scale - tr.y;
|
|
94839
|
-
// // if (!this.startX)
|
|
94840
|
-
// // this.startX = x;
|
|
94841
|
-
// // if (!this.startY)
|
|
94842
|
-
// // this.startY = y;
|
|
94843
|
-
// //this.graph.panGraph(evt.wheelDeltaX, evt.wheelDeltaY);
|
|
94844
|
-
// this.graph.panGraph(20, 20);
|
|
94845
|
-
// console.log('PAN', evt);
|
|
94846
|
-
// if (evt.stopPropagation) evt.stopPropagation();
|
|
94847
|
-
// if (evt.preventDefault) evt.preventDefault();
|
|
94848
|
-
// if (evt.stopImmediatePropagation) evt.stopImmediatePropagation();
|
|
94849
|
-
// evt.cancelBubble = true;
|
|
94850
|
-
// evt.returnValue = false;
|
|
94851
|
-
// //this.graph.panningManager.panTo(x + evt.deltaX , y + evt.deltaY);
|
|
94852
|
-
// //this.graph.panningHandler.start(new mx.mxMouseEvent(evt, null));
|
|
94853
|
-
// //mx.mxEvent.consume(evt);
|
|
94854
|
-
// });
|
|
94855
|
-
// }
|
|
94856
94618
|
|
|
94857
94619
|
exports.Cell = Cell;
|
|
94858
94620
|
exports.CellDescriptor = CellDescriptor;
|