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/esm/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
|
|
@@ -412,7 +412,7 @@ class Queue {
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
|
-
*
|
|
415
|
+
* {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.
|
|
416
416
|
*
|
|
417
417
|
* @typeParam Item - Item type that may or may not have an id.
|
|
418
418
|
* @typeParam IdProp - Name of the property that contains the id.
|
|
@@ -476,9 +476,9 @@ class DataSetPart {
|
|
|
476
476
|
* Data stream
|
|
477
477
|
*
|
|
478
478
|
* @remarks
|
|
479
|
-
*
|
|
480
|
-
* That means that the stream is evaluated at the time of iteration, conversion to another data type or when
|
|
481
|
-
* Multiple invocations of for example
|
|
479
|
+
* {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.
|
|
480
|
+
* 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.
|
|
481
|
+
* Multiple invocations of for example {@link toItemArray} may yield different results (if the data source like for example {@link DataSet} gets modified).
|
|
482
482
|
* @typeParam Item - The item type this stream is going to work with.
|
|
483
483
|
*/
|
|
484
484
|
class DataStream {
|
|
@@ -596,7 +596,7 @@ class DataStream {
|
|
|
596
596
|
*
|
|
597
597
|
* @remarks
|
|
598
598
|
* This method allows for items to be fetched immediatelly and used (possibly multiple times) later.
|
|
599
|
-
* It can also be used to optimize performance as
|
|
599
|
+
* It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.
|
|
600
600
|
*
|
|
601
601
|
* ## Example
|
|
602
602
|
* ```javascript
|
|
@@ -611,7 +611,7 @@ class DataStream {
|
|
|
611
611
|
* ds.clear()
|
|
612
612
|
* chachedStream // Still has all the items.
|
|
613
613
|
* ```
|
|
614
|
-
* @returns A new
|
|
614
|
+
* @returns A new {@link DataStream} with cached items (detached from the original {@link DataSet}).
|
|
615
615
|
*/
|
|
616
616
|
cache() {
|
|
617
617
|
return new DataStream([...this._pairs]);
|
|
@@ -1454,7 +1454,7 @@ class DataSet extends DataSetPart {
|
|
|
1454
1454
|
/**
|
|
1455
1455
|
* Clear the entire data set.
|
|
1456
1456
|
*
|
|
1457
|
-
* After the items are removed, the
|
|
1457
|
+
* 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.
|
|
1458
1458
|
*
|
|
1459
1459
|
* @param senderId - Sender id.
|
|
1460
1460
|
* @returns removedIds - The ids of all removed items.
|