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/node.test.js CHANGED
@@ -5209,9 +5209,9 @@ var $;
5209
5209
  "use strict";
5210
5210
  var $;
5211
5211
  (function ($) {
5212
- function $mol_font_measure(size, face, text) {
5212
+ function $mol_font_measure(font, text) {
5213
5213
  const canvas = $mol_font_canvas();
5214
- canvas.font = size + 'px ' + face;
5214
+ canvas.font = font;
5215
5215
  return canvas.measureText(text).width;
5216
5216
  }
5217
5217
  $.$mol_font_measure = $mol_font_measure;
@@ -5235,7 +5235,7 @@ var $;
5235
5235
  return `${this.width()}px`;
5236
5236
  }
5237
5237
  width() {
5238
- return $mol_font_measure(this.font_size(), this.font_family(), this.text());
5238
+ return $mol_font_measure(this.font_size() + 'px ' + this.font_family(), this.text());
5239
5239
  }
5240
5240
  box_pos_x() {
5241
5241
  const align = this.align();