@open-pioneer/scale-viewer 0.10.0 → 0.11.0-dev.20250515143825
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/CHANGELOG.md +12 -0
- package/ScaleViewer.js +1 -1
- package/ScaleViewer.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @open-pioneer/scale-viewer
|
|
2
2
|
|
|
3
|
+
## 0.11.0-dev.20250515143825
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 738390e: Update to Chakra v3
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [738390e]
|
|
12
|
+
- Updated dependencies [738390e]
|
|
13
|
+
- @open-pioneer/map@0.11.0-dev.20250515143825
|
|
14
|
+
|
|
3
15
|
## 0.10.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/ScaleViewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { Box, Text } from '@
|
|
2
|
+
import { Box, Text } from '@chakra-ui/react';
|
|
3
3
|
import { useMapModel } from '@open-pioneer/map';
|
|
4
4
|
import { useCommonComponentProps } from '@open-pioneer/react-utils';
|
|
5
5
|
import { useReactiveSnapshot } from '@open-pioneer/reactivity';
|
package/ScaleViewer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScaleViewer.js","sources":["ScaleViewer.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, Text } from \"@
|
|
1
|
+
{"version":3,"file":"ScaleViewer.js","sources":["ScaleViewer.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, Text } from \"@chakra-ui/react\";\nimport { MapModelProps, useMapModel } from \"@open-pioneer/map\";\nimport { CommonComponentProps, useCommonComponentProps } from \"@open-pioneer/react-utils\";\nimport { useReactiveSnapshot } from \"@open-pioneer/reactivity\";\nimport { useIntl } from \"open-pioneer:react-hooks\";\nimport { FC } from \"react\";\n\n/**\n * These are the properties supported by the {@link ScaleViewer}.\n */\nexport interface ScaleViewerProps extends CommonComponentProps, MapModelProps {}\n\nexport const ScaleViewer: FC<ScaleViewerProps> = (props) => {\n const { containerProps } = useCommonComponentProps(\"scale-viewer\", props);\n const { map } = useMapModel(props);\n const intl = useIntl();\n const scale = useReactiveSnapshot(() => map?.scale ?? 1, [map]);\n const displayScale = scale ? intl.formatNumber(scale) : undefined;\n\n return <Box {...containerProps}>{displayScale && <Text>1:{displayScale}</Text>}</Box>;\n};\n"],"names":[],"mappings":";;;;;;;AAca,MAAA,WAAA,GAAoC,CAAC,KAAU,KAAA;AACxD,EAAA,MAAM,EAAE,cAAA,EAAmB,GAAA,uBAAA,CAAwB,gBAAgB,KAAK,CAAA;AACxE,EAAA,MAAM,EAAE,GAAA,EAAQ,GAAA,WAAA,CAAY,KAAK,CAAA;AACjC,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAM,MAAA,KAAA,GAAQ,oBAAoB,MAAM,GAAA,EAAK,SAAS,CAAG,EAAA,CAAC,GAAG,CAAC,CAAA;AAC9D,EAAA,MAAM,YAAe,GAAA,KAAA,GAAQ,IAAK,CAAA,YAAA,CAAa,KAAK,CAAI,GAAA,MAAA;AAExD,EAAA,2BAAQ,GAAK,EAAA,EAAA,GAAG,cAAiB,EAAA,QAAA,EAAA,YAAA,yBAAiB,IAAK,EAAA,EAAA,QAAA,EAAA;AAAA,IAAA,IAAA;AAAA,IAAG;AAAA,GAAA,EAAa,CAAQ,EAAA,CAAA;AACnF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/scale-viewer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0-dev.20250515143825",
|
|
5
5
|
"description": "This package provides a UI component to show the actual map scale to the user.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"directory": "src/packages/scale-viewer"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@open-pioneer/react-utils": "
|
|
19
|
-
"@open-pioneer/runtime": "
|
|
20
|
-
"@open-pioneer/reactivity": "
|
|
17
|
+
"@chakra-ui/react": "^3.17.0",
|
|
18
|
+
"@open-pioneer/react-utils": "4.0.0-dev.20250512105016",
|
|
19
|
+
"@open-pioneer/runtime": "4.0.0-dev.20250512105016",
|
|
20
|
+
"@open-pioneer/reactivity": "4.0.0-dev.20250512105016",
|
|
21
21
|
"react": "^19.1.0",
|
|
22
|
-
"@open-pioneer/map": "
|
|
22
|
+
"@open-pioneer/map": "0.11.0-dev.20250515143825"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./package.json": "./package.json",
|