mol_plot_all 1.2.350 → 1.2.351

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
@@ -5217,9 +5217,9 @@ var $;
5217
5217
  "use strict";
5218
5218
  var $;
5219
5219
  (function ($) {
5220
- function $mol_font_measure(size, face, text) {
5220
+ function $mol_font_measure(font, text) {
5221
5221
  const canvas = $mol_font_canvas();
5222
- canvas.font = size + 'px ' + face;
5222
+ canvas.font = font;
5223
5223
  return canvas.measureText(text).width;
5224
5224
  }
5225
5225
  $.$mol_font_measure = $mol_font_measure;
@@ -5243,7 +5243,7 @@ var $;
5243
5243
  return `${this.width()}px`;
5244
5244
  }
5245
5245
  width() {
5246
- return $mol_font_measure(this.font_size(), this.font_family(), this.text());
5246
+ return $mol_font_measure(this.font_size() + 'px ' + this.font_family(), this.text());
5247
5247
  }
5248
5248
  box_pos_x() {
5249
5249
  const align = this.align();