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.test.js
CHANGED
|
@@ -5209,9 +5209,9 @@ var $;
|
|
|
5209
5209
|
"use strict";
|
|
5210
5210
|
var $;
|
|
5211
5211
|
(function ($) {
|
|
5212
|
-
function $mol_font_measure(
|
|
5212
|
+
function $mol_font_measure(font, text) {
|
|
5213
5213
|
const canvas = $mol_font_canvas();
|
|
5214
|
-
canvas.font =
|
|
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()
|
|
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();
|