Skip to content

Commit 4061ff0

Browse files
committed
fix: map3D display issue scale
1 parent fbcda53 commit 4061ff0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/components/chart/Bar/Bar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ export class Bar extends BaseThree {
9696
}
9797
update() { }
9898
dispose(): void {
99-
this.cssRender.dispose();
99+
this.cssRender?.dispose();
100100
}
101101
}

packages/core/src/components/chart/Map3D/Map3D.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class Map3D extends BaseThree {
4040
new Tooltip(instance, this.group, this.config.tooltip)
4141
}
4242
this.group.position.set(config.position?.x || 0, config.position?.y || 0, config.position?.z || 0);
43-
this.group.scale.set(config.scale?.x || 0, config.scale?.y || 0, config.scale?.z || 0)
43+
this.group.scale.set(config?.scale?.x || 1, config?.scale?.y || 1, config?.scale?.z || 1)
4444
this.group.rotateX(config.rotation?.x || 0);
4545
this.group.rotateY(config.rotation?.y || 0);
4646
this.group.rotateZ(config.rotation?.z || 0);

0 commit comments

Comments
 (0)