cesium-pocket 0.7.0-alpha → 0.7.1-alpha

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/gauger.d.ts CHANGED
@@ -3,4 +3,8 @@ import { RectGaguger, RectGaugerOptions } from './src/gauger/RectGaguger';
3
3
  import { PointGauger, PointGaugerOptions } from './src/gauger/PointGaguger';
4
4
  import { LineGaguger, LineGaugerOptions } from './src/gauger/LineGaguger';
5
5
  import { PolygonGaguger, PolygonGaugerOptions } from './src/gauger/PolygonGaguger';
6
- export { CircleGaguger, RectGaguger, PointGauger, LineGaguger, PolygonGaguger, type CircleGaugerOptions, type RectGaugerOptions, type PointGaugerOptions, type LineGaugerOptions, type PolygonGaugerOptions };
6
+ import { HeightPole } from './src/gauger/heightPole';
7
+ import { CircleSolid } from './src/gauger/circleSolid';
8
+ import { RectSolid } from './src/gauger/rectSolid';
9
+ import { PolygonSolid } from './src/gauger/polygonSolid';
10
+ export { CircleGaguger, RectGaguger, PointGauger, LineGaguger, PolygonGaguger, type CircleGaugerOptions, type RectGaugerOptions, type PointGaugerOptions, type LineGaugerOptions, type PolygonGaugerOptions, HeightPole, CircleSolid, RectSolid, PolygonSolid };
package/gauger.js CHANGED
@@ -1,8 +1,12 @@
1
- import { C as e, L as r, P as o, a as s, R as u } from "./PolygonGaguger-C8cFLW0V.js";
1
+ import { C as g, b as o, H as r, L as s, P as i, a as l, d as c, R as t, c as u } from "./polygonSolid-COmnj9NG.js";
2
2
  export {
3
- e as CircleGaguger,
4
- r as LineGaguger,
5
- o as PointGauger,
6
- s as PolygonGaguger,
7
- u as RectGaguger
3
+ g as CircleGaguger,
4
+ o as CircleSolid,
5
+ r as HeightPole,
6
+ s as LineGaguger,
7
+ i as PointGauger,
8
+ l as PolygonGaguger,
9
+ c as PolygonSolid,
10
+ t as RectGaguger,
11
+ u as RectSolid
8
12
  };
package/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as G, ref as a, onMounted as $, onUnmounted as PA, createElementBlock as b, openBlock as m, nextTick as MA, createTextVNode as oA, createElementVNode as T, toDisplayString as N, mergeModels as zP, useModel as EP, computed as rA, withDirectives as vA, normalizeStyle as L, unref as V, renderSlot as WA, vShow as uA, watch as DA, Fragment as kA, createCommentVNode as sA, withModifiers as $A, renderList as KA, normalizeClass as xA, vModelRadio as AP } from "vue";
1
+ import { defineComponent as G, ref as a, onMounted as $, onUnmounted as PA, createElementBlock as b, openBlock as m, nextTick as MA, createTextVNode as oA, createElementVNode as T, toDisplayString as N, mergeModels as zP, useModel as iP, computed as rA, withDirectives as vA, normalizeStyle as L, unref as V, renderSlot as WA, vShow as uA, watch as DA, Fragment as kA, createCommentVNode as sA, withModifiers as $A, renderList as KA, normalizeClass as xA, vModelRadio as AP } from "vue";
2
2
  import * as bA from "three";
