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.
@@ -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.4
8
- * @date 2022-03-15T15:23:59.245Z
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
- * [[DataSet]] code that can be reused in [[DataView]] or other similar implementations of [[DataInterface]].
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
- * [[DataStream]] offers an always up to date stream of items from a [[DataSet]] or [[DataView]].
480
- * That means that the stream is evaluated at the time of iteration, conversion to another data type or when [[cache]] is called, not when the [[DataStream]] was created.
481
- * Multiple invocations of for example [[toItemArray]] may yield different results (if the data source like for example [[DataSet]] gets modified).
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 [[DataStream]] would otherwise reevaluate everything upon each iteration.
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 [[DataStream]] with cached items (detached from the original [[DataSet]]).
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 [[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.
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.