zrender-nightly 5.6.1-dev.20241119 → 5.6.1-dev.20241121

Sign up to get free protection for your applications and to get access to all the features.
@@ -261,7 +261,7 @@ var ZRText = (function (_super) {
261
261
  setSeparateFont(subElStyle, style);
262
262
  textY += lineHeight;
263
263
  if (fixedBoundingRect) {
264
- el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, style.width, subElStyle.textAlign), adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), contentWidth, calculatedLineHeight));
264
+ el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, contentWidth, subElStyle.textAlign), adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), contentWidth, calculatedLineHeight));
265
265
  }
266
266
  }
267
267
  };
package/lib/zrender.d.ts CHANGED
@@ -90,7 +90,7 @@ export declare type ElementSSRData = zrUtil.HashMap<unknown>;
90
90
  export declare type ElementSSRDataGetter<T> = (el: Element) => zrUtil.HashMap<T>;
91
91
  export declare function getElementSSRData(el: Element): ElementSSRData;
92
92
  export declare function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>): void;
93
- export declare const version = "5.6.1-dev.20241119";
93
+ export declare const version = "5.6.1-dev.20241121";
94
94
  export interface ZRenderType extends ZRender {
95
95
  }
96
96
  export {};
package/lib/zrender.js CHANGED
@@ -324,5 +324,5 @@ export function getElementSSRData(el) {
324
324
  export function registerSSRDataGetter(getter) {
325
325
  ssrDataGetter = getter;
326
326
  }
327
- export var version = '5.6.1-dev.20241119';
327
+ export var version = '5.6.1-dev.20241121';
328
328
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zrender-nightly",
3
- "version": "5.6.1-dev.20241119",
3
+ "version": "5.6.1-dev.20241121",
4
4
  "description": "A lightweight graphic library providing 2d draw for Apache ECharts",
5
5
  "keywords": [
6
6
  "canvas",
@@ -602,7 +602,7 @@ class ZRText extends Displayable<TextProps> implements GroupLike {
602
602
 
603
603
  if (fixedBoundingRect) {
604
604
  el.setBoundingRect(new BoundingRect(
605
- adjustTextX(subElStyle.x, style.width, subElStyle.textAlign as TextAlign),
605
+ adjustTextX(subElStyle.x, contentWidth, subElStyle.textAlign as TextAlign),
606
606
  adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline as TextVerticalAlign),
607
607
  /**
608
608
  * Text boundary should be the real text width.
package/src/zrender.ts CHANGED
@@ -556,7 +556,7 @@ export function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>) {
556
556
  /**
557
557
  * @type {string}
558
558
  */
559
- export const version = '5.6.1-dev.20241119';
559
+ export const version = '5.6.1-dev.20241121';
560
560
 
561
561
 
562
562
  export interface ZRenderType extends ZRender {};