3d-force-graph 1.70.18 → 1.70.19
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.
|
@@ -198,6 +198,8 @@ var _3dForceGraph = Kapsule({
|
|
|
198
198
|
var controls = state.renderObjs.controls();
|
|
199
199
|
if (controls) {
|
|
200
200
|
controls.enabled = enable;
|
|
201
|
+
// trigger mouseup on re-enable to prevent sticky controls
|
|
202
|
+
enable && controls.domElement && controls.domElement.dispatchEvent(new PointerEvent('pointerup'));
|
|
201
203
|
}
|
|
202
204
|
},
|
|
203
205
|
triggerUpdate: false
|
|
@@ -366,7 +368,7 @@ var _3dForceGraph = Kapsule({
|
|
|
366
368
|
state._dragControls = undefined;
|
|
367
369
|
}
|
|
368
370
|
if (state.enableNodeDrag && state.enablePointerInteraction && state.forceEngine === 'd3') {
|
|
369
|
-
// Can't access node positions
|
|
371
|
+
// Can't access node positions programmatically in ngraph
|
|
370
372
|
var dragControls = state._dragControls = new DragControls_js.DragControls(state.graphData.nodes.map(function (node) {
|
|
371
373
|
return node.__threeObj;
|
|
372
374
|
}).filter(function (obj) {
|
package/dist/3d-force-graph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.70.
|
|
1
|
+
// Version 1.70.19 3d-force-graph - https://github.com/vasturiano/3d-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) :
|
|
@@ -45832,6 +45832,8 @@ function InsertStackElement(node, body) {
|
|
|
45832
45832
|
var controls = state.renderObjs.controls();
|
|
45833
45833
|
if (controls) {
|
|
45834
45834
|
controls.enabled = enable;
|
|
45835
|
+
// trigger mouseup on re-enable to prevent sticky controls
|
|
45836
|
+
enable && controls.domElement && controls.domElement.dispatchEvent(new PointerEvent('pointerup'));
|
|
45835
45837
|
}
|
|
45836
45838
|
},
|
|
45837
45839
|
triggerUpdate: false
|
|
@@ -46000,7 +46002,7 @@ function InsertStackElement(node, body) {
|
|
|
46000
46002
|
state._dragControls = undefined;
|
|
46001
46003
|
}
|
|
46002
46004
|
if (state.enableNodeDrag && state.enablePointerInteraction && state.forceEngine === 'd3') {
|
|
46003
|
-
// Can't access node positions
|
|
46005
|
+
// Can't access node positions programmatically in ngraph
|
|
46004
46006
|
var dragControls = state._dragControls = new DragControls(state.graphData.nodes.map(function (node) {
|
|
46005
46007
|
return node.__threeObj;
|
|
46006
46008
|
}).filter(function (obj) {
|