@redus/georedus-ui 0.14.1 → 0.15.0
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/dist/main.js +17 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orioro/template-react
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- expose SyncedMaps mouse event handlers and add svgImages to GeoReDUS
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @orioro/react-maplibre-util@0.7.0
|
|
13
|
+
- @orioro/react-chart-util@0.3.0
|
|
14
|
+
|
|
3
15
|
## 0.14.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/main.js
CHANGED
|
@@ -15,7 +15,7 @@ import { buffer } from '@turf/turf';
|
|
|
15
15
|
import { scaleQuantile } from 'd3-scale';
|
|
16
16
|
import { csvParse } from 'd3-dsv';
|
|
17
17
|
import { strAutoCast } from '@orioro/cast';
|
|
18
|
-
import { fmtLayerAbsoluteId, waves_1,
|
|
18
|
+
import { fmtLayerAbsoluteId, waves_1, makeSyncedMaps, LayeredMap, svgImageGenerator, SVG_PATTERNS, useMapRegistry, useTilesLoading, HoverTooltip, layeredMapOnClickHandler, DynamicImages, ControlContainer, InspectControl, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
19
19
|
import React$1, { useState, useMemo, useCallback, useContext, createContext, useReducer, useEffect, useRef } from 'react';
|
|
20
20
|
import styled, { keyframes } from 'styled-components';
|
|
21
21
|
import { colord } from 'colord';
|
|
@@ -11100,15 +11100,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
11100
11100
|
// Sets up vtx:// protocol
|
|
11101
11101
|
//
|
|
11102
11102
|
vtxSetup();
|
|
11103
|
-
var MAP_SVG_IMAGE_GENERATOR = svgImageGenerator(_objectSpread2({
|
|
11104
|
-
mdiTree: mdiTree,
|
|
11105
|
-
mdiSprout: mdiSprout,
|
|
11106
|
-
mdiCurrencyUsd: mdiCurrencyUsd,
|
|
11107
|
-
mdiScaleBalance: mdiScaleBalance,
|
|
11108
|
-
mdiAccountMultipleOutline: mdiAccountMultipleOutline,
|
|
11109
|
-
mdiSchool: mdiSchool,
|
|
11110
|
-
mdiHospital: mdiHospital
|
|
11111
|
-
}, SVG_PATTERNS));
|
|
11112
11103
|
var LegendContainer = styled(Flex)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow:\n rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,\n rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;\n background-color: white;\n border-radius: 4px;\n"])));
|
|
11113
11104
|
|
|
11114
11105
|
//
|
|
@@ -11293,6 +11284,8 @@ function HoverLegend(_ref) {
|
|
|
11293
11284
|
}, []);
|
|
11294
11285
|
return /*#__PURE__*/React$1.createElement(Legend, _extends({}, legendProps, legendProps.type === 'SequentialColorLegend' ? SEQUENTIAL_COLOR_LEGEND_PROPS : {}));
|
|
11295
11286
|
}
|
|
11287
|
+
var DEFAULT_MAP_PROPS = {};
|
|
11288
|
+
var DEFAULT_SVG_IMAGES = {};
|
|
11296
11289
|
function GeoReDUSInner(_ref2) {
|
|
11297
11290
|
var globalState = _ref2.state,
|
|
11298
11291
|
onSetGlobalState = _ref2.onSetState,
|
|
@@ -11301,7 +11294,20 @@ function GeoReDUSInner(_ref2) {
|
|
|
11301
11294
|
_ref2$children = _ref2.children,
|
|
11302
11295
|
children = _ref2$children === void 0 ? null : _ref2$children,
|
|
11303
11296
|
_ref2$mapProps = _ref2.mapProps,
|
|
11304
|
-
mapProps = _ref2$mapProps === void 0 ?
|
|
11297
|
+
mapProps = _ref2$mapProps === void 0 ? DEFAULT_MAP_PROPS : _ref2$mapProps,
|
|
11298
|
+
_ref2$svgImages = _ref2.svgImages,
|
|
11299
|
+
svgImages = _ref2$svgImages === void 0 ? DEFAULT_SVG_IMAGES : _ref2$svgImages;
|
|
11300
|
+
var MAP_SVG_IMAGE_GENERATOR = useMemo(function () {
|
|
11301
|
+
return svgImageGenerator(_objectSpread2(_objectSpread2({
|
|
11302
|
+
mdiTree: mdiTree,
|
|
11303
|
+
mdiSprout: mdiSprout,
|
|
11304
|
+
mdiCurrencyUsd: mdiCurrencyUsd,
|
|
11305
|
+
mdiScaleBalance: mdiScaleBalance,
|
|
11306
|
+
mdiAccountMultipleOutline: mdiAccountMultipleOutline,
|
|
11307
|
+
mdiSchool: mdiSchool,
|
|
11308
|
+
mdiHospital: mdiHospital
|
|
11309
|
+
}, SVG_PATTERNS), svgImages));
|
|
11310
|
+
}, [svgImages]);
|
|
11305
11311
|
var METADATA_API_ENDPOINT = api.METADATA_API_ENDPOINT,
|
|
11306
11312
|
VECTOR_TILE_SERVER_ENDPOINT = api.VECTOR_TILE_SERVER_ENDPOINT;
|
|
11307
11313
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redus/georedus-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@orioro/react-csv": "^0.0.11",
|
|
56
56
|
"@orioro/react-dialogs": "^0.0.10",
|
|
57
57
|
"@orioro/react-dir-nav": "^0.2.0",
|
|
58
|
-
"@orioro/react-maplibre-util": "^0.
|
|
58
|
+
"@orioro/react-maplibre-util": "^0.7.0",
|
|
59
59
|
"@orioro/react-sortable": "^0.0.10",
|
|
60
60
|
"@orioro/react-ui-core": "^0.0.14",
|
|
61
61
|
"@orioro/resolve": "^0.1.9",
|