@eyeon/map 2.0.9 → 2.0.11
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 +1 -1
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/stacking.js +312 -308
- package/dist/chunks/stacking.js.map +1 -1
- package/dist/core/index.js +46 -45
- package/dist/core/mediaUrl.d.ts +6 -1
- package/dist/core/mediaUrl.d.ts.map +1 -1
- package/dist/editor/MapEditor.d.ts +3 -3
- package/dist/editor/index.css +52 -11
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.js.map +1 -1
- package/dist/viewer/MapViewer.d.ts +3 -3
- package/dist/viewer/components/LevelMeshes.d.ts +1 -1
- package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
- package/dist/viewer/index.css +44 -11
- package/dist/viewer/index.js +4 -4
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, C as o, D as r, a as i, b as n, c as t, d as l, E as S, F as p, I as m, e as d, f as E, g as A, L, M as g, h as b, O as c, i as
|
|
2
|
-
import { W as
|
|
1
|
+
import { A as e, C as o, D as r, a as i, b as n, c as t, d as l, E as S, F as p, I as m, e as d, f as E, g as A, L, M as g, h as b, O as c, i as u, j as I, R as _, S as T, k as y, l as h, m as O, T as N, W as v, n as R, o as P, p as D, q as F, r as C, s as f, t as x, u as B, v as G, w as M, x as w, y as K, z as H, B as V, G as Y, H as k, J as U, K as z, N as W, P as Z, Q as j, U as q, V as X, X as Q, Y as J, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ra, a3 as ia, a4 as na, a5 as ta, a6 as la, a7 as Sa, a8 as pa, a9 as ma, aa as da, ab as Ea, ac as Aa, ad as La, ae as ga, af as ba, ag as ca, ah as ua, ai as Ia, aj as _a, ak as Ta, al as ya, am as ha, an as Oa, ao as Na, ap as va, aq as Ra, ar as Pa, as as Da, at as Fa, au as Ca, av as fa, aw as xa, ax as Ba, ay as Ga, az as Ma, aA as wa, aB as Ka, aC as Ha, aD as Va, aE as Ya, aF as ka, aG as Ua, aH as za, aI as Wa, aJ as Za, aK as ja, aL as qa, aM as Xa, aN as Qa, aO as Ja, aP as $a, aQ as as, aR as ss, aS as es, aT as os, aU as rs, aV as is, aW as ns, aX as ts, aY as ls, aZ as Ss, a_ as ps, a$ as ms, b0 as ds, b1 as Es, b2 as As, b3 as Ls, b4 as gs, b5 as bs, b6 as cs, b7 as us, b8 as Is, b9 as _s, ba as Ts, bb as ys, bc as hs, bd as Os, be as Ns, bf as vs, bg as Rs, bh as Ps, bi as Ds, bj as Fs, bk as Cs, bl as fs, bm as xs, bn as Bs, bo as Gs, bp as Ms, bq as ws, br as Ks } from "../chunks/stacking.js";
|
|
2
|
+
import { W as Vs, a as Ys, b as ks, c as Us, d as zs, e as Ws, f as Zs, i as js, n as qs, o as Xs, r as Qs, u as Js, w as $s, g as ae } from "../chunks/wheelZoom.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ASSIGNMENT_LAYER_TYPES,
|
|
5
5
|
o as CONNECTOR_ICON_SIZE,
|
|
@@ -18,46 +18,46 @@ export {
|
|
|
18
18
|
g as MAP_NO_FLOORS_MESSAGE,
|
|
19
19
|
b as MIN_ENTRANCE_SIZE,
|
|
20
20
|
c as OPENING_VOID_FILL,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
u as OPENING_VOID_MARK,
|
|
22
|
+
I as OPENING_VOID_STROKE,
|
|
23
|
+
_ as RETAIL_LOGO_RENDER_SCALE,
|
|
24
24
|
T as SLAB_SHAPE_KINDS,
|
|
25
25
|
y as STATIC_LAYER_KEYS,
|
|
26
26
|
h as STATIC_LAYER_STYLES,
|
|
27
27
|
O as STATIC_LAYER_THEME_KEYS,
|
|
28
28
|
N as TRANSPARENT_COLOR,
|
|
29
29
|
v as WALKING_PATH_COLOR,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
Vs as WHEEL_ZOOM_BASE,
|
|
31
|
+
Ys as WHEEL_ZOOM_SPEED,
|
|
32
32
|
R as amenityAssignedName,
|
|
33
33
|
P as angleFromWall,
|
|
34
34
|
D as applyBulkAssignPatch,
|
|
35
35
|
F as applyLevelTransform,
|
|
36
36
|
C as applyMatrix,
|
|
37
37
|
f as approximateArc,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
x as approximateCubic,
|
|
39
|
+
B as approximateQuadratic,
|
|
40
40
|
G as assignNumberFromDraft,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
M as assignmentDisplayText,
|
|
42
|
+
w as assignmentHasTarget,
|
|
43
43
|
K as assignmentOverlayImageUrl,
|
|
44
44
|
H as assignmentOverlayRenderSize,
|
|
45
45
|
V as assignmentOverlayVisible,
|
|
46
46
|
Y as assignmentSpecialIconId,
|
|
47
47
|
k as assignmentVisualPatch,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
ks as attachImportedRouteAnchors,
|
|
49
|
+
Us as autoConnectUnitAnchor,
|
|
50
50
|
U as bboxOf,
|
|
51
51
|
z as bboxUnion,
|
|
52
52
|
W as boundsFromStackedLevels,
|
|
53
|
-
|
|
53
|
+
zs as buildAutoSkeleton,
|
|
54
54
|
Z as buildGeometryFromPaths,
|
|
55
55
|
j as bulkAssignFormState,
|
|
56
56
|
q as centroid,
|
|
57
57
|
X as clampEntranceSize,
|
|
58
58
|
Q as clampStoreRadius,
|
|
59
59
|
J as classifyId,
|
|
60
|
-
|
|
60
|
+
Ws as collapseDuplicateRouteGraph,
|
|
61
61
|
$ as commitAssignNumberDraft,
|
|
62
62
|
aa as compareBuildingFloors,
|
|
63
63
|
sa as compileDocument,
|
|
@@ -73,16 +73,16 @@ export {
|
|
|
73
73
|
ma as filletPolygon,
|
|
74
74
|
da as findNearestAmenityPath,
|
|
75
75
|
Ea as findPath,
|
|
76
|
-
|
|
76
|
+
Zs as findWeldCandidates,
|
|
77
77
|
Aa as flipY,
|
|
78
78
|
La as floorSwitcherDisplayLevels,
|
|
79
79
|
ga as floorSwitcherLevels,
|
|
80
80
|
ba as geometryBBox,
|
|
81
81
|
ca as geometryCentroid,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
ua as hasBuildingFloors,
|
|
83
|
+
Ia as holeRingForOuter,
|
|
84
|
+
_a as holesOverlappingOuter,
|
|
85
|
+
js as importRoutePaths,
|
|
86
86
|
Ta as importSvg,
|
|
87
87
|
ya as inlineSvgStyles,
|
|
88
88
|
ha as isActiveVoidShape,
|
|
@@ -95,11 +95,11 @@ export {
|
|
|
95
95
|
Fa as isMapViewerHost,
|
|
96
96
|
Ca as isNonInteractiveGroupLabel,
|
|
97
97
|
fa as isOutdoorLevel,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
xa as isRouteFolderLabel,
|
|
99
|
+
Ba as isRoutePathLabel,
|
|
100
100
|
Ga as isSlabShapeKind,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
Ma as isStoreFolderLabel,
|
|
102
|
+
wa as isTransparentColor,
|
|
103
103
|
Ka as isVoidKind,
|
|
104
104
|
Ha as kioskAssignedName,
|
|
105
105
|
Va as labelAlignX,
|
|
@@ -111,13 +111,13 @@ export {
|
|
|
111
111
|
Za as multiplyMatrix,
|
|
112
112
|
ja as nearestPointOnPolyline,
|
|
113
113
|
qa as nextLowerBuildingFloor,
|
|
114
|
-
|
|
114
|
+
qs as nextZoomFromWheel,
|
|
115
115
|
Xa as normalizeGeometrySpace,
|
|
116
116
|
Qa as normalizeLabelAlign,
|
|
117
117
|
Ja as normalizeLayerLabel,
|
|
118
118
|
$a as normalizeLayerName,
|
|
119
119
|
as as normalizePublishedDocument,
|
|
120
|
-
|
|
120
|
+
Xs as outdoorDecorationFromSvg,
|
|
121
121
|
ss as outdoorSvgSuppressIds,
|
|
122
122
|
es as parseKioskIdInput,
|
|
123
123
|
os as parseShapeAssignment,
|
|
@@ -136,29 +136,30 @@ export {
|
|
|
136
136
|
gs as resolveFetchUrl,
|
|
137
137
|
bs as resolveLayerStyle,
|
|
138
138
|
cs as resolveStaticLayerKey,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
us as resolvedAssignmentBgColor,
|
|
140
|
+
Is as resolvedAssignmentTextColor,
|
|
141
|
+
_s as retailerOptionLabel,
|
|
142
142
|
Ts as revealedBuildingFloors,
|
|
143
143
|
ys as reversedRing,
|
|
144
|
-
|
|
144
|
+
Qs as routeAnchorKindForShape,
|
|
145
145
|
hs as sceneBoundsFromBBox,
|
|
146
|
-
Os as
|
|
147
|
-
Ns as
|
|
148
|
-
vs as
|
|
149
|
-
Rs as
|
|
150
|
-
Ps as
|
|
151
|
-
Ds as
|
|
152
|
-
Fs as
|
|
153
|
-
Cs as
|
|
154
|
-
fs as
|
|
155
|
-
|
|
146
|
+
Os as shouldProxyMediaUrl,
|
|
147
|
+
Ns as shouldShowFloorSwitcher,
|
|
148
|
+
vs as snapAngle,
|
|
149
|
+
Rs as staticLayerHouseColor,
|
|
150
|
+
Ps as staticLayerThemeDefaults,
|
|
151
|
+
Ds as svgIdsOwnedByShapes,
|
|
152
|
+
Fs as tokenizePathData,
|
|
153
|
+
Cs as transformPathD,
|
|
154
|
+
fs as unionViewBox,
|
|
155
|
+
xs as uniqueClosedRing,
|
|
156
|
+
Js as unitAnchorFromShape,
|
|
156
157
|
Bs as viewBoxToBounds,
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
Gs as viewerChrome,
|
|
159
|
+
Ms as viewerLevelIdAfterShapeSelect,
|
|
159
160
|
ws as viewerLevelStack,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
Ks as voidPolygonsOnLevel,
|
|
162
|
+
$s as weldAnchors,
|
|
163
|
+
ae as wheelDollyScale
|
|
163
164
|
};
|
|
164
165
|
//# sourceMappingURL=index.js.map
|
package/dist/core/mediaUrl.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Same contract as v1 `getMediaProxyUrl`: proxy base + encoded URL, no query key.
|
|
3
|
+
* Only remote http(s) media (S3 / CDN) is proxied. Inlined amenity / kiosk /
|
|
4
|
+
* entrance icons are `data:` URLs from the v1 SVG catalog and must stay local.
|
|
5
|
+
*/
|
|
6
|
+
export declare function shouldProxyMediaUrl(url: string): boolean;
|
|
2
7
|
export declare function resolveFetchUrl(url: string, imageProxyUrl?: string | null): string;
|
|
3
8
|
//# sourceMappingURL=mediaUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaUrl.d.ts","sourceRoot":"","sources":["../../src/core/mediaUrl.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"mediaUrl.d.ts","sourceRoot":"","sources":["../../src/core/mediaUrl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGlF"}
|
|
@@ -37,9 +37,9 @@ export interface MapEditorProps {
|
|
|
37
37
|
/** Center kiosks for leftover ID-only assignments; new kiosks are named in Assign. */
|
|
38
38
|
kiosks?: MapAssignKiosk[];
|
|
39
39
|
/**
|
|
40
|
-
* Media proxy base, same contract as v1
|
|
41
|
-
*
|
|
42
|
-
* not send CORS headers
|
|
40
|
+
* Media proxy base for remote http(s) media, same contract as v1
|
|
41
|
+
* `IMAGE_PROXY_URL`. Required whenever the outdoor SVG is served from an
|
|
42
|
+
* origin that does not send CORS headers. Inlined amenity data URLs skip it.
|
|
43
43
|
*/
|
|
44
44
|
imageProxyUrl?: string | null;
|
|
45
45
|
className?: string;
|
package/dist/editor/index.css
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
color: #0f172a;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/* v1 MapBox is position:absolute; inset:0 so WEBSITE fills the host box
|
|
14
|
+
(Elementor #root / section height), not the 320px min-height fallback. */
|
|
15
|
+
.eyeon-map-viewer--WEBSITE {
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
min-height: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
.eyeon-map-viewer button,
|
|
14
22
|
.eyeon-map-viewer input,
|
|
15
23
|
.eyeon-map-viewer select,
|
|
@@ -17,6 +25,16 @@
|
|
|
17
25
|
font-family: inherit;
|
|
18
26
|
}
|
|
19
27
|
|
|
28
|
+
/* Host themes (Hello Elementor `button:focus`) must not restyle map chrome. */
|
|
29
|
+
.eyeon-map-viewer button,
|
|
30
|
+
.eyeon-map-viewer button:focus,
|
|
31
|
+
.eyeon-map-viewer button:focus-visible,
|
|
32
|
+
.eyeon-map-controls button,
|
|
33
|
+
.eyeon-map-controls button:focus,
|
|
34
|
+
.eyeon-map-controls button:focus-visible {
|
|
35
|
+
outline: none !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
20
38
|
.eyeon-map-viewer__canvas {
|
|
21
39
|
position: absolute;
|
|
22
40
|
inset: 0;
|
|
@@ -105,7 +123,9 @@
|
|
|
105
123
|
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
|
|
106
124
|
}
|
|
107
125
|
|
|
108
|
-
.eyeon-map-chrome__amenity
|
|
126
|
+
.eyeon-map-chrome .eyeon-map-chrome__amenity,
|
|
127
|
+
.eyeon-map-chrome .eyeon-map-chrome__amenity:focus,
|
|
128
|
+
.eyeon-map-chrome .eyeon-map-chrome__amenity:focus-visible {
|
|
109
129
|
position: relative;
|
|
110
130
|
width: 40px;
|
|
111
131
|
height: 40px;
|
|
@@ -167,7 +187,9 @@
|
|
|
167
187
|
margin: 8px 0 4px;
|
|
168
188
|
}
|
|
169
189
|
|
|
170
|
-
.eyeon-map-chrome__item
|
|
190
|
+
.eyeon-map-chrome .eyeon-map-chrome__item,
|
|
191
|
+
.eyeon-map-chrome .eyeon-map-chrome__item:focus,
|
|
192
|
+
.eyeon-map-chrome .eyeon-map-chrome__item:focus-visible {
|
|
171
193
|
display: block;
|
|
172
194
|
width: 100%;
|
|
173
195
|
text-align: left;
|
|
@@ -179,8 +201,10 @@
|
|
|
179
201
|
font-size: 13px;
|
|
180
202
|
}
|
|
181
203
|
|
|
182
|
-
.eyeon-map-chrome__item:hover,
|
|
183
|
-
.eyeon-map-chrome__item.is-selected
|
|
204
|
+
.eyeon-map-chrome .eyeon-map-chrome__item:hover,
|
|
205
|
+
.eyeon-map-chrome .eyeon-map-chrome__item.is-selected,
|
|
206
|
+
.eyeon-map-chrome .eyeon-map-chrome__item.is-selected:focus,
|
|
207
|
+
.eyeon-map-chrome .eyeon-map-chrome__item.is-selected:focus-visible {
|
|
184
208
|
background: #f1f5f9;
|
|
185
209
|
}
|
|
186
210
|
|
|
@@ -249,12 +273,19 @@
|
|
|
249
273
|
flex-direction: column;
|
|
250
274
|
}
|
|
251
275
|
|
|
252
|
-
.eyeon-map-controls__floor,
|
|
253
|
-
.eyeon-map-controls__reset,
|
|
254
|
-
.eyeon-map-controls__zoom-btn
|
|
276
|
+
.eyeon-map-controls .eyeon-map-controls__floor,
|
|
277
|
+
.eyeon-map-controls .eyeon-map-controls__reset,
|
|
278
|
+
.eyeon-map-controls .eyeon-map-controls__zoom-btn,
|
|
279
|
+
.eyeon-map-controls .eyeon-map-controls__floor:focus,
|
|
280
|
+
.eyeon-map-controls .eyeon-map-controls__reset:focus,
|
|
281
|
+
.eyeon-map-controls .eyeon-map-controls__zoom-btn:focus,
|
|
282
|
+
.eyeon-map-controls .eyeon-map-controls__floor:focus-visible,
|
|
283
|
+
.eyeon-map-controls .eyeon-map-controls__reset:focus-visible,
|
|
284
|
+
.eyeon-map-controls .eyeon-map-controls__zoom-btn:focus-visible {
|
|
255
285
|
color: #fff;
|
|
256
286
|
background-color: #0763b1;
|
|
257
287
|
border: 0;
|
|
288
|
+
box-shadow: none;
|
|
258
289
|
font-size: 11px;
|
|
259
290
|
font-weight: 500;
|
|
260
291
|
letter-spacing: 0.02em;
|
|
@@ -270,13 +301,15 @@
|
|
|
270
301
|
text-align: center;
|
|
271
302
|
}
|
|
272
303
|
|
|
273
|
-
.eyeon-map-controls__floor:hover,
|
|
274
|
-
.eyeon-map-controls__reset:hover,
|
|
275
|
-
.eyeon-map-controls__zoom-btn:hover {
|
|
304
|
+
.eyeon-map-controls .eyeon-map-controls__floor:hover,
|
|
305
|
+
.eyeon-map-controls .eyeon-map-controls__reset:hover,
|
|
306
|
+
.eyeon-map-controls .eyeon-map-controls__zoom-btn:hover {
|
|
276
307
|
background-color: #054983;
|
|
277
308
|
}
|
|
278
309
|
|
|
279
|
-
.eyeon-map-controls__floor.is-active
|
|
310
|
+
.eyeon-map-controls .eyeon-map-controls__floor.is-active,
|
|
311
|
+
.eyeon-map-controls .eyeon-map-controls__floor.is-active:focus,
|
|
312
|
+
.eyeon-map-controls .eyeon-map-controls__floor.is-active:focus-visible {
|
|
280
313
|
background-color: #054983;
|
|
281
314
|
cursor: default;
|
|
282
315
|
}
|
|
@@ -349,6 +382,12 @@
|
|
|
349
382
|
font-family: inherit;
|
|
350
383
|
}
|
|
351
384
|
|
|
385
|
+
.eyeon-map-editor button,
|
|
386
|
+
.eyeon-map-editor button:focus,
|
|
387
|
+
.eyeon-map-editor button:focus-visible {
|
|
388
|
+
outline: none !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
352
391
|
.eyeon-map-editor input,
|
|
353
392
|
.eyeon-map-editor textarea {
|
|
354
393
|
-webkit-user-select: text;
|
|
@@ -2128,6 +2167,8 @@
|
|
|
2128
2167
|
}
|
|
2129
2168
|
|
|
2130
2169
|
.eyeon-map-preview .eyeon-map-viewer {
|
|
2170
|
+
position: absolute;
|
|
2171
|
+
inset: 0;
|
|
2131
2172
|
min-height: 0;
|
|
2132
2173
|
height: 100%;
|
|
2133
2174
|
}
|
package/dist/editor/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as k, jsx as l, Fragment as Je } from "react/jsx-runtime";
|
|
2
2
|
import Qi, { useState as K, useMemo as me, useEffect as ae, useRef as ie, useImperativeHandle as ul, useLayoutEffect as pl, useCallback as fn, useId as hl, Suspense as fl } from "react";
|
|
3
|
-
import { a4 as ml, ae as wr, b1 as dt, t as es, a6 as gn,
|
|
3
|
+
import { a4 as ml, ae as wr, b1 as dt, t as es, a6 as gn, bj as yl, P as ns, d as Nt, af as wn, ao as Ao, E as gl, V as xo, W as kl, b7 as _l, g as Oo, b4 as vl, bl as Il, bi as bl, a as xt, aN as Cr, aD as xl, aE as wl, ag as Cl, aM as Nl, aT as Jn, J as Sl, aA as Mn, L as Ll, T as St, Z as El, v as cr, a7 as $t, x as ts, _ as os, b9 as rs, c as Al, X as Ol, bh as Tl, n as Rl, aC as Ml, b as wo, Q as Pl, D as li, $ as Dl, aI as $l, aL as Fl, bp as zl, M as Bl, ah as Wl, p as Kl, H as Wo } from "../chunks/stacking.js";
|
|
4
4
|
import { c as Vl, d as Ul, e as Hl, f as Xl, g as zn, h as is, i as jl, j as Yl, k as Gl, l as Zl, b as Jl, M as ql } from "../chunks/MapViewer.js";
|
|
5
5
|
import { n as Ql, o as ec, r as nc } from "../chunks/wheelZoom.js";
|
|
6
6
|
import { createPortal as Nr } from "react-dom";
|