wacom 19.2.5 → 19.2.7

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.
@@ -426,6 +426,17 @@ class CoreService {
426
426
  linkCollections = [];
427
427
  linkRealCollectionName = {};
428
428
  linkIds = {};
429
+ addLink(name, reset, realName = '') {
430
+ this.linkCollections.push(name);
431
+ this.linkRealCollectionName[name] = realName || name;
432
+ this.onComplete(name.toLowerCase() + 'Loaded').then(() => {
433
+ this.linkIds[name] = reset();
434
+ });
435
+ this.on(name.toLowerCase() + '_changed').subscribe(() => {
436
+ this.linkIds[name].splice(0, this.linkIds[name].length);
437
+ this.linkIds[name].push(...reset());
438
+ });
439
+ }
429
440
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: CoreService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
430
441
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: CoreService, providedIn: 'root' });
431
442
  }