vis-data 7.1.8 → 7.1.10
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 +0 -46
- package/declarations/data-interface.d.ts.map +1 -1
- package/declarations/data-pipe.d.ts +0 -8
- package/declarations/data-pipe.d.ts.map +1 -1
- package/declarations/data-set-check.d.ts +0 -1
- package/declarations/data-set-check.d.ts.map +1 -1
- package/declarations/data-set-part.d.ts +0 -1
- package/declarations/data-set-part.d.ts.map +1 -1
- package/declarations/data-set.d.ts +14 -28
- package/declarations/data-set.d.ts.map +1 -1
- package/declarations/data-stream.d.ts +0 -18
- package/declarations/data-stream.d.ts.map +1 -1
- package/declarations/data-view-check.d.ts +0 -1
- package/declarations/data-view-check.d.ts.map +1 -1
- package/declarations/data-view.d.ts +9 -15
- package/declarations/data-view.d.ts.map +1 -1
- package/declarations/queue.d.ts +0 -7
- package/declarations/queue.d.ts.map +1 -1
- package/dist/esm.js +133 -266
- package/dist/esm.js.map +1 -1
- package/dist/umd.js +133 -266
- package/dist/umd.js.map +1 -1
- package/esnext/esm/vis-data.js +25 -91
- 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 +25 -91
- package/esnext/umd/vis-data.js.map +1 -1
- package/esnext/umd/vis-data.min.js +2 -2
- package/esnext/umd/vis-data.min.js.map +1 -1
- package/package.json +19 -14
- package/peer/esm/vis-data.js +131 -264
- 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 +131 -264
- 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 +131 -264
- 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 +131 -264
- 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
|
@@ -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.10
|
|
8
|
+
* @date 2025-07-06T08:42:20.006Z
|
|
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
|
|
@@ -3174,7 +3174,6 @@ var _flatMapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(flatMap);
|
|
|
3174
3174
|
|
|
3175
3175
|
/**
|
|
3176
3176
|
* Create new data pipe.
|
|
3177
|
-
*
|
|
3178
3177
|
* @param from - The source data set or data view.
|
|
3179
3178
|
* @remarks
|
|
3180
3179
|
* Example usage:
|
|
@@ -3210,7 +3209,6 @@ function createNewDataPipeFrom(from) {
|
|
|
3210
3209
|
/**
|
|
3211
3210
|
* Internal implementation of the pipe. This should be accessible only through
|
|
3212
3211
|
* `createNewDataPipeFrom` from the outside.
|
|
3213
|
-
*
|
|
3214
3212
|
* @typeParam SI - Source item type.
|
|
3215
3213
|
* @typeParam SP - Source item type's id property name.
|
|
3216
3214
|
* @typeParam TI - Target item type.
|
|
@@ -3219,7 +3217,6 @@ function createNewDataPipeFrom(from) {
|
|
|
3219
3217
|
var SimpleDataPipe = /*#__PURE__*/function () {
|
|
3220
3218
|
/**
|
|
3221
3219
|
* Create a new data pipe.
|
|
3222
|
-
*
|
|
3223
3220
|
* @param _source - The data set or data view that will be observed.
|
|
3224
3221
|
* @param _transformers - An array of transforming functions to be used to
|
|
3225
3222
|
* filter or transform the items in the pipe.
|
|
@@ -3267,7 +3264,6 @@ var SimpleDataPipe = /*#__PURE__*/function () {
|
|
|
3267
3264
|
}
|
|
3268
3265
|
/**
|
|
3269
3266
|
* Apply the transformers to the items.
|
|
3270
|
-
*
|
|
3271
3267
|
* @param items - The items to be transformed.
|
|
3272
3268
|
* @returns The transformed items.
|
|
3273
3269
|
*/
|
|
@@ -3281,7 +3277,6 @@ var SimpleDataPipe = /*#__PURE__*/function () {
|
|
|
3281
3277
|
}
|
|
3282
3278
|
/**
|
|
3283
3279
|
* Handle an add event.
|
|
3284
|
-
*
|
|
3285
3280
|
* @param _name - Ignored.
|
|
3286
3281
|
* @param payload - The payload containing the ids of the added items.
|
|
3287
3282
|
*/
|
|
@@ -3295,7 +3290,6 @@ var SimpleDataPipe = /*#__PURE__*/function () {
|
|
|
3295
3290
|
}
|
|
3296
3291
|
/**
|
|
3297
3292
|
* Handle an update event.
|
|
3298
|
-
*
|
|
3299
3293
|
* @param _name - Ignored.
|
|
3300
3294
|
* @param payload - The payload containing the ids of the updated items.
|
|
3301
3295
|
*/
|
|
@@ -3309,7 +3303,6 @@ var SimpleDataPipe = /*#__PURE__*/function () {
|
|
|
3309
3303
|
}
|
|
3310
3304
|
/**
|
|
3311
3305
|
* Handle a remove event.
|
|
3312
|
-
*
|
|
3313
3306
|
* @param _name - Ignored.
|
|
3314
3307
|
* @param payload - The payload containing the data of the removed items.
|
|
3315
3308
|
*/
|
|
@@ -3327,7 +3320,6 @@ var SimpleDataPipe = /*#__PURE__*/function () {
|
|
|
3327
3320
|
/**
|
|
3328
3321
|
* Internal implementation of the pipe factory. This should be accessible
|
|
3329
3322
|
* only through `createNewDataPipeFrom` from the outside.
|
|
3330
|
-
*
|
|
3331
3323
|
* @typeParam TI - Target item type.
|
|
3332
3324
|
* @typeParam TP - Target item type's id property name.
|
|
3333
3325
|
*/
|
|
@@ -3335,7 +3327,6 @@ var DataPipeUnderConstruction = /*#__PURE__*/function () {
|
|
|
3335
3327
|
/**
|
|
3336
3328
|
* Create a new data pipe factory. This is an internal constructor that
|
|
3337
3329
|
* should never be called from outside of this file.
|
|
3338
|
-
*
|
|
3339
3330
|
* @param _source - The source data set or data view for this pipe.
|
|
3340
3331
|
*/
|
|
3341
3332
|
function DataPipeUnderConstruction(_source) {
|
|
@@ -3349,7 +3340,6 @@ var DataPipeUnderConstruction = /*#__PURE__*/function () {
|
|
|
3349
3340
|
}
|
|
3350
3341
|
/**
|
|
3351
3342
|
* Filter the items.
|
|
3352
|
-
*
|
|
3353
3343
|
* @param callback - A filtering function that returns true if given item
|
|
3354
3344
|
* should be piped and false if not.
|
|
3355
3345
|
* @returns This factory for further configuration.
|
|
@@ -3364,7 +3354,6 @@ var DataPipeUnderConstruction = /*#__PURE__*/function () {
|
|
|
3364
3354
|
}
|
|
3365
3355
|
/**
|
|
3366
3356
|
* Map each source item to a new type.
|
|
3367
|
-
*
|
|
3368
3357
|
* @param callback - A mapping function that takes a source item and returns
|
|
3369
3358
|
* corresponding mapped item.
|
|
3370
3359
|
* @typeParam TI - Target item type.
|
|
@@ -3381,7 +3370,6 @@ var DataPipeUnderConstruction = /*#__PURE__*/function () {
|
|
|
3381
3370
|
}
|
|
3382
3371
|
/**
|
|
3383
3372
|
* Map each source item to zero or more items of a new type.
|
|
3384
|
-
*
|
|
3385
3373
|
* @param callback - A mapping function that takes a source item and returns
|
|
3386
3374
|
* an array of corresponding mapped items.
|
|
3387
3375
|
* @typeParam TI - Target item type.
|
|
@@ -3398,7 +3386,6 @@ var DataPipeUnderConstruction = /*#__PURE__*/function () {
|
|
|
3398
3386
|
}
|
|
3399
3387
|
/**
|
|
3400
3388
|
* Connect this pipe to given data set.
|
|
3401
|
-
*
|
|
3402
3389
|
* @param target - The data set that will receive the items from this pipe.
|
|
3403
3390
|
* @returns The pipe connected between given data sets and performing
|
|
3404
3391
|
* configured transformation on the processed items.
|
|
@@ -4430,179 +4417,112 @@ var _setTimeout = /*@__PURE__*/getDefaultExportFromCjs(setTimeout$1);
|
|
|
4430
4417
|
var componentEmitter = {exports: {}};
|
|
4431
4418
|
|
|
4432
4419
|
(function (module) {
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
}
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
function
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
}
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
Emitter.prototype.
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
if (cb === fn || cb.fn === fn) {
|
|
4540
|
-
callbacks.splice(i, 1);
|
|
4541
|
-
break;
|
|
4542
|
-
}
|
|
4543
|
-
}
|
|
4544
|
-
|
|
4545
|
-
// Remove event specific arrays for event types that no
|
|
4546
|
-
// one is subscribed for to avoid memory leak.
|
|
4547
|
-
if (callbacks.length === 0) {
|
|
4548
|
-
delete this._callbacks['$' + event];
|
|
4549
|
-
}
|
|
4550
|
-
|
|
4551
|
-
return this;
|
|
4552
|
-
};
|
|
4553
|
-
|
|
4554
|
-
/**
|
|
4555
|
-
* Emit `event` with the given args.
|
|
4556
|
-
*
|
|
4557
|
-
* @param {String} event
|
|
4558
|
-
* @param {Mixed} ...
|
|
4559
|
-
* @return {Emitter}
|
|
4560
|
-
*/
|
|
4561
|
-
|
|
4562
|
-
Emitter.prototype.emit = function(event){
|
|
4563
|
-
this._callbacks = this._callbacks || {};
|
|
4564
|
-
|
|
4565
|
-
var args = new Array(arguments.length - 1)
|
|
4566
|
-
, callbacks = this._callbacks['$' + event];
|
|
4567
|
-
|
|
4568
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4569
|
-
args[i - 1] = arguments[i];
|
|
4570
|
-
}
|
|
4571
|
-
|
|
4572
|
-
if (callbacks) {
|
|
4573
|
-
callbacks = callbacks.slice(0);
|
|
4574
|
-
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
4575
|
-
callbacks[i].apply(this, args);
|
|
4576
|
-
}
|
|
4577
|
-
}
|
|
4578
|
-
|
|
4579
|
-
return this;
|
|
4580
|
-
};
|
|
4581
|
-
|
|
4582
|
-
/**
|
|
4583
|
-
* Return array of callbacks for `event`.
|
|
4584
|
-
*
|
|
4585
|
-
* @param {String} event
|
|
4586
|
-
* @return {Array}
|
|
4587
|
-
* @api public
|
|
4588
|
-
*/
|
|
4589
|
-
|
|
4590
|
-
Emitter.prototype.listeners = function(event){
|
|
4591
|
-
this._callbacks = this._callbacks || {};
|
|
4592
|
-
return this._callbacks['$' + event] || [];
|
|
4593
|
-
};
|
|
4594
|
-
|
|
4595
|
-
/**
|
|
4596
|
-
* Check if this emitter has `event` handlers.
|
|
4597
|
-
*
|
|
4598
|
-
* @param {String} event
|
|
4599
|
-
* @return {Boolean}
|
|
4600
|
-
* @api public
|
|
4601
|
-
*/
|
|
4602
|
-
|
|
4603
|
-
Emitter.prototype.hasListeners = function(event){
|
|
4604
|
-
return !! this.listeners(event).length;
|
|
4605
|
-
};
|
|
4420
|
+
function Emitter(object) {
|
|
4421
|
+
if (object) {
|
|
4422
|
+
return mixin(object);
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4425
|
+
this._callbacks = new Map();
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
function mixin(object) {
|
|
4429
|
+
Object.assign(object, Emitter.prototype);
|
|
4430
|
+
object._callbacks = new Map();
|
|
4431
|
+
return object;
|
|
4432
|
+
}
|
|
4433
|
+
|
|
4434
|
+
Emitter.prototype.on = function (event, listener) {
|
|
4435
|
+
const callbacks = this._callbacks.get(event) ?? [];
|
|
4436
|
+
callbacks.push(listener);
|
|
4437
|
+
this._callbacks.set(event, callbacks);
|
|
4438
|
+
return this;
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
Emitter.prototype.once = function (event, listener) {
|
|
4442
|
+
const on = (...arguments_) => {
|
|
4443
|
+
this.off(event, on);
|
|
4444
|
+
listener.apply(this, arguments_);
|
|
4445
|
+
};
|
|
4446
|
+
|
|
4447
|
+
on.fn = listener;
|
|
4448
|
+
this.on(event, on);
|
|
4449
|
+
return this;
|
|
4450
|
+
};
|
|
4451
|
+
|
|
4452
|
+
Emitter.prototype.off = function (event, listener) {
|
|
4453
|
+
if (event === undefined && listener === undefined) {
|
|
4454
|
+
this._callbacks.clear();
|
|
4455
|
+
return this;
|
|
4456
|
+
}
|
|
4457
|
+
|
|
4458
|
+
if (listener === undefined) {
|
|
4459
|
+
this._callbacks.delete(event);
|
|
4460
|
+
return this;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
const callbacks = this._callbacks.get(event);
|
|
4464
|
+
if (callbacks) {
|
|
4465
|
+
for (const [index, callback] of callbacks.entries()) {
|
|
4466
|
+
if (callback === listener || callback.fn === listener) {
|
|
4467
|
+
callbacks.splice(index, 1);
|
|
4468
|
+
break;
|
|
4469
|
+
}
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
if (callbacks.length === 0) {
|
|
4473
|
+
this._callbacks.delete(event);
|
|
4474
|
+
} else {
|
|
4475
|
+
this._callbacks.set(event, callbacks);
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
return this;
|
|
4480
|
+
};
|
|
4481
|
+
|
|
4482
|
+
Emitter.prototype.emit = function (event, ...arguments_) {
|
|
4483
|
+
const callbacks = this._callbacks.get(event);
|
|
4484
|
+
if (callbacks) {
|
|
4485
|
+
// Create a copy of the callbacks array to avoid issues if it's modified during iteration
|
|
4486
|
+
const callbacksCopy = [...callbacks];
|
|
4487
|
+
|
|
4488
|
+
for (const callback of callbacksCopy) {
|
|
4489
|
+
callback.apply(this, arguments_);
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
return this;
|
|
4494
|
+
};
|
|
4495
|
+
|
|
4496
|
+
Emitter.prototype.listeners = function (event) {
|
|
4497
|
+
return this._callbacks.get(event) ?? [];
|
|
4498
|
+
};
|
|
4499
|
+
|
|
4500
|
+
Emitter.prototype.listenerCount = function (event) {
|
|
4501
|
+
if (event) {
|
|
4502
|
+
return this.listeners(event).length;
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
let totalCount = 0;
|
|
4506
|
+
for (const callbacks of this._callbacks.values()) {
|
|
4507
|
+
totalCount += callbacks.length;
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
return totalCount;
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
Emitter.prototype.hasListeners = function (event) {
|
|
4514
|
+
return this.listenerCount(event) > 0;
|
|
4515
|
+
};
|
|
4516
|
+
|
|
4517
|
+
// Aliases
|
|
4518
|
+
Emitter.prototype.addEventListener = Emitter.prototype.on;
|
|
4519
|
+
Emitter.prototype.removeListener = Emitter.prototype.off;
|
|
4520
|
+
Emitter.prototype.removeEventListener = Emitter.prototype.off;
|
|
4521
|
+
Emitter.prototype.removeAllListeners = Emitter.prototype.off;
|
|
4522
|
+
|
|
4523
|
+
{
|
|
4524
|
+
module.exports = Emitter;
|
|
4525
|
+
}
|
|
4606
4526
|
} (componentEmitter));
|
|
4607
4527
|
|
|
4608
4528
|
var componentEmitterExports = componentEmitter.exports;
|
|
@@ -10565,7 +10485,6 @@ function v4(options, buf, offset) {
|
|
|
10565
10485
|
|
|
10566
10486
|
/**
|
|
10567
10487
|
* Determine whether a value can be used as an id.
|
|
10568
|
-
*
|
|
10569
10488
|
* @param value - Input value of unknown type.
|
|
10570
10489
|
* @returns True if the value is valid id, false otherwise.
|
|
10571
10490
|
*/
|
|
@@ -10575,13 +10494,11 @@ function isId(value) {
|
|
|
10575
10494
|
|
|
10576
10495
|
/**
|
|
10577
10496
|
* A queue.
|
|
10578
|
-
*
|
|
10579
10497
|
* @typeParam T - The type of method names to be replaced by queued versions.
|
|
10580
10498
|
*/
|
|
10581
10499
|
var Queue = /*#__PURE__*/function () {
|
|
10582
10500
|
/**
|
|
10583
10501
|
* Construct a new Queue.
|
|
10584
|
-
*
|
|
10585
10502
|
* @param options - Queue configuration.
|
|
10586
10503
|
*/
|
|
10587
10504
|
function Queue(options) {
|
|
@@ -10598,7 +10515,6 @@ var Queue = /*#__PURE__*/function () {
|
|
|
10598
10515
|
}
|
|
10599
10516
|
/**
|
|
10600
10517
|
* Update the configuration of the queue.
|
|
10601
|
-
*
|
|
10602
10518
|
* @param options - Queue configuration.
|
|
10603
10519
|
*/
|
|
10604
10520
|
_createClass(Queue, [{
|
|
@@ -10615,7 +10531,6 @@ var Queue = /*#__PURE__*/function () {
|
|
|
10615
10531
|
/**
|
|
10616
10532
|
* Extend an object with queuing functionality.
|
|
10617
10533
|
* The object will be extended with a function flush, and the methods provided in options.replace will be replaced with queued ones.
|
|
10618
|
-
*
|
|
10619
10534
|
* @param object - The object to be extended.
|
|
10620
10535
|
* @param options - Additional options.
|
|
10621
10536
|
* @returns The created queue.
|
|
@@ -10646,7 +10561,6 @@ var Queue = /*#__PURE__*/function () {
|
|
|
10646
10561
|
}
|
|
10647
10562
|
/**
|
|
10648
10563
|
* Replace a method on an object with a queued version.
|
|
10649
|
-
*
|
|
10650
10564
|
* @param object - Object having the method.
|
|
10651
10565
|
* @param method - The method name.
|
|
10652
10566
|
*/
|
|
@@ -10673,7 +10587,6 @@ var Queue = /*#__PURE__*/function () {
|
|
|
10673
10587
|
}
|
|
10674
10588
|
/**
|
|
10675
10589
|
* Queue a call.
|
|
10676
|
-
*
|
|
10677
10590
|
* @param entry - The function or entry to be queued.
|
|
10678
10591
|
*/
|
|
10679
10592
|
}, {
|
|
@@ -10759,7 +10672,6 @@ var Queue = /*#__PURE__*/function () {
|
|
|
10759
10672
|
|
|
10760
10673
|
/**
|
|
10761
10674
|
* {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.
|
|
10762
|
-
*
|
|
10763
10675
|
* @typeParam Item - Item type that may or may not have an id.
|
|
10764
10676
|
* @typeParam IdProp - Name of the property that contains the id.
|
|
10765
10677
|
*/
|
|
@@ -10786,7 +10698,6 @@ var DataSetPart = /*#__PURE__*/function () {
|
|
|
10786
10698
|
value:
|
|
10787
10699
|
/**
|
|
10788
10700
|
* Trigger an event
|
|
10789
|
-
*
|
|
10790
10701
|
* @param event - Event name.
|
|
10791
10702
|
* @param payload - Event payload.
|
|
10792
10703
|
* @param senderId - Id of the sender.
|
|
@@ -10802,7 +10713,6 @@ var DataSetPart = /*#__PURE__*/function () {
|
|
|
10802
10713
|
}
|
|
10803
10714
|
/**
|
|
10804
10715
|
* Subscribe to an event, add an event listener.
|
|
10805
|
-
*
|
|
10806
10716
|
* @remarks Non-function callbacks are ignored.
|
|
10807
10717
|
* @param event - Event name.
|
|
10808
10718
|
* @param callback - Callback method.
|
|
@@ -10817,7 +10727,6 @@ var DataSetPart = /*#__PURE__*/function () {
|
|
|
10817
10727
|
}
|
|
10818
10728
|
/**
|
|
10819
10729
|
* Unsubscribe from an event, remove an event listener.
|
|
10820
|
-
*
|
|
10821
10730
|
* @remarks If the same callback was subscribed more than once **all** occurences will be removed.
|
|
10822
10731
|
* @param event - Event name.
|
|
10823
10732
|
* @param callback - Callback method.
|
|
@@ -10884,7 +10793,6 @@ function _unsupportedIterableToArray$2(o, minLen) { var _context10; if (!o) retu
|
|
|
10884
10793
|
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10885
10794
|
/**
|
|
10886
10795
|
* Data stream
|
|
10887
|
-
*
|
|
10888
10796
|
* @remarks
|
|
10889
10797
|
* {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.
|
|
10890
10798
|
* 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.
|
|
@@ -10894,7 +10802,6 @@ function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) le
|
|
|
10894
10802
|
var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
10895
10803
|
/**
|
|
10896
10804
|
* Create a new data stream.
|
|
10897
|
-
*
|
|
10898
10805
|
* @param pairs - The id, item pairs.
|
|
10899
10806
|
*/
|
|
10900
10807
|
function DataStream(pairs) {
|
|
@@ -11075,7 +10982,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11075
10982
|
})
|
|
11076
10983
|
/**
|
|
11077
10984
|
* Return an array containing all the ids in this stream.
|
|
11078
|
-
*
|
|
11079
10985
|
* @remarks
|
|
11080
10986
|
* The array may contain duplicities.
|
|
11081
10987
|
* @returns The array with all ids from this stream.
|
|
@@ -11090,7 +10996,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11090
10996
|
}
|
|
11091
10997
|
/**
|
|
11092
10998
|
* Return an array containing all the items in this stream.
|
|
11093
|
-
*
|
|
11094
10999
|
* @remarks
|
|
11095
11000
|
* The array may contain duplicities.
|
|
11096
11001
|
* @returns The array with all items from this stream.
|
|
@@ -11105,7 +11010,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11105
11010
|
}
|
|
11106
11011
|
/**
|
|
11107
11012
|
* Return an array containing all the entries in this stream.
|
|
11108
|
-
*
|
|
11109
11013
|
* @remarks
|
|
11110
11014
|
* The array may contain duplicities.
|
|
11111
11015
|
* @returns The array with all entries from this stream.
|
|
@@ -11117,7 +11021,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11117
11021
|
}
|
|
11118
11022
|
/**
|
|
11119
11023
|
* Return an object map containing all the items in this stream accessible by ids.
|
|
11120
|
-
*
|
|
11121
11024
|
* @remarks
|
|
11122
11025
|
* In case of duplicate ids (coerced to string so `7 == '7'`) the last encoutered appears in the returned object.
|
|
11123
11026
|
* @returns The object map of all id → item pairs from this stream.
|
|
@@ -11144,7 +11047,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11144
11047
|
}
|
|
11145
11048
|
/**
|
|
11146
11049
|
* Return a map containing all the items in this stream accessible by ids.
|
|
11147
|
-
*
|
|
11148
11050
|
* @returns The map of all id → item pairs from this stream.
|
|
11149
11051
|
*/
|
|
11150
11052
|
}, {
|
|
@@ -11154,7 +11056,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11154
11056
|
}
|
|
11155
11057
|
/**
|
|
11156
11058
|
* Return a set containing all the (unique) ids in this stream.
|
|
11157
|
-
*
|
|
11158
11059
|
* @returns The set of all ids from this stream.
|
|
11159
11060
|
*/
|
|
11160
11061
|
}, {
|
|
@@ -11164,7 +11065,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11164
11065
|
}
|
|
11165
11066
|
/**
|
|
11166
11067
|
* Return a set containing all the (unique) items in this stream.
|
|
11167
|
-
*
|
|
11168
11068
|
* @returns The set of all items from this stream.
|
|
11169
11069
|
*/
|
|
11170
11070
|
}, {
|
|
@@ -11174,7 +11074,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11174
11074
|
}
|
|
11175
11075
|
/**
|
|
11176
11076
|
* Cache the items from this stream.
|
|
11177
|
-
*
|
|
11178
11077
|
* @remarks
|
|
11179
11078
|
* This method allows for items to be fetched immediatelly and used (possibly multiple times) later.
|
|
11180
11079
|
* It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.
|
|
@@ -11201,7 +11100,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11201
11100
|
}
|
|
11202
11101
|
/**
|
|
11203
11102
|
* Get the distinct values of given property.
|
|
11204
|
-
*
|
|
11205
11103
|
* @param callback - The function that picks and possibly converts the property.
|
|
11206
11104
|
* @typeParam T - The type of the distinct value.
|
|
11207
11105
|
* @returns A set of all distinct properties.
|
|
@@ -11228,7 +11126,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11228
11126
|
}
|
|
11229
11127
|
/**
|
|
11230
11128
|
* Filter the items of the stream.
|
|
11231
|
-
*
|
|
11232
11129
|
* @param callback - The function that decides whether an item will be included.
|
|
11233
11130
|
* @returns A new data stream with the filtered items.
|
|
11234
11131
|
*/
|
|
@@ -11283,7 +11180,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11283
11180
|
}
|
|
11284
11181
|
/**
|
|
11285
11182
|
* Execute a callback for each item of the stream.
|
|
11286
|
-
*
|
|
11287
11183
|
* @param callback - The function that will be invoked for each item.
|
|
11288
11184
|
*/
|
|
11289
11185
|
}, {
|
|
@@ -11306,7 +11202,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11306
11202
|
}
|
|
11307
11203
|
/**
|
|
11308
11204
|
* Map the items into a different type.
|
|
11309
|
-
*
|
|
11310
11205
|
* @param callback - The function that does the conversion.
|
|
11311
11206
|
* @typeParam Mapped - The type of the item after mapping.
|
|
11312
11207
|
* @returns A new data stream with the mapped items.
|
|
@@ -11358,7 +11253,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11358
11253
|
}
|
|
11359
11254
|
/**
|
|
11360
11255
|
* Get the item with the maximum value of given property.
|
|
11361
|
-
*
|
|
11362
11256
|
* @param callback - The function that picks and possibly converts the property.
|
|
11363
11257
|
* @returns The item with the maximum if found otherwise null.
|
|
11364
11258
|
*/
|
|
@@ -11386,7 +11280,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11386
11280
|
}
|
|
11387
11281
|
/**
|
|
11388
11282
|
* Get the item with the minimum value of given property.
|
|
11389
|
-
*
|
|
11390
11283
|
* @param callback - The function that picks and possibly converts the property.
|
|
11391
11284
|
* @returns The item with the minimum if found otherwise null.
|
|
11392
11285
|
*/
|
|
@@ -11414,7 +11307,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11414
11307
|
}
|
|
11415
11308
|
/**
|
|
11416
11309
|
* Reduce the items into a single value.
|
|
11417
|
-
*
|
|
11418
11310
|
* @param callback - The function that does the reduction.
|
|
11419
11311
|
* @param accumulator - The initial value of the accumulator.
|
|
11420
11312
|
* @typeParam T - The type of the accumulated value.
|
|
@@ -11441,7 +11333,6 @@ var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {
|
|
|
11441
11333
|
}
|
|
11442
11334
|
/**
|
|
11443
11335
|
* Sort the items.
|
|
11444
|
-
*
|
|
11445
11336
|
* @param callback - Item comparator.
|
|
11446
11337
|
* @returns A new stream with sorted items.
|
|
11447
11338
|
*/
|
|
@@ -11477,7 +11368,6 @@ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
11477
11368
|
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11478
11369
|
/**
|
|
11479
11370
|
* Add an id to given item if it doesn't have one already.
|
|
11480
|
-
*
|
|
11481
11371
|
* @remarks
|
|
11482
11372
|
* The item will be modified.
|
|
11483
11373
|
* @param item - The item that will have an id after a call to this function.
|
|
@@ -11515,15 +11405,15 @@ function ensureFullItem(item, idProp) {
|
|
|
11515
11405
|
* // add items
|
|
11516
11406
|
* // note that the data items can contain different properties and data formats
|
|
11517
11407
|
* data.add([
|
|
11518
|
-
*
|
|
11519
|
-
*
|
|
11520
|
-
*
|
|
11521
|
-
*
|
|
11408
|
+
* {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},
|
|
11409
|
+
* {id: 2, text: 'item 2', date: '2013-06-23', group: 2},
|
|
11410
|
+
* {id: 3, text: 'item 3', date: '2013-06-25', group: 2},
|
|
11411
|
+
* {id: 4, text: 'item 4'}
|
|
11522
11412
|
* ]);
|
|
11523
11413
|
*
|
|
11524
11414
|
* // subscribe to any change in the DataSet
|
|
11525
11415
|
* data.on('*', function (event, properties, senderId) {
|
|
11526
|
-
*
|
|
11416
|
+
* console.log('event', event, properties);
|
|
11527
11417
|
* });
|
|
11528
11418
|
*
|
|
11529
11419
|
* // update an existing item
|
|
@@ -11542,13 +11432,12 @@ function ensureFullItem(item, idProp) {
|
|
|
11542
11432
|
*
|
|
11543
11433
|
* // retrieve a filtered subset of the data
|
|
11544
11434
|
* var items = data.get({
|
|
11545
|
-
*
|
|
11546
|
-
*
|
|
11547
|
-
*
|
|
11435
|
+
* filter: function (item) {
|
|
11436
|
+
* return item.group == 1;
|
|
11437
|
+
* }
|
|
11548
11438
|
* });
|
|
11549
11439
|
* console.log('filtered items', items);
|
|
11550
11440
|
* ```
|
|
11551
|
-
*
|
|
11552
11441
|
* @typeParam Item - Item type that may or may not have an id.
|
|
11553
11442
|
* @typeParam IdProp - Name of the property that contains the id.
|
|
11554
11443
|
*/
|
|
@@ -11557,7 +11446,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
11557
11446
|
var _super = _createSuper$1(DataSet);
|
|
11558
11447
|
/**
|
|
11559
11448
|
* Construct a new DataSet.
|
|
11560
|
-
*
|
|
11561
11449
|
* @param data - Initial data or options.
|
|
11562
11450
|
* @param options - Options (type error if data is also options).
|
|
11563
11451
|
*/
|
|
@@ -11584,7 +11472,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
11584
11472
|
}
|
|
11585
11473
|
/**
|
|
11586
11474
|
* Set new options.
|
|
11587
|
-
*
|
|
11588
11475
|
* @param options - The new options.
|
|
11589
11476
|
*/
|
|
11590
11477
|
_createClass(DataSet, [{
|
|
@@ -11633,14 +11520,13 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
11633
11520
|
*
|
|
11634
11521
|
* // add items
|
|
11635
11522
|
* const ids = data.add([
|
|
11636
|
-
*
|
|
11637
|
-
*
|
|
11638
|
-
*
|
|
11523
|
+
* { id: 1, text: 'item 1' },
|
|
11524
|
+
* { id: 2, text: 'item 2' },
|
|
11525
|
+
* { text: 'item without an id' }
|
|
11639
11526
|
* ])
|
|
11640
11527
|
*
|
|
11641
11528
|
* console.log(ids) // [1, 2, '<UUIDv4>']
|
|
11642
11529
|
* ```
|
|
11643
|
-
*
|
|
11644
11530
|
* @param data - Items to be added (ids will be generated if missing).
|
|
11645
11531
|
* @param senderId - Sender id.
|
|
11646
11532
|
* @returns addedIds - Array with the ids (generated if not present) of the added items.
|
|
@@ -11682,7 +11568,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
11682
11568
|
}
|
|
11683
11569
|
/**
|
|
11684
11570
|
* Update existing items. When an item does not exist, it will be created.
|
|
11685
|
-
*
|
|
11686
11571
|
* @remarks
|
|
11687
11572
|
* The provided properties will be merged in the existing item. When an item does not exist, it will be created.
|
|
11688
11573
|
*
|
|
@@ -11778,7 +11663,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
11778
11663
|
}
|
|
11779
11664
|
/**
|
|
11780
11665
|
* Update existing items. When an item does not exist, an error will be thrown.
|
|
11781
|
-
*
|
|
11782
11666
|
* @remarks
|
|
11783
11667
|
* The provided properties will be deeply merged into the existing item.
|
|
11784
11668
|
* When an item does not exist (id not present in the data set or absent), an error will be thrown and nothing will be changed.
|
|
@@ -12085,7 +11969,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12085
11969
|
}
|
|
12086
11970
|
/**
|
|
12087
11971
|
* Filter the fields of an item.
|
|
12088
|
-
*
|
|
12089
11972
|
* @param item - The item whose fields should be filtered.
|
|
12090
11973
|
* @param fields - The names of the fields that will be kept.
|
|
12091
11974
|
* @typeParam K - Field name type.
|
|
@@ -12110,7 +11993,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12110
11993
|
}
|
|
12111
11994
|
/**
|
|
12112
11995
|
* Sort the provided array with items.
|
|
12113
|
-
*
|
|
12114
11996
|
* @param items - Items to be sorted in place.
|
|
12115
11997
|
* @param order - A field name or custom sort function.
|
|
12116
11998
|
* @typeParam T - The type of the items in the items array.
|
|
@@ -12147,9 +12029,9 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12147
12029
|
* ```javascript
|
|
12148
12030
|
* // create a DataSet
|
|
12149
12031
|
* const data = new vis.DataSet([
|
|
12150
|
-
*
|
|
12151
|
-
*
|
|
12152
|
-
*
|
|
12032
|
+
* { id: 1, text: 'item 1' },
|
|
12033
|
+
* { id: 2, text: 'item 2' },
|
|
12034
|
+
* { id: 3, text: 'item 3' }
|
|
12153
12035
|
* ])
|
|
12154
12036
|
*
|
|
12155
12037
|
* // remove items
|
|
@@ -12157,7 +12039,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12157
12039
|
*
|
|
12158
12040
|
* console.log(ids) // [2, 3]
|
|
12159
12041
|
* ```
|
|
12160
|
-
*
|
|
12161
12042
|
* @param id - One or more items or ids of items to be removed.
|
|
12162
12043
|
* @param senderId - Sender id.
|
|
12163
12044
|
* @returns The ids of the removed items.
|
|
@@ -12189,7 +12070,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12189
12070
|
}
|
|
12190
12071
|
/**
|
|
12191
12072
|
* Remove an item by its id or reference.
|
|
12192
|
-
*
|
|
12193
12073
|
* @param id - Id of an item or the item itself.
|
|
12194
12074
|
* @returns The removed item if removed, null otherwise.
|
|
12195
12075
|
*/
|
|
@@ -12218,7 +12098,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12218
12098
|
* Clear the entire data set.
|
|
12219
12099
|
*
|
|
12220
12100
|
* 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.
|
|
12221
|
-
*
|
|
12222
12101
|
* @param senderId - Sender id.
|
|
12223
12102
|
* @returns removedIds - The ids of all removed items.
|
|
12224
12103
|
*/
|
|
@@ -12241,7 +12120,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12241
12120
|
}
|
|
12242
12121
|
/**
|
|
12243
12122
|
* Find the item with maximum value of a specified field.
|
|
12244
|
-
*
|
|
12245
12123
|
* @param field - Name of the property that should be searched for max value.
|
|
12246
12124
|
* @returns Item containing max value, or null if no items.
|
|
12247
12125
|
*/
|
|
@@ -12271,7 +12149,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12271
12149
|
}
|
|
12272
12150
|
/**
|
|
12273
12151
|
* Find the item with minimum value of a specified field.
|
|
12274
|
-
*
|
|
12275
12152
|
* @param field - Name of the property that should be searched for min value.
|
|
12276
12153
|
* @returns Item containing min value, or null if no items.
|
|
12277
12154
|
*/
|
|
@@ -12301,7 +12178,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12301
12178
|
}
|
|
12302
12179
|
/**
|
|
12303
12180
|
* Find all distinct values of a specified field
|
|
12304
|
-
*
|
|
12305
12181
|
* @param prop - The property name whose distinct values should be returned.
|
|
12306
12182
|
* @returns Unordered array containing all distinct values. Items without specified property are ignored.
|
|
12307
12183
|
*/
|
|
@@ -12332,7 +12208,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12332
12208
|
}
|
|
12333
12209
|
/**
|
|
12334
12210
|
* Add a single item. Will fail when an item with the same id already exists.
|
|
12335
|
-
*
|
|
12336
12211
|
* @param item - A new item to be added.
|
|
12337
12212
|
* @returns Added item's id. An id is generated when it is not present in the item.
|
|
12338
12213
|
*/
|
|
@@ -12353,7 +12228,6 @@ var DataSet = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12353
12228
|
/**
|
|
12354
12229
|
* Update a single item: merge with existing item.
|
|
12355
12230
|
* Will fail when the item has no id, or when there does not exist an item with the same id.
|
|
12356
|
-
*
|
|
12357
12231
|
* @param update - The new item
|
|
12358
12232
|
* @returns The id of the updated item.
|
|
12359
12233
|
*/
|
|
@@ -12449,25 +12323,25 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
|
|
|
12449
12323
|
* // create a DataSet
|
|
12450
12324
|
* var data = new vis.DataSet();
|
|
12451
12325
|
* data.add([
|
|
12452
|
-
*
|
|
12453
|
-
*
|
|
12454
|
-
*
|
|
12455
|
-
*
|
|
12326
|
+
* {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},
|
|
12327
|
+
* {id: 2, text: 'item 2', date: '2013-06-23', group: 2},
|
|
12328
|
+
* {id: 3, text: 'item 3', date: '2013-06-25', group: 2},
|
|
12329
|
+
* {id: 4, text: 'item 4'}
|
|
12456
12330
|
* ]);
|
|
12457
12331
|
*
|
|
12458
12332
|
* // create a DataView
|
|
12459
12333
|
* // the view will only contain items having a property group with value 1,
|
|
12460
12334
|
* // and will only output fields id, text, and date.
|
|
12461
12335
|
* var view = new vis.DataView(data, {
|
|
12462
|
-
*
|
|
12463
|
-
*
|
|
12464
|
-
*
|
|
12465
|
-
*
|
|
12336
|
+
* filter: function (item) {
|
|
12337
|
+
* return (item.group == 1);
|
|
12338
|
+
* },
|
|
12339
|
+
* fields: ['id', 'text', 'date']
|
|
12466
12340
|
* });
|
|
12467
12341
|
*
|
|
12468
12342
|
* // subscribe to any change in the DataView
|
|
12469
12343
|
* view.on('*', function (event, properties, senderId) {
|
|
12470
|
-
*
|
|
12344
|
+
* console.log('event', event, properties);
|
|
12471
12345
|
* });
|
|
12472
12346
|
*
|
|
12473
12347
|
* // update an item in the data set
|
|
@@ -12480,7 +12354,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
|
|
|
12480
12354
|
* // get all items in the view
|
|
12481
12355
|
* var items = view.get();
|
|
12482
12356
|
* ```
|
|
12483
|
-
*
|
|
12484
12357
|
* @typeParam Item - Item type that may or may not have an id.
|
|
12485
12358
|
* @typeParam IdProp - Name of the property that contains the id.
|
|
12486
12359
|
*/
|
|
@@ -12491,7 +12364,6 @@ var DataView = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12491
12364
|
|
|
12492
12365
|
/**
|
|
12493
12366
|
* Create a DataView.
|
|
12494
|
-
*
|
|
12495
12367
|
* @param data - The instance containing data (directly or indirectly).
|
|
12496
12368
|
* @param options - Options to configure this data view.
|
|
12497
12369
|
*/
|
|
@@ -12513,7 +12385,6 @@ var DataView = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12513
12385
|
// and trigger changes accordingly
|
|
12514
12386
|
/**
|
|
12515
12387
|
* Set a data source for the view.
|
|
12516
|
-
*
|
|
12517
12388
|
* @param data - The instance containing data (directly or indirectly).
|
|
12518
12389
|
* @remarks
|
|
12519
12390
|
* Note that when the data view is bound to a data set it won't be garbage
|
|
@@ -12753,7 +12624,6 @@ var DataView = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12753
12624
|
}
|
|
12754
12625
|
/**
|
|
12755
12626
|
* Render the instance unusable prior to garbage collection.
|
|
12756
|
-
*
|
|
12757
12627
|
* @remarks
|
|
12758
12628
|
* The intention of this method is to help discover scenarios where the data
|
|
12759
12629
|
* view is being used when the programmer thinks it has been garbage collected
|
|
@@ -12791,7 +12661,6 @@ var DataView = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12791
12661
|
}
|
|
12792
12662
|
/**
|
|
12793
12663
|
* Event listener. Will propagate all events from the connected data set to the subscribers of the DataView, but will filter the items and only trigger when there are changes in the filtered data set.
|
|
12794
|
-
*
|
|
12795
12664
|
* @param event - The name of the event.
|
|
12796
12665
|
* @param params - Parameters of the event.
|
|
12797
12666
|
* @param senderId - Id supplied by the sender.
|
|
@@ -12883,7 +12752,6 @@ var DataView = /*#__PURE__*/function (_DataSetPart) {
|
|
|
12883
12752
|
|
|
12884
12753
|
/**
|
|
12885
12754
|
* Check that given value is compatible with Vis Data Set interface.
|
|
12886
|
-
*
|
|
12887
12755
|
* @param idProp - The expected property to contain item id.
|
|
12888
12756
|
* @param v - The value to be tested.
|
|
12889
12757
|
* @returns True if all expected values and methods match, false otherwise.
|
|
@@ -12894,7 +12762,6 @@ function isDataSetLike(idProp, v) {
|
|
|
12894
12762
|
|
|
12895
12763
|
/**
|
|
12896
12764
|
* Check that given value is compatible with Vis Data View interface.
|
|
12897
|
-
*
|
|
12898
12765
|
* @param idProp - The expected property to contain item id.
|
|
12899
12766
|
* @param v - The value to be tested.
|
|
12900
12767
|
* @returns True if all expected values and methods match, false otherwise.
|