mol_plot_all 1.2.777 → 1.2.779

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
@@ -5331,7 +5331,8 @@ var $;
5331
5331
  ...super.attr(),
5332
5332
  x: this.pos_x(),
5333
5333
  y: this.pos_y(),
5334
- "text-anchor": this.align()
5334
+ "text-anchor": this.align_hor(),
5335
+ "alignment-baseline": this.align_vert()
5335
5336
  };
5336
5337
  }
5337
5338
  sub() {
@@ -5348,6 +5349,12 @@ var $;
5348
5349
  align() {
5349
5350
  return "middle";
5350
5351
  }
5352
+ align_hor() {
5353
+ return this.align();
5354
+ }
5355
+ align_vert() {
5356
+ return "baseline";
5357
+ }
5351
5358
  text() {
5352
5359
  return "";
5353
5360
  }
@@ -5979,7 +5986,7 @@ var $;
5979
5986
  "use strict";
5980
5987
  var $;
5981
5988
  (function ($) {
5982
- $mol_style_attach("mol/svg/text/box/box.view.css", "[mol_svg_text_box_back] {\n\tstroke: none;\n\tfill: var(--mol_theme_back);\n}\n");
5989
+ $mol_style_attach("mol/svg/text/box/box.view.css", "[mol_svg_text_box_back] {\n\tstroke: none;\n\tfill: var(--mol_theme_back);\n\ttransition: none;\n}\n");
5983
5990
  })($ || ($ = {}));
5984
5991
  //mol/svg/text/box/-css/box.view.css.ts
5985
5992
  ;
@@ -5993,6 +6000,9 @@ var $;
5993
6000
  title_x_gap() {
5994
6001
  return 4;
5995
6002
  }
6003
+ title_y_gap() {
6004
+ return 22;
6005
+ }
5996
6006
  threshold() {
5997
6007
  return 16;
5998
6008
  }
@@ -6159,6 +6169,13 @@ var $;
6159
6169
  return '0';
6160
6170
  return nearest.scaled.y.toFixed(3);
6161
6171
  }
6172
+ title_y_pos_x() {
6173
+ const nearest = this.nearest();
6174
+ if (!nearest)
6175
+ return '0';
6176
+ const pos = this.title_y_gap();
6177
+ return pos.toFixed(3);
6178
+ }
6162
6179
  }
6163
6180
  __decorate([
6164
6181
  $mol_mem