mol_plot_all 1.2.1552 → 1.2.1554

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.js CHANGED
@@ -3123,6 +3123,22 @@ var $;
3123
3123
  return pos - from;
3124
3124
  }
3125
3125
  $.$mol_charset_encode_to = $mol_charset_encode_to;
3126
+ function $mol_charset_encode_size(str) {
3127
+ let size = 0;
3128
+ for (let i = 0; i < str.length; i++) {
3129
+ let code = str.charCodeAt(i);
3130
+ if (code < 0x80)
3131
+ size += 1;
3132
+ else if (code < 0x800)
3133
+ size += 2;
3134
+ else if (code < 0xd800 || code >= 0xe000)
3135
+ size += 3;
3136
+ else
3137
+ size += 4;
3138
+ }
3139
+ return size;
3140
+ }
3141
+ $.$mol_charset_encode_size = $mol_charset_encode_size;
3126
3142
  })($ || ($ = {}));
3127
3143
 
3128
3144
  ;
@@ -4557,7 +4573,7 @@ var $;
4557
4573
  }
4558
4574
  return names;
4559
4575
  }
4560
- theme(next = null) {
4576
+ theme(next) {
4561
4577
  return next;
4562
4578
  }
4563
4579
  attr_static() {
@@ -4568,7 +4584,7 @@ var $;
4568
4584
  }
4569
4585
  attr() {
4570
4586
  return {
4571
- mol_theme: this.theme() ?? undefined,
4587
+ mol_theme: this.theme(),
4572
4588
  };
4573
4589
  }
4574
4590
  style() {
@@ -4703,9 +4719,6 @@ var $;
4703
4719
  __decorate([
4704
4720
  $mol_memo.method
4705
4721
  ], $mol_view.prototype, "view_names", null);
4706
- __decorate([
4707
- $mol_mem
4708
- ], $mol_view.prototype, "theme", null);
4709
4722
  __decorate([
4710
4723
  $mol_mem
4711
4724
  ], $mol_view.prototype, "event_async", null);