@octostar/map-component 0.1.30 → 0.1.31
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/index.cjs +181 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +181 -49
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
- package/dist/types/components/properties-panel.d.ts +13 -1
- package/dist/types/components/properties-panel.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -374,6 +374,7 @@ body{--tw-bg-opacity:1;background-color:hsl(var(--background) / var(--tw-bg-opac
|
|
|
374
374
|
.flex-1{flex:1 1 0%}
|
|
375
375
|
.flex-shrink-0{flex-shrink:0}
|
|
376
376
|
.shrink-0{flex-shrink:0}
|
|
377
|
+
.grow{flex-grow:1}
|
|
377
378
|
.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
|
378
379
|
.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
|
379
380
|
@keyframes spin{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-editor-canvas.d.ts","sourceRoot":"","sources":["../../../client/src/components/map-editor-canvas.tsx"],"names":[],"mappings":"AAiMA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gDAAgD,CAAC;AAgOxD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAgF5E,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"map-editor-canvas.d.ts","sourceRoot":"","sources":["../../../client/src/components/map-editor-canvas.tsx"],"names":[],"mappings":"AAiMA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gDAAgD,CAAC;AAgOxD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAgF5E,eAAO,MAAM,eAAe,4GAo7Q1B,CAAC"}
|
|
@@ -53,7 +53,19 @@ interface PropertiesPanelProps {
|
|
|
53
53
|
* Falls back to `feature.properties.stroke` when not provided.
|
|
54
54
|
*/
|
|
55
55
|
getFeatureColor?: (featureId: string) => string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Element to anchor the panel's screen position against. When provided, the
|
|
58
|
+
* panel is portaled to `document.body` with `position:fixed` and positioned
|
|
59
|
+
* relative to this element's bounding rect (top-right of the anchor, mirroring
|
|
60
|
+
* the legacy `absolute top-4 right-4` layout). This lets the panel escape
|
|
61
|
+
* ancestor containers with `overflow:hidden` -- needed for embedded maps
|
|
62
|
+
* inside workspace overview / chat cards where the host wrapper was clipping
|
|
63
|
+
* the panel. When `null`/undefined, the panel falls back to its legacy
|
|
64
|
+
* `position:absolute` rendering inside its React parent (used by full-map
|
|
65
|
+
* hosts like MapNT where the map container IS the viewport).
|
|
66
|
+
*/
|
|
67
|
+
anchorEl?: HTMLElement | null;
|
|
56
68
|
}
|
|
57
|
-
export declare function PropertiesPanel({ selectedFeatures, onUpdateProperties, onUpdateGeometry, onClose, isEditMode, isReadOnlyLayer, layerName, layerId, autoFocusLabel, entityCardProvider, typePickerProvider, featureSaveProvider, featureRefreshProvider, onFeatureSaved, onDeleteFeatures, onOpenInNewTab, onEntityContextMenu, layers, onMoveFeaturesToLayer, onCopyFeaturesToLayer, onCreateLayerAndMoveFeatures, onCreateLayerAndCopyFeatures, getFeatureColor }: PropertiesPanelProps): import("react").JSX.Element | null;
|
|
69
|
+
export declare function PropertiesPanel({ selectedFeatures, onUpdateProperties, onUpdateGeometry, onClose, isEditMode, isReadOnlyLayer, layerName, layerId, autoFocusLabel, entityCardProvider, typePickerProvider, featureSaveProvider, featureRefreshProvider, onFeatureSaved, onDeleteFeatures, onOpenInNewTab, onEntityContextMenu, layers, onMoveFeaturesToLayer, onCopyFeaturesToLayer, onCreateLayerAndMoveFeatures, onCreateLayerAndCopyFeatures, getFeatureColor, anchorEl }: PropertiesPanelProps): import("react").JSX.Element | null;
|
|
58
70
|
export {};
|
|
59
71
|
//# sourceMappingURL=properties-panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties-panel.d.ts","sourceRoot":"","sources":["../../../client/src/components/properties-panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"properties-panel.d.ts","sourceRoot":"","sources":["../../../client/src/components/properties-panel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAc,mBAAmB,EAAsB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAkBhK,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;CAC5B;AAED,UAAU,SAAS;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,oBAAoB;IAC5B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC/E,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,O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