vis-data 7.1.4 → 7.1.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/declarations/data-interface.d.ts +13 -13
- package/declarations/data-interface.d.ts.map +1 -1
- package/declarations/data-set-part.d.ts +3 -3
- package/declarations/data-set-part.d.ts.map +1 -1
- package/declarations/data-set.d.ts +2 -2
- package/declarations/data-stream.d.ts +5 -5
- package/dist/esm.js +8958 -8218
- package/dist/esm.js.map +1 -1
- package/dist/umd.js +8964 -8224
- package/dist/umd.js.map +1 -1
- package/esnext/esm/vis-data.js +9 -9
- package/esnext/esm/vis-data.js.map +1 -1
- package/esnext/esm/vis-data.min.js +2 -2
- package/esnext/esm/vis-data.min.js.map +1 -1
- package/esnext/umd/vis-data.js +9 -11
- package/esnext/umd/vis-data.js.map +1 -1
- package/esnext/umd/vis-data.min.js +3 -3
- package/esnext/umd/vis-data.min.js.map +1 -1
- package/package.json +46 -43
- package/peer/esm/vis-data.js +6662 -5467
- 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 +6662 -5469
- 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 +6662 -5467
- 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 +6662 -5469
- 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/esnext/umd/vis-data.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
|
|
7
|
+
* @version 7.1.5
|
|
8
|
+
* @date 2023-03-21T20:54:51.525Z
|
|
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
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
/**
|
|
416
|
-
*
|
|
416
|
+
* {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.
|
|
417
417
|
*
|
|
418
418
|
* @typeParam Item - Item type that may or may not have an id.
|
|
419
419
|
* @typeParam IdProp - Name of the property that contains the id.
|
|
@@ -477,9 +477,9 @@
|
|
|
477
477
|
* Data stream
|
|
478
478
|
*
|
|
479
479
|
* @remarks
|
|
480
|
-
*
|
|
481
|
-
* That means that the stream is evaluated at the time of iteration, conversion to another data type or when
|
|
482
|
-
* Multiple invocations of for example
|
|
480
|
+
* {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.
|
|
481
|
+
* That means that the stream is evaluated at the time of iteration, conversion to another data type or when {@link cache} is called, not when the {@link DataStream} was created.
|
|
482
|
+
* Multiple invocations of for example {@link toItemArray} may yield different results (if the data source like for example {@link DataSet} gets modified).
|
|
483
483
|
* @typeParam Item - The item type this stream is going to work with.
|
|
484
484
|
*/
|
|
485
485
|
class DataStream {
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
*
|
|
598
598
|
* @remarks
|
|
599
599
|
* This method allows for items to be fetched immediatelly and used (possibly multiple times) later.
|
|
600
|
-
* It can also be used to optimize performance as
|
|
600
|
+
* It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.
|
|
601
601
|
*
|
|
602
602
|
* ## Example
|
|
603
603
|
* ```javascript
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
* ds.clear()
|
|
613
613
|
* chachedStream // Still has all the items.
|
|
614
614
|
* ```
|
|
615
|
-
* @returns A new
|
|
615
|
+
* @returns A new {@link DataStream} with cached items (detached from the original {@link DataSet}).
|
|
616
616
|
*/
|
|
617
617
|
cache() {
|
|
618
618
|
return new DataStream([...this._pairs]);
|
|
@@ -1455,7 +1455,7 @@
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Clear the entire data set.
|
|
1457
1457
|
*
|
|
1458
|
-
* After the items are removed, the
|
|
1458
|
+
* After the items are removed, the {@link DataSet} will trigger an event `remove` for all removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.
|
|
1459
1459
|
*
|
|
1460
1460
|
* @param senderId - Sender id.
|
|
1461
1461
|
* @returns removedIds - The ids of all removed items.
|
|
@@ -2057,7 +2057,5 @@
|
|
|
2057
2057
|
exports.isDataSetLike = isDataSetLike;
|
|
2058
2058
|
exports.isDataViewLike = isDataViewLike;
|
|
2059
2059
|
|
|
2060
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2061
|
-
|
|
2062
2060
|
}));
|
|
2063
2061
|
//# sourceMappingURL=vis-data.js.map
|