mol_plot_all 1.2.872 → 1.2.874

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/web.mjs CHANGED
@@ -2233,7 +2233,7 @@ var $;
2233
2233
  }
2234
2234
  }
2235
2235
  dom_id() {
2236
- return this.toString();
2236
+ return this.toString().replace(/</g, '(').replace(/>/g, ')');
2237
2237
  }
2238
2238
  dom_node_external(next) {
2239
2239
  const node = next ?? $mol_dom_context.document.createElementNS(this.dom_name_space(), this.dom_name());
@@ -2510,6 +2510,9 @@ var $;
2510
2510
  __decorate([
2511
2511
  $mol_mem
2512
2512
  ], $mol_view.prototype, "view_rect", null);
2513
+ __decorate([
2514
+ $mol_memo.method
2515
+ ], $mol_view.prototype, "dom_id", null);
2513
2516
  __decorate([
2514
2517
  $mol_mem
2515
2518
  ], $mol_view.prototype, "dom_node", null);
package/web.test.js CHANGED
@@ -2240,8 +2240,8 @@ var $;
2240
2240
  $mol_mem_key
2241
2241
  ], $mol_view_test_block.prototype, "element", null);
2242
2242
  var x = $mol_view_test_block.Root(0);
2243
- $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
2244
- $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
2243
+ $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root(0)');
2244
+ $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root(0).element(0)');
2245
2245
  },
2246
2246
  'caching ref to dom node'($) {
2247
2247
  var x = new class extends $mol_view {