@maptalks/transform-control 0.118.0 → 0.119.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @maptalks/transform-control v0.118.0
2
+ * @maptalks/transform-control v0.119.0
3
3
  * LICENSE : UNLICENSED
4
- * (c) 2016-2025 maptalks.org
4
+ * (c) 2016-2026 maptalks.org
5
5
  */
6
6
  import { quat as A, mat4 as e, reshader as t, vec3 as s, GroupGLLayer as i, vec2 as n } from "@maptalks/gl";
7
7
 
@@ -1600,7 +1600,9 @@ class IA extends(r(a(C))){
1600
1600
  this.map.config("zoomable", !0), this.map.config("draggable", !0), this.layerRenderer && this.layerRenderer.setToRedraw();
1601
1601
  }
1602
1602
  Z() {
1603
- const A = this.TransformHelper.planeHelper.getMeshes()[0][0], e = this.map.getBearing();
1603
+ const A = this.TransformHelper.planeHelper.getMeshes()[0][0];
1604
+ if (!A) return;
1605
+ const e = this.map.getBearing();
1604
1606
  A.rotation[2] = -e, this.nA();
1605
1607
  }
1606
1608
  nA() {
@@ -1898,5 +1900,5 @@ IA.mergeOptions({
1898
1900
 
1899
1901
  export { IA as TransformControl };
1900
1902
 
1901
- "undefined" != typeof console && console.log("@maptalks/transform-control v0.118.0");
1903
+ "undefined" != typeof console && console.log("@maptalks/transform-control v0.119.0");
1902
1904
  //# sourceMappingURL=transform-control.es.js.map