vis-data 7.1.5 → 7.1.6
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/esm.js +31 -40
- package/dist/esm.js.map +1 -1
- package/dist/umd.js +31 -40
- package/dist/umd.js.map +1 -1
- package/esnext/esm/vis-data.js +2 -2
- package/esnext/esm/vis-data.min.js +2 -2
- package/esnext/umd/vis-data.js +2 -2
- package/esnext/umd/vis-data.min.js +2 -2
- package/package.json +3 -3
- package/peer/esm/vis-data.js +31 -40
- package/peer/esm/vis-data.js.map +1 -1
- package/peer/esm/vis-data.min.js +4 -4
- package/peer/esm/vis-data.min.js.map +1 -1
- package/peer/umd/vis-data.js +31 -40
- package/peer/umd/vis-data.js.map +1 -1
- package/peer/umd/vis-data.min.js +4 -4
- package/peer/umd/vis-data.min.js.map +1 -1
- package/standalone/esm/vis-data.js +31 -40
- package/standalone/esm/vis-data.js.map +1 -1
- package/standalone/esm/vis-data.min.js +4 -4
- package/standalone/esm/vis-data.min.js.map +1 -1
- package/standalone/umd/vis-data.js +31 -40
- package/standalone/umd/vis-data.js.map +1 -1
- package/standalone/umd/vis-data.min.js +4 -4
- package/standalone/umd/vis-data.min.js.map +1 -1
package/dist/umd.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
|
6
6
|
*
|
|
7
|
-
* @version 7.1.
|
|
8
|
-
* @date 2023-03-
|
|
7
|
+
* @version 7.1.6
|
|
8
|
+
* @date 2023-03-22T11:40:25.511Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -2567,10 +2567,10 @@
|
|
|
2567
2567
|
var thisSymbolValue = uncurryThis$8(Symbol$1.prototype.valueOf);
|
|
2568
2568
|
var WellKnownSymbolsStore = shared('wks');
|
|
2569
2569
|
|
|
2570
|
-
for (var i
|
|
2570
|
+
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol$1), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
2571
2571
|
// some old engines throws on access to some keys like `arguments` or `caller`
|
|
2572
2572
|
try {
|
|
2573
|
-
var symbolKey = symbolKeys[i
|
|
2573
|
+
var symbolKey = symbolKeys[i];
|
|
2574
2574
|
if (isSymbol(Symbol$1[symbolKey])) wellKnownSymbol$8(symbolKey);
|
|
2575
2575
|
} catch (error) { /* empty */ }
|
|
2576
2576
|
}
|
|
@@ -10533,7 +10533,7 @@
|
|
|
10533
10533
|
var _valuesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(valuesExports);
|
|
10534
10534
|
|
|
10535
10535
|
var stringifyExports = {};
|
|
10536
|
-
var stringify$
|
|
10536
|
+
var stringify$2 = {
|
|
10537
10537
|
get exports(){ return stringifyExports; },
|
|
10538
10538
|
set exports(v){ stringifyExports = v; },
|
|
10539
10539
|
};
|
|
@@ -10545,17 +10545,17 @@
|
|
|
10545
10545
|
if (!path$3.JSON) path$3.JSON = { stringify: JSON.stringify };
|
|
10546
10546
|
|
|
10547
10547
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
10548
|
-
var stringify$
|
|
10548
|
+
var stringify$1 = function stringify(it, replacer, space) {
|
|
10549
10549
|
return apply$1(path$3.JSON.stringify, null, arguments);
|
|
10550
10550
|
};
|
|
10551
10551
|
|
|
10552
|
-
var parent$7 = stringify$
|
|
10552
|
+
var parent$7 = stringify$1;
|
|
10553
10553
|
|
|
10554
|
-
var stringify
|
|
10554
|
+
var stringify = parent$7;
|
|
10555
10555
|
|
|
10556
10556
|
(function (module) {
|
|
10557
|
-
module.exports = stringify
|
|
10558
|
-
} (stringify$
|
|
10557
|
+
module.exports = stringify;
|
|
10558
|
+
} (stringify$2));
|
|
10559
10559
|
|
|
10560
10560
|
var _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);
|
|
10561
10561
|
|
|
@@ -10612,14 +10612,13 @@
|
|
|
10612
10612
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
10613
10613
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
10614
10614
|
// generators (like Math.random()).
|
|
10615
|
-
|
|
10616
|
-
|
|
10615
|
+
let getRandomValues;
|
|
10616
|
+
const rnds8 = new Uint8Array(16);
|
|
10617
10617
|
function rng() {
|
|
10618
10618
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
10619
10619
|
if (!getRandomValues) {
|
|
10620
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10621
|
-
|
|
10622
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
10620
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10621
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
10623
10622
|
|
|
10624
10623
|
if (!getRandomValues) {
|
|
10625
10624
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
@@ -10629,43 +10628,35 @@
|
|
|
10629
10628
|
return getRandomValues(rnds8);
|
|
10630
10629
|
}
|
|
10631
10630
|
|
|
10632
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
10633
|
-
|
|
10634
|
-
function validate(uuid) {
|
|
10635
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
10636
|
-
}
|
|
10637
|
-
|
|
10638
10631
|
/**
|
|
10639
10632
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
10640
10633
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
10641
10634
|
*/
|
|
10642
10635
|
|
|
10643
|
-
|
|
10636
|
+
const byteToHex = [];
|
|
10644
10637
|
|
|
10645
|
-
for (
|
|
10646
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
10638
|
+
for (let i = 0; i < 256; ++i) {
|
|
10639
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
10647
10640
|
}
|
|
10648
10641
|
|
|
10649
|
-
function
|
|
10650
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
10642
|
+
function unsafeStringify(arr, offset = 0) {
|
|
10651
10643
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
10652
10644
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
10653
|
-
|
|
10654
|
-
// of the following:
|
|
10655
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
10656
|
-
// "undefined" in the uuid)
|
|
10657
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
10658
|
-
|
|
10659
|
-
if (!validate(uuid)) {
|
|
10660
|
-
throw TypeError('Stringified UUID is invalid');
|
|
10661
|
-
}
|
|
10662
|
-
|
|
10663
|
-
return uuid;
|
|
10645
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
10664
10646
|
}
|
|
10665
10647
|
|
|
10648
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
10649
|
+
var native = {
|
|
10650
|
+
randomUUID
|
|
10651
|
+
};
|
|
10652
|
+
|
|
10666
10653
|
function v4(options, buf, offset) {
|
|
10654
|
+
if (native.randomUUID && !buf && !options) {
|
|
10655
|
+
return native.randomUUID();
|
|
10656
|
+
}
|
|
10657
|
+
|
|
10667
10658
|
options = options || {};
|
|
10668
|
-
|
|
10659
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
10669
10660
|
|
|
10670
10661
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
10671
10662
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
@@ -10673,14 +10664,14 @@
|
|
|
10673
10664
|
if (buf) {
|
|
10674
10665
|
offset = offset || 0;
|
|
10675
10666
|
|
|
10676
|
-
for (
|
|
10667
|
+
for (let i = 0; i < 16; ++i) {
|
|
10677
10668
|
buf[offset + i] = rnds[i];
|
|
10678
10669
|
}
|
|
10679
10670
|
|
|
10680
10671
|
return buf;
|
|
10681
10672
|
}
|
|
10682
10673
|
|
|
10683
|
-
return
|
|
10674
|
+
return unsafeStringify(rnds);
|
|
10684
10675
|
}
|
|
10685
10676
|
|
|
10686
10677
|
/**
|