3
- import { TrianglesDrawMode as qP, TriangleFanDrawMode as YA, TriangleStripDrawMode as iP, Loader as JP, LoaderUtils as iA, FileLoader as aP, Color as gA, LinearSRGBColorSpace as _, SpotLight as NP, PointLight as KP, DirectionalLight as xP, MeshBasicMaterial as EA, SRGBColorSpace as pA, MeshPhysicalMaterial as Z, Vector2 as uP, Matrix4 as jA, Vector3 as lA, Quaternion as pP, InstancedMesh as YP, InstancedBufferAttribute as VP, Object3D as MP, TextureLoader as GP, ImageBitmapLoader as ZP, BufferAttribute as UA, InterleavedBuffer as XP, InterleavedBufferAttribute as WP, LinearMipmapLinearFilter as fP, NearestMipmapLinearFilter as RP, LinearMipmapNearestFilter as FP, NearestMipmapNearestFilter as _P, LinearFilter as VA, NearestFilter as dP, RepeatWrapping as GA, MirroredRepeatWrapping as $P, ClampToEdgeWrapping as Ae, PointsMaterial as Pe, Material as HA, LineBasicMaterial as ee, MeshStandardMaterial as bP, DoubleSide as te, PropertyBinding as ne, BufferGeometry as se, SkinnedMesh as re, Mesh as ve, LineSegments as Be, Line as ge, LineLoop as ce, Points as Ce, Group as hA, PerspectiveCamera as we, MathUtils as le, OrthographicCamera as oe, Skeleton as De, AnimationClip as Ie, Bone as Qe, InterpolateDiscrete as Te, InterpolateLinear as mP, ColorManagement as PP, Texture as eP, VectorKeyframeTrack as tP, NumberKeyframeTrack as nP, QuaternionKeyframeTrack as sP, FrontSide as ze, Interpolant as Ee, Box3 as ie, Sphere as ae } from "three";
3
+ import { TrianglesDrawMode as qP, TriangleFanDrawMode as YA, TriangleStripDrawMode as EP, Loader as JP, LoaderUtils as EA, FileLoader as aP, Color as gA, LinearSRGBColorSpace as _, SpotLight as NP, PointLight as KP, DirectionalLight as xP, MeshBasicMaterial as iA, SRGBColorSpace as pA, MeshPhysicalMaterial as Z, Vector2 as uP, Matrix4 as jA, Vector3 as lA, Quaternion as pP, InstancedMesh as YP, InstancedBufferAttribute as VP, Object3D as MP, TextureLoader as GP, ImageBitmapLoader as ZP, BufferAttribute as UA, InterleavedBuffer as XP, InterleavedBufferAttribute as WP, LinearMipmapLinearFilter as fP, NearestMipmapLinearFilter as RP, LinearMipmapNearestFilter as FP, NearestMipmapNearestFilter as _P, LinearFilter as VA, NearestFilter as dP, RepeatWrapping as GA, MirroredRepeatWrapping as $P, ClampToEdgeWrapping as Ae, PointsMaterial as Pe, Material as HA, LineBasicMaterial as ee, MeshStandardMaterial as bP, DoubleSide as te, PropertyBinding as ne, BufferGeometry as se, SkinnedMesh as re, Mesh as ve, LineSegments as Be, Line as ge, LineLoop as ce, Points as Ce, Group as hA, PerspectiveCamera as we, MathUtils as le, OrthographicCamera as oe, Skeleton as De, AnimationClip as Ie, Bone as Qe, InterpolateDiscrete as Te, InterpolateLinear as mP, ColorManagement as PP, Texture as eP, VectorKeyframeTrack as tP, NumberKeyframeTrack as nP, QuaternionKeyframeTrack as sP, FrontSide as ze, Interpolant as ie, Box3 as Ee, Sphere as ae } from "three";
4
4
  import { Viewer as eA, Math as H, Cartesian2 as BA, Cartesian3 as y, Cartographic as K, SceneTransforms as yP, Ray as ue, EllipsoidalOccluder as pe, Ellipsoid as kP, Color as cA, ScreenSpaceEventType as LA, ScreenSpaceEventHandler as Me, Rectangle as wA, ImageryLayer as fe, MapMode2D as de, SceneMode as be, PerspectiveFrustum as me, OrthographicFrustum as ye, PerspectiveOffCenterFrustum as ke, createWorldTerrainAsync as je, EllipsoidTerrainProvider as Ue, SplitDirection as rP, JulianDate as F, CzmlDataSource as He, sampleTerrainMostDetailed as yA, ClippingPolygonCollection as he, ClippingPolygon as Le, Transforms as Se, Matrix4 as mA, EllipsoidGeodesic as jP, ImageMaterialProperty as Oe, CallbackProperty as vP } from "cesium";
5
5
  import { P as TA, a as BP, b as qe, c as Je, d as Ne, C as gP } from "./index-CcaLwHv1.js";
6
6
  import { L as Ke } from "./LayersManager-BElb5fPR.js";
7
7
  import { C as cs } from "./LayersManager-BElb5fPR.js";
8
8
  import { C as ws, a as ls, b as os, D as Ds, P as Is, R as Qs } from "./CircleDrawer-D2dAuEcD.js";
