diff --git a/src/component/helper/MapDraw.ts b/src/component/helper/MapDraw.ts index eaf37ab86fb7018d795610d2076be59bc0e64bc4..332615deec4f72ba95a530ff999846a360f6287b 100644 --- a/src/component/helper/MapDraw.ts +++ b/src/component/helper/MapDraw.ts @@ -575,16 +575,13 @@ class MapDraw { }; function labelTextAfterUpdate(this: graphic.Text) { - // Make the label text do not scale but perform translate - // based on its host el. - const m = this.transform; - const scaleX = Math.sqrt(m[0] * m[0] + m[1] * m[1]); - const scaleY = Math.sqrt(m[2] * m[2] + m[3] * m[3]); - - m[0] /= scaleX; - m[1] /= scaleX; - m[2] /= scaleY; - m[3] /= scaleY; + // Make the label text apply only translate of this host el + // but no other transform like scale,rotation of this host el. + const mt = this.transform; + mt[0] = 1; + mt[1] = 0; + mt[2] = 0; + mt[3] = 1; } function applyOptionStyleForRegion(