force-graph 1.49.2 → 1.49.3
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/README.md +2 -2
- package/dist/force-graph.js +97 -134
- package/dist/force-graph.js.map +1 -1
- package/dist/force-graph.min.js +3 -3
- package/dist/force-graph.mjs +14 -14
- package/package.json +7 -7
- package/src/force-graph.js +4 -5
package/README.md
CHANGED
|
@@ -162,8 +162,8 @@ const myGraph = new ForceGraph(<myDOMElement>)
|
|
|
162
162
|
| <b>onNodeClick</b>(<i>fn</i>) | Callback function for node (left-button) clicks. The node object and the event object are included as arguments `onNodeClick(node, event)`. | - |
|
|
163
163
|
| <b>onNodeRightClick</b>(<i>fn</i>) | Callback function for node right-clicks. The node object and the event object are included as arguments `onNodeRightClick(node, event)`. | - |
|
|
164
164
|
| <b>onNodeHover</b>(<i>fn</i>) | Callback function for node mouse over events. The node object (or `null` if there's no node under the mouse line of sight) is included as the first argument, and the previous node object (or null) as second argument: `onNodeHover(node, prevNode)`. | - |
|
|
165
|
-
| <b>onNodeDrag</b>(<i>fn</i>) | Callback function for node drag interactions. This function is invoked repeatedly while dragging a node, every time its position is updated. The node object is included as the first argument, and the change in coordinates since the last iteration of this function are included as the second argument in format {x,y
|
|
166
|
-
| <b>onNodeDragEnd</b>(<i>fn</i>) | Callback function for the end of node drag interactions. This function is invoked when the node is released. The node object is included as the first argument, and the change in coordinates from the node's initial postion are included as the second argument in format {x,y
|
|
165
|
+
| <b>onNodeDrag</b>(<i>fn</i>) | Callback function for node drag interactions. This function is invoked repeatedly while dragging a node, every time its position is updated. The node object is included as the first argument, and the change in coordinates since the last iteration of this function are included as the second argument in format {x,y}: `onNodeDrag(node, translate)`. | - |
|
|
166
|
+
| <b>onNodeDragEnd</b>(<i>fn</i>) | Callback function for the end of node drag interactions. This function is invoked when the node is released. The node object is included as the first argument, and the change in coordinates from the node's initial postion are included as the second argument in format {x,y}: `onNodeDragEnd(node, translate)`. | - |
|
|
167
167
|
| <b>onLinkClick</b>(<i>fn</i>) | Callback function for link (left-button) clicks. The link object and the event object are included as arguments `onLinkClick(link, event)`. | - |
|
|
168
168
|
| <b>onLinkRightClick</b>(<i>fn</i>) | Callback function for link right-clicks. The link object and the event object are included as arguments `onLinkRightClick(link, event)`. | - |
|
|
169
169
|
| <b>onLinkHover</b>(<i>fn</i>) | Callback function for link mouse over events. The link object (or `null` if there's no link under the mouse line of sight) is included as the first argument, and the previous link object (or null) as second argument: `onLinkHover(link, prevLink)`. | - |
|
package/dist/force-graph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.49.
|
|
1
|
+
// Version 1.49.3 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) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
})(this, (function () { 'use strict';
|
|
7
7
|
|
|
8
8
|
function styleInject$1(css, ref) {
|
|
9
|
-
if ( ref ===
|
|
9
|
+
if ( ref === void 0 ) ref = {};
|
|
10
10
|
var insertAt = ref.insertAt;
|
|
11
11
|
|
|
12
12
|
if (typeof document === 'undefined') { return; }
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
function _toPrimitive$3(t, r) {
|
|
133
133
|
if ("object" != typeof t || !t) return t;
|
|
134
134
|
var e = t[Symbol.toPrimitive];
|
|
135
|
-
if (
|
|
136
|
-
var i = e.call(t, r
|
|
135
|
+
if (void 0 !== e) {
|
|
136
|
+
var i = e.call(t, r);
|
|
137
137
|
if ("object" != typeof i) return i;
|
|
138
138
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
139
139
|
}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
if (r) {
|
|
157
157
|
if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
|
|
158
158
|
var t = {}.toString.call(r).slice(8, -1);
|
|
159
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) :
|
|
159
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -3430,7 +3430,6 @@
|
|
|
3430
3430
|
new ZoomEvent(type, {
|
|
3431
3431
|
sourceEvent: this.sourceEvent,
|
|
3432
3432
|
target: zoom,
|
|
3433
|
-
type,
|
|
3434
3433
|
transform: this.that.__zoom,
|
|
3435
3434
|
dispatch: listeners
|
|
3436
3435
|
}),
|
|
@@ -4494,7 +4493,7 @@
|
|
|
4494
4493
|
},
|
|
4495
4494
|
}),
|
|
4496
4495
|
generatePow: function (power) {
|
|
4497
|
-
if (power ===
|
|
4496
|
+
if (power === void 0) { power = 4; }
|
|
4498
4497
|
power = power < Number.EPSILON ? Number.EPSILON : power;
|
|
4499
4498
|
power = power > 10000 ? 10000 : power;
|
|
4500
4499
|
return {
|
|
@@ -4549,7 +4548,7 @@
|
|
|
4549
4548
|
var tween = tweens_1[_b];
|
|
4550
4549
|
// Remove from any other group first, a tween can only be in one group at a time.
|
|
4551
4550
|
// @ts-expect-error library internal access
|
|
4552
|
-
(_a = tween._group) === null || _a ===
|
|
4551
|
+
(_a = tween._group) === null || _a === void 0 ? void 0 : _a.remove(tween);
|
|
4553
4552
|
// @ts-expect-error library internal access
|
|
4554
4553
|
tween._group = this;
|
|
4555
4554
|
this._tweens[tween.getId()] = tween;
|
|
@@ -4574,8 +4573,8 @@
|
|
|
4574
4573
|
return this.getAll().every(function (tween) { return !tween.isPlaying(); });
|
|
4575
4574
|
};
|
|
4576
4575
|
Group.prototype.update = function (time, preserve) {
|
|
4577
|
-
if (time ===
|
|
4578
|
-
if (preserve ===
|
|
4576
|
+
if (time === void 0) { time = now(); }
|
|
4577
|
+
if (preserve === void 0) { preserve = true; }
|
|
4579
4578
|
var tweenIds = Object.keys(this._tweens);
|
|
4580
4579
|
if (tweenIds.length === 0)
|
|
4581
4580
|
return;
|
|
@@ -4615,67 +4614,10 @@
|
|
|
4615
4614
|
}
|
|
4616
4615
|
return fn(v[i], v[i + 1 > m ? m : i + 1], f - i);
|
|
4617
4616
|
},
|
|
4618
|
-
Bezier: function (v, k) {
|
|
4619
|
-
var b = 0;
|
|
4620
|
-
var n = v.length - 1;
|
|
4621
|
-
var pw = Math.pow;
|
|
4622
|
-
var bn = Interpolation.Utils.Bernstein;
|
|
4623
|
-
for (var i = 0; i <= n; i++) {
|
|
4624
|
-
b += pw(1 - k, n - i) * pw(k, i) * v[i] * bn(n, i);
|
|
4625
|
-
}
|
|
4626
|
-
return b;
|
|
4627
|
-
},
|
|
4628
|
-
CatmullRom: function (v, k) {
|
|
4629
|
-
var m = v.length - 1;
|
|
4630
|
-
var f = m * k;
|
|
4631
|
-
var i = Math.floor(f);
|
|
4632
|
-
var fn = Interpolation.Utils.CatmullRom;
|
|
4633
|
-
if (v[0] === v[m]) {
|
|
4634
|
-
if (k < 0) {
|
|
4635
|
-
i = Math.floor((f = m * (1 + k)));
|
|
4636
|
-
}
|
|
4637
|
-
return fn(v[(i - 1 + m) % m], v[i], v[(i + 1) % m], v[(i + 2) % m], f - i);
|
|
4638
|
-
}
|
|
4639
|
-
else {
|
|
4640
|
-
if (k < 0) {
|
|
4641
|
-
return v[0] - (fn(v[0], v[0], v[1], v[1], -f) - v[0]);
|
|
4642
|
-
}
|
|
4643
|
-
if (k > 1) {
|
|
4644
|
-
return v[m] - (fn(v[m], v[m], v[m - 1], v[m - 1], f - m) - v[m]);
|
|
4645
|
-
}
|
|
4646
|
-
return fn(v[i ? i - 1 : 0], v[i], v[m < i + 1 ? m : i + 1], v[m < i + 2 ? m : i + 2], f - i);
|
|
4647
|
-
}
|
|
4648
|
-
},
|
|
4649
4617
|
Utils: {
|
|
4650
4618
|
Linear: function (p0, p1, t) {
|
|
4651
4619
|
return (p1 - p0) * t + p0;
|
|
4652
|
-
},
|
|
4653
|
-
Bernstein: function (n, i) {
|
|
4654
|
-
var fc = Interpolation.Utils.Factorial;
|
|
4655
|
-
return fc(n) / fc(i) / fc(n - i);
|
|
4656
|
-
},
|
|
4657
|
-
Factorial: (function () {
|
|
4658
|
-
var a = [1];
|
|
4659
|
-
return function (n) {
|
|
4660
|
-
var s = 1;
|
|
4661
|
-
if (a[n]) {
|
|
4662
|
-
return a[n];
|
|
4663
|
-
}
|
|
4664
|
-
for (var i = n; i > 1; i--) {
|
|
4665
|
-
s *= i;
|
|
4666
|
-
}
|
|
4667
|
-
a[n] = s;
|
|
4668
|
-
return s;
|
|
4669
|
-
};
|
|
4670
|
-
})(),
|
|
4671
|
-
CatmullRom: function (p0, p1, p2, p3, t) {
|
|
4672
|
-
var v0 = (p2 - p0) * 0.5;
|
|
4673
|
-
var v1 = (p3 - p1) * 0.5;
|
|
4674
|
-
var t2 = t * t;
|
|
4675
|
-
var t3 = t * t2;
|
|
4676
|
-
return (2 * p1 - 2 * p2 + v0 + v1) * t3 + (-3 * p1 + 3 * p2 - 2 * v0 - v1) * t2 + v0 * t + p1;
|
|
4677
|
-
},
|
|
4678
|
-
},
|
|
4620
|
+
}},
|
|
4679
4621
|
};
|
|
4680
4622
|
|
|
4681
4623
|
/**
|
|
@@ -4751,7 +4693,7 @@
|
|
|
4751
4693
|
return this._duration;
|
|
4752
4694
|
};
|
|
4753
4695
|
Tween.prototype.to = function (target, duration) {
|
|
4754
|
-
if (duration ===
|
|
4696
|
+
if (duration === void 0) { duration = 1000; }
|
|
4755
4697
|
if (this._isPlaying)
|
|
4756
4698
|
throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
|
|
4757
4699
|
this._valuesEnd = target;
|
|
@@ -4760,18 +4702,18 @@
|
|
|
4760
4702
|
return this;
|
|
4761
4703
|
};
|
|
4762
4704
|
Tween.prototype.duration = function (duration) {
|
|
4763
|
-
if (duration ===
|
|
4705
|
+
if (duration === void 0) { duration = 1000; }
|
|
4764
4706
|
this._duration = duration < 0 ? 0 : duration;
|
|
4765
4707
|
return this;
|
|
4766
4708
|
};
|
|
4767
4709
|
Tween.prototype.dynamic = function (dynamic) {
|
|
4768
|
-
if (dynamic ===
|
|
4710
|
+
if (dynamic === void 0) { dynamic = false; }
|
|
4769
4711
|
this._isDynamic = dynamic;
|
|
4770
4712
|
return this;
|
|
4771
4713
|
};
|
|
4772
4714
|
Tween.prototype.start = function (time, overrideStartingValues) {
|
|
4773
|
-
if (time ===
|
|
4774
|
-
if (overrideStartingValues ===
|
|
4715
|
+
if (time === void 0) { time = now(); }
|
|
4716
|
+
if (overrideStartingValues === void 0) { overrideStartingValues = false; }
|
|
4775
4717
|
if (this._isPlaying) {
|
|
4776
4718
|
return this;
|
|
4777
4719
|
}
|
|
@@ -4904,7 +4846,7 @@
|
|
|
4904
4846
|
return this;
|
|
4905
4847
|
};
|
|
4906
4848
|
Tween.prototype.pause = function (time) {
|
|
4907
|
-
if (time ===
|
|
4849
|
+
if (time === void 0) { time = now(); }
|
|
4908
4850
|
if (this._isPaused || !this._isPlaying) {
|
|
4909
4851
|
return this;
|
|
4910
4852
|
}
|
|
@@ -4913,7 +4855,7 @@
|
|
|
4913
4855
|
return this;
|
|
4914
4856
|
};
|
|
4915
4857
|
Tween.prototype.resume = function (time) {
|
|
4916
|
-
if (time ===
|
|
4858
|
+
if (time === void 0) { time = now(); }
|
|
4917
4859
|
if (!this._isPaused || !this._isPlaying) {
|
|
4918
4860
|
return this;
|
|
4919
4861
|
}
|
|
@@ -4941,16 +4883,16 @@
|
|
|
4941
4883
|
*/
|
|
4942
4884
|
Tween.prototype.remove = function () {
|
|
4943
4885
|
var _a;
|
|
4944
|
-
(_a = this._group) === null || _a ===
|
|
4886
|
+
(_a = this._group) === null || _a === void 0 ? void 0 : _a.remove(this);
|
|
4945
4887
|
return this;
|
|
4946
4888
|
};
|
|
4947
4889
|
Tween.prototype.delay = function (amount) {
|
|
4948
|
-
if (amount ===
|
|
4890
|
+
if (amount === void 0) { amount = 0; }
|
|
4949
4891
|
this._delayTime = amount;
|
|
4950
4892
|
return this;
|
|
4951
4893
|
};
|
|
4952
4894
|
Tween.prototype.repeat = function (times) {
|
|
4953
|
-
if (times ===
|
|
4895
|
+
if (times === void 0) { times = 0; }
|
|
4954
4896
|
this._initialRepeat = times;
|
|
4955
4897
|
this._repeat = times;
|
|
4956
4898
|
return this;
|
|
@@ -4960,17 +4902,17 @@
|
|
|
4960
4902
|
return this;
|
|
4961
4903
|
};
|
|
4962
4904
|
Tween.prototype.yoyo = function (yoyo) {
|
|
4963
|
-
if (yoyo ===
|
|
4905
|
+
if (yoyo === void 0) { yoyo = false; }
|
|
4964
4906
|
this._yoyo = yoyo;
|
|
4965
4907
|
return this;
|
|
4966
4908
|
};
|
|
4967
4909
|
Tween.prototype.easing = function (easingFunction) {
|
|
4968
|
-
if (easingFunction ===
|
|
4910
|
+
if (easingFunction === void 0) { easingFunction = Easing.Linear.None; }
|
|
4969
4911
|
this._easingFunction = easingFunction;
|
|
4970
4912
|
return this;
|
|
4971
4913
|
};
|
|
4972
4914
|
Tween.prototype.interpolation = function (interpolationFunction) {
|
|
4973
|
-
if (interpolationFunction ===
|
|
4915
|
+
if (interpolationFunction === void 0) { interpolationFunction = Interpolation.Linear; }
|
|
4974
4916
|
this._interpolationFunction = interpolationFunction;
|
|
4975
4917
|
return this;
|
|
4976
4918
|
};
|
|
@@ -5019,8 +4961,8 @@
|
|
|
5019
4961
|
Tween.prototype.update = function (time, autoStart) {
|
|
5020
4962
|
var _this = this;
|
|
5021
4963
|
var _a;
|
|
5022
|
-
if (time ===
|
|
5023
|
-
if (autoStart ===
|
|
4964
|
+
if (time === void 0) { time = now(); }
|
|
4965
|
+
if (autoStart === void 0) { autoStart = Tween.autoStartOnUpdate; }
|
|
5024
4966
|
if (this._isPaused)
|
|
5025
4967
|
return true;
|
|
5026
4968
|
var property;
|
|
@@ -5047,7 +4989,7 @@
|
|
|
5047
4989
|
this._onEveryStartCallbackFired = true;
|
|
5048
4990
|
}
|
|
5049
4991
|
var elapsedTime = time - this._startTime;
|
|
5050
|
-
var durationAndDelay = this._duration + ((_a = this._repeatDelayTime) !== null && _a !==
|
|
4992
|
+
var durationAndDelay = this._duration + ((_a = this._repeatDelayTime) !== null && _a !== void 0 ? _a : this._delayTime);
|
|
5051
4993
|
var totalTime = this._duration + this._repeat * durationAndDelay;
|
|
5052
4994
|
var calculateElapsedPortion = function () {
|
|
5053
4995
|
if (_this._duration === 0)
|
|
@@ -5170,6 +5112,16 @@
|
|
|
5170
5112
|
Tween.autoStartOnUpdate = false;
|
|
5171
5113
|
return Tween;
|
|
5172
5114
|
}());
|
|
5115
|
+
|
|
5116
|
+
/**
|
|
5117
|
+
* Tween.js - Licensed under the MIT license
|
|
5118
|
+
* https://github.com/tweenjs/tween.js
|
|
5119
|
+
* ----------------------------------------------
|
|
5120
|
+
*
|
|
5121
|
+
* See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors.
|
|
5122
|
+
* Thank you all, you're awesome!
|
|
5123
|
+
*/
|
|
5124
|
+
Sequence.nextId;
|
|
5173
5125
|
/**
|
|
5174
5126
|
* Controlling groups of tweens
|
|
5175
5127
|
*
|
|
@@ -5472,17 +5424,17 @@
|
|
|
5472
5424
|
if (r) {
|
|
5473
5425
|
if ("string" == typeof r) return _arrayLikeToArray$3(r, a);
|
|
5474
5426
|
var t = {}.toString.call(r).slice(8, -1);
|
|
5475
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) :
|
|
5427
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
|
|
5476
5428
|
}
|
|
5477
5429
|
}
|
|
5478
5430
|
|
|
5479
5431
|
var Prop = /*#__PURE__*/_createClass$1(function Prop(name, _ref) {
|
|
5480
5432
|
var _ref$default = _ref["default"],
|
|
5481
|
-
defaultVal = _ref$default ===
|
|
5433
|
+
defaultVal = _ref$default === void 0 ? null : _ref$default,
|
|
5482
5434
|
_ref$triggerUpdate = _ref.triggerUpdate,
|
|
5483
|
-
triggerUpdate = _ref$triggerUpdate ===
|
|
5435
|
+
triggerUpdate = _ref$triggerUpdate === void 0 ? true : _ref$triggerUpdate,
|
|
5484
5436
|
_ref$onChange = _ref.onChange,
|
|
5485
|
-
onChange = _ref$onChange ===
|
|
5437
|
+
onChange = _ref$onChange === void 0 ? function (newVal, state) {} : _ref$onChange;
|
|
5486
5438
|
_classCallCheck$1(this, Prop);
|
|
5487
5439
|
this.name = name;
|
|
5488
5440
|
this.defaultVal = defaultVal;
|
|
@@ -5491,19 +5443,19 @@
|
|
|
5491
5443
|
});
|
|
5492
5444
|
function index$4 (_ref2) {
|
|
5493
5445
|
var _ref2$stateInit = _ref2.stateInit,
|
|
5494
|
-
stateInit = _ref2$stateInit ===
|
|
5446
|
+
stateInit = _ref2$stateInit === void 0 ? function () {
|
|
5495
5447
|
return {};
|
|
5496
5448
|
} : _ref2$stateInit,
|
|
5497
5449
|
_ref2$props = _ref2.props,
|
|
5498
|
-
rawProps = _ref2$props ===
|
|
5450
|
+
rawProps = _ref2$props === void 0 ? {} : _ref2$props,
|
|
5499
5451
|
_ref2$methods = _ref2.methods,
|
|
5500
|
-
methods = _ref2$methods ===
|
|
5452
|
+
methods = _ref2$methods === void 0 ? {} : _ref2$methods,
|
|
5501
5453
|
_ref2$aliases = _ref2.aliases,
|
|
5502
|
-
aliases = _ref2$aliases ===
|
|
5454
|
+
aliases = _ref2$aliases === void 0 ? {} : _ref2$aliases,
|
|
5503
5455
|
_ref2$init = _ref2.init,
|
|
5504
|
-
initFn = _ref2$init ===
|
|
5456
|
+
initFn = _ref2$init === void 0 ? function () {} : _ref2$init,
|
|
5505
5457
|
_ref2$update = _ref2.update,
|
|
5506
|
-
updateFn = _ref2$update ===
|
|
5458
|
+
updateFn = _ref2$update === void 0 ? function () {} : _ref2$update;
|
|
5507
5459
|
// Parse props into Prop instances
|
|
5508
5460
|
var props = Object.keys(rawProps).map(function (propName) {
|
|
5509
5461
|
return new Prop(propName, rawProps[propName]);
|
|
@@ -5512,10 +5464,10 @@
|
|
|
5512
5464
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5513
5465
|
args[_key] = arguments[_key];
|
|
5514
5466
|
}
|
|
5515
|
-
var classMode = !!(this instanceof KapsuleComp ? this.constructor :
|
|
5467
|
+
var classMode = !!(this instanceof KapsuleComp ? this.constructor : void 0);
|
|
5516
5468
|
var nodeElement = classMode ? args.shift() : undefined;
|
|
5517
5469
|
var _args$ = args[0],
|
|
5518
|
-
options = _args$ ===
|
|
5470
|
+
options = _args$ === void 0 ? {} : _args$;
|
|
5519
5471
|
|
|
5520
5472
|
// Holds component state
|
|
5521
5473
|
var state = Object.assign({}, stateInit instanceof Function ? stateInit(options) : stateInit,
|
|
@@ -5551,11 +5503,11 @@
|
|
|
5551
5503
|
function getSetProp(_ref3) {
|
|
5552
5504
|
var prop = _ref3.name,
|
|
5553
5505
|
_ref3$triggerUpdate = _ref3.triggerUpdate,
|
|
5554
|
-
redigest = _ref3$triggerUpdate ===
|
|
5506
|
+
redigest = _ref3$triggerUpdate === void 0 ? false : _ref3$triggerUpdate,
|
|
5555
5507
|
_ref3$onChange = _ref3.onChange,
|
|
5556
|
-
onChange = _ref3$onChange ===
|
|
5508
|
+
onChange = _ref3$onChange === void 0 ? function (newVal, state) {} : _ref3$onChange,
|
|
5557
5509
|
_ref3$defaultVal = _ref3.defaultVal,
|
|
5558
|
-
defaultVal = _ref3$defaultVal ===
|
|
5510
|
+
defaultVal = _ref3$defaultVal === void 0 ? null : _ref3$defaultVal;
|
|
5559
5511
|
return function (_) {
|
|
5560
5512
|
var curVal = state[prop];
|
|
5561
5513
|
if (!arguments.length) {
|
|
@@ -6836,7 +6788,7 @@
|
|
|
6836
6788
|
}
|
|
6837
6789
|
}
|
|
6838
6790
|
function _createClass(e, r, t) {
|
|
6839
|
-
return _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
6791
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
6840
6792
|
writable: false
|
|
6841
6793
|
}), e;
|
|
6842
6794
|
}
|
|
@@ -6852,7 +6804,7 @@
|
|
|
6852
6804
|
function _toPrimitive$2(t, r) {
|
|
6853
6805
|
if ("object" != typeof t || !t) return t;
|
|
6854
6806
|
var e = t[Symbol.toPrimitive];
|
|
6855
|
-
if (
|
|
6807
|
+
if (void 0 !== e) {
|
|
6856
6808
|
var i = e.call(t, r);
|
|
6857
6809
|
if ("object" != typeof i) return i;
|
|
6858
6810
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -6867,7 +6819,7 @@
|
|
|
6867
6819
|
if (r) {
|
|
6868
6820
|
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
6869
6821
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6870
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) :
|
|
6822
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
6871
6823
|
}
|
|
6872
6824
|
}
|
|
6873
6825
|
|
|
@@ -6896,9 +6848,9 @@
|
|
|
6896
6848
|
var csBits = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6;
|
|
6897
6849
|
_classCallCheck(this, _default);
|
|
6898
6850
|
// Internal state
|
|
6899
|
-
_classPrivateFieldInitSpec(this, _registry,
|
|
6851
|
+
_classPrivateFieldInitSpec(this, _registry, void 0);
|
|
6900
6852
|
// indexed objects for rgb lookup;
|
|
6901
|
-
_classPrivateFieldInitSpec(this, _csBits,
|
|
6853
|
+
_classPrivateFieldInitSpec(this, _csBits, void 0);
|
|
6902
6854
|
_classPrivateFieldSet2(_csBits, this, csBits);
|
|
6903
6855
|
this.reset();
|
|
6904
6856
|
}
|
|
@@ -6925,7 +6877,7 @@
|
|
|
6925
6877
|
value: function lookup(color) {
|
|
6926
6878
|
if (!color) return null; // invalid color
|
|
6927
6879
|
|
|
6928
|
-
var n = typeof color === 'string' ? colorStr2Int(color) : rgb2Int.apply(
|
|
6880
|
+
var n = typeof color === 'string' ? colorStr2Int(color) : rgb2Int.apply(void 0, _toConsumableArray$1(color));
|
|
6929
6881
|
if (!n) return null; // 0 index is reserved for background
|
|
6930
6882
|
|
|
6931
6883
|
var idx = n & Math.pow(2, 24 - _classPrivateFieldGet2(_csBits, this)) - 1; // registry index
|
|
@@ -6938,7 +6890,7 @@
|
|
|
6938
6890
|
}]);
|
|
6939
6891
|
}();
|
|
6940
6892
|
|
|
6941
|
-
var n,l,u,t$1,i,r,o,e,f,c$1,s,a$1,p={},v=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function g(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) undefined===e[o]&&(e[o]=l.defaultProps[o]);return m$1(l,e,i,r,null)}function m$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:undefined,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function k(n){return n.children}function x$1(n,l){this.props=n,this.context=l;}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?C(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!P.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(P);}function P(){var n,u,t,r,o,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(u=i.length,r=undefined,f=(o=(t=n).__v).__e,c=[],s=[],t.__P&&((r=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),j(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[f]:null,c,null==f?C(o):f,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,z$1(c,r,s),r.__e!=f&&S(r)),i.length>u&&i.sort(e));P.__r=0;}function $(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=A(y,f,n):"function"==typeof y.type&&undefined!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function I(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m$1(null,o,null,null,null):d(o)?m$1(k,{children:o},null,null,null):undefined===o.constructor&&o.__b>0?m$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=C(e)),q(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=C(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--;}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++;}}return -1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y$1.test(l)?u:u+"px";}function F(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c$1,n.addEventListener(l,r?a$1:s,r)):n.removeEventListener(l,r?a$1:s,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c$1++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,A,H,L,T,F=u.type;if(undefined!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof F)try{if(b=u.props,C="prototype"in F&&F.prototype.render,S=(a=F.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new F(b,M):(u.__c=h=new x$1(b,M),h.constructor=F,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,F.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)C&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(C&&null==F.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,A=0,C){for(h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else for(T=o.length;T--;)_(o[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,r,o,e,c,s);return (a=l.diffed)&&a(u),128&u.__u?undefined:f}function z$1(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,g,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=false),e=null;}if(null===x)b===k||c&&u.data===k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;F(u,a,null,w,o);}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),$(u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"==x&&null==g?u.removeAttribute("value"):undefined!==g&&(g!==u[a]||"progress"==x&&!g||"option"==x&&g!==b[a])&&F(u,a,g,b[a],o),a="checked",undefined!==m&&m!==u[a]&&F(u,a,m,b[a],o));}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l.__e(n,t);}}function q(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],u,t||"function"!=typeof n.type);t||_(n.__e),n.__c=n.__=n.__e=undefined;}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],j(t,u=(t).__k=g(k,null,[u]),o||p,p,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),z$1(e,u,f);}function G(l,u,t){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=undefined===u[o]&&undefined!==e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m$1(l.type,f,i||l.key,r||l.ref,null)}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u=0,t$1=function(n){return null!=n&&null==n.constructor},x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),M(this));},x$1.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c$1=0,s=O(false),a$1=O(true);
|
|
6893
|
+
var n,l,t$1,u,i,r,o,e,f,c$1,s,a$1,p={},v=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var t in l)n[t]=l[t];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _(l,t,u){var i,r,o,e={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:e[o]=t[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return m$1(l,e,i,r,null)}function m$1(n,u,i,r,o){var e={type:n,props:u,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++t$1:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function k(n){return n.children}function x$1(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return "function"==typeof n.type?S(n):null}function C(n){var l,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($);}function $(){for(var n,t,u,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(u=void 0,o=(r=(t=n).__v).__e,f=[],c=[],t.__P&&((u=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(u),O(t.__P,u,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),u.__v=r.__v,u.__.__k[u.__i]=u,z$1(f,u,c),u.__e!=o&&C(u)));$.__r=0;}function I(n,l,t,u,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=u&&u.__k||v,m=l.length;for(f=P(t,l,_,f,m),a=0;a<m;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=O(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&q(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=A(y,f,n):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return t.__e=w,f}function P(n,l,t,u,i){var r,o,e,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m$1(null,o,null,null,null):d(o)?m$1(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,t,f,a))&&(a--,(e=t[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=t[r])&&0==(2&e.__u)&&(e.__e==u&&(u=S(e)),B(e,e));return u}function A(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=A(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=S(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function L(n,l,t,u){var i,r,o=n.key,e=n.type,f=l[t];if(null===f&&null==n.key||f&&o==f.key&&e===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,r=t+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--;}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++;}}return -1}function T(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||y$1.test(l)?t:t+"px";}function j(n,l,t,u,i){var r;n:if("style"==l)if("string"==typeof t)n.style.cssText=t;else {if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t.t=u.t:(t.t=c$1,n.addEventListener(l,r?a$1:s,r)):n.removeEventListener(l,r?a$1:s,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||false===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t));}}function F(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c$1++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function O(n,t,u,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),o=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof j)try{if(b=t.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,u.__c?m=(h=t.__c=u.__c).__=h.__E:(S?t.__c=h=new j(b,M):(t.__c=h=new x$1(b,M),h.constructor=j,h.render=D),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t);}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k&&null==a.key&&(L=N(a.props.children)),f=I(n,d(L)?L:[L],t,u,i,r,o,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f;}else for(T=o.length;T--;)g(o[T]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u);}else null==o&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=V(u.__e,t,u,i,r,o,e,c,s);return (a=l.diffed)&&a(t),128&t.__u?void 0:f}function z$1(n,t,u){for(var i=0;i<u.length;i++)q(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t);});}catch(n){l.__e(n,t.__v);}});}function N(n){return "object"!=typeof n||null==n?n:d(n)?n.map(N):w({},n)}function V(t,u,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props,k=u.props,x=u.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null==x)return document.createTextNode(k);t=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(u,e),c=false),e=null;}if(null===x)b===k||c&&t.data===k||(t.data=k);else {if(e=e&&n.call(t.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<t.attributes.length;a++)b[(w=t.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(t,a,null,w,o);}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||j(t,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),I("template"===u.type?t.content:t,d(y)?y:[y],u,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?t.removeAttribute("value"):void 0!==_&&(_!==t[a]||"progress"==x&&!_||"option"==x&&_!==b[a])&&j(t,a,_,b[a],o),a="checked",void 0!==m&&m!==t[a]&&j(t,a,m,b[a],o));}return t}function q(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t));}else n.current=t;}catch(n){l.__e(n,u);}}function B(n,t,u){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||q(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,t);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&B(i[r],t,u||"function"!=typeof n.type);u||g(n.__e),n.__c=n.__=n.__e=void 0;}function D(n,l,t){return this.constructor(n,t)}function E(t,u,i){var r,o,e,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),o=(r="function"=="undefined")?null:u.__k,e=[],f=[],O(u,t=(u).__k=_(k,null,[t]),o||p,p,u.namespaceURI,o?null:u.firstChild?n.call(u.childNodes):null,e,o?o.__e:u.firstChild,r,f),z$1(e,t,f);}function J(l,t,u){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==o?i=t[o]:"ref"==o?r=t[o]:f[o]=void 0===t[o]&&void 0!==e?e[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),m$1(l.type,f,i||l.key,r||l.ref,null)}n=v.slice,l={__e:function(n,l,t,u){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},t$1=0,u=function(n){return null!=n&&null==n.constructor},x$1.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),M(this));},x$1.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c$1=0,s=F(false),a$1=F(true);
|
|
6942
6894
|
|
|
6943
6895
|
function _arrayLikeToArray$1(r, a) {
|
|
6944
6896
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -7010,8 +6962,8 @@
|
|
|
7010
6962
|
function _toPrimitive$1(t, r) {
|
|
7011
6963
|
if ("object" != typeof t || !t) return t;
|
|
7012
6964
|
var e = t[Symbol.toPrimitive];
|
|
7013
|
-
if (
|
|
7014
|
-
var i = e.call(t, r
|
|
6965
|
+
if (void 0 !== e) {
|
|
6966
|
+
var i = e.call(t, r);
|
|
7015
6967
|
if ("object" != typeof i) return i;
|
|
7016
6968
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7017
6969
|
}
|
|
@@ -7034,32 +6986,33 @@
|
|
|
7034
6986
|
if (r) {
|
|
7035
6987
|
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
7036
6988
|
var t = {}.toString.call(r).slice(8, -1);
|
|
7037
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) :
|
|
6989
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
|
7038
6990
|
}
|
|
7039
6991
|
}
|
|
7040
6992
|
|
|
7041
6993
|
var _reactElement2VNode = function reactElement2VNode(el) {
|
|
7042
6994
|
// Among other things, react VNodes (and all its children) need to have constructor: undefined attributes in order to be recognised, cloneElement (applied recursively) does the necessary conversion
|
|
7043
6995
|
if (!(_typeof(el) === 'object')) return el;
|
|
7044
|
-
var res =
|
|
6996
|
+
var res = J(el);
|
|
7045
6997
|
if (res.props) {
|
|
7046
6998
|
var _res$props;
|
|
7047
6999
|
res.props = _objectSpread2({}, res.props);
|
|
7048
|
-
if (res !== null && res !==
|
|
7000
|
+
if (res !== null && res !== void 0 && (_res$props = res.props) !== null && _res$props !== void 0 && _res$props.children) {
|
|
7049
7001
|
res.props.children = Array.isArray(res.props.children) ? res.props.children.map(_reactElement2VNode) : _reactElement2VNode(res.props.children);
|
|
7050
7002
|
}
|
|
7051
7003
|
}
|
|
7052
7004
|
return res;
|
|
7053
7005
|
};
|
|
7054
7006
|
var isReactRenderable = function isReactRenderable(o) {
|
|
7055
|
-
return
|
|
7007
|
+
return u(J(o));
|
|
7056
7008
|
};
|
|
7057
7009
|
var render = function render(jsx, domEl) {
|
|
7058
|
-
|
|
7010
|
+
delete domEl.__k; // Wipe traces of previous preact renders
|
|
7011
|
+
E(_reactElement2VNode(jsx), domEl);
|
|
7059
7012
|
};
|
|
7060
7013
|
|
|
7061
7014
|
function styleInject(css, ref) {
|
|
7062
|
-
if (ref ===
|
|
7015
|
+
if (ref === void 0) ref = {};
|
|
7063
7016
|
var insertAt = ref.insertAt;
|
|
7064
7017
|
if (typeof document === 'undefined') {
|
|
7065
7018
|
return;
|
|
@@ -7090,12 +7043,19 @@
|
|
|
7090
7043
|
props: {
|
|
7091
7044
|
content: {
|
|
7092
7045
|
"default": false
|
|
7093
|
-
}
|
|
7046
|
+
},
|
|
7047
|
+
offsetX: {
|
|
7048
|
+
triggerUpdate: false
|
|
7049
|
+
},
|
|
7050
|
+
// null or number
|
|
7051
|
+
offsetY: {
|
|
7052
|
+
triggerUpdate: false
|
|
7053
|
+
} // null or number
|
|
7094
7054
|
},
|
|
7095
7055
|
init: function init(domNode, state) {
|
|
7096
7056
|
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
7097
7057
|
_ref$style = _ref.style,
|
|
7098
|
-
style = _ref$style ===
|
|
7058
|
+
style = _ref$style === void 0 ? {} : _ref$style;
|
|
7099
7059
|
var isD3Selection = !!domNode && _typeof(domNode) === 'object' && !!domNode.node && typeof domNode.node === 'function';
|
|
7100
7060
|
var el = d3Select(isD3Selection ? domNode.node() : domNode);
|
|
7101
7061
|
|
|
@@ -7110,24 +7070,27 @@
|
|
|
7110
7070
|
});
|
|
7111
7071
|
state.tooltipEl // start off-screen
|
|
7112
7072
|
.style('left', '-10000px').style('display', 'none');
|
|
7073
|
+
var evSuffix = "tooltip-".concat(Math.round(Math.random() * 1e12));
|
|
7113
7074
|
state.mouseInside = false;
|
|
7114
|
-
el.on(
|
|
7075
|
+
el.on("mousemove.".concat(evSuffix), function (ev) {
|
|
7115
7076
|
state.mouseInside = true;
|
|
7116
7077
|
var mousePos = pointer(ev);
|
|
7117
7078
|
var domNode = el.node();
|
|
7118
7079
|
var canvasWidth = domNode.offsetWidth;
|
|
7119
7080
|
var canvasHeight = domNode.offsetHeight;
|
|
7120
|
-
state.
|
|
7121
|
-
// adjust horizontal position to not exceed canvas boundaries
|
|
7122
|
-
|
|
7123
|
-
// flip to above if near bottom
|
|
7124
|
-
canvasHeight > 130 && canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
|
|
7081
|
+
var translate = [state.offsetX === null || state.offsetX === undefined
|
|
7082
|
+
// auto: adjust horizontal position to not exceed canvas boundaries
|
|
7083
|
+
? "-".concat(mousePos[0] / canvasWidth * 100, "%") : typeof state.offsetX === 'number' ? "calc(-50% + ".concat(state.offsetX, "px)") : state.offsetX, state.offsetY === null || state.offsetY === undefined
|
|
7084
|
+
// auto: flip to above if near bottom
|
|
7085
|
+
? canvasHeight > 130 && canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px' : typeof state.offsetY === 'number' ? state.offsetY < 0 ? "calc(-100% - ".concat(Math.abs(state.offsetY), "px)") : "".concat(state.offsetY, "px") : state.offsetY];
|
|
7086
|
+
state.tooltipEl.style('left', mousePos[0] + 'px').style('top', mousePos[1] + 'px').style('transform', "translate(".concat(translate.join(','), ")"));
|
|
7087
|
+
state.content && state.tooltipEl.style('display', 'inline');
|
|
7125
7088
|
});
|
|
7126
|
-
el.on(
|
|
7089
|
+
el.on("mouseover.".concat(evSuffix), function () {
|
|
7127
7090
|
state.mouseInside = true;
|
|
7128
7091
|
state.content && state.tooltipEl.style('display', 'inline');
|
|
7129
7092
|
});
|
|
7130
|
-
el.on(
|
|
7093
|
+
el.on("mouseout.".concat(evSuffix), function () {
|
|
7131
7094
|
state.mouseInside = false;
|
|
7132
7095
|
state.tooltipEl.style('display', 'none');
|
|
7133
7096
|
});
|
|
@@ -11043,7 +11006,7 @@
|
|
|
11043
11006
|
function _toPrimitive(t, r) {
|
|
11044
11007
|
if ("object" != typeof t || !t) return t;
|
|
11045
11008
|
var e = t[Symbol.toPrimitive];
|
|
11046
|
-
if (
|
|
11009
|
+
if (void 0 !== e) {
|
|
11047
11010
|
var i = e.call(t, r );
|
|
11048
11011
|
if ("object" != typeof i) return i;
|
|
11049
11012
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -11058,7 +11021,7 @@
|
|
|
11058
11021
|
if (r) {
|
|
11059
11022
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
11060
11023
|
var t = {}.toString.call(r).slice(8, -1);
|
|
11061
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
11024
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
11062
11025
|
}
|
|
11063
11026
|
}
|
|
11064
11027
|
|
|
@@ -11232,11 +11195,11 @@
|
|
|
11232
11195
|
links = _ref.links;
|
|
11233
11196
|
var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
11234
11197
|
_ref2$nodeFilter = _ref2.nodeFilter,
|
|
11235
|
-
nodeFilter = _ref2$nodeFilter ===
|
|
11198
|
+
nodeFilter = _ref2$nodeFilter === void 0 ? function () {
|
|
11236
11199
|
return true;
|
|
11237
11200
|
} : _ref2$nodeFilter,
|
|
11238
11201
|
_ref2$onLoopError = _ref2.onLoopError,
|
|
11239
|
-
onLoopError = _ref2$onLoopError ===
|
|
11202
|
+
onLoopError = _ref2$onLoopError === void 0 ? function (loopIds) {
|
|
11240
11203
|
throw "Invalid DAG structure! Found cycle in node path: ".concat(loopIds.join(' -> '), ".");
|
|
11241
11204
|
} : _ref2$onLoopError;
|
|
11242
11205
|
// linked graph
|
|
@@ -12460,6 +12423,10 @@
|
|
|
12460
12423
|
var initPos = obj.__initialDragPos;
|
|
12461
12424
|
var dragPos = ev;
|
|
12462
12425
|
var k = transform(state.canvas).k;
|
|
12426
|
+
var translate = {
|
|
12427
|
+
x: initPos.x + (dragPos.x - initPos.x) / k - obj.x,
|
|
12428
|
+
y: initPos.y + (dragPos.y - initPos.y) / k - obj.y
|
|
12429
|
+
};
|
|
12463
12430
|
|
|
12464
12431
|
// Move fx/fy (and x/y) of nodes based on the scaled drag distance since the drag start
|
|
12465
12432
|
['x', 'y'].forEach(function (c) {
|
|
@@ -12470,10 +12437,6 @@
|
|
|
12470
12437
|
if (!obj.__dragged && DRAG_CLICK_TOLERANCE_PX >= Math.sqrt(sum(['x', 'y'].map(function (k) {
|
|
12471
12438
|
return Math.pow(ev[k] - initPos[k], 2);
|
|
12472
12439
|
})))) return;
|
|
12473
|
-
var translate = {
|
|
12474
|
-
x: initPos.x + (dragPos.x - initPos.x) / k - obj.x,
|
|
12475
|
-
y: initPos.y + (dragPos.y - initPos.y) / k - obj.y
|
|
12476
|
-
};
|
|
12477
12440
|
state.forceGraph.d3AlphaTarget(0.3) // keep engine running at low intensity throughout drag
|
|
12478
12441
|
.resetCountdown(); // prevent freeze while dragging
|
|
12479
12442
|
|
|
@@ -12595,7 +12558,7 @@
|
|
|
12595
12558
|
// mouse left-click or touch
|
|
12596
12559
|
if (state.hoverObj) {
|
|
12597
12560
|
var fn = state["on".concat(state.hoverObj.type, "Click")];
|
|
12598
|
-
fn && fn.apply(
|
|
12561
|
+
fn && fn.apply(void 0, [state.hoverObj.d].concat(cbEvents));
|
|
12599
12562
|
} else {
|
|
12600
12563
|
state.onBackgroundClick && state.onBackgroundClick.apply(state, cbEvents);
|
|
12601
12564
|
}
|
|
@@ -12604,7 +12567,7 @@
|
|
|
12604
12567
|
// mouse right-click
|
|
12605
12568
|
if (state.hoverObj) {
|
|
12606
12569
|
var _fn = state["on".concat(state.hoverObj.type, "RightClick")];
|
|
12607
|
-
_fn && _fn.apply(
|
|
12570
|
+
_fn && _fn.apply(void 0, [state.hoverObj.d].concat(cbEvents));
|
|
12608
12571
|
} else {
|
|
12609
12572
|
state.onBackgroundRightClick && state.onBackgroundRightClick.apply(state, cbEvents);
|
|
12610
12573
|
}
|