9
- import { C as zs, L as Es, P as is, a as as, R as us } from "./PolygonGaguger-C8cFLW0V.js";
9
+ import { C as zs, b as is, H as Es, L as as, P as us, a as ps, d as Ms, R as fs, c as ds } from "./polygonSolid-COmnj9NG.js";
10
10
  function cP(w, A) {
11
11
  if (A === qP)
12
12
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), w;
13
- if (A === YA || A === iP) {
13
+ if (A === YA || A === EP) {
14
14
  let P = w.getIndex();
15
15
  if (P === null) {
16
16
  const s = [], v = w.getAttribute("position");
@@ -92,10 +92,10 @@ class xe extends JP {
92
92
  if (this.resourcePath !== "")
93
93
  s = this.resourcePath;
94
94
  else if (this.path !== "") {
95
- const B = iA.extractUrlBase(A);
96
- s = iA.resolveURL(B, this.path);
95
+ const B = EA.extractUrlBase(A);
96
+ s = EA.resolveURL(B, this.path);
97
97
  } else
98
- s = iA.extractUrlBase(A);
98
+ s = EA.extractUrlBase(A);
99
99
  this.manager.itemStart(A);
100
100
  const v = function(B) {
101
101
  e ? e(B) : console.error(B), n.manager.itemError(A), n.manager.itemEnd(A);
@@ -332,7 +332,7 @@ class Ge {
332
332
  this.name = M.KHR_MATERIALS_UNLIT;
333
333
  }
334
334
  getMaterialType() {
335
- return EA;
335
+ return iA;
336
336
  }
337
337
  extendParams(A, P, t) {
338
338
  const e = [];
@@ -629,14 +629,14 @@ class Bt {
629
629
  return v.length < 1 ? null : (v.push(this.parser.createNodeMesh(A)), Promise.all(v).then((B) => {
630
630
  const c = B.pop(), g = c.isGroup ? c.children : [c], C = B[0].count, l = [];
631
631
  for (const o of g) {
632
- const D = new jA(), I = new lA(), Q = new pP(), i = new lA(1, 1, 1), u = new YP(o.geometry, o.material, C);
633
- for (let E = 0; E < C; E++)
634
- r.TRANSLATION && I.fromBufferAttribute(r.TRANSLATION, E), r.ROTATION && Q.fromBufferAttribute(r.ROTATION, E), r.SCALE && i.fromBufferAttribute(r.SCALE, E), u.setMatrixAt(E, D.compose(I, Q, i));
635
- for (const E in r)
636
- if (E === "_COLOR_0") {
637
- const k = r[E];
632
+ const D = new jA(), I = new lA(), Q = new pP(), E = new lA(1, 1, 1), u = new YP(o.geometry, o.material, C);
633
+ for (let i = 0; i < C; i++)
634
+ r.TRANSLATION && I.fromBufferAttribute(r.TRANSLATION, i), r.ROTATION && Q.fromBufferAttribute(r.ROTATION, i), r.SCALE && E.fromBufferAttribute(r.SCALE, i), u.setMatrixAt(i, D.compose(I, Q, E));
635
+ for (const i in r)
636
+ if (i === "_COLOR_0") {
637
+ const k = r[i];
638
638
  u.instanceColor = new VP(k.array, k.itemSize, k.normalized);
639
- } else E !== "TRANSLATION" && E !== "ROTATION" && E !== "SCALE" && o.geometry.setAttribute(E, r[E]);
639
+ } else i !== "TRANSLATION" && i !== "ROTATION" && i !== "SCALE" && o.geometry.setAttribute(i, r[i]);
640
640
  MP.prototype.copy.call(u, o), this.parser.assignFinalMaterial(u), l.push(u);
641
641
  }
642
642
  return c.isGroup ? (c.clear(), c.add(...l), c) : l[0];
@@ -720,7 +720,7 @@ class wt {
720
720
  this.name = M.KHR_MESH_QUANTIZATION;
721
721
  }
722
722
  }
723
- class HP extends Ee {
723
+ class HP extends ie {
724
724
  constructor(A, P, t, e) {
725
725
  super(A, P, t, e);
726
726
  }
@@ -731,10 +731,10 @@ class HP extends Ee {
731
731
  return P;
732
732
  }
733
733
  interpolate_(A, P, t, e) {
734
- const n = this.resultBuffer, s = this.sampleValues, v = this.valueSize, r = v * 2, B = v * 3, c = e - P, g = (t - P) / c, C = g * g, l = C * g, o = A * B, D = o - B, I = -2 * l + 3 * C, Q = l - C, i = 1 - I, u = Q - C + g;
735
- for (let E = 0; E !== v; E++) {
736
- const k = s[D + E + v], U = s[D + E + r] * c, h = s[o + E + v], x = s[o + E] * c;
737
- n[E] = i * k + u * U + I * h + Q * x;
734
+ const n = this.resultBuffer, s = this.sampleValues, v = this.valueSize, r = v * 2, B = v * 3, c = e - P, g = (t - P) / c, C = g * g, l = C * g, o = A * B, D = o - B, I = -2 * l + 3 * C, Q = l - C, E = 1 - I, u = Q - C + g;
735
+ for (let i = 0; i !== v; i++) {
736
+ const k = s[D + i + v], U = s[D + i + r] * c, h = s[o + i + v], x = s[o + i] * c;
737
+ n[i] = E * k + u * U + I * h + Q * x;
738
738
  }
739
739
  return n;
740
740
  }
@@ -900,10 +900,10 @@ function XA(w) {
900
900
  throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
901
901
  }
902
902
  }
903
- function Et(w) {
903
+ function it(w) {
904
904
  return w.search(/\.jpe?g($|\?)/i) > 0 || w.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : w.search(/\.webp($|\?)/i) > 0 || w.search(/^data\:image\/webp/) === 0 ? "image/webp" : w.search(/\.ktx2($|\?)/i) > 0 || w.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
905
905
  }
906
- const it = new jA();
906
+ const Et = new jA();
907
907
  class at {
908
908
  constructor(A = {}, P = {}) {
909
909
  this.json = A, this.extensions = {}, this.plugins = {}, this.options = P, this.cache = new Ye(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
@@ -1125,7 +1125,7 @@ class at {
1125
1125
  return Promise.resolve(this.extensions[M.KHR_BINARY_GLTF].body);
1126
1126
  const e = this.options;
1127
1127
  return new Promise(function(n, s) {
1128
- t.load(iA.resolveURL(P.uri, e.path), n, void 0, function() {
1128
+ t.load(EA.resolveURL(P.uri, e.path), n, void 0, function() {
1129
1129
  s(new Error('THREE.GLTFLoader: Failed to load buffer "' + P.uri + '".'));
1130
1130
  });
1131
1131
  });
@@ -1162,13 +1162,13 @@ class at {
1162
1162
  const v = s[0], r = SA[e.type], B = IA[e.componentType], c = B.BYTES_PER_ELEMENT, g = c * r, C = e.byteOffset || 0, l = e.bufferView !== void 0 ? t.bufferViews[e.bufferView].byteStride : void 0, o = e.normalized === !0;
1163
1163
  let D, I;
1164
1164
  if (l && l !== g) {
1165
- const Q = Math.floor(C / l), i = "InterleavedBuffer:" + e.bufferView + ":" + e.componentType + ":" + Q + ":" + e.count;
1166
- let u = P.cache.get(i);
1167
- u || (D = new B(v, Q * l, e.count * l / c), u = new XP(D, l / c), P.cache.add(i, u)), I = new WP(u, r, C % l / c, o);
1165
+ const Q = Math.floor(C / l), E = "InterleavedBuffer:" + e.bufferView + ":" + e.componentType + ":" + Q + ":" + e.count;
1166
+ let u = P.cache.get(E);
1167
+ u || (D = new B(v, Q * l, e.count * l / c), u = new XP(D, l / c), P.cache.add(E, u)), I = new WP(u, r, C % l / c, o);
1168
1168
  } else
1169
1169
  v === null ? D = new B(e.count * r) : D = new B(v, C, e.count * r), I = new UA(D, r, o);
1170
1170
  if (e.sparse !== void 0) {
1171
- const Q = SA.SCALAR, i = IA[e.sparse.indices.componentType], u = e.sparse.indices.byteOffset || 0, E = e.sparse.values.byteOffset || 0, k = new i(s[1], u, e.sparse.count * Q), U = new B(s[2], E, e.sparse.count * r);
1171
+ const Q = SA.SCALAR, E = IA[e.sparse.indices.componentType], u = e.sparse.indices.byteOffset || 0, i = e.sparse.values.byteOffset || 0, k = new E(s[1], u, e.sparse.count * Q), U = new B(s[2], i, e.sparse.count * r);
1172
1172
  v !== null && (I = new UA(I.array.slice(), I.itemSize, I.normalized)), I.normalized = !1;
1173
1173
  for (let h = 0, x = k.length; h < x; h++) {
1174
1174
  const O = k[h];
@@ -1228,10 +1228,10 @@ class at {
1228
1228
  P.isImageBitmapLoader === !0 && (o = function(D) {
1229
1229
  const I = new eP(D);
1230
1230
  I.needsUpdate = !0, C(I);
1231
- }), P.load(iA.resolveURL(g, n.path), o, void 0, l);
1231
+ }), P.load(EA.resolveURL(g, n.path), o, void 0, l);
1232
1232
  });
1233
1233
  }).then(function(g) {
1234
- return B === !0 && v.revokeObjectURL(r), R(g, s), g.userData.mimeType = s.mimeType || Et(s.uri), g;
1234
+ return B === !0 && v.revokeObjectURL(r), R(g, s), g.userData.mimeType = s.mimeType || it(s.uri), g;
1235
1235
  }).catch(function(g) {
1236
1236
  throw console.error("THREE.GLTFLoader: Couldn't load texture", r), g;
1237
1237
  });
@@ -1323,15 +1323,15 @@ class at {
1323
1323
  }
1324
1324
  n.doubleSided === !0 && (v.side = te);
1325
1325
  const c = n.alphaMode || OA.OPAQUE;
1326
- if (c === OA.BLEND ? (v.transparent = !0, v.depthWrite = !1) : (v.transparent = !1, c === OA.MASK && (v.alphaTest = n.alphaCutoff !== void 0 ? n.alphaCutoff : 0.5)), n.normalTexture !== void 0 && s !== EA && (B.push(P.assignTexture(v, "normalMap", n.normalTexture)), v.normalScale = new uP(1, 1), n.normalTexture.scale !== void 0)) {
1326
+ if (c === OA.BLEND ? (v.transparent = !0, v.depthWrite = !1) : (v.transparent = !1, c === OA.MASK && (v.alphaTest = n.alphaCutoff !== void 0 ? n.alphaCutoff : 0.5)), n.normalTexture !== void 0 && s !== iA && (B.push(P.assignTexture(v, "normalMap", n.normalTexture)), v.normalScale = new uP(1, 1), n.normalTexture.scale !== void 0)) {
1327
1327
  const g = n.normalTexture.scale;
1328
1328
  v.normalScale.set(g, g);
1329
1329
  }
1330
- if (n.occlusionTexture !== void 0 && s !== EA && (B.push(P.assignTexture(v, "aoMap", n.occlusionTexture)), n.occlusionTexture.strength !== void 0 && (v.aoMapIntensity = n.occlusionTexture.strength)), n.emissiveFactor !== void 0 && s !== EA) {
1330
+ if (n.occlusionTexture !== void 0 && s !== iA && (B.push(P.assignTexture(v, "aoMap", n.occlusionTexture)), n.occlusionTexture.strength !== void 0 && (v.aoMapIntensity = n.occlusionTexture.strength)), n.emissiveFactor !== void 0 && s !== iA) {
1331
1331
  const g = n.emissiveFactor;
1332
1332
  v.emissive = new gA().setRGB(g[0], g[1], g[2], _);
1333
1333
  }
1334
- return n.emissiveTexture !== void 0 && s !== EA && B.push(P.assignTexture(v, "emissiveMap", n.emissiveTexture, pA)), Promise.all(B).then(function() {
1334
+ return n.emissiveTexture !== void 0 && s !== iA && B.push(P.assignTexture(v, "emissiveMap", n.emissiveTexture, pA)), Promise.all(B).then(function() {
1335
1335
  const g = new s(v);
1336
1336
  return n.name && (g.name = n.name), R(g, n), P.associations.set(g, { materials: A }), n.extensions && nA(e, g, n), g;
1337
1337
  });
@@ -1393,17 +1393,17 @@ class at {
1393
1393
  for (let l = 0, o = c.length; l < o; l++) {
1394
1394
  const D = c[l], I = s[l];
1395
1395
  let Q;
1396
- const i = B[l];
1396
+ const E = B[l];
1397
1397
  if (I.mode === J.TRIANGLES || I.mode === J.TRIANGLE_STRIP || I.mode === J.TRIANGLE_FAN || I.mode === void 0)
1398
- Q = n.isSkinnedMesh === !0 ? new re(D, i) : new ve(D, i), Q.isSkinnedMesh === !0 && Q.normalizeSkinWeights(), I.mode === J.TRIANGLE_STRIP ? Q.geometry = cP(Q.geometry, iP) : I.mode === J.TRIANGLE_FAN && (Q.geometry = cP(Q.geometry, YA));
1398
+ Q = n.isSkinnedMesh === !0 ? new re(D, E) : new ve(D, E), Q.isSkinnedMesh === !0 && Q.normalizeSkinWeights(), I.mode === J.TRIANGLE_STRIP ? Q.geometry = cP(Q.geometry, EP) : I.mode === J.TRIANGLE_FAN && (Q.geometry = cP(Q.geometry, YA));
1399
1399
  else if (I.mode === J.LINES)
1400
- Q = new Be(D, i);
1400
+ Q = new Be(D, E);
1401
1401
  else if (I.mode === J.LINE_STRIP)
1402
- Q = new ge(D, i);
1402
+ Q = new ge(D, E);
1403
1403
  else if (I.mode === J.LINE_LOOP)
1404
- Q = new ce(D, i);
1404
+ Q = new ce(D, E);
1405
1405
  else if (I.mode === J.POINTS)
1406
- Q = new Ce(D, i);
1406
+ Q = new Ce(D, E);
1407
1407
  else
1408
1408
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + I.mode);
1409
1409
  Object.keys(Q.geometry.morphAttributes).length > 0 && Tt(Q, n), Q.name = P.createUniqueName(n.name || "mesh_" + A), R(Q, n), I.extensions && nA(e, Q, I), P.assignFinalMaterial(Q), g.push(Q);
@@ -1473,8 +1473,8 @@ class at {
1473
1473
  loadAnimation(A) {
1474
1474
  const P = this.json, t = this, e = P.animations[A], n = e.name ? e.name : "animation_" + A, s = [], v = [], r = [], B = [], c = [];
1475
1475
  for (let g = 0, C = e.channels.length; g < C; g++) {
1476
- const l = e.channels[g], o = e.samplers[l.sampler], D = l.target, I = D.node, Q = e.parameters !== void 0 ? e.parameters[o.input] : o.input, i = e.parameters !== void 0 ? e.parameters[o.output] : o.output;
1477
- D.node !== void 0 && (s.push(this.getDependency("node", I)), v.push(this.getDependency("accessor", Q)), r.push(this.getDependency("accessor", i)), B.push(o), c.push(D));
1476
+ const l = e.channels[g], o = e.samplers[l.sampler], D = l.target, I = D.node, Q = e.parameters !== void 0 ? e.parameters[o.input] : o.input, E = e.parameters !== void 0 ? e.parameters[o.output] : o.output;
1477
+ D.node !== void 0 && (s.push(this.getDependency("node", I)), v.push(this.getDependency("accessor", Q)), r.push(this.getDependency("accessor", E)), B.push(o), c.push(D));
1478
1478
  }
1479
1479
  return Promise.all([
1480
1480
  Promise.all(s),
@@ -1484,11 +1484,11 @@ class at {
1484
1484
  Promise.all(c)
1485
1485
  ]).then(function(g) {
1486
1486
  const C = g[0], l = g[1], o = g[2], D = g[3], I = g[4], Q = [];
1487
- for (let i = 0, u = C.length; i < u; i++) {
1488
- const E = C[i], k = l[i], U = o[i], h = D[i], x = I[i];
1489
- if (E === void 0) continue;
1490
- E.updateMatrix && E.updateMatrix();
1491
- const O = t._createAnimationTracks(E, k, U, h, x);
1487
+ for (let E = 0, u = C.length; E < u; E++) {
1488
+ const i = C[E], k = l[E], U = o[E], h = D[E], x = I[E];
1489
+ if (i === void 0) continue;
1490
+ i.updateMatrix && i.updateMatrix();
1491
+ const O = t._createAnimationTracks(i, k, U, h, x);
1492
1492
  if (O)
1493
1493
  for (let W = 0; W < O.length; W++)
1494
1494
  Q.push(O[W]);
@@ -1526,7 +1526,7 @@ class at {
1526
1526
  ]).then(function(B) {
1527
1527
  const c = B[0], g = B[1], C = B[2];
1528
1528
  C !== null && c.traverse(function(l) {
1529
- l.isSkinnedMesh && l.bind(C, it);
1529
+ l.isSkinnedMesh && l.bind(C, Et);
1530
1530
  });
1531
1531
  for (let l = 0, o = g.length; l < o; l++)
1532
1532
  c.add(g[l]);
@@ -1655,7 +1655,7 @@ class at {
1655
1655
  }
1656
1656
  }
1657
1657
  function ut(w, A, P) {
1658
- const t = A.attributes, e = new ie();
1658
+ const t = A.attributes, e = new Ee();
1659
1659
  if (t.POSITION !== void 0) {
1660
1660
  const v = P.json.accessors[t.POSITION], r = v.min, B = v.max;
1661
1661
  if (r !== void 0 && B !== void 0) {
@@ -1742,20 +1742,20 @@ const pt = /* @__PURE__ */ G({
1742
1742
  const u = new bA.AmbientLight(16777215, 2);
1743
1743
  s.add(u), o();
1744
1744
  }, l = () => {
1745
- new xe().load(t, (E) => {
1746
- B = E.scene, B.rotation.x -= Math.PI / 2, s.add(B), Q();
1747
- }, (E) => {
1748
- console.info("已下载:" + E.loaded / E.total * 100 + "%");
1749
- }, (E) => {
1750
- console.error("模型加载错误!", E);
1745
+ new xe().load(t, (i) => {
1746
+ B = i.scene, B.rotation.x -= Math.PI / 2, s.add(B), Q();
1747
+ }, (i) => {
1748
+ console.info("已下载:" + i.loaded / i.total * 100 + "%");
1749
+ }, (i) => {
1750
+ console.error("模型加载错误!", i);
1751
1751
  });
1752
1752
  }, o = () => {
1753
1753
  requestAnimationFrame(o), r.render(s, v);
1754
1754
  }, D = () => {
1755
1755
  P.customTouch ? n("resetClick", null) : I();
1756
1756
  }, I = () => {
1757
- var u, E;
1758
- P.viewer && P.viewer.trackedEntity || (E = P.viewer) == null || E.camera.setView({
1757
+ var u, i;
1758
+ P.viewer && P.viewer.trackedEntity || (i = P.viewer) == null || i.camera.setView({
1759
1759
  destination: (u = P.viewer) == null ? void 0 : u.camera.position,
1760
1760
  orientation: {
1761
1761
  heading: 0,
@@ -1765,16 +1765,16 @@ const pt = /* @__PURE__ */ G({
1765
1765
  });
1766
1766
  }, Q = () => {
1767
1767
  const u = P.viewer;
1768
- u.camera.percentageChanged = 1e-3, c = u.camera.changed.addEventListener(i);
1769
- }, i = () => {
1768
+ u.camera.percentageChanged = 1e-3, c = u.camera.changed.addEventListener(E);
1769
+ }, E = () => {
1770
1770
  var k, U;
1771
- let u = (k = P.viewer) == null ? void 0 : k.camera.heading, E = (U = P.viewer) == null ? void 0 : U.camera.pitch;
1772
- B.rotation.y = u, B.rotation.x = E;
1771
+ let u = (k = P.viewer) == null ? void 0 : k.camera.heading, i = (U = P.viewer) == null ? void 0 : U.camera.pitch;
1772
+ B.rotation.y = u, B.rotation.x = i;
1773
1773
  };
1774
1774
  return PA(() => {
1775
1775
  var u;
1776
- c && ((u = P.viewer) == null || u.camera.changed.removeEventListener(i));
1777
- }), (u, E) => (m(), b("div", {
1776
+ c && ((u = P.viewer) == null || u.camera.changed.removeEventListener(E));
1777
+ }), (u, i) => (m(), b("div", {
1778
1778
  ref_key: "compassContainer",
1779
1779
  ref: e,
1780
1780
  class: "cp-porket-compass",
@@ -1928,7 +1928,7 @@ const pt = /* @__PURE__ */ G({
1928
1928
  }),
1929
1929
  emits: ["update:showLay"],
1930
1930
  setup(w) {
1931
- const A = EP(w, "showLay"), P = w, t = a(0), e = a(0), n = a(0), s = a(0), v = a(), r = a(!1), B = a({ x: 0, y: 0 });
1931
+ const A = iP(w, "showLay"), P = w, t = a(0), e = a(0), n = a(0), s = a(0), v = a(), r = a(!1), B = a({ x: 0, y: 0 });
1932
1932
  let c = null, g = null;
1933
1933
  $(() => {
1934
1934
  o(), MA(() => {
@@ -1949,8 +1949,8 @@ const pt = /* @__PURE__ */ G({
1949
1949
  let I = P.viewer;
1950
1950
  if (!(I && P.position)) return !1;
1951
1951
  let Q = hP(I, P.position);
1952
- const i = I.canvas;
1953
- Q && Q.x > 0 && Q.y > 0 && Q.x <= i.width && Q.y < i.height ? (r.value = LP(I, P.position), B.value = {
1952
+ const E = I.canvas;
1953
+ Q && Q.x > 0 && Q.y > 0 && Q.x <= E.width && Q.y < E.height ? (r.value = LP(I, P.position), B.value = {
1954
1954
  x: Q.x,
1955
1955
  y: Q.y
1956
1956
  }) : r.value = !1;
@@ -1968,7 +1968,7 @@ const pt = /* @__PURE__ */ G({
1968
1968
  }, [
1969
1969
  T("div", {
1970
1970
  class: "cp-overlay-close",
1971
- onClick: Q[0] || (Q[0] = (i) => A.value = !1)
1971
+ onClick: Q[0] || (Q[0] = (E) => A.value = !1)
1972
1972
  }, [
1973
1973
  T("img", {
1974
1974
  src: V(jt),
@@ -2031,15 +2031,15 @@ const pt = /* @__PURE__ */ G({
2031
2031
  }),
2032
2032
  emits: ["update:show"],
2033
2033
  setup(w) {
2034
- const A = EP(w, "show"), P = w, t = rA(() => P.color.withAlpha(P.opacity).toCssColorString()), e = rA(() => P.color.toCssColorString()), n = a(null), s = a(!1), v = rA(() => A.value && s.value), r = a(0), B = a(0), c = a({ x: 0, y: 0 }), g = a({ x: 0, y: 0 }), C = a(0), l = a(0), o = new BA(), D = new y(), I = new y(), Q = new pe(kP.WGS84, y.ZERO);
2035
- let i = 0, u = -90, E = 0, k = 0, U = !1, h = 0, x = 0, O = 0, W = 0;
2034
+ const A = iP(w, "show"), P = w, t = rA(() => P.color.withAlpha(P.opacity).toCssColorString()), e = rA(() => P.color.toCssColorString()), n = a(null), s = a(!1), v = rA(() => A.value && s.value), r = a(0), B = a(0), c = a({ x: 0, y: 0 }), g = a({ x: 0, y: 0 }), C = a(0), l = a(0), o = new BA(), D = new y(), I = new y(), Q = new pe(kP.WGS84, y.ZERO);
2035
+ let E = 0, u = -90, i = 0, k = 0, U = !1, h = 0, x = 0, O = 0, W = 0;
2036
2036
  const tA = (p) => {
2037
2037
  const f = P.dragOffset;
2038
2038
  return Math.min(f, Math.max(-f, p));
2039
2039
  }, fA = () => {
2040
- i = tA(i), u = tA(u);
2041
- const p = n.value, f = (p == null ? void 0 : p.offsetWidth) ?? 0, q = (p == null ? void 0 : p.offsetHeight) ?? 0, Y = E + i - f / 2, CA = k + u - q / 2;
2042
- r.value = Y, B.value = CA, c.value = { x: E, y: k }, g.value = { x: Y + f / 2, y: CA + q };
2040
+ E = tA(E), u = tA(u);
2041
+ const p = n.value, f = (p == null ? void 0 : p.offsetWidth) ?? 0, q = (p == null ? void 0 : p.offsetHeight) ?? 0, Y = i + E - f / 2, CA = k + u - q / 2;
2042
+ r.value = Y, B.value = CA, c.value = { x: i, y: k }, g.value = { x: Y + f / 2, y: CA + q };
2043
2043
  }, QA = () => {
2044
2044
  const p = P.viewer;
2045
2045
  if (!p || p.isDestroyed() || !P.position) {
@@ -2060,7 +2060,7 @@ const pt = /* @__PURE__ */ G({
2060
2060
  return;
2061
2061
  }
2062
2062
  const FA = p.scene.canvas.getBoundingClientRect(), _A = f.getBoundingClientRect();
2063
- if (E = CA.x + FA.left - _A.left, k = CA.y + FA.top - _A.top, E < -P.dragOffset || k < -P.dragOffset || E > f.clientWidth + P.dragOffset || k > f.clientHeight + P.dragOffset) {
2063
+ if (i = CA.x + FA.left - _A.left, k = CA.y + FA.top - _A.top, i < -P.dragOffset || k < -P.dragOffset || i > f.clientWidth + P.dragOffset || k > f.clientHeight + P.dragOffset) {
2064
2064
  s.value = !1;
2065
2065
  return;
2066
2066
  }
@@ -2068,7 +2068,7 @@ const pt = /* @__PURE__ */ G({
2068
2068
  }, dA = () => {
2069
2069
  A.value = !1;
2070
2070
  }, d = (p) => {
2071
- U && (i = tA(O + p.clientX - h), u = tA(W + p.clientY - x), fA());
2071
+ U && (E = tA(O + p.clientX - h), u = tA(W + p.clientY - x), fA());
2072
2072
  }, z = (p) => {
2073
2073
  var q;
2074
2074
  if (!U)
@@ -2077,7 +2077,7 @@ const pt = /* @__PURE__ */ G({
2077
2077
  const f = n.value;
2078
2078
  (q = f == null ? void 0 : f.hasPointerCapture) != null && q.call(f, p.pointerId) && f.releasePointerCapture(p.pointerId), window.removeEventListener("pointermove", d), window.removeEventListener("pointerup", z), window.removeEventListener("pointercancel", z);
2079
2079
  }, j = (p) => {
2080
- U = !0, h = p.clientX, x = p.clientY, O = i, W = u;
2080
+ U = !0, h = p.clientX, x = p.clientY, O = E, W = u;
2081
2081
  const f = p.currentTarget;
2082
2082
  try {
2083
2083
  f.setPointerCapture(p.pointerId);
@@ -2251,11 +2251,11 @@ const pt = /* @__PURE__ */ G({
2251
2251
  var Q;
2252
2252
  let D = A.viewer, I = (Q = A.viewer) == null ? void 0 : Q.scene.pick(o.position);
2253
2253
  if (I && I.id && I.id.properties) {
2254
- let i = I.id.properties.getValue();
2255
- if (gP == i.cpType && v.value == I.id.id) {
2254
+ let E = I.id.properties.getValue();
2255
+ if (gP == E.cpType && v.value == I.id.id) {
2256
2256
  const u = I.id.position.getValue();
2257
- let E = K.fromCartesian(u);
2258
- const k = H.toDegrees(E.longitude), U = H.toDegrees(E.latitude);
2257
+ let i = K.fromCartesian(u);
2258
+ const k = H.toDegrees(i.longitude), U = H.toDegrees(i.latitude);
2259
2259
  let h = y.fromDegrees(k, U, 15e3);
2260
2260
  D.camera.flyTo({
2261
2261
  destination: h,
@@ -2750,11 +2750,11 @@ const In = "data:image/gif;base64,R0lGODlhyADIAPcAAAAAAObm5ufn5+jo6Onp6erq6uvr6+
2750
2750
  c.value = !1;
2751
2751
  }, 100);
2752
2752
  });
2753
- }, i = () => {
2753
+ }, E = () => {
2754
2754
  c.value || (r.value = !0, D.viewer.clock.shouldAnimate = !0);
2755
2755
  }, u = () => {
2756
2756
  c.value || (r.value = !1, D.viewer.clock.shouldAnimate = !1);
2757
- }, E = () => {
2757
+ }, i = () => {
2758
2758
  u(), C.stop(), D.viewer.clock.multiplier = 1, D.viewer.clock.currentTime = D.viewer.clock.startTime.clone();
2759
2759
  }, k = () => {
2760
2760
  c.value || C.speedUp();
@@ -2812,7 +2812,7 @@ const In = "data:image/gif;base64,R0lGODlhyADIAPcAAAAAAObm5ufn5+jo6Onp6erq6uvr6+
2812
2812
  r.value ? sA("", !0) : (m(), b("div", {
2813
2813
  key: 0,
2814
2814
  style: L({ cursor: c.value ? "not-allowed" : "pointer" }),
2815
- onClick: z[0] || (z[0] = (j) => i())
2815
+ onClick: z[0] || (z[0] = (j) => E())
2816
2816
  }, [
2817
2817
  T("img", { src: V(Qn) }, null, 8, yn)
2818
2818
  ], 4)),
@@ -2825,7 +2825,7 @@ const In = "data:image/gif;base64,R0lGODlhyADIAPcAAAAAAObm5ufn5+jo6Onp6erq6uvr6+
2825
2825
  ], 4)) : sA("", !0),
2826
2826
  T("div", {
2827
2827
  style: L({ cursor: c.value ? "not-allowed" : "pointer" }),
2828
- onClick: E
2828
+ onClick: i
2829
2829
  }, [
2830
2830
  T("img", { src: V(Mn) }, null, 8, jn)
2831
2831
  ], 4),
@@ -3054,8 +3054,8 @@ class ss extends SP {
3054
3054
  return new Promise((l, o) => {
3055
3055
  yA(A, C).then((D) => {
3056
3056
  let I = 0, Q = 0;
3057
- for (const i of D)
3058
- Number.isFinite(i.height) && (I += i.height, Q++);
3057
+ for (const E of D)
3058
+ Number.isFinite(E.height) && (I += E.height, Q++);
3059
3059
  if (Q === 0)
3060
3060
  throw new Error("开挖范围内没有可用的地形高程");
3061
3061
  l(I / Q);
@@ -3238,18 +3238,22 @@ export {
3238
3238
  cs as CP_LAYER,
3239
3239
  ls as CircleDrawer,
3240
3240
  zs as CircleGaguger,
3241
+ is as CircleSolid,
3241
3242
  ss as Clipper,
3242
3243
  os as DRAWER_MODE,
3243
3244
  Ds as DRAW_STATUS,
3245
+ Es as HeightPole,
3244
3246
  Ke as LayersManager,
3245
- Es as LineGaguger,
3247
+ as as LineGaguger,
3246
3248
  BP as PIN_CATEGORY,
3247
3249
  TA as PIN_MODE,
3248
3250
  Is as PointDrawer,
3249
- is as PointGauger,
3250
- as as PolygonGaguger,
3251
+ us as PointGauger,
3252
+ ps as PolygonGaguger,
3253
+ Ms as PolygonSolid,
3251
3254
  Qs as RectDrawer,
3252
- us as RectGaguger,
3255
+ fs as RectGaguger,
3256
+ ds as RectSolid,
3253
3257
  rs as Submerger,
3254
3258
  Mt as cpCompass,
3255
3259
  kt as cpCoord,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cesium-pocket",
3
- "version": "0.7.0-alpha",
3
+ "version": "0.7.1-alpha",
4
4
  "description": "cesium的插件库;基于vue3的开发",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",