@jorgmoritz/gis-manager 0.1.47 → 0.1.48

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.
package/dist/index.cjs CHANGED
@@ -13,7 +13,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "@jorgmoritz/gis-manager",
16
- version: "0.1.46"};
16
+ version: "0.1.47"};
17
17
 
18
18
  // src/utils/version.ts
19
19
  var version = package_default.version;
@@ -3176,12 +3176,13 @@ var FrustumPyramid = class {
3176
3176
  * - 用 apex 的地表法线作为世界 up,重建无滚转的 right/up,从而避免 pitch 时的视觉侧倾
3177
3177
  * - 基于 fov 与 aspectRatio 求得底面半宽半高,沿 forward 推进 length 得到 baseCenter
3178
3178
  */
3179
- computeFrustumGeometry(apex, headingDeg, pitchDeg, rollDeg, fovDeg, length) {
3179
+ computeFrustumGeometry(apex, headingDeg, pitchDeg, _rollDeg, fovDeg, length) {
3180
3180
  const C = this.CesiumNS;
3181
3181
  const fov = Math.max(1, Math.min(120, fovDeg ?? this.opts.fov ?? DEFAULT_FOV));
3182
3182
  const aspectRatio = this.opts.aspectRatio ?? 4 / 3;
3183
3183
  const halfFovH = C.Math.toRadians(fov / 2);
3184
- const halfWidth = Math.tan(halfFovH) * length;
3184
+ const baseScale = 0.4;
3185
+ const halfWidth = Math.tan(halfFovH) * length * baseScale;
3185
3186
  const halfHeight = halfWidth / aspectRatio;
3186
3187
  const enu = C.Transforms.eastNorthUpToFixedFrame(apex);
3187
3188
  const eastCol = C.Matrix4.getColumn(enu, 0, new C.Cartesian4());
@@ -4328,7 +4329,7 @@ var VertexLabelManager = class {
4328
4329
  const blob = new Blob([svg], { type: "image/svg+xml" });
4329
4330
  const url = URL.createObjectURL(blob);
4330
4331
  const C = this.CesiumNS;
4331
- const firstWaypointIndex = this.hiddenClimbIndex === 1 ? 2 : 1;
4332
+ const firstWaypointIndex = this.hiddenClimbIndex === 1 ? 2 : 0;
4332
4333
  return this.layer.entities.add({
4333
4334
  position,
4334
4335
  billboard: {