@eyeon/map 2.0.2 → 2.0.4
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 +2656 -1290
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/stacking.js +1496 -873
- package/dist/chunks/stacking.js.map +1 -1
- package/dist/chunks/wheelZoom.js +259 -0
- package/dist/chunks/wheelZoom.js.map +1 -0
- package/dist/core/assignment.d.ts +97 -0
- package/dist/core/assignment.d.ts.map +1 -0
- package/dist/core/color.d.ts +5 -0
- package/dist/core/color.d.ts.map +1 -0
- package/dist/core/entranceIcon.d.ts +12 -0
- package/dist/core/entranceIcon.d.ts.map +1 -0
- package/dist/core/filletPolygon.d.ts +10 -0
- package/dist/core/filletPolygon.d.ts.map +1 -0
- package/dist/core/hostChrome.d.ts +2 -4
- package/dist/core/hostChrome.d.ts.map +1 -1
- package/dist/core/import/index.d.ts +4 -0
- package/dist/core/import/index.d.ts.map +1 -1
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +160 -219
- package/dist/core/index.js.map +1 -1
- package/dist/core/labelAlign.d.ts +7 -0
- package/dist/core/labelAlign.d.ts.map +1 -0
- package/dist/core/layerStyles.d.ts +54 -5
- package/dist/core/layerStyles.d.ts.map +1 -1
- package/dist/core/mediaUrl.d.ts +3 -0
- package/dist/core/mediaUrl.d.ts.map +1 -0
- package/dist/core/outdoorDecoration.d.ts +16 -0
- package/dist/core/outdoorDecoration.d.ts.map +1 -0
- package/dist/core/publish/index.d.ts +6 -4
- package/dist/core/publish/index.d.ts.map +1 -1
- package/dist/core/routing/graph-tools.d.ts +23 -1
- package/dist/core/routing/graph-tools.d.ts.map +1 -1
- package/dist/core/routing/pathfinding.d.ts.map +1 -1
- package/dist/core/stacking.d.ts +50 -3
- package/dist/core/stacking.d.ts.map +1 -1
- package/dist/core/types.d.ts +34 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/voids.d.ts +41 -0
- package/dist/core/voids.d.ts.map +1 -0
- package/dist/core/wheelZoom.d.ts +30 -0
- package/dist/core/wheelZoom.d.ts.map +1 -0
- package/dist/editor/FieldResetButton.d.ts +7 -0
- package/dist/editor/FieldResetButton.d.ts.map +1 -0
- package/dist/editor/MapEditor.d.ts +13 -3
- package/dist/editor/MapEditor.d.ts.map +1 -1
- package/dist/editor/canvas/EditorCanvas.d.ts +49 -7
- package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts +8 -0
- package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts.map +1 -0
- package/dist/editor/canvas/coords.d.ts +56 -3
- package/dist/editor/canvas/coords.d.ts.map +1 -1
- package/dist/editor/canvas/editorFill.d.ts +12 -0
- package/dist/editor/canvas/editorFill.d.ts.map +1 -0
- package/dist/editor/canvas/editorHover.d.ts +18 -0
- package/dist/editor/canvas/editorHover.d.ts.map +1 -0
- package/dist/editor/canvas/underlayHint.d.ts +13 -0
- package/dist/editor/canvas/underlayHint.d.ts.map +1 -0
- package/dist/editor/connectorAssignments.d.ts +125 -0
- package/dist/editor/connectorAssignments.d.ts.map +1 -0
- package/dist/editor/draftOps.d.ts +12 -1
- package/dist/editor/draftOps.d.ts.map +1 -1
- package/dist/editor/editorSectionReturn.d.ts +12 -0
- package/dist/editor/editorSectionReturn.d.ts.map +1 -0
- package/dist/editor/ellipseDraw.d.ts +12 -0
- package/dist/editor/ellipseDraw.d.ts.map +1 -0
- package/dist/editor/entranceIcon.d.ts +15 -0
- package/dist/editor/entranceIcon.d.ts.map +1 -0
- package/dist/editor/floorsListReturn.d.ts +5 -0
- package/dist/editor/floorsListReturn.d.ts.map +1 -0
- package/dist/editor/geometryEdit.d.ts +23 -3
- package/dist/editor/geometryEdit.d.ts.map +1 -1
- package/dist/editor/hexColor.d.ts +6 -0
- package/dist/editor/hexColor.d.ts.map +1 -0
- package/dist/editor/history.d.ts +31 -0
- package/dist/editor/history.d.ts.map +1 -0
- package/dist/editor/index.css +1038 -68
- package/dist/editor/index.d.ts +6 -4
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +8744 -2136
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/labelText.d.ts +25 -0
- package/dist/editor/labelText.d.ts.map +1 -0
- package/dist/editor/labels.d.ts +8 -0
- package/dist/editor/labels.d.ts.map +1 -1
- package/dist/editor/panels/AssignForm.d.ts +17 -0
- package/dist/editor/panels/AssignForm.d.ts.map +1 -0
- package/dist/editor/panels/AssignmentStyleFields.d.ts +14 -0
- package/dist/editor/panels/AssignmentStyleFields.d.ts.map +1 -0
- package/dist/editor/panels/BulkAssignForm.d.ts +11 -0
- package/dist/editor/panels/BulkAssignForm.d.ts.map +1 -0
- package/dist/editor/panels/CatalogKioskForm.d.ts +18 -0
- package/dist/editor/panels/CatalogKioskForm.d.ts.map +1 -0
- package/dist/editor/panels/ConnectorAssign.d.ts +16 -0
- package/dist/editor/panels/ConnectorAssign.d.ts.map +1 -0
- package/dist/editor/panels/CopyToLevelButton.d.ts +10 -0
- package/dist/editor/panels/CopyToLevelButton.d.ts.map +1 -0
- package/dist/editor/panels/EntranceIconForm.d.ts +11 -0
- package/dist/editor/panels/EntranceIconForm.d.ts.map +1 -0
- package/dist/editor/panels/FloorsPanel.d.ts +4 -0
- package/dist/editor/panels/FloorsPanel.d.ts.map +1 -1
- package/dist/editor/panels/ImportReviewPanel.d.ts.map +1 -1
- package/dist/editor/panels/Inspector.d.ts +24 -2
- package/dist/editor/panels/Inspector.d.ts.map +1 -1
- package/dist/editor/panels/LeftRail.d.ts +24 -11
- package/dist/editor/panels/LeftRail.d.ts.map +1 -1
- package/dist/editor/panels/PreviewOverlay.d.ts +9 -3
- package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -1
- package/dist/editor/panels/TextLabelForm.d.ts +11 -0
- package/dist/editor/panels/TextLabelForm.d.ts.map +1 -0
- package/dist/editor/panels/formRows.d.ts +41 -0
- package/dist/editor/panels/formRows.d.ts.map +1 -0
- package/dist/editor/pathRings.d.ts +79 -0
- package/dist/editor/pathRings.d.ts.map +1 -0
- package/dist/editor/portalSurface.d.ts +37 -3
- package/dist/editor/portalSurface.d.ts.map +1 -1
- package/dist/editor/previewDocument.d.ts +2 -1
- package/dist/editor/previewDocument.d.ts.map +1 -1
- package/dist/editor/railAssignments.d.ts +29 -0
- package/dist/editor/railAssignments.d.ts.map +1 -0
- package/dist/editor/railKiosks.d.ts +27 -0
- package/dist/editor/railKiosks.d.ts.map +1 -0
- package/dist/editor/railListCopy.d.ts +31 -0
- package/dist/editor/railListCopy.d.ts.map +1 -0
- package/dist/editor/routeStubs.d.ts +103 -0
- package/dist/editor/routeStubs.d.ts.map +1 -0
- package/dist/editor/shapeCopy.d.ts +40 -0
- package/dist/editor/shapeCopy.d.ts.map +1 -0
- package/dist/editor/shapeSelection.d.ts +6 -0
- package/dist/editor/shapeSelection.d.ts.map +1 -0
- package/dist/editor/snapPoint.d.ts +5 -0
- package/dist/editor/snapPoint.d.ts.map +1 -0
- package/dist/editor/splitJoin.d.ts +78 -0
- package/dist/editor/splitJoin.d.ts.map +1 -0
- package/dist/editor/tools.d.ts +46 -7
- package/dist/editor/tools.d.ts.map +1 -1
- package/dist/fonts/assets.d.ts +4 -0
- package/dist/fonts/mapFont.d.ts +5 -0
- package/dist/fonts/mapFont.d.ts.map +1 -0
- package/dist/fonts/mapFontUrl.d.ts +8 -0
- package/dist/fonts/mapFontUrl.d.ts.map +1 -0
- package/dist/specialIcons.d.ts +39 -0
- package/dist/specialIcons.d.ts.map +1 -0
- package/dist/test-maps/shops-at-south-town/BASE - Shops At South Town.ai +6326 -6407
- package/dist/test-maps/shops-at-south-town/LF - Shops At South Town.ai +458 -484
- package/dist/test-maps/shops-at-south-town/SVG/BASE - Shops At South Town.svg +6 -6
- package/dist/test-maps/shops-at-south-town/SVG/LF - Shops At South Town.svg +52 -52
- package/dist/test-maps/shops-at-south-town/SVG/UF - Shops At South Town.svg +74 -74
- package/dist/test-maps/shops-at-south-town/UF - Shops At South Town.ai +341 -436
- package/dist/ui/ModernSelect.d.ts +14 -0
- package/dist/ui/ModernSelect.d.ts.map +1 -0
- package/dist/ui/selectSearch.d.ts +12 -0
- package/dist/ui/selectSearch.d.ts.map +1 -0
- package/dist/viewer/MapViewer.d.ts +14 -1
- package/dist/viewer/MapViewer.d.ts.map +1 -1
- package/dist/viewer/camera.d.ts +85 -1
- package/dist/viewer/camera.d.ts.map +1 -1
- package/dist/viewer/components/CameraRig.d.ts +18 -1
- package/dist/viewer/components/CameraRig.d.ts.map +1 -1
- package/dist/viewer/components/LevelMeshes.d.ts +15 -4
- package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
- package/dist/viewer/components/MapScene.d.ts +10 -4
- package/dist/viewer/components/MapScene.d.ts.map +1 -1
- package/dist/viewer/components/OpeningWell.d.ts +7 -0
- package/dist/viewer/components/OpeningWell.d.ts.map +1 -0
- package/dist/viewer/components/RouteLine.d.ts.map +1 -1
- package/dist/viewer/components/SvgVectorLayer.d.ts +5 -3
- package/dist/viewer/components/SvgVectorLayer.d.ts.map +1 -1
- package/dist/viewer/components/openingGeometry.d.ts +7 -0
- package/dist/viewer/components/openingGeometry.d.ts.map +1 -0
- package/dist/viewer/index.css +251 -9
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.d.ts.map +1 -1
- package/dist/viewer/index.js +5 -5
- package/dist/viewer/pointer.d.ts +26 -0
- package/dist/viewer/pointer.d.ts.map +1 -0
- package/dist/viewer/ui/MapControls.d.ts +11 -3
- package/dist/viewer/ui/MapControls.d.ts.map +1 -1
- package/dist/viewer/ui/RuntimeChrome.d.ts.map +1 -1
- package/package.json +4 -2
package/dist/viewer/index.css
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
min-height: 320px;
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
background: var(--map-bg, #FFFFFF);
|
|
8
|
-
|
|
9
|
-
font-family: var(--eyeon-map-font-family, inherit);
|
|
8
|
+
font-family: var(--eyeon-map-font-family, 'Montserrat', sans-serif);
|
|
10
9
|
font-size: 13px;
|
|
11
10
|
color: #0f172a;
|
|
12
11
|
}
|
|
@@ -22,19 +21,40 @@
|
|
|
22
21
|
position: absolute;
|
|
23
22
|
inset: 0;
|
|
24
23
|
cursor: grab;
|
|
24
|
+
touch-action: none;
|
|
25
|
+
overscroll-behavior: none;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.eyeon-map-viewer__canvas:active {
|
|
28
29
|
cursor: grabbing;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
.eyeon-map-viewer__canvas.is-hover-shape,
|
|
33
|
+
.eyeon-map-viewer__canvas.is-hover-shape:active {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
.eyeon-map-viewer__loading,
|
|
32
|
-
.eyeon-map-viewer__error
|
|
38
|
+
.eyeon-map-viewer__error,
|
|
39
|
+
.eyeon-map-viewer__empty {
|
|
33
40
|
display: flex;
|
|
34
41
|
align-items: center;
|
|
35
42
|
justify-content: center;
|
|
36
43
|
height: 100%;
|
|
37
|
-
padding:
|
|
44
|
+
padding: 1.5rem;
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.eyeon-map-viewer--empty {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.eyeon-map-viewer__empty {
|
|
55
|
+
color: #64748b;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
line-height: 1.45;
|
|
38
58
|
}
|
|
39
59
|
|
|
40
60
|
.eyeon-map-chrome {
|
|
@@ -100,6 +120,17 @@
|
|
|
100
120
|
font-weight: 600;
|
|
101
121
|
}
|
|
102
122
|
|
|
123
|
+
.eyeon-map-chrome__amenity-icon {
|
|
124
|
+
display: flex;
|
|
125
|
+
width: 22px;
|
|
126
|
+
height: 22px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.eyeon-map-chrome__amenity-icon svg {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
}
|
|
133
|
+
|
|
103
134
|
.eyeon-map-chrome__panel {
|
|
104
135
|
background: #fff;
|
|
105
136
|
border-radius: 12px;
|
|
@@ -184,11 +215,8 @@
|
|
|
184
215
|
color: #475569;
|
|
185
216
|
}
|
|
186
217
|
|
|
187
|
-
.eyeon-map-chrome__route select {
|
|
188
|
-
|
|
189
|
-
padding: 6px;
|
|
190
|
-
border-radius: 6px;
|
|
191
|
-
border: 1px solid #e2e8f0;
|
|
218
|
+
.eyeon-map-chrome__route .eyeon-map-select {
|
|
219
|
+
width: 100%;
|
|
192
220
|
}
|
|
193
221
|
|
|
194
222
|
.eyeon-map-chrome__accessible {
|
|
@@ -297,3 +325,217 @@
|
|
|
297
325
|
.eyeon-map-controls__zoom-btn:last-child {
|
|
298
326
|
border-radius: 0 5px 5px 0;
|
|
299
327
|
}
|
|
328
|
+
|
|
329
|
+
.eyeon-map-select {
|
|
330
|
+
position: relative;
|
|
331
|
+
display: block;
|
|
332
|
+
box-sizing: border-box;
|
|
333
|
+
width: 100%;
|
|
334
|
+
min-width: 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.eyeon-map-select *,
|
|
338
|
+
.eyeon-map-select *::before,
|
|
339
|
+
.eyeon-map-select *::after {
|
|
340
|
+
box-sizing: border-box;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.eyeon-map-select__trigger {
|
|
344
|
+
position: relative;
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: center;
|
|
347
|
+
justify-content: space-between;
|
|
348
|
+
gap: 8px;
|
|
349
|
+
width: 100%;
|
|
350
|
+
min-width: 0;
|
|
351
|
+
min-height: 34px;
|
|
352
|
+
margin: 0;
|
|
353
|
+
padding: 6px 8px;
|
|
354
|
+
border: 1px solid #e2e8f0;
|
|
355
|
+
border-radius: 6px;
|
|
356
|
+
background: #fff;
|
|
357
|
+
color: #0f172a;
|
|
358
|
+
font: inherit;
|
|
359
|
+
font-size: 12px;
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
line-height: 1.3;
|
|
362
|
+
text-align: left;
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.eyeon-map-select__trigger:has(.eyeon-map-select__input) {
|
|
367
|
+
display: block;
|
|
368
|
+
padding: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.eyeon-map-select__trigger:disabled,
|
|
372
|
+
.eyeon-map-select__trigger:has(.eyeon-map-select__input:disabled) {
|
|
373
|
+
opacity: 0.55;
|
|
374
|
+
cursor: not-allowed;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.eyeon-map-select__trigger:not(:disabled):hover,
|
|
378
|
+
.eyeon-map-select__trigger:not(:has(.eyeon-map-select__input:disabled)):hover {
|
|
379
|
+
border-color: #cbd5e1;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.eyeon-map-select__trigger.is-open {
|
|
383
|
+
border-color: #0763b1;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.eyeon-map-select__trigger span {
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
text-overflow: ellipsis;
|
|
389
|
+
white-space: nowrap;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.eyeon-map-select input.eyeon-map-select__input {
|
|
393
|
+
display: block;
|
|
394
|
+
width: 100%;
|
|
395
|
+
max-width: none;
|
|
396
|
+
min-width: 0;
|
|
397
|
+
height: 100%;
|
|
398
|
+
min-height: 34px;
|
|
399
|
+
margin: 0;
|
|
400
|
+
padding: 7px 30px 7px 10px;
|
|
401
|
+
border: 0;
|
|
402
|
+
border-radius: inherit;
|
|
403
|
+
background: transparent;
|
|
404
|
+
color: inherit;
|
|
405
|
+
font: inherit;
|
|
406
|
+
font-size: 12px;
|
|
407
|
+
font-weight: 500;
|
|
408
|
+
line-height: 1.3;
|
|
409
|
+
outline: none;
|
|
410
|
+
appearance: none;
|
|
411
|
+
-webkit-appearance: none;
|
|
412
|
+
box-shadow: none;
|
|
413
|
+
cursor: text;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.eyeon-map-select__input::placeholder {
|
|
417
|
+
color: #94a3b8;
|
|
418
|
+
font-weight: 400;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.eyeon-map-select__chevron-btn {
|
|
422
|
+
position: absolute;
|
|
423
|
+
top: 0;
|
|
424
|
+
right: 0;
|
|
425
|
+
bottom: 0;
|
|
426
|
+
z-index: 1;
|
|
427
|
+
display: inline-flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
justify-content: center;
|
|
430
|
+
width: 28px;
|
|
431
|
+
margin: 0;
|
|
432
|
+
padding: 0;
|
|
433
|
+
border: 0;
|
|
434
|
+
background: transparent;
|
|
435
|
+
color: inherit;
|
|
436
|
+
cursor: pointer;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.eyeon-map-select__placeholder {
|
|
440
|
+
color: #94a3b8;
|
|
441
|
+
font-weight: 400;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.eyeon-map-select__chevron {
|
|
445
|
+
flex-shrink: 0;
|
|
446
|
+
color: #64748b;
|
|
447
|
+
opacity: 0.7;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.eyeon-map-select__trigger[aria-expanded='true'] .eyeon-map-select__chevron,
|
|
451
|
+
.eyeon-map-select__trigger.is-open .eyeon-map-select__chevron {
|
|
452
|
+
transform: rotate(180deg);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.eyeon-map-select__menu {
|
|
456
|
+
position: fixed;
|
|
457
|
+
z-index: 2147483000;
|
|
458
|
+
display: flex;
|
|
459
|
+
flex-direction: column;
|
|
460
|
+
overflow: hidden;
|
|
461
|
+
border: 1px solid #e2e8f0;
|
|
462
|
+
border-radius: 8px;
|
|
463
|
+
background: #fff;
|
|
464
|
+
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.eyeon-map-select__list {
|
|
468
|
+
margin: 0;
|
|
469
|
+
padding: 4px;
|
|
470
|
+
overflow: auto;
|
|
471
|
+
list-style: none;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.eyeon-map-select__value {
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
gap: 8px;
|
|
478
|
+
min-width: 0;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.eyeon-map-select__option {
|
|
482
|
+
display: flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
gap: 8px;
|
|
485
|
+
width: 100%;
|
|
486
|
+
padding: 7px 10px;
|
|
487
|
+
border: 0;
|
|
488
|
+
border-radius: 6px;
|
|
489
|
+
background: transparent;
|
|
490
|
+
color: #0f172a;
|
|
491
|
+
font: inherit;
|
|
492
|
+
font-size: 12px;
|
|
493
|
+
text-align: left;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.eyeon-map-select__option-icon {
|
|
498
|
+
width: 18px;
|
|
499
|
+
height: 18px;
|
|
500
|
+
flex-shrink: 0;
|
|
501
|
+
object-fit: contain;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.eyeon-map-select__option-icon.is-muted {
|
|
505
|
+
opacity: 0.45;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.eyeon-map-select__option-copy {
|
|
509
|
+
display: flex;
|
|
510
|
+
align-items: baseline;
|
|
511
|
+
justify-content: space-between;
|
|
512
|
+
gap: 8px;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
flex: 1;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.eyeon-map-select__option-hint {
|
|
518
|
+
color: #64748b;
|
|
519
|
+
font-size: 11px;
|
|
520
|
+
font-weight: 600;
|
|
521
|
+
flex-shrink: 0;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.eyeon-map-select__option:hover {
|
|
525
|
+
background: #f1f5f9;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.eyeon-map-select__option.is-active {
|
|
529
|
+
background: #e0f2fe;
|
|
530
|
+
font-weight: 600;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.eyeon-map-select__option.is-highlight:not(.is-active) {
|
|
534
|
+
background: #f1f5f9;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.eyeon-map-select__empty {
|
|
538
|
+
padding: 8px 10px;
|
|
539
|
+
color: #94a3b8;
|
|
540
|
+
font-size: 12px;
|
|
541
|
+
}
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export type { MapViewerHost, MapHost, ViewerChrome } from '../core';
|
|
|
3
3
|
export { mapSurface, viewerChrome, isMapViewerHost } from '../core';
|
|
4
4
|
export { MapScene } from './components/MapScene';
|
|
5
5
|
export { RuntimeChrome } from './ui/RuntimeChrome';
|
|
6
|
-
export { MapControls, type MapControlsProps } from './ui/MapControls';
|
|
6
|
+
export { MapControls, type MapControlsProps, type MapControlLevel } from './ui/MapControls';
|
|
7
7
|
export type { MapCameraHandle } from './components/CameraRig';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/viewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/viewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC5F,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,cAAc,CAAC"}
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as r, a as s, b as o, R as
|
|
2
|
-
import {
|
|
1
|
+
import { M as r, a as s, b as o, R as p } from "../chunks/MapViewer.js";
|
|
2
|
+
import { at as t, aG as i, bn as M } from "../chunks/stacking.js";
|
|
3
3
|
export {
|
|
4
4
|
r as MapControls,
|
|
5
5
|
s as MapScene,
|
|
6
6
|
o as MapViewer,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
p as RuntimeChrome,
|
|
8
|
+
t as isMapViewerHost,
|
|
9
|
+
i as mapSurface,
|
|
10
10
|
M as viewerChrome
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ShapeKind } from '../core';
|
|
2
|
+
/** Kinds that select (or Shift-add) on the assign / public map. */
|
|
3
|
+
export declare const VIEWER_SELECTABLE_KINDS: ShapeKind[];
|
|
4
|
+
export declare function isViewerSelectableKind(kind: string): boolean;
|
|
5
|
+
/** Hover and the current selection share the same assign-map highlight. */
|
|
6
|
+
export declare function viewerShapeHighlighted(shapeId: number, hoveredShapeId: number | null, selectedShapeIds: readonly number[]): boolean;
|
|
7
|
+
/** Map pointer hover wins over a leftover list hover. */
|
|
8
|
+
export declare function resolvedViewerHoverId(listHoverId: number | null | undefined, pointerHoverId: number | null): number | null;
|
|
9
|
+
export declare function viewerHoverCursor(kind: string): 'pointer' | '';
|
|
10
|
+
/** R3F `eventSource` hosts the cursor — the WebGL canvas has pointer-events: none. */
|
|
11
|
+
export declare function applyViewerHoverCursor(host: HTMLElement | null | undefined, cursor: 'pointer' | ''): void;
|
|
12
|
+
/** Amenities are almost invisible; hover must still read. */
|
|
13
|
+
export declare function viewerHoverFillOpacity(kind: string, base: number, hovered: boolean): number;
|
|
14
|
+
/** Tint a store fill toward the accent so hover matches Edit Map. */
|
|
15
|
+
export declare function viewerHoverFillColor(fill: string, accent: string, hovered: boolean, amount?: number): string;
|
|
16
|
+
/** Pan farther than this and a pointer-up on empty space is not a clear. */
|
|
17
|
+
export declare const VIEWER_CLICK_DRAG_PX = 5;
|
|
18
|
+
export declare function pointerMissClearsSelection(down: {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
} | null, up: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
button?: number;
|
|
25
|
+
}): boolean;
|
|
26
|
+
//# sourceMappingURL=pointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/viewer/pointer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,mEAAmE;AACnE,eAAO,MAAM,uBAAuB,EAAE,SAAS,EAO9C,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GAAG,IAAI,EAC7B,gBAAgB,EAAE,SAAS,MAAM,EAAE,GAClC,OAAO,CAET;AAED,yDAAyD;AACzD,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,cAAc,EAAE,MAAM,GAAG,IAAI,GAC5B,MAAM,GAAG,IAAI,CAEf;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,EAAE,CAE9D;AAED,sFAAsF;AACtF,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACpC,MAAM,EAAE,SAAS,GAAG,EAAE,GACrB,IAAI,CAGN;AAED,6DAA6D;AAC7D,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,GACf,MAAM,CAIR;AA2BD,qEAAqE;AACrE,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,SAAM,GACX,MAAM,CAUR;AAED,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,wBAAgB,0BAA0B,CACxC,IAAI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,EACrC,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5C,OAAO,CAMT"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StackLevel } from '../../core';
|
|
3
|
+
export interface MapControlLevel {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
3
7
|
export interface MapControlsProps {
|
|
4
|
-
levels:
|
|
8
|
+
levels: Array<MapControlLevel & Partial<StackLevel>>;
|
|
5
9
|
activeLevelId: number | null;
|
|
6
10
|
onActiveLevelChange: (id: number) => void;
|
|
7
11
|
onZoomIn: () => void;
|
|
@@ -9,6 +13,10 @@ export interface MapControlsProps {
|
|
|
9
13
|
onReset: () => void;
|
|
10
14
|
showFloors?: boolean;
|
|
11
15
|
showZoomReset?: boolean;
|
|
16
|
+
/** Override the viewer building-floor list (e.g. Edit Map + Outdoor). */
|
|
17
|
+
floorOptions?: MapControlLevel[];
|
|
18
|
+
/** Show the floor list even when there is only one floor. */
|
|
19
|
+
alwaysShowFloors?: boolean;
|
|
12
20
|
}
|
|
13
|
-
export declare function MapControls({ levels, activeLevelId, onActiveLevelChange, onZoomIn, onZoomOut, onReset, showFloors, showZoomReset, }: MapControlsProps): React.JSX.Element | null;
|
|
21
|
+
export declare function MapControls({ levels, activeLevelId, onActiveLevelChange, onZoomIn, onZoomOut, onReset, showFloors, showZoomReset, floorOptions, alwaysShowFloors, }: MapControlsProps): React.JSX.Element | null;
|
|
14
22
|
//# sourceMappingURL=MapControls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapControls.d.ts","sourceRoot":"","sources":["../../../src/viewer/ui/MapControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"MapControls.d.ts","sourceRoot":"","sources":["../../../src/viewer/ui/MapControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAO7C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,KAAK,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACrD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,yEAAyE;IACzE,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,UAAiB,EACjB,aAAoB,EACpB,YAAY,EACZ,gBAAwB,GACzB,EAAE,gBAAgB,4BAqElB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeChrome.d.ts","sourceRoot":"","sources":["../../../src/viewer/ui/RuntimeChrome.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EAClB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"RuntimeChrome.d.ts","sourceRoot":"","sources":["../../../src/viewer/ui/RuntimeChrome.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,iBAAiB,CAAC;IACvB,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyBD,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,SAAS,EACT,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,KAAK,EACL,UAAiB,EACjB,aAAoB,GACrB,EAAE,kBAAkB,4BA6MpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eyeon/map",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "EyeOn Center Map v2 — core, viewer, and editor",
|
|
5
5
|
"author": "EyeOn LLC",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
"README.md"
|
|
43
43
|
],
|
|
44
44
|
"sideEffects": [
|
|
45
|
-
"**/*.css"
|
|
45
|
+
"**/*.css",
|
|
46
|
+
"**/*.woff",
|
|
47
|
+
"**/mapFontUrl.js"
|
|
46
48
|
],
|
|
47
49
|
"scripts": {
|
|
48
50
|
"build": "vite build",
|