@jorgmoritz/gis-manager 0.1.44 → 0.1.45
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 +171 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.js +171 -2
- package/dist/index.js.map +1 -1
- package/dist/vue/index.cjs +4 -0
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +4 -0
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -3462,6 +3462,8 @@ var AirplaneCursor = class {
|
|
|
3462
3462
|
__publicField(this, "cameraChangedListener");
|
|
3463
3463
|
/** 飞机游标模型可见性,默认 false */
|
|
3464
3464
|
__publicField(this, "visible", false);
|
|
3465
|
+
/** 是否显示视锥体,默认 true */
|
|
3466
|
+
__publicField(this, "showFrustum", true);
|
|
3465
3467
|
const C = this.CesiumNS;
|
|
3466
3468
|
this.opts = opts;
|
|
3467
3469
|
this.pose = { position: startPosition, heading: 0, pitch: -10, roll: 0 };
|
|
@@ -3470,6 +3472,7 @@ var AirplaneCursor = class {
|
|
|
3470
3472
|
this.fastFactor = opts.fastFactor ?? 5;
|
|
3471
3473
|
this.currentFOV = opts.fovDeg ?? DEFAULT_FOV;
|
|
3472
3474
|
this.visible = opts.visible ?? false;
|
|
3475
|
+
this.showFrustum = opts.showFrustum ?? true;
|
|
3473
3476
|
this.ensureEntity(opts.color ?? C.Color.CYAN.withAlpha(0.9));
|
|
3474
3477
|
this.attachKeyboard(opts);
|
|
3475
3478
|
this.setupFOVListener();
|
|
@@ -3703,6 +3706,7 @@ var AirplaneCursor = class {
|
|
|
3703
3706
|
* - 后续只依赖回调读取 pose 与 currentFOV 即可自动更新
|
|
3704
3707
|
*/
|
|
3705
3708
|
updateFrustum() {
|
|
3709
|
+
if (!this.showFrustum) return;
|
|
3706
3710
|
try {
|
|
3707
3711
|
if (!this.frustum) {
|
|
3708
3712
|
let layer = this.viewer.dataSources?._dataSources?.[0];
|