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.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/node.js
CHANGED
|
@@ -5217,9 +5217,9 @@ var $;
|
|
|
5217
5217
|
"use strict";
|
|
5218
5218
|
var $;
|
|
5219
5219
|
(function ($) {
|
|
5220
|
-
function $mol_font_measure(
|
|
5220
|
+
function $mol_font_measure(font, text) {
|
|
5221
5221
|
const canvas = $mol_font_canvas();
|
|
5222
|
-
canvas.font =
|
|
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()
|
|
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();
|