mol_plot_all 1.2.873 → 1.2.875

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/node.d.ts CHANGED
@@ -64,12 +64,12 @@ declare namespace $ {
64
64
  get $(): $;
65
65
  set $(next: $);
66
66
  static create<Instance>(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable<Instance>) => void): Instance;
67
- static [Symbol.toPrimitive](): string;
68
- static toString(): string;
67
+ static [Symbol.toPrimitive](): any;
68
+ static toString(): any;
69
+ static toJSON(): any;
69
70
  destructor(): void;
70
71
  static destructor(): void;
71
72
  toString(): string;
72
- static toJSON(): any;
73
73
  toJSON(): any;
74
74
  }
75
75
  }
package/node.js CHANGED
@@ -215,18 +215,16 @@ var $;
215
215
  return this.toString();
216
216
  }
217
217
  static toString() {
218
- if (Symbol.toStringTag in this)
219
- return this[Symbol.toStringTag];
220
- return this.name;
218
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
219
+ }
220
+ static toJSON() {
221
+ return this.toString();
221
222
  }
222
223
  destructor() { }
223
224
  static destructor() { }
224
225
  toString() {
225
226
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
226
227
  }
227
- static toJSON() {
228
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
229
- }
230
228
  toJSON() {
231
229
  return this.toString();
232
230
  }
@@ -2747,7 +2745,7 @@ var $;
2747
2745
  }
2748
2746
  }
2749
2747
  dom_id() {
2750
- return this.toString();
2748
+ return this.toString().replace(/</g, '(').replace(/>/g, ')');
2751
2749
  }
2752
2750
  dom_node_external(next) {
2753
2751
  const node = next ?? $mol_dom_context.document.createElementNS(this.dom_name_space(), this.dom_name());
@@ -3024,6 +3022,9 @@ var $;
3024
3022
  __decorate([
3025
3023
  $mol_mem
3026
3024
  ], $mol_view.prototype, "view_rect", null);
3025
+ __decorate([
3026
+ $mol_memo.method
3027
+ ], $mol_view.prototype, "dom_id", null);
3027
3028
  __decorate([
3028
3029
  $mol_mem
3029
3030
  ], $mol_view.prototype, "dom_node", null);