@eyeon/map 2.0.14 → 2.0.17
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 +2335 -1997
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/responsive.js +2534 -0
- package/dist/chunks/responsive.js.map +1 -0
- package/dist/chunks/wheelZoom.js +163 -177
- package/dist/chunks/wheelZoom.js.map +1 -1
- package/dist/core/assignment.d.ts +19 -2
- package/dist/core/assignment.d.ts.map +1 -1
- package/dist/core/entranceIcon.d.ts +17 -3
- package/dist/core/entranceIcon.d.ts.map +1 -1
- package/dist/core/hostChrome.d.ts +13 -2
- package/dist/core/hostChrome.d.ts.map +1 -1
- package/dist/core/hoverTooltip.d.ts +37 -0
- package/dist/core/hoverTooltip.d.ts.map +1 -0
- package/dist/core/import/index.d.ts +10 -1
- package/dist/core/import/index.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 +227 -169
- package/dist/core/layerStyles.d.ts +32 -0
- package/dist/core/layerStyles.d.ts.map +1 -1
- package/dist/core/outdoorDecoration.d.ts.map +1 -1
- package/dist/core/publicShapes.d.ts +14 -0
- package/dist/core/publicShapes.d.ts.map +1 -1
- package/dist/core/responsive.d.ts +57 -0
- package/dist/core/responsive.d.ts.map +1 -0
- package/dist/core/routing/graph-tools.d.ts +6 -5
- package/dist/core/routing/graph-tools.d.ts.map +1 -1
- package/dist/core/routing/pathfinding.d.ts +36 -0
- package/dist/core/routing/pathfinding.d.ts.map +1 -1
- package/dist/core/shapeFill.d.ts +40 -0
- package/dist/core/shapeFill.d.ts.map +1 -0
- package/dist/core/stacking.d.ts +4 -0
- package/dist/core/stacking.d.ts.map +1 -1
- package/dist/core/types.d.ts +20 -5
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/viewerReset.d.ts +24 -0
- package/dist/core/viewerReset.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/assignmentOverlay.d.ts +37 -0
- package/dist/editor/assignmentOverlay.d.ts.map +1 -0
- package/dist/editor/canvas/AssignedShapeOverlay.d.ts +8 -0
- package/dist/editor/canvas/AssignedShapeOverlay.d.ts.map +1 -0
- package/dist/editor/canvas/EditorCanvas.d.ts +6 -1
- package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/coords.d.ts +9 -0
- package/dist/editor/canvas/coords.d.ts.map +1 -1
- package/dist/editor/canvas/editorFill.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/entranceIcon.d.ts +2 -2
- package/dist/editor/entranceIcon.d.ts.map +1 -1
- package/dist/editor/index.css +289 -29
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +4963 -4450
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/panels/AssignForm.d.ts +3 -1
- package/dist/editor/panels/AssignForm.d.ts.map +1 -1
- package/dist/editor/panels/BulkAssignForm.d.ts +3 -1
- package/dist/editor/panels/BulkAssignForm.d.ts.map +1 -1
- package/dist/editor/panels/ConnectorAssign.d.ts.map +1 -1
- package/dist/editor/panels/FloorsPanel.d.ts.map +1 -1
- package/dist/editor/panels/Inspector.d.ts +3 -1
- package/dist/editor/panels/Inspector.d.ts.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/editor/routeStubs.d.ts +11 -0
- package/dist/editor/routeStubs.d.ts.map +1 -1
- package/dist/test-maps/LF - Shops At South Town.ai +4468 -1
- package/dist/test-maps/LF - Shops At South Town.svg +245 -0
- package/dist/viewer/MapViewer.d.ts +8 -1
- package/dist/viewer/MapViewer.d.ts.map +1 -1
- package/dist/viewer/camera.d.ts +19 -0
- 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 +10 -2
- package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
- package/dist/viewer/components/MapScene.d.ts +14 -3
- package/dist/viewer/components/MapScene.d.ts.map +1 -1
- package/dist/viewer/components/RouteLine.d.ts +1 -8
- package/dist/viewer/components/RouteLine.d.ts.map +1 -1
- package/dist/viewer/components/SvgVectorLayer.d.ts +1 -1
- package/dist/viewer/components/SvgVectorLayer.d.ts.map +1 -1
- package/dist/viewer/index.css +242 -29
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.d.ts.map +1 -1
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/pointer.d.ts +40 -4
- package/dist/viewer/pointer.d.ts.map +1 -1
- package/dist/viewer/routeFloorChanges.d.ts +35 -0
- package/dist/viewer/routeFloorChanges.d.ts.map +1 -0
- package/dist/viewer/ui/HoverTooltip.d.ts +6 -0
- package/dist/viewer/ui/HoverTooltip.d.ts.map +1 -0
- package/dist/viewer/ui/MapControls.d.ts.map +1 -1
- package/dist/viewer/ui/RuntimeChrome.d.ts +2 -1
- package/dist/viewer/ui/RuntimeChrome.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/stacking.js +0 -2118
- package/dist/chunks/stacking.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { CmAnchor, CmLevel, CmRouteEdge, CmShape, CmShapeAssignment, ShapeGeometry, ShapeKind, ShapeLabel, ThemeDefaults, Vec2, ViewBox } from '../../core';
|
|
2
|
+
import { CmAmenityCatalogItem, CmAnchor, CmLevel, CmRouteEdge, CmShape, CmShapeAssignment, MapAssignRetailer, ShapeGeometry, ShapeKind, ShapeLabel, ThemeDefaults, Vec2, ViewBox } from '../../core';
|
|
3
3
|
import { EditorTool } from '../tools';
|
|
4
4
|
import { ShapeBatchEdit } from '../splitJoin';
|
|
5
5
|
export interface EditorCanvasProps {
|
|
@@ -8,6 +8,10 @@ export interface EditorCanvasProps {
|
|
|
8
8
|
anchors: CmAnchor[];
|
|
9
9
|
edges: CmRouteEdge[];
|
|
10
10
|
assignments: CmShapeAssignment[];
|
|
11
|
+
/** Center retailers — wayfinding draws assigned names / logos from these. */
|
|
12
|
+
retailers?: MapAssignRetailer[];
|
|
13
|
+
/** Amenity catalog — wayfinding draws assigned amenity / kiosk icons. */
|
|
14
|
+
amenities?: CmAmenityCatalogItem[];
|
|
11
15
|
theme: ThemeDefaults;
|
|
12
16
|
tool: EditorTool;
|
|
13
17
|
selectedShapeId: number | null;
|
|
@@ -51,6 +55,7 @@ export interface EditorCanvasProps {
|
|
|
51
55
|
onToolChange?: (tool: EditorTool) => void;
|
|
52
56
|
onDeleteRouteAnchor: (anchorId: number) => void;
|
|
53
57
|
onConnectShapeToRoute: (shapeId: number, from: Vec2, drop: Vec2, maxDist: number) => void;
|
|
58
|
+
onConnectRouteAnchorToRoute: (anchorId: number, drop: Vec2, maxDist: number) => void;
|
|
54
59
|
/** Click inside a store to place its orange destination at that point. */
|
|
55
60
|
onEnsureShapeAnchor: (shapeId: number, point: Vec2) => number | null | void;
|
|
56
61
|
onMoveAnchor: (anchorId: number, x: number, y: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorCanvas.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/EditorCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,UAAU,EACV,aAAa,EACb,IAAI,EACJ,OAAO,EACR,MAAM,YAAY,CAAC;AAWpB,OAAO,EAaL,KAAK,UAAU,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAWL,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"EditorCanvas.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/EditorCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,UAAU,EACV,aAAa,EACb,IAAI,EACJ,OAAO,EACR,MAAM,YAAY,CAAC;AAWpB,OAAO,EAaL,KAAK,UAAU,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAWL,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AA4LtB,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,yEAAyE;IACzE,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,6CAA6C;IAC7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AAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,YAAY,GAAG,gBAAgB,CAAC;IACxD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAqBD,eAAO,MAAM,YAAY,8FA21FvB,CAAC"}
|
|
@@ -49,6 +49,15 @@ export declare function nextEditorZoomFromWheel(currentZoom: number, event: Pick
|
|
|
49
49
|
export declare function pxPerUserFromCtm(ctm: Affine2): number;
|
|
50
50
|
/** World-space length that draws as `px` CSS pixels after `scale(zoom)`. */
|
|
51
51
|
export declare function screenPxToWorld(px: number, zoom: number, pxPerUser: number): number;
|
|
52
|
+
/**
|
|
53
|
+
* Counter-scale for editor handles whose world radius was computed at
|
|
54
|
+
* `sizeZoom` while the SVG group is already at `liveZoom`.
|
|
55
|
+
*
|
|
56
|
+
* Wheel zoom paints `scale(liveZoom)` immediately and defers React, so
|
|
57
|
+
* handle radii stay at the last settled zoom. This ratio keeps those
|
|
58
|
+
* circles screen-constant without re-rendering the floor.
|
|
59
|
+
*/
|
|
60
|
+
export declare function editorHandleScale(sizeZoom: number, liveZoom: number): number;
|
|
52
61
|
/**
|
|
53
62
|
* Next pan so `user` (cursor or pinch midpoint in viewBox space) stays over
|
|
54
63
|
* the same world point after `zoom` → `nextZoom`. Without this, SVG
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coords.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/coords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,wEAAwE;AACxE,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;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AI,EAAE,MAAM,CAAA;CAAE,CAS7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorFill.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/editorFill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"editorFill.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/editorFill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAS3D,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAK9D;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACrD,KAAK,EAAE,aAAa,EACpB,UAAU,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAC9C,MAAM,CAgBR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchOp, CmAmenityCatalogItem, CmAnchor, CmBuilding, CmConnector, CmLevel, CmRouteEdge, CmShape, CmShapeAssignment, ThemeDefaults } from '../core';
|
|
1
|
+
import { BatchOp, CmAmenityCatalogItem, CmAnchor, CmBuilding, CmConnector, CmLevel, CmResponsiveOverride, CmRouteEdge, CmShape, CmShapeAssignment, ThemeDefaults } from '../core';
|
|
2
2
|
export interface EditorDraftState {
|
|
3
3
|
mapId: number;
|
|
4
4
|
centerId: number;
|
|
@@ -12,6 +12,7 @@ export interface EditorDraftState {
|
|
|
12
12
|
connectors: CmConnector[];
|
|
13
13
|
amenities: CmAmenityCatalogItem[];
|
|
14
14
|
baseSvgUrl?: string | null;
|
|
15
|
+
responsiveOverrides?: CmResponsiveOverride[];
|
|
15
16
|
}
|
|
16
17
|
/** True when another live shape already uses this ID on the floor. */
|
|
17
18
|
export declare function shapeKeyTakenOnLevel(shapes: Array<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftOps.d.ts","sourceRoot":"","sources":["../../src/editor/draftOps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,OAAO,EACP,iBAAiB,EAEjB,aAAa,EACd,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"draftOps.d.ts","sourceRoot":"","sources":["../../src/editor/draftOps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,OAAO,EACP,oBAAoB,EACpB,WAAW,EACX,OAAO,EACP,iBAAiB,EAEjB,aAAa,EACd,MAAM,SAAS,CAAC;AAUjB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9B,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC9C;AAOD,sEAAsE;AACtE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,KAAK,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC,EACF,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GACV,OAAO,CAQT;AAaD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,gBAAgB,EACvB,EAAE,EAAE,OAAO,GACV,gBAAgB,CAyJlB;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,MAAM,GACd,gBAAgB,CA6BlB;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,OAAO,EAAE,GACb,gBAAgB,CAOlB;AAyBD,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,EAAE,CA+EtE;AA0BD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAQjE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DeviceType } from '../core';
|
|
1
2
|
export type RestoredEditorSection = {
|
|
2
|
-
section: 'edit-map' | 'wayfinding';
|
|
3
|
+
section: 'edit-map' | 'wayfinding' | 'map-responsiveness';
|
|
3
4
|
levelId: number | null;
|
|
5
|
+
device?: DeviceType;
|
|
4
6
|
};
|
|
5
7
|
/**
|
|
6
|
-
* Keep Edit Map / Wayfinding open across an in-page remount (save).
|
|
8
|
+
* Keep Edit Map / Wayfinding / Map Responsiveness open across an in-page remount (save).
|
|
7
9
|
* Memory only — a full page refresh returns to Map options.
|
|
8
10
|
*/
|
|
9
11
|
export declare function markEditorSection(mapId: number, restored: RestoredEditorSection): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorSectionReturn.d.ts","sourceRoot":"","sources":["../../src/editor/editorSectionReturn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editorSectionReturn.d.ts","sourceRoot":"","sources":["../../src/editor/editorSectionReturn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,UAAU,GAAG,YAAY,GAAG,oBAAoB,CAAC;IAC1D,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAeF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,qBAAqB,GAC9B,IAAI,CAQN;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,GAAG,IAAI,CAG7E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAGtD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShapeGeometry, ShapeLabel, Vec2, DEFAULT_ENTRANCE_SIZE, ENTRANCE_ICON_ID, clampEntranceSize, isEntranceIcon } from '../core';
|
|
2
|
-
export { DEFAULT_ENTRANCE_SIZE, ENTRANCE_ICON_ID, clampEntranceSize, isEntranceIcon, };
|
|
1
|
+
import { ShapeGeometry, ShapeLabel, Vec2, DEFAULT_ENTRANCE_SIZE, ENTRANCE_ICON_ID, canonicalizeEntranceLabel, clampEntranceSize, isEntranceIcon } from '../core';
|
|
2
|
+
export { DEFAULT_ENTRANCE_SIZE, ENTRANCE_ICON_ID, canonicalizeEntranceLabel, clampEntranceSize, isEntranceIcon, };
|
|
3
3
|
export declare function isStampShape(shape: {
|
|
4
4
|
kind: string;
|
|
5
5
|
label?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entranceIcon.d.ts","sourceRoot":"","sources":["../../src/editor/entranceIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAEjB,cAAc,EACf,MAAM,SAAS,CAAC;AAIjB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACf,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5D,GAAG,OAAO,CAEV;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAO7E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,CAQtE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CAE9E;AAED,+CAA+C;AAC/C,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,MAAM,GACX,aAAa,CAEf"}
|
|
1
|
+
{"version":3,"file":"entranceIcon.d.ts","sourceRoot":"","sources":["../../src/editor/entranceIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EAEjB,cAAc,EACf,MAAM,SAAS,CAAC;AAIjB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,GACf,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5D,GAAG,OAAO,CAEV;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAO7E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,CAQtE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CAE9E;AAED,+CAA+C;AAC/C,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,MAAM,GACX,aAAa,CAEf"}
|
package/dist/editor/index.css
CHANGED
|
@@ -52,6 +52,76 @@
|
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/* Store / amenity hover pop-out — follows the pointer, arrow on the bottom. */
|
|
56
|
+
.eyeon-map-hover-tooltip {
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: 0;
|
|
59
|
+
top: 0;
|
|
60
|
+
z-index: 4;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.eyeon-map-hover-tooltip__pop {
|
|
65
|
+
position: relative;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
padding-bottom: 6px;
|
|
70
|
+
transform: translate(-50%, calc(-100% - 10px));
|
|
71
|
+
transform-origin: 50% 100%;
|
|
72
|
+
filter:
|
|
73
|
+
drop-shadow(0 10px 24px rgba(15, 23, 42, 0.18))
|
|
74
|
+
drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12));
|
|
75
|
+
animation: eyeon-map-tooltip-pop 160ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.eyeon-map-hover-tooltip__label {
|
|
79
|
+
position: relative;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
display: block;
|
|
82
|
+
max-width: min(280px, 70vw);
|
|
83
|
+
padding: 8px 12px;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
border-radius: 10px;
|
|
86
|
+
background: #fff;
|
|
87
|
+
color: #0f172a;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
letter-spacing: 0.01em;
|
|
91
|
+
line-height: 1.3;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.eyeon-map-hover-tooltip__arrow {
|
|
97
|
+
position: absolute;
|
|
98
|
+
z-index: 0;
|
|
99
|
+
left: 50%;
|
|
100
|
+
bottom: 1px;
|
|
101
|
+
width: 12px;
|
|
102
|
+
height: 12px;
|
|
103
|
+
border-radius: 2px;
|
|
104
|
+
background: #fff;
|
|
105
|
+
transform: translateX(-50%) rotate(45deg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes eyeon-map-tooltip-pop {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translate(-50%, calc(-100% - 2px)) scale(0.94);
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: translate(-50%, calc(-100% - 10px)) scale(1);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (prefers-reduced-motion: reduce) {
|
|
120
|
+
.eyeon-map-hover-tooltip__pop {
|
|
121
|
+
animation: none;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
55
125
|
@keyframes eyeon-map-current-location-pulse {
|
|
56
126
|
0% {
|
|
57
127
|
transform: scale(0.8);
|
|
@@ -428,24 +498,62 @@
|
|
|
428
498
|
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
|
|
429
499
|
}
|
|
430
500
|
|
|
431
|
-
|
|
501
|
+
/*
|
|
502
|
+
The store/amenity modal is portaled to document.body, so the
|
|
503
|
+
.eyeon-map-viewer button reset does not apply. Hello Elementor and
|
|
504
|
+
Elementor kit rules (`button:hover`, `button:focus`) would otherwise
|
|
505
|
+
paint the close control with the site accent color.
|
|
506
|
+
*/
|
|
507
|
+
.eyeon-map-info-modal button,
|
|
508
|
+
.eyeon-map-info-modal button:hover,
|
|
509
|
+
.eyeon-map-info-modal button:focus,
|
|
510
|
+
.eyeon-map-info-modal button:focus-visible,
|
|
511
|
+
.eyeon-map-info-modal button:active {
|
|
512
|
+
outline: none !important;
|
|
513
|
+
box-shadow: none !important;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close,
|
|
517
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:hover,
|
|
518
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:focus,
|
|
519
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:focus-visible,
|
|
520
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:active {
|
|
432
521
|
position: absolute;
|
|
433
522
|
top: 0;
|
|
434
523
|
right: 0;
|
|
435
524
|
width: 24px;
|
|
436
525
|
height: 24px;
|
|
437
526
|
padding: 0;
|
|
438
|
-
border: 0;
|
|
439
|
-
background: transparent;
|
|
527
|
+
border: 0 !important;
|
|
528
|
+
background: transparent !important;
|
|
529
|
+
background-color: transparent !important;
|
|
530
|
+
color: #000 !important;
|
|
440
531
|
transform: translate(50%, -50%);
|
|
441
532
|
cursor: pointer;
|
|
442
533
|
z-index: 2;
|
|
534
|
+
filter: none !important;
|
|
443
535
|
}
|
|
444
536
|
|
|
445
537
|
.eyeon-map-info-modal__close svg {
|
|
446
538
|
display: block;
|
|
447
539
|
}
|
|
448
540
|
|
|
541
|
+
.eyeon-map-info-modal__close svg,
|
|
542
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:hover svg,
|
|
543
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__close:focus svg {
|
|
544
|
+
color: #000 !important;
|
|
545
|
+
fill: #000 !important;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.eyeon-map-info-modal__close circle {
|
|
549
|
+
fill: #000 !important;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.eyeon-map-info-modal__close path {
|
|
553
|
+
stroke: #fff !important;
|
|
554
|
+
fill: none !important;
|
|
555
|
+
}
|
|
556
|
+
|
|
449
557
|
.eyeon-map-info-modal__body {
|
|
450
558
|
display: flex;
|
|
451
559
|
flex-direction: column;
|
|
@@ -509,21 +617,29 @@
|
|
|
509
617
|
font-size: 13px;
|
|
510
618
|
}
|
|
511
619
|
|
|
512
|
-
.eyeon-map-info-modal__map-it
|
|
620
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it,
|
|
621
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:hover,
|
|
622
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:focus,
|
|
623
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:focus-visible,
|
|
624
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:active {
|
|
513
625
|
flex-shrink: 0;
|
|
514
|
-
background: #0763b1;
|
|
515
|
-
color: #
|
|
516
|
-
|
|
626
|
+
background: #0763b1 !important;
|
|
627
|
+
background-color: #0763b1 !important;
|
|
628
|
+
color: #fff !important;
|
|
629
|
+
border: 0 !important;
|
|
517
630
|
padding: 8px 16px;
|
|
518
631
|
border-radius: 4px;
|
|
519
632
|
cursor: pointer;
|
|
520
633
|
font-size: 16px;
|
|
521
634
|
font-weight: 500;
|
|
522
635
|
white-space: nowrap;
|
|
636
|
+
opacity: 1 !important;
|
|
523
637
|
}
|
|
524
638
|
|
|
525
|
-
.eyeon-map-info-modal__map-it:disabled
|
|
526
|
-
|
|
639
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:disabled,
|
|
640
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:disabled:hover,
|
|
641
|
+
.eyeon-map-info-modal button.eyeon-map-info-modal__map-it:disabled:focus {
|
|
642
|
+
opacity: 0.45 !important;
|
|
527
643
|
cursor: default;
|
|
528
644
|
}
|
|
529
645
|
|
|
@@ -541,6 +657,39 @@
|
|
|
541
657
|
font: inherit;
|
|
542
658
|
}
|
|
543
659
|
|
|
660
|
+
.eyeon-map-route-change--forward {
|
|
661
|
+
z-index: 2;
|
|
662
|
+
border-color: #fff;
|
|
663
|
+
box-shadow: 0 0 0 3px #0763b1, 2px 2px 8px rgba(0, 0, 0, 0.25);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.eyeon-map-route-change--back {
|
|
667
|
+
background: #7aa8d4;
|
|
668
|
+
border-color: #e2e8f0;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.eyeon-map-route-change__intent {
|
|
672
|
+
position: absolute;
|
|
673
|
+
right: -4px;
|
|
674
|
+
bottom: -4px;
|
|
675
|
+
display: flex;
|
|
676
|
+
width: 18px;
|
|
677
|
+
height: 18px;
|
|
678
|
+
align-items: center;
|
|
679
|
+
justify-content: center;
|
|
680
|
+
border-radius: 50%;
|
|
681
|
+
background: #0763b1;
|
|
682
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
|
|
683
|
+
color: #fff;
|
|
684
|
+
font-size: 12px;
|
|
685
|
+
font-weight: 700;
|
|
686
|
+
line-height: 1;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.eyeon-map-route-change--back .eyeon-map-route-change__intent {
|
|
690
|
+
background: #475569;
|
|
691
|
+
}
|
|
692
|
+
|
|
544
693
|
.eyeon-map-route-change__icon {
|
|
545
694
|
display: flex;
|
|
546
695
|
width: 100%;
|
|
@@ -1149,6 +1298,36 @@
|
|
|
1149
1298
|
flex-wrap: wrap;
|
|
1150
1299
|
}
|
|
1151
1300
|
|
|
1301
|
+
.eyeon-map-editor__device-tabs {
|
|
1302
|
+
display: flex;
|
|
1303
|
+
gap: 4px;
|
|
1304
|
+
align-items: center;
|
|
1305
|
+
flex-wrap: wrap;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.eyeon-map-editor__device-tab {
|
|
1309
|
+
height: 32px;
|
|
1310
|
+
padding: 0 10px;
|
|
1311
|
+
border: 1px solid #e2e8f0;
|
|
1312
|
+
background: #fff;
|
|
1313
|
+
color: #0f172a;
|
|
1314
|
+
border-radius: 6px;
|
|
1315
|
+
cursor: pointer;
|
|
1316
|
+
font-size: 13px;
|
|
1317
|
+
line-height: 1;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
.eyeon-map-editor__device-tab:hover {
|
|
1321
|
+
background: #f8fafc;
|
|
1322
|
+
border-color: #cbd5e1;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.eyeon-map-editor__device-tab.is-active {
|
|
1326
|
+
background: #eff6ff;
|
|
1327
|
+
border-color: #bfdbfe;
|
|
1328
|
+
color: #1d4ed8;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1152
1331
|
.eyeon-map-editor__tool-icons,
|
|
1153
1332
|
.eyeon-map-rail__tool-extras {
|
|
1154
1333
|
display: flex;
|
|
@@ -1402,6 +1581,23 @@
|
|
|
1402
1581
|
.eyeon-map-canvas__view {
|
|
1403
1582
|
/* Consumer styles must not move the translate/scale pivot off the SVG origin. */
|
|
1404
1583
|
transform-origin: 0 0;
|
|
1584
|
+
--map-handle-scale: 1;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/* Inverse of live zoom vs last React handle size — see editorHandleScale(). */
|
|
1588
|
+
.eyeon-map-screen-const {
|
|
1589
|
+
transform-box: fill-box;
|
|
1590
|
+
transform-origin: center;
|
|
1591
|
+
transform: scale(var(--map-handle-scale));
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
/*
|
|
1595
|
+
* Route lines keep the React stroke (8/zoom, worldPx) and multiply by the
|
|
1596
|
+
* same live counter-scale as anchors. Do not use non-scaling-stroke — it
|
|
1597
|
+
* ignores viewBox scale and makes lines and the snap halo look huge.
|
|
1598
|
+
*/
|
|
1599
|
+
.eyeon-map-screen-stroke {
|
|
1600
|
+
stroke-width: calc(var(--map-stroke-width) * var(--map-handle-scale));
|
|
1405
1601
|
}
|
|
1406
1602
|
|
|
1407
1603
|
.eyeon-map-canvas__svg.is-adding-route-point,
|
|
@@ -2424,6 +2620,18 @@
|
|
|
2424
2620
|
border-color: #cbd5e1;
|
|
2425
2621
|
}
|
|
2426
2622
|
|
|
2623
|
+
.eyeon-map-select button.eyeon-map-select__trigger,
|
|
2624
|
+
.eyeon-map-select button.eyeon-map-select__trigger:hover,
|
|
2625
|
+
.eyeon-map-select button.eyeon-map-select__trigger:focus,
|
|
2626
|
+
.eyeon-map-select button.eyeon-map-select__trigger:focus-visible,
|
|
2627
|
+
.eyeon-map-select button.eyeon-map-select__trigger:active {
|
|
2628
|
+
background: #fff !important;
|
|
2629
|
+
background-color: #fff !important;
|
|
2630
|
+
color: #0f172a !important;
|
|
2631
|
+
box-shadow: none !important;
|
|
2632
|
+
outline: none !important;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2427
2635
|
.eyeon-map-select__trigger.is-open {
|
|
2428
2636
|
border-color: #0763b1;
|
|
2429
2637
|
}
|
|
@@ -2463,7 +2671,15 @@
|
|
|
2463
2671
|
font-weight: 400;
|
|
2464
2672
|
}
|
|
2465
2673
|
|
|
2466
|
-
|
|
2674
|
+
/*
|
|
2675
|
+
Hello Elementor / Elementor kit `button:hover|focus` would otherwise
|
|
2676
|
+
recolor this chevron to the site accent. Keep the arrow slate.
|
|
2677
|
+
*/
|
|
2678
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn,
|
|
2679
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:hover,
|
|
2680
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:focus,
|
|
2681
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:focus-visible,
|
|
2682
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:active {
|
|
2467
2683
|
position: absolute;
|
|
2468
2684
|
top: 0;
|
|
2469
2685
|
right: 0;
|
|
@@ -2475,9 +2691,12 @@
|
|
|
2475
2691
|
width: 28px;
|
|
2476
2692
|
margin: 0;
|
|
2477
2693
|
padding: 0;
|
|
2478
|
-
border: 0;
|
|
2479
|
-
background: transparent;
|
|
2480
|
-
color:
|
|
2694
|
+
border: 0 !important;
|
|
2695
|
+
background: transparent !important;
|
|
2696
|
+
background-color: transparent !important;
|
|
2697
|
+
color: #64748b !important;
|
|
2698
|
+
box-shadow: none !important;
|
|
2699
|
+
outline: none !important;
|
|
2481
2700
|
cursor: pointer;
|
|
2482
2701
|
}
|
|
2483
2702
|
|
|
@@ -2486,12 +2705,22 @@
|
|
|
2486
2705
|
font-weight: 400;
|
|
2487
2706
|
}
|
|
2488
2707
|
|
|
2489
|
-
.eyeon-map-select__chevron
|
|
2708
|
+
.eyeon-map-select__chevron,
|
|
2709
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:hover .eyeon-map-select__chevron,
|
|
2710
|
+
.eyeon-map-select button.eyeon-map-select__chevron-btn:focus .eyeon-map-select__chevron,
|
|
2711
|
+
.eyeon-map-select__trigger:hover .eyeon-map-select__chevron {
|
|
2490
2712
|
flex-shrink: 0;
|
|
2491
|
-
color: #64748b;
|
|
2713
|
+
color: #64748b !important;
|
|
2714
|
+
fill: none !important;
|
|
2715
|
+
stroke: currentColor !important;
|
|
2492
2716
|
opacity: 0.7;
|
|
2493
2717
|
}
|
|
2494
2718
|
|
|
2719
|
+
.eyeon-map-select__chevron path {
|
|
2720
|
+
stroke: currentColor !important;
|
|
2721
|
+
fill: none !important;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2495
2724
|
.eyeon-map-select__trigger[aria-expanded='true'] .eyeon-map-select__chevron,
|
|
2496
2725
|
.eyeon-map-select__trigger.is-open .eyeon-map-select__chevron {
|
|
2497
2726
|
transform: rotate(180deg);
|
|
@@ -2523,19 +2752,36 @@
|
|
|
2523
2752
|
min-width: 0;
|
|
2524
2753
|
}
|
|
2525
2754
|
|
|
2526
|
-
|
|
2755
|
+
/*
|
|
2756
|
+
Option rows are <button>s portaled to document.body. Host themes restyle
|
|
2757
|
+
`button:hover` to white/gray text (hard to read). Keep labels black and
|
|
2758
|
+
use only a light-gray background on hover.
|
|
2759
|
+
*/
|
|
2760
|
+
.eyeon-map-select__menu button.eyeon-map-select__option,
|
|
2761
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:hover,
|
|
2762
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:focus,
|
|
2763
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:focus-visible,
|
|
2764
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:active,
|
|
2765
|
+
.eyeon-map-select button.eyeon-map-select__option,
|
|
2766
|
+
.eyeon-map-select button.eyeon-map-select__option:hover,
|
|
2767
|
+
.eyeon-map-select button.eyeon-map-select__option:focus,
|
|
2768
|
+
.eyeon-map-select button.eyeon-map-select__option:focus-visible,
|
|
2769
|
+
.eyeon-map-select button.eyeon-map-select__option:active {
|
|
2527
2770
|
display: flex;
|
|
2528
2771
|
align-items: center;
|
|
2529
2772
|
gap: 8px;
|
|
2530
2773
|
width: 100%;
|
|
2531
2774
|
padding: 7px 10px;
|
|
2532
|
-
border: 0;
|
|
2775
|
+
border: 0 !important;
|
|
2533
2776
|
border-radius: 6px;
|
|
2534
|
-
background: transparent;
|
|
2535
|
-
color:
|
|
2777
|
+
background: transparent !important;
|
|
2778
|
+
background-color: transparent !important;
|
|
2779
|
+
color: #000 !important;
|
|
2536
2780
|
font: inherit;
|
|
2537
2781
|
font-size: 12px;
|
|
2538
2782
|
text-align: left;
|
|
2783
|
+
box-shadow: none !important;
|
|
2784
|
+
outline: none !important;
|
|
2539
2785
|
cursor: pointer;
|
|
2540
2786
|
}
|
|
2541
2787
|
|
|
@@ -2557,28 +2803,42 @@
|
|
|
2557
2803
|
gap: 8px;
|
|
2558
2804
|
min-width: 0;
|
|
2559
2805
|
flex: 1;
|
|
2806
|
+
color: #000 !important;
|
|
2560
2807
|
}
|
|
2561
2808
|
|
|
2562
|
-
.eyeon-map-select__option-
|
|
2563
|
-
|
|
2809
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:hover .eyeon-map-select__option-copy,
|
|
2810
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:hover .eyeon-map-select__option-copy > span:not(.eyeon-map-select__option-hint) {
|
|
2811
|
+
color: #000 !important;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
.eyeon-map-select__option-hint,
|
|
2815
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:hover .eyeon-map-select__option-hint,
|
|
2816
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:focus .eyeon-map-select__option-hint {
|
|
2817
|
+
color: #334155 !important;
|
|
2564
2818
|
font-size: 11px;
|
|
2565
2819
|
font-weight: 600;
|
|
2566
2820
|
flex-shrink: 0;
|
|
2567
2821
|
}
|
|
2568
2822
|
|
|
2569
|
-
.eyeon-map-select__option:hover
|
|
2570
|
-
|
|
2823
|
+
.eyeon-map-select__menu button.eyeon-map-select__option:hover,
|
|
2824
|
+
.eyeon-map-select__menu button.eyeon-map-select__option.is-highlight:not(.is-active),
|
|
2825
|
+
.eyeon-map-select button.eyeon-map-select__option:hover,
|
|
2826
|
+
.eyeon-map-select button.eyeon-map-select__option.is-highlight:not(.is-active) {
|
|
2827
|
+
background: #f1f5f9 !important;
|
|
2828
|
+
background-color: #f1f5f9 !important;
|
|
2829
|
+
color: #000 !important;
|
|
2571
2830
|
}
|
|
2572
2831
|
|
|
2573
|
-
.eyeon-map-select__option.is-active
|
|
2574
|
-
|
|
2832
|
+
.eyeon-map-select__menu button.eyeon-map-select__option.is-active,
|
|
2833
|
+
.eyeon-map-select__menu button.eyeon-map-select__option.is-active:hover,
|
|
2834
|
+
.eyeon-map-select button.eyeon-map-select__option.is-active,
|
|
2835
|
+
.eyeon-map-select button.eyeon-map-select__option.is-active:hover {
|
|
2836
|
+
background: #f1f5f9 !important;
|
|
2837
|
+
background-color: #f1f5f9 !important;
|
|
2838
|
+
color: #000 !important;
|
|
2575
2839
|
font-weight: 600;
|
|
2576
2840
|
}
|
|
2577
2841
|
|
|
2578
|
-
.eyeon-map-select__option.is-highlight:not(.is-active) {
|
|
2579
|
-
background: #f1f5f9;
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
2842
|
.eyeon-map-select__empty {
|
|
2583
2843
|
padding: 8px 10px;
|
|
2584
2844
|
color: #94a3b8;
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MapEditor, type MapEditorProps, type MapEditorHost, type EditorTool } from './MapEditor';
|
|
1
|
+
export { MapEditor, type MapEditorProps, type MapEditorHost, type EditorTool, type ResponsiveOverrideInput, } from './MapEditor';
|
|
2
2
|
export { isEditorSection, portalCenterSurface, type PortalCenterSurface } from './portalSurface';
|
|
3
3
|
export type { MapHost } from '../core';
|
|
4
4
|
export { omitLevelFromDraft, type EditorDraftState } from './draftOps';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,uBAAuB,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACjG,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC"}
|