force-graph 1.49.3 → 1.49.5
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/force-graph.js +4 -2
- package/dist/force-graph.js.map +1 -1
- package/dist/force-graph.min.js +2 -2
- package/dist/force-graph.mjs +3 -1
- package/example/auto-colored/index.html +1 -1
- package/example/basic/index.html +1 -1
- package/example/beeswarm/index.html +1 -1
- package/example/build-a-graph/index.html +1 -1
- package/example/click-to-focus/index.html +1 -1
- package/example/collision-detection/index.html +1 -1
- package/example/curved-links/index.html +1 -1
- package/example/curved-links-computed-curvature/index.html +1 -1
- package/example/custom-node-shape/index.html +1 -1
- package/example/dag-yarn/index.html +1 -1
- package/example/dagre/index.html +1 -1
- package/example/dash-odd-links/index.html +1 -1
- package/example/directional-links-arrows/index.html +1 -1
- package/example/directional-links-particles/index.html +1 -1
- package/example/dynamic/index.html +1 -1
- package/example/emit-particles/index.html +1 -1
- package/example/expandable-nodes/index.html +1 -1
- package/example/expandable-tree/index.html +1 -1
- package/example/fit-to-canvas/index.html +1 -1
- package/example/fix-dragged-nodes/index.html +1 -1
- package/example/highlight/index.html +1 -1
- package/example/huge-1M/index.html +1 -1
- package/example/img-nodes/index.html +1 -1
- package/example/large-graph/index.html +1 -1
- package/example/load-json/index.html +1 -1
- package/example/medium-graph/index.html +1 -1
- package/example/move-viewport/index.html +1 -1
- package/example/multi-selection/index.html +1 -1
- package/example/responsive/index.html +1 -1
- package/example/text-links/index.html +1 -1
- package/example/text-nodes/index.html +1 -1
- package/example/tree/index.html +1 -1
- package/package.json +2 -1
- package/src/force-graph.js +5 -1
package/dist/force-graph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.49.
|
|
1
|
+
// Version 1.49.5 force-graph - https://github.com/vasturiano/force-graph
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -12488,10 +12488,12 @@
|
|
|
12488
12488
|
c.translate(t.x, t.y);
|
|
12489
12489
|
c.scale(t.k, t.k);
|
|
12490
12490
|
});
|
|
12491
|
+
state.isPointerDragging = true;
|
|
12491
12492
|
state.onZoom && state.onZoom(_objectSpread2$1(_objectSpread2$1({}, t), _this.centerAt())); // report x,y coordinates relative to canvas center
|
|
12492
12493
|
state.needsRedraw = true;
|
|
12493
12494
|
}).on('end', function (ev) {
|
|
12494
|
-
|
|
12495
|
+
state.isPointerDragging = false;
|
|
12496
|
+
state.onZoomEnd && state.onZoomEnd(_objectSpread2$1(_objectSpread2$1({}, ev.transform), _this.centerAt()));
|
|
12495
12497
|
});
|
|
12496
12498
|
adjustCanvasSize(state);
|
|
12497
12499
|
state.forceGraph.onNeedsRedraw(function () {
|