zrender-nightly 5.6.1-dev.20241120 → 5.6.1-dev.20241122
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/zrender.js +2 -2
- package/dist/zrender.js.map +1 -1
- package/dist/zrender.min.js +1 -1
- package/lib/graphic/Text.js +1 -1
- package/lib/zrender.d.ts +1 -1
- package/lib/zrender.js +1 -1
- package/package.json +1 -1
- package/src/graphic/Text.ts +1 -1
- package/src/zrender.ts +1 -1
package/lib/graphic/Text.js
CHANGED
@@ -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,
|
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.
|
93
|
+
export declare const version = "5.6.1-dev.20241122";
|
94
94
|
export interface ZRenderType extends ZRender {
|
95
95
|
}
|
96
96
|
export {};
|
package/lib/zrender.js
CHANGED
package/package.json
CHANGED
package/src/graphic/Text.ts
CHANGED
@@ -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,
|
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.
|
559
|
+
export const version = '5.6.1-dev.20241122';
|
560
560
|
|
561
561
|
|
562
562
|
export interface ZRenderType extends ZRender {};
|