Skip to content

Commit 8820e55

Browse files
kkxxkk2019xuefei1313
authored andcommitted
fix: fix the origin angle be modified
1 parent 51e7820 commit 8820e55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vchart/src/util/style.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ export function transformIndicatorStyle(style: any, datum: any) {
8888

8989
export function transformToGraphic(style: any) {
9090
if (style?.angle) {
91-
style.angle = degreeToRadian(style.angle);
91+
return {
92+
...style,
93+
angle: degreeToRadian(style.angle)
94+
};
9295
}
9396

9497
return style;

0 commit comments

Comments
 (0)