@eyeon/map 2.0.13 → 2.0.15
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/assets/MapViewer.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/MapViewer.js +2586 -2074
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/stacking.js +1073 -768
- package/dist/chunks/stacking.js.map +1 -1
- package/dist/chunks/wheelZoom.js +35 -35
- package/dist/core/currentLocation.d.ts +15 -0
- package/dist/core/currentLocation.d.ts.map +1 -0
- package/dist/core/hostChrome.d.ts +9 -1
- package/dist/core/hostChrome.d.ts.map +1 -1
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +190 -159
- package/dist/core/publicShapes.d.ts +18 -0
- package/dist/core/publicShapes.d.ts.map +1 -0
- package/dist/core/publish/index.d.ts.map +1 -1
- package/dist/core/responsive.d.ts +51 -0
- package/dist/core/responsive.d.ts.map +1 -0
- package/dist/core/types.d.ts +18 -3
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/websiteModal.d.ts +53 -0
- package/dist/core/websiteModal.d.ts.map +1 -0
- package/dist/editor/MapEditor.d.ts +10 -2
- package/dist/editor/MapEditor.d.ts.map +1 -1
- package/dist/editor/draftOps.d.ts +2 -1
- package/dist/editor/draftOps.d.ts.map +1 -1
- package/dist/editor/editorSectionReturn.d.ts +4 -2
- package/dist/editor/editorSectionReturn.d.ts.map +1 -1
- package/dist/editor/index.css +257 -0
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +3532 -3444
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/panels/LeftRail.d.ts +4 -2
- package/dist/editor/panels/LeftRail.d.ts.map +1 -1
- package/dist/editor/panels/PreviewOverlay.d.ts +8 -3
- package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -1
- package/dist/editor/previewDocument.d.ts +2 -1
- package/dist/editor/previewDocument.d.ts.map +1 -1
- package/dist/specialIcons.d.ts +2 -2
- package/dist/viewer/MapViewer.d.ts +10 -1
- package/dist/viewer/MapViewer.d.ts.map +1 -1
- package/dist/viewer/camera.d.ts +19 -1
- package/dist/viewer/camera.d.ts.map +1 -1
- package/dist/viewer/components/CameraRig.d.ts +12 -1
- package/dist/viewer/components/CameraRig.d.ts.map +1 -1
- package/dist/viewer/components/LevelMeshes.d.ts +6 -2
- package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
- package/dist/viewer/components/MapScene.d.ts +16 -3
- package/dist/viewer/components/MapScene.d.ts.map +1 -1
- package/dist/viewer/components/RouteLine.d.ts +25 -4
- package/dist/viewer/components/RouteLine.d.ts.map +1 -1
- package/dist/viewer/fetchWebsiteRetailers.d.ts +3 -0
- package/dist/viewer/fetchWebsiteRetailers.d.ts.map +1 -0
- package/dist/viewer/index.css +227 -0
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.d.ts.map +1 -1
- package/dist/viewer/index.js +6 -6
- package/dist/viewer/orbitWheelZoom.d.ts +12 -0
- package/dist/viewer/orbitWheelZoom.d.ts.map +1 -0
- package/dist/viewer/ui/WebsiteInfoModal.d.ts +10 -0
- package/dist/viewer/ui/WebsiteInfoModal.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/chunks/wheelZoom.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bb as M, aM as b, aL as _, aG as L, aO as $, bp as N, d as x, i as O, a$ as S, ad as y, bg as k, be as T } from "./stacking.js";
|
|
2
2
|
function H(e, u, r) {
|
|
3
3
|
var o, i, a, l;
|
|
4
4
|
const s = M(e), t = [];
|
|
5
5
|
for (const n of s.elements) {
|
|
6
|
-
if (!n.d || n.interactive || u != null && u.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") ||
|
|
6
|
+
if (!n.d || n.interactive || u != null && u.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") || b(n.id) || _(n.id) || L(n.id) || $(n.id)) continue;
|
|
7
7
|
const d = N(n.id, r), m = (d == null ? void 0 : d.fill) ?? ((o = n.style) == null ? void 0 : o.fill), I = (d == null ? void 0 : d.stroke) ?? ((i = n.style) == null ? void 0 : i.stroke), h = (d == null ? void 0 : d.strokeWidth) ?? ((a = n.style) == null ? void 0 : a.strokeWidth);
|
|
8
8
|
t.push({
|
|
9
9
|
id: n.id,
|
|
@@ -16,7 +16,7 @@ function H(e, u, r) {
|
|
|
16
16
|
}
|
|
17
17
|
return t;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function W(e, u, r, s = x) {
|
|
20
20
|
const t = e.filter((n) => r.includes(n.id));
|
|
21
21
|
if (t.length < 2) return null;
|
|
22
22
|
const o = t.reduce((n, d) => d.id < n.id ? d : n), i = [];
|
|
@@ -38,7 +38,7 @@ function F(e, u, r, s = x) {
|
|
|
38
38
|
rewiredEdgeIds: l
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function F(e, u = x) {
|
|
42
42
|
const r = [], s = /* @__PURE__ */ new Set();
|
|
43
43
|
for (let t = 0; t < e.length; t++) {
|
|
44
44
|
if (s.has(e[t].id)) continue;
|
|
@@ -51,8 +51,8 @@ function O(e, u = x) {
|
|
|
51
51
|
}
|
|
52
52
|
function D(e, u, r = x) {
|
|
53
53
|
const s = e.slice(), t = u.map((n) => ({ ...n })), o = /* @__PURE__ */ new Set();
|
|
54
|
-
for (const n of
|
|
55
|
-
const d =
|
|
54
|
+
for (const n of F(s, r)) {
|
|
55
|
+
const d = W(s, t, n, r);
|
|
56
56
|
if (d)
|
|
57
57
|
for (const m of d.removedAnchorIds) o.add(m);
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ function D(e, u, r = x) {
|
|
|
64
64
|
}
|
|
65
65
|
return { anchors: i, edges: l };
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function V(e, u, r, s = x) {
|
|
68
68
|
let t = null;
|
|
69
69
|
for (const i of u) {
|
|
70
70
|
const a = S(e, i);
|
|
@@ -83,7 +83,7 @@ function U(e, u, r, s = x) {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Y(e, u, r, s) {
|
|
87
87
|
if (r.length === 0) return null;
|
|
88
88
|
const t = r.flat();
|
|
89
89
|
if (t.length === 0) return null;
|
|
@@ -101,7 +101,7 @@ function V(e, u, r, s) {
|
|
|
101
101
|
connectorId: null
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function U(e, u, r = 20) {
|
|
105
105
|
if (e.length === 0)
|
|
106
106
|
return { anchors: [], edges: [] };
|
|
107
107
|
let s = 1 / 0, t = 1 / 0, o = -1 / 0, i = -1 / 0;
|
|
@@ -134,7 +134,7 @@ function X(e, u, r = 20) {
|
|
|
134
134
|
}
|
|
135
135
|
return { anchors: m, edges: I };
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function X(e, u, r, s, t = x) {
|
|
138
138
|
const o = [], i = [];
|
|
139
139
|
let a = s;
|
|
140
140
|
const l = (d, m) => {
|
|
@@ -154,7 +154,7 @@ function Y(e, u, r, s, t = x) {
|
|
|
154
154
|
}), h;
|
|
155
155
|
};
|
|
156
156
|
for (const d of e) {
|
|
157
|
-
const m =
|
|
157
|
+
const m = T(d);
|
|
158
158
|
for (const I of m)
|
|
159
159
|
for (let h = 0; h < I.length - 1; h++) {
|
|
160
160
|
const f = l(I[h].x, I[h].y), c = l(I[h + 1].x, I[h + 1].y);
|
|
@@ -175,13 +175,13 @@ function Y(e, u, r, s, t = x) {
|
|
|
175
175
|
const n = D(o, i, t);
|
|
176
176
|
return { anchors: n.anchors, edges: n.edges, nextId: a };
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function P(e) {
|
|
179
179
|
return e === "entrance" ? "entrance" : e === "connector" ? "connector" : "unit";
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function R(e) {
|
|
182
182
|
return e === "entrance" ? "entrance_link" : "unit_link";
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function C(e, u, r) {
|
|
185
185
|
if (k(e, u)) return "inside";
|
|
186
186
|
for (const s of u) {
|
|
187
187
|
if (s.length < 2) continue;
|
|
@@ -195,19 +195,19 @@ function E(e, u, r) {
|
|
|
195
195
|
const s = e.filter((o) => (u.get(o.id) ?? 0) <= 1);
|
|
196
196
|
return [...s.length > 0 ? s : e].sort((o, i) => y(o, r) - y(i, r))[0] ?? null;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function q(e, u, r, s = x * 3) {
|
|
199
199
|
const t = /* @__PURE__ */ new Map();
|
|
200
200
|
for (const l of u)
|
|
201
201
|
t.set(l.fromAnchorId, (t.get(l.fromAnchorId) ?? 0) + 1), t.set(l.toAnchorId, (t.get(l.toAnchorId) ?? 0) + 1);
|
|
202
202
|
const o = e.filter((l) => l.shapeId == null), i = /* @__PURE__ */ new Set();
|
|
203
203
|
let a = 0;
|
|
204
204
|
for (const l of r) {
|
|
205
|
-
if (!
|
|
205
|
+
if (!O.includes(l.kind)) continue;
|
|
206
206
|
const n = l.geometry.polygons ?? [];
|
|
207
207
|
if (n.length === 0) continue;
|
|
208
208
|
const d = o.filter((c) => !i.has(c.id)).map((c) => ({
|
|
209
209
|
anchor: c,
|
|
210
|
-
hit:
|
|
210
|
+
hit: C(c, n, s)
|
|
211
211
|
})).filter(
|
|
212
212
|
(c) => c.hit != null
|
|
213
213
|
);
|
|
@@ -224,36 +224,36 @@ function Z(e, u, r, s = x * 3) {
|
|
|
224
224
|
t,
|
|
225
225
|
I
|
|
226
226
|
);
|
|
227
|
-
if (!h || (h.shapeId = l.id, h.kind =
|
|
228
|
-
const f =
|
|
227
|
+
if (!h || (h.shapeId = l.id, h.kind = P(l.kind), i.add(h.id), a += 1, (t.get(h.id) ?? 0) > 1)) continue;
|
|
228
|
+
const f = R(h.kind);
|
|
229
229
|
for (const c of u)
|
|
230
230
|
(c.fromAnchorId === h.id || c.toAnchorId === h.id) && (c.kind = f);
|
|
231
231
|
}
|
|
232
232
|
return a;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
236
|
-
return Math.pow(
|
|
234
|
+
const K = 0.95, w = 1;
|
|
235
|
+
function G(e = w) {
|
|
236
|
+
return Math.pow(K, e);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function B(e, u, r) {
|
|
239
239
|
if (u === 0) return e;
|
|
240
|
-
const s =
|
|
240
|
+
const s = G((r == null ? void 0 : r.zoomSpeed) ?? w), t = u < 0 ? e / s : e * s, o = (r == null ? void 0 : r.min) ?? Number.NEGATIVE_INFINITY, i = (r == null ? void 0 : r.max) ?? Number.POSITIVE_INFINITY;
|
|
241
241
|
return Math.min(i, Math.max(o, t));
|
|
242
242
|
}
|
|
243
243
|
export {
|
|
244
|
-
|
|
244
|
+
K as W,
|
|
245
245
|
w as a,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
q as b,
|
|
247
|
+
V as c,
|
|
248
|
+
U as d,
|
|
249
249
|
D as e,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
F as f,
|
|
251
|
+
G as g,
|
|
252
|
+
X as i,
|
|
253
|
+
B as n,
|
|
254
254
|
H as o,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
P as r,
|
|
256
|
+
Y as u,
|
|
257
|
+
W as w
|
|
258
258
|
};
|
|
259
259
|
//# sourceMappingURL=wheelZoom.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CmShape, CmShapeAssignment, MapViewerHost, PublishedDocument } from './types';
|
|
2
|
+
type KioskShape = Pick<CmShape, 'id' | 'kind' | 'orphanedAt'> & {
|
|
3
|
+
assignment?: Pick<CmShapeAssignment, 'kioskId'> | null;
|
|
4
|
+
};
|
|
5
|
+
export interface ViewerKioskOrigin {
|
|
6
|
+
levelId: number;
|
|
7
|
+
shapeId: number;
|
|
8
|
+
anchorId: number | null;
|
|
9
|
+
}
|
|
10
|
+
/** DISPLAY_APP marks the kiosk through which the visitor is using the map. */
|
|
11
|
+
export declare function isViewerKioskOriginShape(host: MapViewerHost, kioskId: number | null | undefined, shape: KioskShape): boolean;
|
|
12
|
+
/** Resolve the kiosk floor, shape, and route anchor from the published map. */
|
|
13
|
+
export declare function findViewerKioskOrigin(document: Pick<PublishedDocument, 'levels'>, host: MapViewerHost, kioskId: number | null | undefined): ViewerKioskOrigin | null;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=currentLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currentLocation.d.ts","sourceRoot":"","sources":["../../src/core/currentLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,KAAK,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IAC9D,UAAU,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;CACxD,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,8EAA8E;AAC9E,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,KAAK,EAAE,UAAU,GAChB,OAAO,CAQT;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACjC,iBAAiB,GAAG,IAAI,CAe1B"}
|
|
@@ -3,7 +3,8 @@ import { MapHost, MapViewerHost } from './types';
|
|
|
3
3
|
export declare function mapSurface(host: MapHost): 'editor' | 'viewer';
|
|
4
4
|
/**
|
|
5
5
|
* Viewer chrome. Public website (`WEBSITE` / v1 WP_SITE) is floors + zoom/
|
|
6
|
-
* reset
|
|
6
|
+
* reset plus the store/amenity Map IT modal — no search or amenity strip.
|
|
7
|
+
* Kiosk origin is DISPLAY_APP only.
|
|
7
8
|
*/
|
|
8
9
|
export interface ViewerChrome {
|
|
9
10
|
search: boolean;
|
|
@@ -12,7 +13,14 @@ export interface ViewerChrome {
|
|
|
12
13
|
zoomReset: boolean;
|
|
13
14
|
kioskOrigin: boolean;
|
|
14
15
|
fetchDraft: boolean;
|
|
16
|
+
/** v1 WEBSITE RetailerInfoModal — click a store/amenity, then Map IT. */
|
|
17
|
+
storeModal: boolean;
|
|
15
18
|
}
|
|
16
19
|
export declare function viewerChrome(host: MapViewerHost): ViewerChrome;
|
|
20
|
+
/**
|
|
21
|
+
* Embedded website maps must let the page handle mouse-wheel / trackpad
|
|
22
|
+
* scrolling. Touch pinch zoom remains enabled separately in OrbitControls.
|
|
23
|
+
*/
|
|
24
|
+
export declare function viewerAllowsWheelZoom(host: MapViewerHost): boolean;
|
|
17
25
|
export declare function isMapViewerHost(host: MapHost): host is MapViewerHost;
|
|
18
26
|
//# sourceMappingURL=hostChrome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostChrome.d.ts","sourceRoot":"","sources":["../../src/core/hostChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAE7D;AAED
|
|
1
|
+
{"version":3,"file":"hostChrome.d.ts","sourceRoot":"","sources":["../../src/core/hostChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAE7D;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;CACrB;AAwBD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,CAE9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEpE"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export * from './color';
|
|
|
4
4
|
export * from './labelAlign';
|
|
5
5
|
export * from './assignment';
|
|
6
6
|
export * from './hostChrome';
|
|
7
|
+
export * from './currentLocation';
|
|
8
|
+
export * from './websiteModal';
|
|
9
|
+
export * from './publicShapes';
|
|
7
10
|
export * from './layerStyles';
|
|
8
11
|
export * from './mediaUrl';
|
|
9
12
|
export * from './outdoorDecoration';
|
|
@@ -13,6 +16,7 @@ export * from './import';
|
|
|
13
16
|
export * from './routing/graph-tools';
|
|
14
17
|
export * from './routing/pathfinding';
|
|
15
18
|
export * from './publish';
|
|
19
|
+
export * from './responsive';
|
|
16
20
|
export * from './stacking';
|
|
17
21
|
export * from './voids';
|
|
18
22
|
export * from './wheelZoom';
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,165 +1,196 @@
|
|
|
1
|
-
import { A as e, C as o, D as
|
|
2
|
-
import { W as
|
|
1
|
+
import { A as e, C as o, D as i, a as r, b as t, c as n, d as l, E as S, e as p, f as b, F as E, I as d, g as m, h as A, i as I, L as _, M as L, j as T, O, k as c, l as g, R as u, m as v, n as h, o as y, p as R, S as N, q as P, r as D, s as C, T as F, W as f, t as w, u as M, v as V, w as B, x, y as H, z as K, B as G, G as k, H as Y, J as U, K as W, N as z, P as Z, Q as j, U as q, V as Q, X, Y as J, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as ra, a4 as ta, a5 as na, a6 as la, a7 as Sa, a8 as pa, a9 as ba, aa as Ea, ab as da, ac as ma, ad as Aa, ae as Ia, af as _a, ag as La, ah as Ta, ai as Oa, aj as ca, ak as ga, al as ua, am as va, an as ha, ao as ya, ap as Ra, aq as Na, ar as Pa, as as Da, at as Ca, au as Fa, av as fa, aw as wa, ax as Ma, ay as Va, az as Ba, aA as xa, aB as Ha, aC as Ka, aD as Ga, aE as ka, aF as Ya, aG as Ua, aH as Wa, aI as za, aJ as Za, aK as ja, aL as qa, aM as Qa, aN as Xa, aO as Ja, aP as $a, aQ as as, aR as ss, aS as es, aT as os, aU as is, aV as rs, aW as ts, aX as ns, aY as ls, aZ as Ss, a_ as ps, a$ as bs, b0 as Es, b1 as ds, b2 as ms, b3 as As, b4 as Is, b5 as _s, b6 as Ls, b7 as Ts, b8 as Os, b9 as cs, ba as gs, bb as us, bc as vs, bd as hs, be as ys, bf as Rs, bg as Ns, bh as Ps, bi as Ds, bj as Cs, bk as Fs, bl as fs, bm as ws, bn as Ms, bo as Vs, bp as Bs, bq as xs, br as Hs, bs as Ks, bt as Gs, bu as ks, bv as Ys, bw as Us, bx as Ws, by as zs, bz as Zs, bA as js, bB as qs, bC as Qs, bD as Xs, bE as Js, bF as $s, bG as ae, bH as se, bI as ee, bJ as oe, bK as ie, bL as re, bM as te, bN as ne, bO as le, bP as Se, bQ as pe, bR as be, bS as Ee, bT as de, bU as me, bV as Ae, bW as Ie } from "../chunks/stacking.js";
|
|
2
|
+
import { W as Le, a as Te, b as Oe, c as ce, d as ge, e as ue, f as ve, i as he, n as ye, o as Re, r as Ne, u as Pe, w as De, g as Ce } from "../chunks/wheelZoom.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ASSIGNMENT_LAYER_TYPES,
|
|
5
5
|
o as CONNECTOR_ICON_SIZE,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
i as DEFAULT_ASSIGNMENT_SIZE,
|
|
7
|
+
r as DEFAULT_ENTRANCE_SIZE,
|
|
8
|
+
t as DEFAULT_LABEL_ALIGN,
|
|
9
|
+
n as DEFAULT_THEME,
|
|
10
10
|
l as DEFAULT_WELD_TOLERANCE,
|
|
11
|
-
S as
|
|
12
|
-
p as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
X as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
la as
|
|
71
|
-
Sa as
|
|
72
|
-
pa as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Aa as
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ha as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Fa as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Ua as
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Za as
|
|
112
|
-
ja as
|
|
113
|
-
qa as
|
|
114
|
-
|
|
115
|
-
Xa as
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
ds as
|
|
133
|
-
|
|
134
|
-
As as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hs as
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Fs as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Bs as
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
11
|
+
S as EMPTY_RESPONSIVE_CAMERA,
|
|
12
|
+
p as EMPTY_RESPONSIVE_CONTROLS,
|
|
13
|
+
b as ENTRANCE_ICON_ID,
|
|
14
|
+
E as FLOOR_CHANGE_PENALTY,
|
|
15
|
+
d as IDENTITY_MATRIX,
|
|
16
|
+
m as IMPORT_DRIFT_THRESHOLD,
|
|
17
|
+
A as IMPORT_PERSISTED_KINDS,
|
|
18
|
+
I as INTERACTIVE_SHAPE_KINDS,
|
|
19
|
+
_ as LABEL_ALIGNS,
|
|
20
|
+
L as MAP_NO_FLOORS_MESSAGE,
|
|
21
|
+
T as MIN_ENTRANCE_SIZE,
|
|
22
|
+
O as OPENING_VOID_FILL,
|
|
23
|
+
c as OPENING_VOID_MARK,
|
|
24
|
+
g as OPENING_VOID_STROKE,
|
|
25
|
+
u as RESPONSIVE_DESKTOP_MIN_WIDTH,
|
|
26
|
+
v as RESPONSIVE_DEVICES,
|
|
27
|
+
h as RESPONSIVE_DEVICE_TABS,
|
|
28
|
+
y as RESPONSIVE_TABLET_MIN_WIDTH,
|
|
29
|
+
R as RETAIL_LOGO_RENDER_SCALE,
|
|
30
|
+
N as SLAB_SHAPE_KINDS,
|
|
31
|
+
P as STATIC_LAYER_KEYS,
|
|
32
|
+
D as STATIC_LAYER_STYLES,
|
|
33
|
+
C as STATIC_LAYER_THEME_KEYS,
|
|
34
|
+
F as TRANSPARENT_COLOR,
|
|
35
|
+
f as WALKING_PATH_COLOR,
|
|
36
|
+
Le as WHEEL_ZOOM_BASE,
|
|
37
|
+
Te as WHEEL_ZOOM_SPEED,
|
|
38
|
+
w as amenityAssignedName,
|
|
39
|
+
M as angleFromWall,
|
|
40
|
+
V as applyBulkAssignPatch,
|
|
41
|
+
B as applyLevelTransform,
|
|
42
|
+
x as applyMatrix,
|
|
43
|
+
H as approximateArc,
|
|
44
|
+
K as approximateCubic,
|
|
45
|
+
G as approximateQuadratic,
|
|
46
|
+
k as assignNumberFromDraft,
|
|
47
|
+
Y as assignmentDisplayText,
|
|
48
|
+
U as assignmentHasTarget,
|
|
49
|
+
W as assignmentOverlayImageUrl,
|
|
50
|
+
z as assignmentOverlayRenderSize,
|
|
51
|
+
Z as assignmentOverlayVisible,
|
|
52
|
+
j as assignmentSpecialIconId,
|
|
53
|
+
q as assignmentVisualPatch,
|
|
54
|
+
Oe as attachImportedRouteAnchors,
|
|
55
|
+
ce as autoConnectUnitAnchor,
|
|
56
|
+
Q as bboxOf,
|
|
57
|
+
X as bboxUnion,
|
|
58
|
+
J as boundsFromStackedLevels,
|
|
59
|
+
ge as buildAutoSkeleton,
|
|
60
|
+
$ as buildGeometryFromPaths,
|
|
61
|
+
aa as bulkAssignFormState,
|
|
62
|
+
sa as centroid,
|
|
63
|
+
ea as clampEntranceSize,
|
|
64
|
+
oa as clampStoreRadius,
|
|
65
|
+
ia as classifyId,
|
|
66
|
+
ue as collapseDuplicateRouteGraph,
|
|
67
|
+
ra as commitAssignNumberDraft,
|
|
68
|
+
ta as compareBuildingFloors,
|
|
69
|
+
na as compileDocument,
|
|
70
|
+
la as compileGraph,
|
|
71
|
+
Sa as connectorIconLayout,
|
|
72
|
+
pa as defaultLayerTypeForKind,
|
|
73
|
+
ba as defaultTargetTypeForKind,
|
|
74
|
+
Ea as defaultViewerLevelId,
|
|
75
|
+
da as deviceFromHost,
|
|
76
|
+
ma as diffImport,
|
|
77
|
+
Aa as distance,
|
|
78
|
+
Ia as emptyResponsiveOverrideInput,
|
|
79
|
+
_a as emptyShapeAssignment,
|
|
80
|
+
La as expandBounds,
|
|
81
|
+
Ta as filletPolygon,
|
|
82
|
+
Oa as findNearestAmenityPath,
|
|
83
|
+
ca as findPath,
|
|
84
|
+
ga as findPublishedShape,
|
|
85
|
+
ua as findResponsiveOverride,
|
|
86
|
+
va as findViewerKioskOrigin,
|
|
87
|
+
ve as findWeldCandidates,
|
|
88
|
+
ha as flipY,
|
|
89
|
+
ya as floorSwitcherDisplayLevels,
|
|
90
|
+
Ra as floorSwitcherLevels,
|
|
91
|
+
Na as formatRetailerPhone,
|
|
92
|
+
Pa as geometryBBox,
|
|
93
|
+
Da as geometryCentroid,
|
|
94
|
+
Ca as hasBuildingFloors,
|
|
95
|
+
Fa as holeRingForOuter,
|
|
96
|
+
fa as holesOverlappingOuter,
|
|
97
|
+
he as importRoutePaths,
|
|
98
|
+
wa as importSvg,
|
|
99
|
+
Ma as inlineSvgStyles,
|
|
100
|
+
Va as isActiveVoidShape,
|
|
101
|
+
Ba as isAssignmentLayerType,
|
|
102
|
+
xa as isDeviceType,
|
|
103
|
+
Ha as isEmptyOverride,
|
|
104
|
+
Ka as isEmptyVec3,
|
|
105
|
+
Ga as isEntranceIcon,
|
|
106
|
+
ka as isGeometrySpaceStale,
|
|
107
|
+
Ya as isIdentityMatrix,
|
|
108
|
+
Ua as isInteractiveGroupLabel,
|
|
109
|
+
Wa as isLayerContainerLabel,
|
|
110
|
+
za as isMapViewerHost,
|
|
111
|
+
Za as isNonInteractiveGroupLabel,
|
|
112
|
+
ja as isOutdoorLevel,
|
|
113
|
+
qa as isRouteFolderLabel,
|
|
114
|
+
Qa as isRoutePathLabel,
|
|
115
|
+
Xa as isSlabShapeKind,
|
|
116
|
+
Ja as isStoreFolderLabel,
|
|
117
|
+
$a as isTransparentColor,
|
|
118
|
+
as as isViewerKioskOriginShape,
|
|
119
|
+
ss as isVoidKind,
|
|
120
|
+
es as kioskAssignedName,
|
|
121
|
+
os as labelAlignX,
|
|
122
|
+
is as labelSvgTextAnchor,
|
|
123
|
+
rs as levelHasVoids,
|
|
124
|
+
ts as mapSurface,
|
|
125
|
+
ns as mergePresentationStyle,
|
|
126
|
+
ls as mergeResponsiveOverrides,
|
|
127
|
+
Ss as mergeTheme,
|
|
128
|
+
ps as multiplyMatrix,
|
|
129
|
+
bs as nearestPointOnPolyline,
|
|
130
|
+
Es as nextLowerBuildingFloor,
|
|
131
|
+
ye as nextZoomFromWheel,
|
|
132
|
+
ds as normalizeGeometrySpace,
|
|
133
|
+
ms as normalizeLabelAlign,
|
|
134
|
+
As as normalizeLayerLabel,
|
|
135
|
+
Is as normalizeLayerName,
|
|
136
|
+
_s as normalizePublishedDocument,
|
|
137
|
+
Ls as normalizeRetailerCatalogItem,
|
|
138
|
+
Re as outdoorDecorationFromSvg,
|
|
139
|
+
Ts as outdoorSvgSuppressIds,
|
|
140
|
+
Os as overrideToCameraPose,
|
|
141
|
+
cs as parseKioskIdInput,
|
|
142
|
+
gs as parseShapeAssignment,
|
|
143
|
+
us as parseSvgString,
|
|
144
|
+
vs as parseTransform,
|
|
145
|
+
hs as parseViewBox,
|
|
146
|
+
ys as pathToPolygons,
|
|
147
|
+
Rs as pointInPolygon,
|
|
148
|
+
Ns as pointInPolygons,
|
|
149
|
+
Ps as polygonBBox,
|
|
150
|
+
Ds as polygonSignedArea,
|
|
151
|
+
Cs as polygonsOverlap,
|
|
152
|
+
Fs as poseToResponsiveFields,
|
|
153
|
+
fs as projectOntoSegment,
|
|
154
|
+
ws as publishedShapeLabel,
|
|
155
|
+
Ms as readPresentationStyle,
|
|
156
|
+
Vs as resolveFetchUrl,
|
|
157
|
+
Bs as resolveLayerStyle,
|
|
158
|
+
xs as resolveStaticLayerKey,
|
|
159
|
+
Hs as resolvedAssignmentBgColor,
|
|
160
|
+
Ks as resolvedAssignmentTextColor,
|
|
161
|
+
Gs as responsiveSlotKey,
|
|
162
|
+
ks as retailerOptionLabel,
|
|
163
|
+
Ys as revealedBuildingFloors,
|
|
164
|
+
Us as reversedRing,
|
|
165
|
+
Ne as routeAnchorKindForShape,
|
|
166
|
+
Ws as sceneBoundsFromBBox,
|
|
167
|
+
zs as shouldProxyMediaUrl,
|
|
168
|
+
Zs as shouldShowFloorSwitcher,
|
|
169
|
+
js as snapAngle,
|
|
170
|
+
qs as staticLayerHouseColor,
|
|
171
|
+
Qs as staticLayerThemeDefaults,
|
|
172
|
+
Xs as svgIdsOwnedByShapes,
|
|
173
|
+
Js as tokenizePathData,
|
|
174
|
+
$s as transformPathD,
|
|
175
|
+
ae as unionViewBox,
|
|
176
|
+
se as uniqueClosedRing,
|
|
177
|
+
Pe as unitAnchorFromShape,
|
|
178
|
+
ee as upsertResponsiveOverride,
|
|
179
|
+
oe as viewBoxToBounds,
|
|
180
|
+
ie as viewerAllowsWheelZoom,
|
|
181
|
+
re as viewerChrome,
|
|
182
|
+
te as viewerHidesUnassignedServiceShapes,
|
|
183
|
+
ne as viewerLevelIdAfterShapeSelect,
|
|
184
|
+
le as viewerLevelStack,
|
|
185
|
+
Se as viewerServiceShapeVisible,
|
|
186
|
+
pe as viewerShapeVisibleOnHost,
|
|
187
|
+
be as voidPolygonsOnLevel,
|
|
188
|
+
Ee as websiteClickOpensModal,
|
|
189
|
+
de as websiteDestination,
|
|
190
|
+
me as websiteFromRetailerOptions,
|
|
191
|
+
Ae as websiteMapItAnchors,
|
|
192
|
+
Ie as websiteRetailersOnMap,
|
|
193
|
+
De as weldAnchors,
|
|
194
|
+
Ce as wheelDollyScale
|
|
164
195
|
};
|
|
165
196
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { assignmentHasTarget } from './assignment';
|
|
2
|
+
import { MapViewerHost } from './types';
|
|
3
|
+
export type PublicServiceShape = {
|
|
4
|
+
id: number;
|
|
5
|
+
kind: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
sourceSvgId?: string | null;
|
|
8
|
+
assignment?: Parameters<typeof assignmentHasTarget>[0];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Website and kiosk should not draw empty amenity / kiosk / elevator /
|
|
12
|
+
* escalator polygons. PORTAL assign still shows them so staff can link them.
|
|
13
|
+
*/
|
|
14
|
+
export declare function viewerHidesUnassignedServiceShapes(host: MapViewerHost): boolean;
|
|
15
|
+
/** False for an unassigned amenity, kiosk, elevator, or escalator. */
|
|
16
|
+
export declare function viewerServiceShapeVisible(shape: PublicServiceShape, assignedConnectorIds: ReadonlySet<number>): boolean;
|
|
17
|
+
export declare function viewerShapeVisibleOnHost(shape: PublicServiceShape, host: MapViewerHost, assignedConnectorIds: ReadonlySet<number>): boolean;
|
|
18
|
+
//# sourceMappingURL=publicShapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publicShapes.d.ts","sourceRoot":"","sources":["../../src/core/publicShapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,aAAa,GAClB,OAAO,CAET;AAcD,sEAAsE;AACtE,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,kBAAkB,EACzB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,OAAO,CAQT;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,kBAAkB,EACzB,IAAI,EAAE,aAAa,EACnB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,OAAO,CAGT"}
|