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.d.ts +1 -1
- package/node.deps.json +1 -1
- package/node.esm.js +3 -3
- package/node.esm.js.map +1 -1
- package/node.js +3 -3
- package/node.js.map +1 -1
- package/node.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +3 -3
- package/web.esm.js.map +1 -1
- package/web.js +3 -3
- package/web.js.map +1 -1
package/web.js
CHANGED
|
@@ -4767,9 +4767,9 @@ var $;
|
|
|
4767
4767
|
"use strict";
|
|
4768
4768
|
var $;
|
|
4769
4769
|
(function ($) {
|
|
4770
|
-
function $mol_font_measure(
|
|
4770
|
+
function $mol_font_measure(font, text) {
|
|
4771
4771
|
const canvas = $mol_font_canvas();
|
|
4772
|
-
canvas.font =
|
|
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()
|
|
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();
|