@arcgis/map-components 5.2.0-next.116 → 5.2.0-next.118
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/{YPLDGIGU.js → 2Y5HBYMR.js} +1 -1
- package/dist/cdn/{7YQT4TAV.js → 3IICULHW.js} +1 -1
- package/dist/cdn/4X5447LA.js +2 -0
- package/dist/cdn/{AYA4YPGJ.js → 5GTE6AB7.js} +1 -1
- package/dist/cdn/67VFYB4A.js +2 -0
- package/dist/cdn/CXDU7XEL.js +2 -0
- package/dist/cdn/{KFZLFT6Z.js → GZQXMBK6.js} +1 -1
- package/dist/cdn/{RIVFCEGS.js → H6IR3FJ4.js} +1 -1
- package/dist/cdn/{AAMXNZ5S.js → HM37S3XP.js} +1 -1
- package/dist/cdn/{L5U6EHCA.js → J2BAJI7A.js} +1 -1
- package/dist/cdn/{XUNBAMHK.js → KZUMKDRC.js} +1 -1
- package/dist/cdn/{IYZBLJYE.js → LBXIC75T.js} +1 -1
- package/dist/cdn/{ZVD5QL4J.js → P5JSHW4U.js} +1 -1
- package/dist/cdn/{2IXK6FXU.js → P7G6JCDO.js} +1 -1
- package/dist/cdn/PQINPHI6.js +2 -0
- package/dist/cdn/QNO6SSDQ.js +2 -0
- package/dist/cdn/QYIXFX7A.js +2 -0
- package/dist/cdn/RWMU7NT7.js +2 -0
- package/dist/cdn/{2ZQLKYCJ.js → S25QU4HS.js} +1 -1
- package/dist/cdn/{EBONLIVF.js → S5TTVLIS.js} +1 -1
- package/dist/cdn/{MBK37J6O.js → STPGQ6FX.js} +1 -1
- package/dist/cdn/{7TRI2EBZ.js → TLNCTHYZ.js} +1 -1
- package/dist/cdn/{PV7UBH65.js → TN5QHOVX.js} +1 -1
- package/dist/cdn/{F47RXPBG.js → VXKWVXTO.js} +1 -1
- package/dist/cdn/X5P6K573.js +2 -0
- package/dist/cdn/{3HPTS3JC.js → XJZJWNYP.js} +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/file-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/volume-measurement/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/AnalysisViewModel.js +78 -75
- package/dist/chunks/GeolocationPositioning.js +67 -67
- package/dist/chunks/screenLocation.js +8 -8
- package/dist/chunks/useLayerById.js +13 -12
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +30 -3
- package/dist/components/arcgis-building-level-picker/customElement.js +22 -22
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +4 -4
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +30 -30
- package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +30 -25
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +30 -30
- package/dist/components/arcgis-sketch/customElement.d.ts +4 -4
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -1
- package/dist/components/arcgis-video-player/VideoPlayerViewModel.d.ts +52 -0
- package/dist/components/arcgis-video-player/customElement.d.ts +4 -6
- package/dist/components/arcgis-video-player/customElement.js +241 -33
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/HC2C4ZYW.js +0 -2
- package/dist/cdn/L3V32U4F.js +0 -2
- package/dist/cdn/M4BXOW2Q.js +0 -2
- package/dist/cdn/NE7E7YHO.js +0 -2
- package/dist/cdn/O7UYGS63.js +0 -2
- package/dist/cdn/T6NUABZU.js +0 -2
- package/dist/cdn/TQOCUWMD.js +0 -2
- package/dist/cdn/XMDFKE47.js +0 -2
|
@@ -1,26 +1,234 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { watch as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as v, html as s } from "lit";
|
|
4
|
+
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as w, createEvent as u, safeClassMap as _ } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as T } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { classes as M } from "@arcgis/toolkit/dom";
|
|
8
|
+
import { createRef as b, ref as D } from "lit/directives/ref.js";
|
|
9
|
+
import { u as V } from "../../chunks/useT9n.js";
|
|
10
|
+
import { m as $ } from "../../chunks/useViewModel.js";
|
|
11
|
+
import { g as P } from "../../chunks/globalCss.js";
|
|
12
|
+
import { n as f } from "../../chunks/video-utils.js";
|
|
13
|
+
import C from "@arcgis/core/core/Accessor.js";
|
|
14
|
+
import { property as l, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
15
|
+
var L = Object.defineProperty, k = Object.getOwnPropertyDescriptor, a = (e, i, n, h) => {
|
|
16
|
+
for (var r = h > 1 ? void 0 : h ? k(i, n) : i, y = e.length - 1, c; y >= 0; y--)
|
|
17
|
+
(c = e[y]) && (r = (h ? c(i, n, r) : c(r)) || r);
|
|
18
|
+
return h && r && L(i, n, r), r;
|
|
19
|
+
};
|
|
20
|
+
const o = {
|
|
21
|
+
FrameCenterElevation: 10025,
|
|
22
|
+
FrameCenterLatitude: 10023,
|
|
23
|
+
FrameCenterLongitude: 10024,
|
|
24
|
+
MissionId: 10003,
|
|
25
|
+
PlatformCallSign: 10059,
|
|
26
|
+
PlatformDesignation: 10010,
|
|
27
|
+
PlatformGroundRange: 10057,
|
|
28
|
+
PlatformTailNumber: 10004,
|
|
29
|
+
PlatformTrueAirspeed: 10008,
|
|
30
|
+
PrecisionTimeStamp: 10002
|
|
31
|
+
};
|
|
32
|
+
function m(e, i) {
|
|
33
|
+
const n = {};
|
|
34
|
+
for (const h of i) {
|
|
35
|
+
const r = e.get(h);
|
|
36
|
+
r && (n[r.name] = String(r.value));
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
let t = class extends C {
|
|
41
|
+
//#region Lifecycle
|
|
42
|
+
constructor(e) {
|
|
43
|
+
super(e), this.followingMode = "follow-both", this.seekLength = 10;
|
|
44
|
+
}
|
|
45
|
+
initialize() {
|
|
46
|
+
this.addHandles([
|
|
47
|
+
d(
|
|
48
|
+
() => this.layer,
|
|
49
|
+
(e, i) => {
|
|
50
|
+
i && i.pause(), e && e.load().then(() => this._followTelemetry()).catch(() => {
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
{ initial: !0 }
|
|
54
|
+
),
|
|
55
|
+
d(
|
|
56
|
+
() => [this.followingMode],
|
|
57
|
+
() => this._followTelemetry(),
|
|
58
|
+
{ initial: !0 }
|
|
59
|
+
)
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
get buffered() {
|
|
63
|
+
return this.layer?.buffered || 0;
|
|
64
|
+
}
|
|
65
|
+
get currentTime() {
|
|
66
|
+
return this.layer?.currentTime || 0;
|
|
67
|
+
}
|
|
68
|
+
get duration() {
|
|
69
|
+
return this.layer?.duration || 0;
|
|
70
|
+
}
|
|
71
|
+
get ended() {
|
|
72
|
+
return this.layer?.ended ?? !0;
|
|
73
|
+
}
|
|
74
|
+
get metadata() {
|
|
75
|
+
const e = this.layer?.metadata;
|
|
76
|
+
return e ? {
|
|
77
|
+
missionInfo: m(e, [o.MissionId, o.PrecisionTimeStamp]),
|
|
78
|
+
platformInfo: m(e, [
|
|
79
|
+
o.PlatformTailNumber,
|
|
80
|
+
o.PlatformTrueAirspeed,
|
|
81
|
+
o.PlatformCallSign,
|
|
82
|
+
o.PlatformDesignation,
|
|
83
|
+
o.PlatformGroundRange
|
|
84
|
+
]),
|
|
85
|
+
frameInfo: m(e, [
|
|
86
|
+
o.FrameCenterElevation,
|
|
87
|
+
o.FrameCenterLatitude,
|
|
88
|
+
o.FrameCenterLongitude
|
|
89
|
+
])
|
|
90
|
+
} : null;
|
|
91
|
+
}
|
|
92
|
+
get playing() {
|
|
93
|
+
return this.layer?.playing ?? !1;
|
|
94
|
+
}
|
|
95
|
+
previewsInfo() {
|
|
96
|
+
return this.layer?.previewsInfo || null;
|
|
97
|
+
}
|
|
98
|
+
get state() {
|
|
99
|
+
return this.layer?.loadError ? "error" : this.layer?.state ?? "not-ready";
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region Public Methods
|
|
103
|
+
changeGraphicsColor(e) {
|
|
104
|
+
e && this.layer.updateTelemetryColor(e);
|
|
105
|
+
}
|
|
106
|
+
changePlaybackSpeed(e) {
|
|
107
|
+
this.layer && (this.layer.playbackRate = e);
|
|
108
|
+
}
|
|
109
|
+
pause() {
|
|
110
|
+
this.layer?.pause();
|
|
111
|
+
}
|
|
112
|
+
play() {
|
|
113
|
+
this.layer?.play();
|
|
114
|
+
}
|
|
115
|
+
seekBackward() {
|
|
116
|
+
if (this.layer) {
|
|
117
|
+
const e = this.layer.currentTime - this.seekLength;
|
|
118
|
+
e <= 0 ? this.layer.reset() : this.layer.setCurrentTime(e);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
seekForward() {
|
|
122
|
+
if (this.layer) {
|
|
123
|
+
const e = this.layer.currentTime + this.seekLength;
|
|
124
|
+
e >= this.layer.duration ? this.layer.reset() : this.layer.setCurrentTime(e);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
seekTo(e) {
|
|
128
|
+
this.layer?.setCurrentTime(e);
|
|
129
|
+
}
|
|
130
|
+
seekToBeginning() {
|
|
131
|
+
this.layer?.setCurrentTime(0);
|
|
132
|
+
}
|
|
133
|
+
seekToEnding() {
|
|
134
|
+
this.layer?.setCurrentTime(this.layer.duration);
|
|
135
|
+
}
|
|
136
|
+
toggleFrameCenterDisplay() {
|
|
137
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frameCenter = !this.layer.telemetryDisplay.frameCenter);
|
|
138
|
+
}
|
|
139
|
+
toggleFrameDisplay() {
|
|
140
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frame = !this.layer.telemetryDisplay.frame);
|
|
141
|
+
}
|
|
142
|
+
toggleFrameOutlineDisplay() {
|
|
143
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frameOutline = !this.layer.telemetryDisplay.frameOutline);
|
|
144
|
+
}
|
|
145
|
+
toggleLoopPlayback() {
|
|
146
|
+
this.layer && (this.layer.loop = !this.layer.loop);
|
|
147
|
+
}
|
|
148
|
+
toggleSensorDisplay() {
|
|
149
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorLocation = !this.layer.telemetryDisplay.sensorLocation);
|
|
150
|
+
}
|
|
151
|
+
toggleSensorPathDisplay() {
|
|
152
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorPath = !this.layer.telemetryDisplay.sensorPath);
|
|
153
|
+
}
|
|
154
|
+
toggleSensorSightLineDisplay() {
|
|
155
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.lineOfSight = !this.layer.telemetryDisplay.lineOfSight);
|
|
156
|
+
}
|
|
157
|
+
toggleSensorTrailDisplay() {
|
|
158
|
+
this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorTrail = !this.layer.telemetryDisplay.sensorTrail);
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region Private Methods
|
|
162
|
+
_followTelemetry() {
|
|
163
|
+
this.removeHandles("follow"), this.view && this.layer && this.addHandles(
|
|
164
|
+
d(
|
|
165
|
+
() => this.layer?.telemetry,
|
|
166
|
+
() => {
|
|
167
|
+
const e = [], i = this.followingMode === "follow-frame" || this.followingMode === "follow-both";
|
|
168
|
+
if ((this.followingMode === "follow-sensor" || this.followingMode === "follow-both") && this.layer?.telemetry.sensorLocation && e.push(this.layer.telemetry.sensorLocation), i && this.layer?.telemetry.frameCenter && e.push(this.layer.telemetry.frameCenter), !e.length) {
|
|
169
|
+
this.layer?.initialExtent && this.followingMode !== "none" && this.view?.goTo(this.layer.initialExtent).catch(() => {
|
|
170
|
+
});
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
this.view?.goTo(e).catch(() => {
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
{ initial: !0 }
|
|
177
|
+
),
|
|
178
|
+
"follow"
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
};
|
|
183
|
+
a([
|
|
184
|
+
l({ readOnly: !0 })
|
|
185
|
+
], t.prototype, "buffered", 1);
|
|
186
|
+
a([
|
|
187
|
+
l({ readOnly: !0 })
|
|
188
|
+
], t.prototype, "currentTime", 1);
|
|
189
|
+
a([
|
|
190
|
+
l({ readOnly: !0 })
|
|
191
|
+
], t.prototype, "duration", 1);
|
|
192
|
+
a([
|
|
193
|
+
l({ readOnly: !0 })
|
|
194
|
+
], t.prototype, "ended", 1);
|
|
195
|
+
a([
|
|
196
|
+
l()
|
|
197
|
+
], t.prototype, "followingMode", 2);
|
|
198
|
+
a([
|
|
199
|
+
l()
|
|
200
|
+
], t.prototype, "layer", 2);
|
|
201
|
+
a([
|
|
202
|
+
l({ readOnly: !0 })
|
|
203
|
+
], t.prototype, "metadata", 1);
|
|
204
|
+
a([
|
|
205
|
+
l({ readOnly: !0 })
|
|
206
|
+
], t.prototype, "playing", 1);
|
|
207
|
+
a([
|
|
208
|
+
l({ readOnly: !0 })
|
|
209
|
+
], t.prototype, "previewsInfo", 1);
|
|
210
|
+
a([
|
|
211
|
+
l()
|
|
212
|
+
], t.prototype, "seekLength", 2);
|
|
213
|
+
a([
|
|
214
|
+
l({ readOnly: !0 })
|
|
215
|
+
], t.prototype, "state", 1);
|
|
216
|
+
a([
|
|
217
|
+
l()
|
|
218
|
+
], t.prototype, "view", 2);
|
|
219
|
+
t = a([
|
|
220
|
+
S("map-components.video-player.VideoPlayerViewModel")
|
|
221
|
+
], t);
|
|
222
|
+
const x = t, O = v`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, F = $(x);
|
|
223
|
+
class R extends w {
|
|
16
224
|
constructor() {
|
|
17
|
-
super(...arguments), this.messages =
|
|
225
|
+
super(...arguments), this.messages = V({ blocking: !0 }), this.viewModel = F(this), this._videoViewRef = b(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this._loopPlayback = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.operationalDataVisible = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = T()("state", "layer"), this.arcgisReady = u(), this.arcgisVideoReady = u();
|
|
18
226
|
}
|
|
19
227
|
static {
|
|
20
228
|
this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, _loopPlayback: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, operationalDataVisible: 5, hideHeader: 5, view: 0 };
|
|
21
229
|
}
|
|
22
230
|
static {
|
|
23
|
-
this.styles =
|
|
231
|
+
this.styles = O;
|
|
24
232
|
}
|
|
25
233
|
get followingMode() {
|
|
26
234
|
return this.viewModel.followingMode;
|
|
@@ -33,47 +241,47 @@ class T extends g {
|
|
|
33
241
|
}
|
|
34
242
|
loaded() {
|
|
35
243
|
this.manager.onLifecycle(() => [
|
|
36
|
-
|
|
37
|
-
const { buffered: i, currentTime:
|
|
38
|
-
this._duration =
|
|
244
|
+
d(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.buffered, this.viewModel.ended], () => {
|
|
245
|
+
const { buffered: i, currentTime: n, duration: h, ended: r } = this.viewModel, y = f(h), c = f(n), p = f(i);
|
|
246
|
+
this._duration = y, this._currentTime = c, this._bufferedValue = p / (y || 1), this._currentValue = c / (y || 1), this._isBuffering = !r && this._bufferedValue < this._currentValue;
|
|
39
247
|
}),
|
|
40
|
-
|
|
248
|
+
d(() => this.layer?.title, (i) => {
|
|
41
249
|
this._layerTitle = i ?? void 0;
|
|
42
250
|
}, { initial: !0 }),
|
|
43
|
-
|
|
251
|
+
d(() => this.layer?.isLive, (i) => {
|
|
44
252
|
this._isLive = i ?? void 0;
|
|
45
253
|
}, { initial: !0 }),
|
|
46
|
-
|
|
254
|
+
d(() => this.layer?.playbackRate, (i) => {
|
|
47
255
|
typeof i == "number" && this.viewModel.changePlaybackSpeed(i);
|
|
48
256
|
}, { initial: !0 }),
|
|
49
|
-
|
|
257
|
+
d(() => this.viewModel.view?.map, () => this.requestUpdate())
|
|
50
258
|
]);
|
|
51
259
|
}
|
|
52
260
|
render() {
|
|
53
|
-
return
|
|
261
|
+
return s`<div class=${_(M(this.inline ? "inline" : "root", P.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : s`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? s`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? s`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : s`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : s`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
|
|
54
262
|
}
|
|
55
263
|
_renderLoadingScrim() {
|
|
56
|
-
return this._videoViewReady ? null :
|
|
264
|
+
return this._videoViewReady ? null : s`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
|
|
57
265
|
}
|
|
58
266
|
_renderBuffering() {
|
|
59
|
-
return this._isBuffering ?
|
|
267
|
+
return this._isBuffering ? s`<calcite-progress type=indeterminate></calcite-progress>` : null;
|
|
60
268
|
}
|
|
61
269
|
_renderVideoSection() {
|
|
62
|
-
return
|
|
270
|
+
return s`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
|
|
63
271
|
this._videoViewReady = !0, this.arcgisVideoReady.emit();
|
|
64
|
-
}} ${
|
|
272
|
+
}} ${D(this._videoViewRef)}></arcgis-video>`;
|
|
65
273
|
}
|
|
66
274
|
_renderSlider() {
|
|
67
|
-
return this._isLive ? null :
|
|
275
|
+
return this._isLive ? null : s`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
|
|
68
276
|
}
|
|
69
277
|
_renderActionBar() {
|
|
70
|
-
return
|
|
278
|
+
return s`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
|
|
71
279
|
}
|
|
72
280
|
_renderMetadataSection() {
|
|
73
|
-
return this._metadataVisible ?
|
|
281
|
+
return this._metadataVisible ? s`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
|
|
74
282
|
}
|
|
75
283
|
}
|
|
76
|
-
|
|
284
|
+
g("arcgis-video-player", R);
|
|
77
285
|
export {
|
|
78
|
-
|
|
286
|
+
R as ArcgisVideoPlayer
|
|
79
287
|
};
|