mol_plot_all 1.2.350 → 1.2.352

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.js CHANGED
@@ -4767,9 +4767,9 @@ var $;
4767
4767
  "use strict";
4768
4768
  var $;
4769
4769
  (function ($) {
4770
- function $mol_font_measure(size, face, text) {
4770
+ function $mol_font_measure(font, text) {
4771
4771
  const canvas = $mol_font_canvas();
4772
- canvas.font = size + 'px ' + face;
4772
+ canvas.font = font;
4773
4773
  return canvas.measureText(text).width;
4774
4774
  }
4775
4775
  $.$mol_font_measure = $mol_font_measure;
@@ -4793,7 +4793,7 @@ var $;
4793
4793
  return `${this.width()}px`;
4794
4794
  }
4795
4795
  width() {
4796
- return $mol_font_measure(this.font_size(), this.font_family(), this.text());
4796
+ return $mol_font_measure(this.font_size() + 'px ' + this.font_family(), this.text());
4797
4797
  }
4798
4798
  box_pos_x() {
4799
4799
  const align = this.align();