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.mjs 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);
package/node.test.js CHANGED
@@ -207,18 +207,16 @@ var $;
207
207
  return this.toString();
208
208
  }
209
209
  static toString() {
210
- if (Symbol.toStringTag in this)
211
- return this[Symbol.toStringTag];
212
- return this.name;
210
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
211
+ }
212
+ static toJSON() {
213
+ return this.toString();
213
214
  }
214
215
  destructor() { }
215
216
  static destructor() { }
216
217
  toString() {
217
218
  return this[Symbol.toStringTag] || this.constructor.name + '<>';
218
219
  }
219
- static toJSON() {
220
- return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
221
- }
222
220
  toJSON() {
223
221
  return this.toString();
224
222
  }
@@ -2739,7 +2737,7 @@ var $;
2739
2737
  }
2740
2738
  }
2741
2739
  dom_id() {
2742
- return this.toString();
2740
+ return this.toString().replace(/</g, '(').replace(/>/g, ')');
2743
2741
  }
2744
2742
  dom_node_external(next) {
2745
2743
  const node = next ?? $mol_dom_context.document.createElementNS(this.dom_name_space(), this.dom_name());
@@ -3016,6 +3014,9 @@ var $;
3016
3014
  __decorate([
3017
3015
  $mol_mem
3018
3016
  ], $mol_view.prototype, "view_rect", null);
3017
+ __decorate([
3018
+ $mol_memo.method
3019
+ ], $mol_view.prototype, "dom_id", null);
3019
3020
  __decorate([
3020
3021
  $mol_mem
3021
3022
  ], $mol_view.prototype, "dom_node", null);
@@ -8569,8 +8570,8 @@ var $;
8569
8570
  $mol_mem_key
8570
8571
  ], $mol_view_test_block.prototype, "element", null);
8571
8572
  var x = $mol_view_test_block.Root(0);
8572
- $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
8573
- $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
8573
+ $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root(0)');
8574
+ $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root(0).element(0)');
8574
8575
  },
8575
8576
  'caching ref to dom node'($) {
8576
8577
  var x = new class extends $mol_view {