@arcgis/map-components 5.2.0-next.90 → 5.2.0-next.93
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/cdn/2AKHVAG7.js +2 -0
- package/dist/cdn/2GM4O42V.js +2 -0
- package/dist/cdn/{2LDYIMCE.js → 2U6EB7BN.js} +1 -1
- package/dist/cdn/{HOUQ3XZ3.js → 34CXVCB3.js} +1 -1
- package/dist/cdn/{NWLNFKT6.js → 3TRAIJXM.js} +1 -1
- package/dist/cdn/{YLXNHUYF.js → 3VFBYBX4.js} +1 -1
- package/dist/cdn/{JGMSDKM3.js → 43XQKUF6.js} +1 -1
- package/dist/cdn/{AYRZUPV2.js → 5IXZDVTF.js} +1 -1
- package/dist/cdn/{RTUHTKTO.js → 5OQPTYP5.js} +1 -1
- package/dist/cdn/{SOOJLVZP.js → 73N362E5.js} +1 -1
- package/dist/cdn/{CEY5WBEU.js → 7BOYQGKF.js} +1 -1
- package/dist/cdn/{67ZLFQ5D.js → A5ZHWVI3.js} +1 -1
- package/dist/cdn/{HRX3VZC6.js → AF65YZXZ.js} +1 -1
- package/dist/cdn/{M7ARKSCG.js → AL52T6VH.js} +1 -1
- package/dist/cdn/{C32RBBXZ.js → B23TN7FG.js} +1 -1
- package/dist/cdn/{S474C2LJ.js → B2FQHBTX.js} +1 -1
- package/dist/cdn/{HXOGSZ3H.js → BSLVN2NW.js} +1 -1
- package/dist/cdn/{3RKXZISX.js → BXDUMWWE.js} +1 -1
- package/dist/cdn/{SD5FKQFO.js → CH6EWFKV.js} +1 -1
- package/dist/cdn/{ZFLMRC4G.js → CQ7HNSA2.js} +1 -1
- package/dist/cdn/{JK4KRK6P.js → CYWMBY4Y.js} +1 -1
- package/dist/cdn/{2VSQARQL.js → DDGANMOY.js} +1 -1
- package/dist/cdn/{BPB6FTQK.js → DMFYRFSD.js} +1 -1
- package/dist/cdn/{PUNT3Q36.js → EEVHASMU.js} +1 -1
- package/dist/cdn/{M6FA6DZH.js → EVKOQOVV.js} +1 -1
- package/dist/cdn/{II5MODDO.js → FR3EHEIV.js} +1 -1
- package/dist/cdn/{MJRXLGST.js → GC65JYR2.js} +1 -1
- package/dist/cdn/{IBOB5TYX.js → H32EDCZG.js} +1 -1
- package/dist/cdn/{5EOKOS52.js → H4FPSA53.js} +1 -1
- package/dist/cdn/{O6F37YLT.js → HAUHWMHN.js} +1 -1
- package/dist/cdn/{6HSLIZLD.js → I22IJPSN.js} +1 -1
- package/dist/cdn/{WQQVESNN.js → I5DFLVVJ.js} +1 -1
- package/dist/cdn/IGFJHWQN.js +2 -0
- package/dist/cdn/{L66K2IBM.js → IORWRMMG.js} +1 -1
- package/dist/cdn/{3VZGQUZE.js → IXS5O6G4.js} +1 -1
- package/dist/cdn/{MZ2KYVWD.js → J3743ZYD.js} +1 -1
- package/dist/cdn/{JTBVK3AS.js → JFHEHJOQ.js} +1 -1
- package/dist/cdn/{AACTDN7T.js → KGXZG3YI.js} +1 -1
- package/dist/cdn/{LKAMRNMI.js → KX3XJGXZ.js} +1 -1
- package/dist/cdn/{VRRD4HXH.js → LBYKVAQ2.js} +1 -1
- package/dist/cdn/MAPYP35W.js +2 -0
- package/dist/cdn/{CFANWKE6.js → NMQLILVV.js} +1 -1
- package/dist/cdn/{UBD7D3LO.js → NO6MFBNV.js} +1 -1
- package/dist/cdn/{B3W2SZIJ.js → NP5NJFWN.js} +1 -1
- package/dist/cdn/{FQTVI2JC.js → NQ5OGG4I.js} +1 -1
- package/dist/cdn/NUPOLDDX.js +2 -0
- package/dist/cdn/{4SV6HHMC.js → O7RSAJOS.js} +1 -1
- package/dist/cdn/{WE2GHP5E.js → Q6TYHAOA.js} +1 -1
- package/dist/cdn/{D325DZEQ.js → QVM6UFNB.js} +1 -1
- package/dist/cdn/{BBFLUSKF.js → QX7CIDD3.js} +1 -1
- package/dist/cdn/{OEGPO4V4.js → R6ZUE6GP.js} +1 -1
- package/dist/cdn/RJSJ53UD.js +2 -0
- package/dist/cdn/{OWT2YYBJ.js → RJZ424ZP.js} +1 -1
- package/dist/cdn/{CS5IVOG4.js → TTDOV3LD.js} +1 -1
- package/dist/cdn/{K43HEYQI.js → U2ZQWROE.js} +1 -1
- package/dist/cdn/UVD3M6B5.js +2 -0
- package/dist/cdn/VIHVSV4P.js +2 -0
- package/dist/cdn/{CJLQURQH.js → VLKHH2Y6.js} +1 -1
- package/dist/cdn/VNX2AHM5.js +2 -0
- package/dist/cdn/{5KXZQI7G.js → VY2FRIAX.js} +1 -1
- package/dist/cdn/{PPTHUNKC.js → W2HQAUUA.js} +1 -1
- package/dist/cdn/WTTWWX57.js +2 -0
- package/dist/cdn/{KEE5SJGE.js → ZTRUEI25.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +45 -45
- package/dist/chunks/async-utils.js +18 -14
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/time-utils.js +2 -2
- package/dist/components/arcgis-building-phase-picker/customElement.js +13 -13
- package/dist/components/arcgis-color-select/customElement.js +6 -6
- package/dist/components/arcgis-coordinate-conversion/customElement.js +18 -17
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +11 -10
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -0
- package/dist/components/arcgis-daylight/customElement.js +135 -135
- package/dist/components/arcgis-feature/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +24 -24
- package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +42 -41
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +15 -14
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +32 -31
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +9 -8
- package/dist/components/arcgis-link-chart/customElement.d.ts +19 -7
- package/dist/components/arcgis-link-chart/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +19 -7
- package/dist/components/arcgis-map/customElement.js +3 -3
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +72 -72
- package/dist/components/arcgis-paste/customElement.d.ts +23 -3
- package/dist/components/arcgis-paste/customElement.js +102 -101
- package/dist/components/arcgis-presentation/customElement.js +43 -40
- package/dist/components/arcgis-scene/customElement.d.ts +42 -7
- package/dist/components/arcgis-scene/customElement.js +5 -5
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +8 -3
- package/dist/components/arcgis-time-bar/customElement.d.ts +14 -5
- package/dist/components/arcgis-time-bar/customElement.js +29 -29
- package/dist/components/arcgis-time-bar/types.d.ts +3 -1
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +3 -3
- package/dist/components/arcgis-video/customElement.d.ts +19 -7
- package/dist/components/arcgis-volume-measurement/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FTL6T53.js +0 -2
- package/dist/cdn/2XHGISYY.js +0 -2
- package/dist/cdn/4CJBWGTY.js +0 -2
- package/dist/cdn/5GIJFUEJ.js +0 -2
- package/dist/cdn/HASESZDN.js +0 -2
- package/dist/cdn/LMBTPOT3.js +0 -2
- package/dist/cdn/OU7XFISZ.js +0 -2
- package/dist/cdn/UU4FSZYG.js +0 -2
- package/dist/cdn/YVZI2KY2.js +0 -2
- package/dist/cdn/Z3XLCKLP.js +0 -2
|
@@ -17,31 +17,31 @@ import pe from "@arcgis/core/Ground.js";
|
|
|
17
17
|
import fe from "@arcgis/core/core/Accessor.js";
|
|
18
18
|
import { property as C, subclass as _e } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
19
19
|
import we from "@arcgis/core/core/Error.js";
|
|
20
|
-
import { t as z, c as ge,
|
|
21
|
-
import { guessExtensionFromURI as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
20
|
+
import { t as z, c as ge, g as ve, a as ye } from "../../chunks/async-utils.js";
|
|
21
|
+
import { guessExtensionFromURI as be } from "../../chunks/urlUtils.js";
|
|
22
|
+
import Me from "@arcgis/core/geometry/Extent.js";
|
|
23
|
+
import xe from "@arcgis/core/geometry/Mesh.js";
|
|
24
24
|
import X from "@arcgis/core/geometry/support/MeshComponent.js";
|
|
25
25
|
import Y from "@arcgis/core/geometry/support/MeshMaterialMetallicRoughness.js";
|
|
26
26
|
import U from "@arcgis/core/geometry/support/MeshTexture.js";
|
|
27
|
-
import
|
|
27
|
+
import Ce from "@arcgis/core/geometry/support/MeshVertexAttributes.js";
|
|
28
28
|
import W from "@arcgis/core/geometry/Point.js";
|
|
29
|
-
import { createSphere as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { c as
|
|
33
|
-
import
|
|
34
|
-
import { log as
|
|
35
|
-
const
|
|
36
|
-
function
|
|
29
|
+
import { createSphere as Te } from "@arcgis/core/geometry/support/meshUtils.js";
|
|
30
|
+
import Se from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
31
|
+
import ze from "@arcgis/core/symbols/Font.js";
|
|
32
|
+
import { c as Ie, b as Pe, f as Le } from "../../chunks/utils3.js";
|
|
33
|
+
import Re from "@arcgis/core/symbols/TextSymbol.js";
|
|
34
|
+
import { log as Ae } from "@arcgis/toolkit/log";
|
|
35
|
+
const Fe = se`:host{height:100%;--arcgis-view-color-focus: none}`;
|
|
36
|
+
function Ne(r, e = !0) {
|
|
37
37
|
const o = ((e ? r : r * 180 / Math.PI) % 360 + 360) % 360;
|
|
38
38
|
return e ? o : o * Math.PI / 180;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function $e(r, e = !0) {
|
|
41
41
|
const t = e ? r : r * 180 / Math.PI, o = Math.max(0.5, Math.min(179.5, t));
|
|
42
42
|
return e ? o : o * Math.PI / 180;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Be(r, e) {
|
|
45
45
|
return new Promise((t, o) => {
|
|
46
46
|
if (r.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) {
|
|
47
47
|
t();
|
|
@@ -50,7 +50,7 @@ function $e(r, e) {
|
|
|
50
50
|
e(K(r, "canplay", t)), e(K(r, "error", o));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ve(r) {
|
|
54
54
|
return new Q({
|
|
55
55
|
geometry: r,
|
|
56
56
|
symbol: new ue({
|
|
@@ -60,15 +60,15 @@ function Be(r) {
|
|
|
60
60
|
}
|
|
61
61
|
function O({
|
|
62
62
|
data: r,
|
|
63
|
-
center: e =
|
|
64
|
-
size: t =
|
|
63
|
+
center: e = Ee(),
|
|
64
|
+
size: t = Ge,
|
|
65
65
|
horizonPitch: o = 0,
|
|
66
66
|
horizonYaw: i = 0,
|
|
67
67
|
horizonRoll: a = 0
|
|
68
68
|
}) {
|
|
69
69
|
const s = e.clone();
|
|
70
70
|
s.z = -t / 2;
|
|
71
|
-
const n =
|
|
71
|
+
const n = Te(s, {
|
|
72
72
|
size: t,
|
|
73
73
|
densificationFactor: 2,
|
|
74
74
|
vertexSpace: "georeferenced",
|
|
@@ -90,29 +90,29 @@ function O({
|
|
|
90
90
|
origin: n.extent.center
|
|
91
91
|
}), n.centerAt(s), n;
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Ee = () => new W({
|
|
94
94
|
x: 0,
|
|
95
95
|
y: 0,
|
|
96
96
|
z: 0,
|
|
97
97
|
spatialReference: H.WebMercator
|
|
98
|
-
}),
|
|
99
|
-
function
|
|
98
|
+
}), Ge = 1e3, ke = 114;
|
|
99
|
+
function De(r, e, t) {
|
|
100
100
|
const o = /* @__PURE__ */ new Map(), i = Array.from(r.keys()).sort((h, p) => h - p)[0], {
|
|
101
101
|
maxCol: a,
|
|
102
102
|
minCol: s,
|
|
103
103
|
maxRow: n,
|
|
104
104
|
minRow: l
|
|
105
105
|
} = r.get(i), d = a - s + 1, m = n - l + 1, c = d * (t - 1) + 1;
|
|
106
|
-
return
|
|
106
|
+
return Oe(
|
|
107
107
|
{ maximumPyramidLevel: e, blockBoundary: r, baseCols: d, baseRows: m, vertexPerEdge: t, baseVertexPerRow: c },
|
|
108
108
|
o
|
|
109
109
|
), o;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Oe(r, e) {
|
|
112
112
|
const { maximumPyramidLevel: t, blockBoundary: o, baseCols: i, baseRows: a, vertexPerEdge: s, baseVertexPerRow: n } = r;
|
|
113
113
|
for (let l = 0; l <= t; l += 1) {
|
|
114
114
|
const { maxCol: d, minCol: m, maxRow: c, minRow: h } = o.get(l), p = d - m + 1, u = c - h + 1, _ = i / p, g = a / u, w = s - 1;
|
|
115
|
-
|
|
115
|
+
He(
|
|
116
116
|
{
|
|
117
117
|
minRow: h,
|
|
118
118
|
minCol: m,
|
|
@@ -128,7 +128,7 @@ function De(r, e) {
|
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function He(r, e) {
|
|
132
132
|
const { minRow: t, minCol: o, numberOfRows: i, numberOfColumns: a, vertexLimit: s, rowStep: n, colStep: l, baseVertexPerRow: d, level: m } = r;
|
|
133
133
|
for (let c = 0; c < i; c += 1)
|
|
134
134
|
for (let h = 0; h < a; h += 1) {
|
|
@@ -143,7 +143,7 @@ function Oe(r, e) {
|
|
|
143
143
|
e.set(`${m}/${w}/${g}`, u);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ke(r, e) {
|
|
147
147
|
const t = /* @__PURE__ */ new Map(), {
|
|
148
148
|
lods: o,
|
|
149
149
|
origin: i,
|
|
@@ -165,18 +165,18 @@ function He(r, e) {
|
|
|
165
165
|
}
|
|
166
166
|
return t;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ye(r) {
|
|
169
169
|
return typeof r == "string" ? Number.parseInt(r, 10) : r;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ue(r) {
|
|
172
172
|
r.set("premultiplyAlpha", !0);
|
|
173
173
|
const e = r.getAsRGBA();
|
|
174
174
|
return new ImageData(e, r.width, r.height);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function We(r, e, t) {
|
|
177
177
|
return (r * (t - 1) + 1) * (e * (t - 1) + 1);
|
|
178
178
|
}
|
|
179
|
-
class
|
|
179
|
+
class Ze {
|
|
180
180
|
constructor(e) {
|
|
181
181
|
this._componentCache = /* @__PURE__ */ new Map(), this._tileAnchorMap = /* @__PURE__ */ new Map(), this._attachedComponentKeys = /* @__PURE__ */ new Set(), this._remappedFaceMap = /* @__PURE__ */ new Map(), this._levels = [], this._blockBoundaryMap = /* @__PURE__ */ new Map(), this.radius = 500, this.vertexPerEdge = 25, this.imageSize = [0, 0], this.layer = e.layer;
|
|
182
182
|
}
|
|
@@ -207,7 +207,7 @@ class We {
|
|
|
207
207
|
return Math.max(...this._levels);
|
|
208
208
|
}
|
|
209
209
|
async load(e) {
|
|
210
|
-
if (await this.layer.load(e), this._blockBoundaryMap =
|
|
210
|
+
if (await this.layer.load(e), this._blockBoundaryMap = Ke(this.layer.tileInfo, this.layer.fullExtent), this._levels = [...this._blockBoundaryMap.keys()].sort((t, o) => t - o), this._levels.length === 0)
|
|
211
211
|
throw new Error("No valid tile levels found for panoramic mesh generation.");
|
|
212
212
|
return this.imageSize = [this.layer.fullExtent.width, this.layer.fullExtent.height], this._baseMesh = this._createBaseMesh(this.radius, this.vertexPerEdge), this;
|
|
213
213
|
}
|
|
@@ -222,7 +222,7 @@ class We {
|
|
|
222
222
|
_createBaseMesh(e, t) {
|
|
223
223
|
if (!this._blockBoundaryMap.has(this._meshResolutionLevel))
|
|
224
224
|
throw new Error(`No block boundaries found for mesh resolution level ${this._meshResolutionLevel}`);
|
|
225
|
-
const { maxCol: o, minCol: i, maxRow: a, minRow: s } = this._blockBoundaryMap.get(this._meshResolutionLevel), n = a - s + 1, l = o - i + 1, d =
|
|
225
|
+
const { maxCol: o, minCol: i, maxRow: a, minRow: s } = this._blockBoundaryMap.get(this._meshResolutionLevel), n = a - s + 1, l = o - i + 1, d = We(n, l, t), m = new Float64Array(d * 3), c = new Float32Array(d * 3), h = new Float32Array(d * 2), p = l * (t - 1) + 1, u = l * (t - 1);
|
|
226
226
|
for (let f = 0; f < d; f += 1) {
|
|
227
227
|
const T = Math.floor(f / p), F = f % p, I = 1 - F / (l * (t - 1)), S = T / (n * (t - 1)), N = 180 * (1 - S), E = 360 * (I - 0.5), P = [
|
|
228
228
|
Math.sin(N * Math.PI / 180) * Math.sin(E * Math.PI / 180),
|
|
@@ -233,7 +233,7 @@ class We {
|
|
|
233
233
|
const L = T * p;
|
|
234
234
|
F === u && (m[f * 3] = m[L * 3], m[f * 3 + 1] = m[L * 3 + 1], m[f * 3 + 2] = m[L * 3 + 2], c[f * 3] = c[L * 3], c[f * 3 + 1] = c[L * 3 + 1], c[f * 3 + 2] = c[L * 3 + 2]), h[f * 2] = I, h[f * 2 + 1] = S;
|
|
235
235
|
}
|
|
236
|
-
this._faceMap =
|
|
236
|
+
this._faceMap = De(this._blockBoundaryMap, Math.max(...this._levels), t);
|
|
237
237
|
const { remappedFaceMap: _, splitPosition: g, splitNormals: w, splitUv: v } = this._preSplitTileGeometry(m, c, h);
|
|
238
238
|
this._remappedFaceMap = _;
|
|
239
239
|
const y = new X({
|
|
@@ -242,12 +242,12 @@ class We {
|
|
|
242
242
|
});
|
|
243
243
|
return y.set({
|
|
244
244
|
trustSourceNormals: !0
|
|
245
|
-
}), this._baseMesh = new
|
|
245
|
+
}), this._baseMesh = new xe({
|
|
246
246
|
components: [
|
|
247
247
|
// Dummy component keeps the mesh valid before any tile component is attached.
|
|
248
248
|
y
|
|
249
249
|
],
|
|
250
|
-
vertexAttributes: new
|
|
250
|
+
vertexAttributes: new Ce({ position: g, normal: w, uv: v }),
|
|
251
251
|
spatialReference: { wkid: 3857 }
|
|
252
252
|
}), this._baseMesh;
|
|
253
253
|
}
|
|
@@ -349,7 +349,7 @@ class We {
|
|
|
349
349
|
a && this._attachedComponentKeys.has(i) && (this.baseMesh.removeComponent(a), this._attachedComponentKeys.delete(i), this.baseMesh.vertexAttributesChanged());
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
class
|
|
352
|
+
class je {
|
|
353
353
|
constructor(e) {
|
|
354
354
|
this._baseLevel = e.baseLevel, this._levels = [...e.levels], this._blockBoundaryMap = e.blockBoundaryMap;
|
|
355
355
|
}
|
|
@@ -457,10 +457,10 @@ class Ze {
|
|
|
457
457
|
return c;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
class
|
|
460
|
+
class qe {
|
|
461
461
|
constructor(e) {
|
|
462
462
|
this._layer = e, this._inflightControllers = /* @__PURE__ */ new Map(), this._inflightSet = /* @__PURE__ */ new Set(), this._loadedSet = /* @__PURE__ */ new Set(), this.fetchTileImageData = async (t, o, i, a) => {
|
|
463
|
-
const s =
|
|
463
|
+
const s = Ye(t), n = a ? { signal: a } : void 0, l = this._meshBuilder.blockBoundaryMap.get(s);
|
|
464
464
|
if (!l)
|
|
465
465
|
throw new Error(`No tile boundary found for level ${t}`);
|
|
466
466
|
const { maxCol: d, maxRow: m, minCol: c, minRow: h } = l, p = d - c + 1, u = m - h + 1, _ = i - c, g = o - h, w = _ * this._meshBuilder.imageSize[0] / p, v = g * this._meshBuilder.imageSize[1] / u, y = Math.min(
|
|
@@ -470,7 +470,7 @@ class je {
|
|
|
470
470
|
(g + 1) * this._meshBuilder.imageSize[1] / u,
|
|
471
471
|
this._meshBuilder.imageSize[1]
|
|
472
472
|
), T = await this._layer.fetchPixels(
|
|
473
|
-
new
|
|
473
|
+
new Me({
|
|
474
474
|
xmin: w - 0.5,
|
|
475
475
|
ymin: 0.5 - f,
|
|
476
476
|
xmax: y - 0.5,
|
|
@@ -481,8 +481,8 @@ class je {
|
|
|
481
481
|
f - v,
|
|
482
482
|
n
|
|
483
483
|
);
|
|
484
|
-
return
|
|
485
|
-
}, this.loadComponent = (t, o, i, a) => this._meshBuilder.loadComponent(t, o, i, a), this.unloadComponent = (t, o, i) => this._meshBuilder.unloadComponent(t, o, i), this._meshBuilder = new
|
|
484
|
+
return Ue(T.pixelBlock);
|
|
485
|
+
}, this.loadComponent = (t, o, i, a) => this._meshBuilder.loadComponent(t, o, i, a), this.unloadComponent = (t, o, i) => this._meshBuilder.unloadComponent(t, o, i), this._meshBuilder = new Ze({ layer: e });
|
|
486
486
|
}
|
|
487
487
|
get imageSize() {
|
|
488
488
|
return this._meshBuilder.imageSize;
|
|
@@ -497,7 +497,7 @@ class je {
|
|
|
497
497
|
return this._meshBuilder.getTileAnchor(e, t, o);
|
|
498
498
|
}
|
|
499
499
|
async load() {
|
|
500
|
-
return await this._meshBuilder.load(), this._tilePlanner = new
|
|
500
|
+
return await this._meshBuilder.load(), this._tilePlanner = new je({
|
|
501
501
|
blockBoundaryMap: this._meshBuilder.blockBoundaryMap,
|
|
502
502
|
baseLevel: this._meshBuilder.baseLevel,
|
|
503
503
|
levels: [...this._meshBuilder.levels]
|
|
@@ -534,12 +534,12 @@ class je {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
537
|
+
var Je = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, x = (r, e, t, o) => {
|
|
538
|
+
for (var i = o > 1 ? void 0 : o ? Xe(e, t) : e, a = r.length - 1, s; a >= 0; a--)
|
|
539
539
|
(s = r[a]) && (i = (o ? s(e, t, i) : s(i)) || i);
|
|
540
|
-
return o && i &&
|
|
540
|
+
return o && i && Je(e, t, i), i;
|
|
541
541
|
};
|
|
542
|
-
const
|
|
542
|
+
const Qe = 0, et = 0, tt = 0, it = /* @__PURE__ */ new Set(["JPG", "JPEG", "TIFF", "TIF", "MRF"]), ot = /* @__PURE__ */ new Set(["MRF", "TIFF", "TIF"]);
|
|
543
543
|
let b = class extends fe {
|
|
544
544
|
//--------------------------------------------------------------------------
|
|
545
545
|
//
|
|
@@ -551,7 +551,7 @@ let b = class extends fe {
|
|
|
551
551
|
const t = Promise.withResolvers(), o = e?.signal ? K(e?.signal, "abort", t.resolve) : null, i = this.type === "video" ? document.createElement("video") : document.createElement("img");
|
|
552
552
|
this.type === "video" && (i.setAttribute("playsinline", "true"), i.setAttribute("muted", "true"), i.setAttribute("autoplay", "true")), i.crossOrigin = "anonymous", i.src = this.url;
|
|
553
553
|
let a = null;
|
|
554
|
-
const s = this.type === "video" ?
|
|
554
|
+
const s = this.type === "video" ? Be(i, (m) => this.addHandles(m)) : await new Promise((m, c) => {
|
|
555
555
|
a = [
|
|
556
556
|
J(i, "error", (h) => {
|
|
557
557
|
c(h);
|
|
@@ -584,15 +584,15 @@ let b = class extends fe {
|
|
|
584
584
|
}
|
|
585
585
|
get horizonPitch() {
|
|
586
586
|
const { matrix: r } = this;
|
|
587
|
-
return r ? 180 * Math.asin(-r[6]) / Math.PI :
|
|
587
|
+
return r ? 180 * Math.asin(-r[6]) / Math.PI : Qe;
|
|
588
588
|
}
|
|
589
589
|
get horizonRoll() {
|
|
590
590
|
const { matrix: r } = this;
|
|
591
|
-
return r ? 180 * Math.atan(r[7] / r[8]) / Math.PI :
|
|
591
|
+
return r ? 180 * Math.atan(r[7] / r[8]) / Math.PI : tt;
|
|
592
592
|
}
|
|
593
593
|
get horizonYaw() {
|
|
594
594
|
const { matrix: r, cameraHeading: e } = this;
|
|
595
|
-
return r ? 180 * Math.atan2(r[3], r[0]) / Math.PI : e ? -e :
|
|
595
|
+
return r ? 180 * Math.atan2(r[3], r[0]) / Math.PI : e ? -e : et;
|
|
596
596
|
}
|
|
597
597
|
get panoramicTileSource() {
|
|
598
598
|
return this._panoramicTileSource;
|
|
@@ -612,7 +612,7 @@ let b = class extends fe {
|
|
|
612
612
|
if (this.type === "video")
|
|
613
613
|
return await this.loadVideoMesh(r);
|
|
614
614
|
let e = this.extension;
|
|
615
|
-
if (e || (e =
|
|
615
|
+
if (e || (e = be(this.url)), !e || !it.has(e))
|
|
616
616
|
throw new we(
|
|
617
617
|
"unsupported-format",
|
|
618
618
|
this.uiStrings["unsupported-format"] ?? "Unsupported image format: {extension}",
|
|
@@ -620,18 +620,18 @@ let b = class extends fe {
|
|
|
620
620
|
datasetFormat: e ?? "UNKNOWN FORMAT"
|
|
621
621
|
}
|
|
622
622
|
);
|
|
623
|
-
return
|
|
623
|
+
return ot.has(e) ? await this.loadOptimizedImageMesh(r) : await this.loadImageMesh(r);
|
|
624
624
|
}
|
|
625
625
|
async loadOptimizedImageMesh(r) {
|
|
626
626
|
this._panoramicTileSource?.destroy();
|
|
627
|
-
const e = new
|
|
627
|
+
const e = new Se({
|
|
628
628
|
url: this.url,
|
|
629
629
|
// @ts-ignore - datasetFormat is not part of the official ImageryTileLayer properties, but is used in the custom ioConfig for loading the image and is necessary to pass along the format information.
|
|
630
630
|
datasetFormat: this.extension,
|
|
631
631
|
skipMapInfo: !0,
|
|
632
632
|
skipExtensions: ["aux.xml", "jgw"]
|
|
633
633
|
});
|
|
634
|
-
this._panoramicTileSource = new
|
|
634
|
+
this._panoramicTileSource = new qe(e);
|
|
635
635
|
const { imageSize: t, baseMesh: o } = await this._panoramicTileSource.load();
|
|
636
636
|
return z(r), { mesh: o, size: t };
|
|
637
637
|
}
|
|
@@ -725,24 +725,24 @@ x([
|
|
|
725
725
|
b = x([
|
|
726
726
|
_e("components.oriented-imagery-viewer-panoramic-viewer.support.PanoramicMedia")
|
|
727
727
|
], b);
|
|
728
|
-
const
|
|
728
|
+
const rt = () => new he({
|
|
729
729
|
atmosphereEnabled: !1,
|
|
730
730
|
starsEnabled: !1,
|
|
731
731
|
lighting: {
|
|
732
732
|
type: "virtual"
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), st = () => new pe({
|
|
735
735
|
opacity: 0,
|
|
736
736
|
navigationConstraint: null
|
|
737
|
-
}),
|
|
737
|
+
}), at = () => new W({
|
|
738
738
|
x: 0,
|
|
739
739
|
y: 0,
|
|
740
740
|
z: 0,
|
|
741
741
|
spatialReference: H.WebMercator
|
|
742
742
|
});
|
|
743
|
-
class
|
|
743
|
+
class nt extends ae {
|
|
744
744
|
constructor() {
|
|
745
|
-
super(...arguments), this.#e =
|
|
745
|
+
super(...arguments), this.#e = rt(), this._graphicsController = new ne(this), this._ground = st(), this._messages = le(), this._startPosition = null, this.tileCache = /* @__PURE__ */ new Set(), this._currentGraphicsStore = new ee(), this._tileLabelGraphics = /* @__PURE__ */ new Map(), this._handleMouseWheel = (e) => {
|
|
746
746
|
e.detail.stopPropagation(), e.detail.deltaY < 0 ? this._internalZoom.value?.zoomIn() : this._internalZoom.value?.zoomOut();
|
|
747
747
|
}, this._handleDrag = (e) => {
|
|
748
748
|
e.stopPropagation();
|
|
@@ -762,7 +762,7 @@ class at extends ae {
|
|
|
762
762
|
a = requestAnimationFrame(n);
|
|
763
763
|
return;
|
|
764
764
|
}
|
|
765
|
-
const m = t - this._startPosition.x, c = o - this._startPosition.y, h =
|
|
765
|
+
const m = t - this._startPosition.x, c = o - this._startPosition.y, h = Ne(this.camera?.heading - m * 0.1), p = $e(this.camera.tilt + c * 0.1);
|
|
766
766
|
this.yaw = h, this.pitch = p, this._startPosition = { x: t, y: o }, s = null;
|
|
767
767
|
};
|
|
768
768
|
a = requestAnimationFrame(n);
|
|
@@ -777,7 +777,7 @@ class at extends ae {
|
|
|
777
777
|
this.properties = { _media: 16, _internalMap: 16, _internalZoom: 16, _loading: 16, _base: 16, yaw: 9, pitch: 9, hideLoader: 5, hideTitle: 7, hideZoomControls: 5, hideVideoControls: 5, imageSize: 32, media: 0, messageOverrides: 0, hfov: 32, base: 32 };
|
|
778
778
|
}
|
|
779
779
|
static {
|
|
780
|
-
this.styles = [
|
|
780
|
+
this.styles = [Fe];
|
|
781
781
|
}
|
|
782
782
|
#e;
|
|
783
783
|
get view() {
|
|
@@ -788,7 +788,7 @@ class at extends ae {
|
|
|
788
788
|
return this.view?.camera;
|
|
789
789
|
}
|
|
790
790
|
set camera(e) {
|
|
791
|
-
!e || !this.view || this.view.destroyed || (e.position =
|
|
791
|
+
!e || !this.view || this.view.destroyed || (e.position = at(), this.view.camera = e.clone());
|
|
792
792
|
}
|
|
793
793
|
get map() {
|
|
794
794
|
return this._internalMap.value?.view?.map;
|
|
@@ -871,15 +871,15 @@ class at extends ae {
|
|
|
871
871
|
panoramicTileSource: e,
|
|
872
872
|
heading: t,
|
|
873
873
|
pitch: o,
|
|
874
|
-
hfov:
|
|
875
|
-
vfov:
|
|
874
|
+
hfov: Pe(i, n),
|
|
875
|
+
vfov: Ie(i, n)
|
|
876
876
|
};
|
|
877
877
|
}, (e) => {
|
|
878
878
|
e && (this._tileUpdateDebounceHandle != null && clearTimeout(this._tileUpdateDebounceHandle), this._tileUpdateDebounceHandle = window.setTimeout(() => {
|
|
879
879
|
this._tileUpdateTask?.abort(), this._tileUpdateTask = ge(async (t) => {
|
|
880
880
|
await this._updateTilesForCurrentView(e, t);
|
|
881
881
|
}), this._tileUpdateDebounceHandle = void 0;
|
|
882
|
-
}, 150));
|
|
882
|
+
}, ve(150)));
|
|
883
883
|
}, { initial: !0, sync: !0 })
|
|
884
884
|
]);
|
|
885
885
|
}
|
|
@@ -906,9 +906,9 @@ class at extends ae {
|
|
|
906
906
|
z: l,
|
|
907
907
|
spatialReference: H.WebMercator
|
|
908
908
|
}),
|
|
909
|
-
symbol: new
|
|
909
|
+
symbol: new Re({
|
|
910
910
|
color: [255, 255, 255, 0.95],
|
|
911
|
-
font: new
|
|
911
|
+
font: new ze({
|
|
912
912
|
family: "Avenir Next",
|
|
913
913
|
size: 8,
|
|
914
914
|
weight: "bold"
|
|
@@ -963,7 +963,7 @@ class at extends ae {
|
|
|
963
963
|
const f = await i.fetchTileImageData(_, g, w, v.signal);
|
|
964
964
|
z(t), m.desiredKeySet.has(u) && !this.tileCache.has(u) && (i.loadComponent(_, g, w, f), i.markTileLoaded(u), this._attachTileLabel(i, u), this.tileCache.add(u));
|
|
965
965
|
} catch (f) {
|
|
966
|
-
|
|
966
|
+
ye(f) || Ae("error", this, "Failed loading panoramic tile component", { detail: { key: u, error: f } });
|
|
967
967
|
} finally {
|
|
968
968
|
t.removeEventListener("abort", y), i.markTileInflightResolved(u);
|
|
969
969
|
}
|
|
@@ -993,13 +993,13 @@ class at extends ae {
|
|
|
993
993
|
const { mesh: o } = await e.load(t).finally(() => {
|
|
994
994
|
this._loading = !1;
|
|
995
995
|
});
|
|
996
|
-
z(t), this._fov =
|
|
996
|
+
z(t), this._fov = Le(ke, this.el.clientWidth / this.el.clientHeight), this._base = Ve(o), this.addGraphic(this._base);
|
|
997
997
|
}
|
|
998
998
|
render() {
|
|
999
999
|
return Z`<calcite-panel .loading=${this.hideLoader ? void 0 : this._loading} .heading=${this.hideTitle ? void 0 : this._messages.title}><arcgis-scene .environment=${this.#e} hide-attribution .spatialReference=${H.WebMercator} viewing-mode=local .ground=${this._ground} @arcgisViewMouseWheel=${this._handleMouseWheel} ${q(this._internalMap)}><arcgis-oriented-imagery-viewer-panoramic-viewer-zoom .hidden=${this.hideZoomControls} slot=top-left ${q(this._internalZoom)}></arcgis-oriented-imagery-viewer-panoramic-viewer-zoom></arcgis-scene>${this.hideVideoControls || this.media?.type !== "video" ? null : Z`<arcgis-oriented-imagery-viewer-video-controls .videoRef=${this._media?.element}></arcgis-oriented-imagery-viewer-video-controls>`}</calcite-panel>`;
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
re("arcgis-oriented-imagery-viewer-panoramic-viewer",
|
|
1002
|
+
re("arcgis-oriented-imagery-viewer-panoramic-viewer", nt);
|
|
1003
1003
|
export {
|
|
1004
|
-
|
|
1004
|
+
nt as ArcgisOrientedImageryViewerPanoramicViewer
|
|
1005
1005
|
};
|
|
@@ -14,13 +14,33 @@ import type { PasteExecuteResult } from "./commands/PasteCommand.js";
|
|
|
14
14
|
import type { CustomPasteCommand } from "./commands/PasteCustomCommand.js";
|
|
15
15
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
16
16
|
|
|
17
|
+
declare module "@arcgis/lumina" {
|
|
18
|
+
export interface DeclareCssProperties {
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the height of the component.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
"--arcgis-paste-height": "*";
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the width of the component.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
"--arcgis-paste-width": "*";
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the padding for elements within the component.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
"--arcgis-paste-blocks-padding": "*";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
17
40
|
/**
|
|
18
41
|
* The Paste component provides a UX for working with a Clipboard and
|
|
19
42
|
* copy and pasting features and/or geometries.
|
|
20
43
|
*
|
|
21
|
-
* @cssproperty [--arcgis-paste-height] - Specifies the height of the component.
|
|
22
|
-
* @cssproperty [--arcgis-paste-width] - Specifies the width of the component.
|
|
23
|
-
* @cssproperty [--arcgis-paste-blocks-padding] - Specifies the padding for elements within the component.
|
|
24
44
|
* @slot [home-header-actions-start] - Slot for adding actions to the start of the header on the entry page.
|
|
25
45
|
* @slot [header-actions-end] - Slot for adding actions to the end of the header.
|
|
26
46
|
* @slot [gallery-page-message] - Slot for adding content to the template gallery page.
|