@map-colonies/react-components 4.10.4 → 4.12.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.
Files changed (73) hide show
  1. package/dist/@map-colonies/react-components.es.js +3103 -2688
  2. package/dist/@map-colonies/react-components.umd.js +25 -20
  3. package/dist/animated/animated-values-provider.d.ts +13 -0
  4. package/dist/animated/index.d.ts +1 -0
  5. package/dist/autocomplete/autocomplete.css +1 -1
  6. package/dist/cesium-map/active-layers/active-layers-panel.css +35 -0
  7. package/dist/cesium-map/active-layers/active-layers-panel.d.ts +8 -0
  8. package/dist/cesium-map/active-layers/active-layers-widget.d.ts +8 -0
  9. package/dist/cesium-map/base-map/base-map-widget.d.ts +11 -0
  10. package/dist/cesium-map/base-map/base-maps-panel.d.ts +9 -0
  11. package/dist/cesium-map/base-map/cesium-item.d.ts +9 -0
  12. package/dist/cesium-map/base-map/terrains-panel.d.ts +8 -0
  13. package/dist/cesium-map/data-sources/drawings.data-source.d.ts +1 -1
  14. package/dist/cesium-map/debug/{debug-panel.d.ts → wfs-debug-widget.d.ts} +3 -4
  15. package/dist/cesium-map/debug/wfs.css +7 -7
  16. package/dist/cesium-map/debug/wfs.d.ts +1 -1
  17. package/dist/cesium-map/geocoder/geocoder-panel.css +93 -0
  18. package/dist/cesium-map/geocoder/geocoder-panel.d.ts +37 -0
  19. package/dist/cesium-map/geocoder/geocoder-widget.d.ts +10 -0
  20. package/dist/cesium-map/helpers/constants.d.ts +5 -0
  21. package/dist/cesium-map/{tools → helpers}/draw/drawHelper.css +1 -1
  22. package/dist/cesium-map/helpers/utils.d.ts +10 -2
  23. package/dist/cesium-map/layers/wfs.layer.d.ts +1 -0
  24. package/dist/cesium-map/layers-manager.d.ts +5 -3
  25. package/dist/cesium-map/legend/index.d.ts +3 -0
  26. package/dist/cesium-map/{map-legend/MapLegend.d.ts → legend/legend-item.d.ts} +2 -2
  27. package/dist/cesium-map/{map-legend/MapLegendList.d.ts → legend/legend-list.d.ts} +3 -3
  28. package/dist/cesium-map/{map-legend/MapLegendSidebar.d.ts → legend/legend-sidebar.d.ts} +3 -3
  29. package/dist/cesium-map/legend/legend-widget.d.ts +5 -0
  30. package/dist/cesium-map/{map-legend/MapLegend.css → legend/legend.css} +20 -26
  31. package/dist/cesium-map/map.css +248 -28
  32. package/dist/cesium-map/map.d.ts +27 -8
  33. package/dist/cesium-map/tools/cesium-compass.tool.css +7 -7
  34. package/dist/cesium-map/tools/cesium-compass.tool.d.ts +2 -2
  35. package/dist/cesium-map/tools/coordinates-tracker.tool.css +3 -5
  36. package/dist/cesium-map/tools/index.d.ts +3 -4
  37. package/dist/cesium-map/tools/inspector.tool.d.ts +1 -3
  38. package/dist/cesium-map/tools/scale-tracker.tool.css +6 -4
  39. package/dist/cesium-map/tools/zoom-buttons.css +31 -0
  40. package/dist/cesium-map/tools/{zoom_level-tracker.tool.css → zoom-level-tracker.tool.css} +6 -5
  41. package/dist/cesium-map/widget/cesium-button.d.ts +7 -0
  42. package/dist/cesium-map/widget/cesium-icon.d.ts +7 -0
  43. package/dist/cesium-map/widget/cesium-inspector.d.ts +9 -0
  44. package/dist/cesium-map/widget/cesium-title.d.ts +6 -0
  45. package/dist/cesium-map/widget/cesium-tool.d.ts +8 -0
  46. package/dist/circular-progress-bar/circular-progress-bar.d.ts +26 -0
  47. package/dist/circular-progress-bar/index.d.ts +1 -0
  48. package/dist/index.d.ts +3 -1
  49. package/dist/multi-selection/index.d.ts +1 -0
  50. package/dist/{multiSelection/multiSelection.d.ts → multi-selection/multi-selection.d.ts} +5 -5
  51. package/dist/theme/theme.d.ts +4 -1
  52. package/dist/utils/config.d.ts +1 -0
  53. package/package.json +7 -2
  54. package/dist/cesium-map/debug/debug-panel.css +0 -30
  55. package/dist/cesium-map/map-legend/MapLegendToggle.d.ts +0 -6
  56. package/dist/cesium-map/map-legend/index.d.ts +0 -3
  57. package/dist/cesium-map/settings/base-maps.css +0 -37
  58. package/dist/cesium-map/settings/base-maps.d.ts +0 -6
  59. package/dist/cesium-map/settings/scene-modes.css +0 -19
  60. package/dist/cesium-map/settings/scene-modes.d.ts +0 -6
  61. package/dist/cesium-map/settings/settings.css +0 -57
  62. package/dist/cesium-map/settings/settings.d.ts +0 -23
  63. package/dist/cesium-map/zoom/zoomButtons.css +0 -35
  64. package/dist/multiSelection/index.d.ts +0 -1
  65. /package/dist/cesium-map/{tools → helpers}/draw/drawHelper.d.ts +0 -0
  66. /package/dist/cesium-map/{tools/geojson/geojson-to-primitive.d.ts → helpers/geojson/geojsonToPrimitive.d.ts} +0 -0
  67. /package/dist/cesium-map/{tools → helpers}/geojson/index.d.ts +0 -0
  68. /package/dist/cesium-map/{tools → helpers}/geojson/point.geojson.d.ts +0 -0
  69. /package/dist/cesium-map/{tools → helpers}/geojson/polygon.geojson.d.ts +0 -0
  70. /package/dist/cesium-map/{tools → helpers}/geojson/rectangle.geojson.d.ts +0 -0
  71. /package/dist/cesium-map/{tools/cesium/primitives-conversions.cesium.d.ts → helpers/primitivesConversionsCesium.d.ts} +0 -0
  72. /package/dist/cesium-map/{zoom/zoomButtons.d.ts → tools/zoom-buttons.d.ts} +0 -0
  73. /package/dist/cesium-map/tools/{zoom_level-tracker.tool.d.ts → zoom-level-tracker.tool.d.ts} +0 -0
@@ -1,58 +1,278 @@
1
- .cesium-widget-credits {
1
+ .cesium-viewer .cesium-widget-credits {
2
2
  display: none !important;
3
3
  }
4
4
 
5
- .cesium-viewer-fullscreenContainer {
6
- bottom: 8px;
7
- right: 8px;
8
- left: unset;
5
+ .cesium-viewer .cesium-viewer-toolbar {
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-end;
9
+ top: 116px;
10
+ right: 27px;
9
11
  }
10
12
 
11
- body[dir='rtl'] .cesium-viewer-fullscreenContainer {
12
- left: 8px;
13
+ body[dir='rtl'] .cesium-viewer .cesium-viewer-toolbar {
14
+ left: 27px;
13
15
  right: unset;
14
16
  }
15
17
 
16
- body[dir='rtl'] .cesium-viewer-toolbar {
17
- left: 5px;
18
- right: unset;
18
+ .cesium-viewer .widgetsContainer {
19
+ top: 24px;
20
+ left: 10px;
19
21
  }
20
22
 
21
- .cesium-button.cesium-fullscreenButton {
22
- border-radius: 14%;
23
+ body[dir='rtl'] .cesium-viewer .widgetsContainer {
24
+ left: unset;
25
+ right: 10px;
23
26
  }
24
27
 
25
- .toolsContainer {
26
- color: var(--mdc-theme-on-surface);
27
- display: flex;
28
- gap: 8px;
29
- z-index: 2000;
28
+ .cesium-viewer .cesium-mc-tool {
29
+ display: block;
30
30
  position: absolute;
31
- bottom: 12px;
31
+ box-sizing: content-box;
32
+ top: auto;
33
+ right: 0;
34
+ width: 320px;
35
+ max-height: 500px;
36
+ margin-top: 5px;
37
+ background-color: rgba(38, 38, 38, 0.75);
38
+ border: 1px solid #444;
39
+ padding: 6px;
40
+ overflow: auto;
41
+ border-radius: 10px;
42
+ -moz-user-select: none;
43
+ -webkit-user-select: none;
44
+ -ms-user-select: none;
45
+ user-select: none;
46
+ transform: translate(0, -20%);
47
+ visibility: hidden;
48
+ opacity: 0;
49
+ transition:
50
+ visibility 0s 0.2s,
51
+ opacity 0.2s ease-in,
52
+ transform 0.2s ease-in;
53
+ }
54
+
55
+ .cesium-viewer .cesium-mc-tool-visible {
56
+ transform: translate(0, 0);
57
+ visibility: visible;
58
+ opacity: 1;
59
+ transition:
60
+ opacity 0.2s ease-out,
61
+ transform 0.2s ease-out;
62
+ }
63
+
64
+ .cesium-viewer .cesium-mc-title {
65
+ display: block;
66
+ font-family: sans-serif;
67
+ font-size: 16pt;
68
+ text-align: left;
69
+ margin-bottom: 4px;
70
+ }
71
+
72
+ body[dir='rtl'] .cesium-viewer .cesium-mc-title {
73
+ text-align: right;
74
+ }
75
+
76
+ .cesium-viewer .cesium-mc-tool {
77
+ color: var(--mdc-theme-cesium-color);
32
78
  right: 40px;
33
- opacity: 0.7;
79
+ margin-top: 0;
34
80
  }
35
81
 
36
- body[dir='rtl'] .toolsContainer {
82
+ body[dir='rtl'] .cesium-viewer .cesium-mc-tool {
83
+ right: unset;
37
84
  left: 40px;
85
+ }
86
+
87
+ .cesium-viewer .cesium-mc-choices {
88
+ display: block;
89
+ border: 1px solid #888;
90
+ border-radius: 5px;
91
+ padding: 5px 0;
92
+ margin-bottom: 5px;
93
+ }
94
+
95
+ .cesium-viewer .cesium-baseLayerPicker-dropDown {
96
+ right: 40px;
97
+ margin-top: 0;
98
+ }
99
+
100
+ body[dir='rtl'] .cesium-viewer .cesium-baseLayerPicker-dropDown {
38
101
  right: unset;
102
+ left: 40px;
103
+ }
104
+
105
+ body[dir='rtl'] .cesium-viewer .cesium-baseLayerPicker-sectionTitle {
106
+ text-align: right;
39
107
  }
40
108
 
41
- .sideToolsContainer {
109
+ .cesium-viewer span.cesium-sceneModePicker-wrapper {
110
+ width: 100%;
111
+ display: flex;
112
+ flex-direction: row-reverse;
113
+ align-items: center;
114
+ column-gap: 4px;
115
+ }
116
+
117
+ .cesium-viewer .cesium-viewer-fullscreenContainer {
118
+ width: 32px;
119
+ height: 32px;
120
+ bottom: 9px;
121
+ right: 30px;
122
+ }
123
+
124
+ body[dir='rtl'] .cesium-viewer .cesium-viewer-fullscreenContainer {
125
+ right: unset;
126
+ left: 30px;
127
+ }
128
+
129
+ .cesium-viewer .cesium-button.cesium-fullscreenButton {
130
+ border-radius: 14%;
131
+ box-sizing: border-box;
132
+ }
133
+
134
+ .cesium-viewer .bottomToolsContainer {
135
+ color: var(--mdc-theme-on-surface);
136
+ opacity: 0.7;
42
137
  display: flex;
43
- flex-direction: row;
44
138
  gap: 8px;
45
- z-index: 2000;
46
139
  position: absolute;
47
- top: 12px;
48
- right: 40px;
140
+ bottom: 10px;
141
+ right: 70px;
49
142
  }
50
143
 
51
- body[dir='rtl'] .sideToolsContainer {
52
- left: 40px;
144
+ body[dir='rtl'] .cesium-viewer .bottomToolsContainer {
145
+ left: 70px;
53
146
  right: unset;
54
147
  }
55
148
 
149
+ /* #region for NATIVE CONTROLS */
150
+ .cesium-viewer input[type='checkbox'] {
151
+ accent-color: var(--mdc-theme-cesium-checkbox-color);
152
+ }
153
+
154
+ .cesium-viewer input::placeholder {
155
+ color: unset;
156
+ opacity: 0.8;
157
+ }
158
+
159
+ .cesium-viewer input {
160
+ font-size: var(--mdc-theme-cesium-font-size);
161
+ color: unset;
162
+ font-weight: bold;
163
+ caret-color: unset;
164
+ }
165
+
166
+ .cesium-viewer ::-webkit-scrollbar {
167
+ width: 6px;
168
+ height: 6px;
169
+ }
170
+
171
+ .cesium-viewer ::-webkit-scrollbar-track {
172
+ box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
173
+ border-radius: 6px;
174
+ }
175
+
176
+ .cesium-viewer ::-webkit-scrollbar-thumb {
177
+ background-color: #aaa;
178
+ border-radius: 6px;
179
+ }
180
+
181
+ /* #endregion for NATIVE CONTROLS */
182
+
183
+ /* #region for mdc-checkbox */
184
+ .cesium-viewer .mdc-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
185
+ .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,
186
+ .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate='true']:enabled ~ .mdc-checkbox__background {
187
+ border-color: var(--mdc-theme-cesium-checkbox-color);
188
+ background-color: var(--mdc-theme-cesium-checkbox-color);
189
+ }
190
+
191
+ .cesium-viewer .mdc-checkbox--upgraded {
192
+ --mdc-checkbox-checked-color: var(--mdc-theme-cesium-checkbox-color);
193
+ }
194
+
195
+ .cesium-viewer .mdc-checkbox {
196
+ width: var(--mdc-theme-cesium-checkbox-width);
197
+ height: var(--mdc-theme-cesium-checkbox-height);
198
+ }
199
+
200
+ .cesium-viewer .mdc-checkbox__background {
201
+ width: 12px;
202
+ height: 12px;
203
+ }
204
+
205
+ .cesium-viewer .mdc-form-field {
206
+ color: unset;
207
+ margin: -2%;
208
+ margin-bottom: -4%;
209
+ }
210
+
211
+ .cesium-viewer .mdc-form-field > label {
212
+ color: unset;
213
+ }
214
+
215
+ .cesium-viewer .mdc-ripple-upgraded--unbounded {
216
+ --mdc-ripple-fg-size: 0px !important;
217
+ }
218
+
219
+ /* #endregion mdc-checkbox */
220
+
221
+ /* #region mdc-list */
222
+ .cesium-viewer .mdc-list {
223
+ font-size: var(--mdc-theme-cesium-font-size);
224
+ font-family: sans-serif;
225
+ padding: 1px;
226
+ color: unset;
227
+ }
228
+
229
+ .cesium-viewer .mdc-list-item {
230
+ padding: unset;
231
+ padding-right: 4px;
232
+ padding-left: 4px;
233
+ height: 24px;
234
+ font-weight: bold;
235
+ }
236
+
237
+ .cesium-viewer .mdc-text-field--filled {
238
+ height: 32px;
239
+ }
240
+
241
+ /* #endregion mdc-list */
242
+
243
+ /* #region mdc-TextField */
244
+ .cesium-viewer .mdc-text-field__input {
245
+ box-sizing: border-box;
246
+ border: unset;
247
+ }
248
+
249
+ .mdc-text-field--filled:not(.mdc-text-field--disabled) {
250
+ background-color: transparent !important;
251
+ }
252
+
253
+ .cesium-viewer .mdc-text-field {
254
+ padding: unset;
255
+ padding-right: 4px;
256
+ padding-left: 4px;
257
+ }
258
+
259
+ /* Removing the purple underline in RMWC */
260
+ .cesium-viewer .mdc-line-ripple::before,
261
+ .cesium-viewer .mdc-line-ripple::after {
262
+ border-bottom: none !important;
263
+ }
264
+
265
+ /* #endregion mdc-TextField */
266
+
267
+ .cesium-viewer .disabled {
268
+ opacity: 0.6;
269
+ cursor: initial;
270
+ }
271
+
272
+ .cesium-viewer .search-results {
273
+ padding: 4px;
274
+ }
275
+
56
276
  .viewer {
57
277
  display: flex;
58
278
  flex-direction: row;
@@ -60,4 +280,4 @@ body[dir='rtl'] .sideToolsContainer {
60
280
 
61
281
  .viewer .mdc-linear-progress__bar-inner {
62
282
  border-top-width: 10px;
63
- }
283
+ }
@@ -2,10 +2,10 @@ import React, { ComponentProps, MouseEvent } from 'react';
2
2
  import { Viewer } from 'resium';
3
3
  import { Viewer as CesiumViewerCls, TerrainProvider } from 'cesium';
4
4
  import { Proj } from '../utils/projections';
5
- import LayerManager, { LegendExtractor } from './layers-manager';
6
- import { IMapLegend } from './map-legend';
5
+ import { GeocoderOptions } from './geocoder/geocoder-panel';
6
+ import LayerManager, { IRasterLayer, LegendExtractor } from './layers-manager';
7
+ import { IMapLegend } from './legend';
7
8
  import { CesiumSceneMode } from './proxied.types';
8
- import { IBaseMaps } from './settings/settings';
9
9
  interface ViewerProps extends ComponentProps<typeof Viewer> {
10
10
  }
11
11
  export declare class CesiumViewer extends CesiumViewerCls {
@@ -38,6 +38,25 @@ export interface IContextMenuData {
38
38
  handleClose: () => void;
39
39
  contextEvt: MouseEvent | TouchEvent | KeyboardEvent | React.MouseEvent | React.TouchEvent | React.KeyboardEvent;
40
40
  }
41
+ export interface IBaseMap {
42
+ id: string;
43
+ title?: string;
44
+ thumbnail?: string;
45
+ isCurrent?: boolean;
46
+ isForPreview?: boolean;
47
+ baseRasterLayers: IRasterLayer[];
48
+ }
49
+ export interface IBaseMaps {
50
+ maps: IBaseMap[];
51
+ }
52
+ export interface ITerrain {
53
+ id: string;
54
+ url: string;
55
+ title?: string;
56
+ thumbnail?: string;
57
+ isCurrent?: boolean;
58
+ terrainProvider?: TerrainProvider;
59
+ }
41
60
  interface ILegends {
42
61
  legendsList?: IMapLegend[];
43
62
  emptyText?: string;
@@ -48,15 +67,15 @@ interface ILegends {
48
67
  };
49
68
  mapLegendsExtractor?: LegendExtractor;
50
69
  }
51
- export interface IDebugPanel {
52
- wfs?: Record<string, unknown>;
53
- }
54
70
  export interface CesiumMapProps extends ViewerProps {
55
71
  showMousePosition?: boolean;
56
72
  showZoomLevel?: boolean;
57
73
  showScale?: boolean;
58
74
  showLoadingProgress?: boolean;
59
75
  showCompass?: boolean;
76
+ showZoomButtons?: boolean;
77
+ showDebuggerTool?: boolean;
78
+ showActiveLayersTool?: boolean;
60
79
  projection?: Proj;
61
80
  center?: [number, number];
62
81
  zoom?: number;
@@ -65,6 +84,7 @@ export interface CesiumMapProps extends ViewerProps {
65
84
  };
66
85
  sceneModes?: (typeof CesiumSceneMode)[];
67
86
  baseMaps?: IBaseMaps;
87
+ terrains?: ITerrain[];
68
88
  useOptimizedTileRequests?: boolean;
69
89
  terrainProvider?: TerrainProvider;
70
90
  imageryContextMenu?: React.ReactElement<IContextMenuData>;
@@ -75,8 +95,7 @@ export interface CesiumMapProps extends ViewerProps {
75
95
  };
76
96
  legends?: ILegends;
77
97
  layerManagerFootprintMetaFieldPath?: string;
78
- displayZoomButtons?: boolean;
79
- debugPanel?: IDebugPanel;
98
+ geocoderPanel?: GeocoderOptions[];
80
99
  }
81
100
  export declare const useCesiumMap: () => CesiumViewer;
82
101
  export declare const useCesiumMapViewstate: () => IMapViewState;
@@ -1,9 +1,9 @@
1
- .compass.rtl {
2
- right: unset;
3
- left: 24px;
1
+ .cesium-viewer .compass {
2
+ top: 20px;
3
+ right: 0px;
4
4
  }
5
5
 
6
- .compass.ltr {
7
- left: unset;
8
- right: 24px;
9
- }
6
+ body[dir='rtl'] .cesium-viewer .compass {
7
+ right: unset;
8
+ left: 0px;
9
+ }
@@ -7,5 +7,5 @@ interface CesiumCompassToolProps {
7
7
  [key: string]: string;
8
8
  };
9
9
  }
10
- declare const CesiumCompassTool: React.FC<CesiumCompassToolProps>;
11
- export default CesiumCompassTool;
10
+ export declare const CesiumCompassTool: React.FC<CesiumCompassToolProps>;
11
+ export {};
@@ -1,11 +1,9 @@
1
- .trackerPosition {
1
+ .cesium-viewer .coordinatesTracker {
2
2
  background-color: var(--mdc-theme-surface);
3
- z-index: 2000;
4
- padding: 2px 2px;
3
+ padding-top: 7px;
5
4
  border-radius: 2px;
6
5
  font-size: 12px;
7
- height: 24px;
8
6
  text-align: center;
9
- line-height: 20px;
10
7
  white-space: nowrap;
8
+ min-width: 200px;
11
9
  }
@@ -1,8 +1,7 @@
1
+ export * from './cesium-compass.tool';
1
2
  export * from './coordinates-tracker.tool';
2
3
  export * from './inspector.tool';
3
4
  export * from './scale-tracker.tool';
4
5
  export * from './terranian-height.tool';
5
- export * from './zoom_level-tracker.tool';
6
- export * from './geojson';
7
- export * from './draw/drawHelper';
8
- export * from './cesium/primitives-conversions.cesium';
6
+ export * from './zoom-buttons';
7
+ export * from './zoom-level-tracker.tool';
@@ -1,4 +1,2 @@
1
1
  import React from 'react';
2
- export interface InspectorProps {
3
- }
4
- export declare const InspectorTool: React.FC<InspectorProps>;
2
+ export declare const InspectorTool: React.FC;
@@ -1,14 +1,16 @@
1
- .scalePosition {
1
+ .cesium-viewer .scaleTracker {
2
2
  background-color: var(--mdc-theme-surface);
3
- padding: 1px 1px;
3
+ padding-top: 4px;
4
4
  border-radius: 2px;
5
5
  font-size: 12px;
6
6
  width: 110px;
7
7
  }
8
- .scale-tracker-label {
8
+
9
+ .cesium-viewer .scaleTrackerLabel {
9
10
  text-align: center;
10
11
  }
11
- .scale-tracker-bar {
12
+
13
+ .cesium-viewer .scaleTrackerBar {
12
14
  background: var(--mdc-theme-on-surface);
13
15
  margin: 0 auto;
14
16
  display: block;
@@ -0,0 +1,31 @@
1
+ .cesium-viewer .zoomButtons {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 2px;
5
+ position: absolute;
6
+ bottom: 48px;
7
+ right: 30px;
8
+ }
9
+
10
+ body[dir='rtl'] .cesium-viewer .zoomButtons {
11
+ right: unset;
12
+ left: 30px;
13
+ }
14
+
15
+ .cesium-viewer .zoomButton {
16
+ width: 32px;
17
+ height: 32px;
18
+ background: #303336;
19
+ border: 1px solid #444;
20
+ border-radius: 4px;
21
+ box-sizing: border-box;
22
+ display: flex;
23
+ justify-content: center;
24
+ padding: 4px;
25
+ cursor: pointer;
26
+ }
27
+
28
+ .cesium-viewer .zoomButton:hover {
29
+ background: #48b;
30
+ border-color: #aef;
31
+ }
@@ -1,19 +1,20 @@
1
- .zoomLevel {
2
- z-index: 2000;
1
+ .cesium-viewer .zoomLevel {
3
2
  background-color: var(--mdc-theme-surface);
4
3
  border-radius: 2px;
5
4
  padding: 2px;
6
5
  height: 24px;
7
6
  }
8
7
 
9
- .zoomLevelValue {
8
+ .cesium-viewer .zoomLevelValue {
10
9
  margin: 2px;
11
10
  font-size: 14px;
12
- line-height: 10px;
11
+ line-height: 12px;
13
12
  text-align: center;
14
13
  }
15
14
 
16
- .zoomLevelLabel {
15
+ .cesium-viewer .zoomLevelLabel {
17
16
  font-size: 8px;
18
17
  line-height: 8px;
18
+ display: table;
19
+ margin: auto;
19
20
  }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ICesiumButtonProps {
3
+ title: string;
4
+ onClick: () => void;
5
+ }
6
+ export declare const CesiumButton: React.FC<ICesiumButtonProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ICesiumIconProps {
3
+ onClick: () => void;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const CesiumIcon: React.FC<ICesiumIconProps>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface ICesiumInspectorProps {
3
+ title: string;
4
+ isVisible: boolean;
5
+ onClick: () => void;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const CesiumInspector: React.FC<ICesiumInspectorProps>;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ICesiumTitleProps {
3
+ title: string;
4
+ }
5
+ export declare const CesiumTitle: React.FC<ICesiumTitleProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface ICesiumToolProps {
3
+ isVisible: boolean;
4
+ children: React.ReactNode;
5
+ title?: string;
6
+ }
7
+ export declare const CesiumTool: React.FC<ICesiumToolProps>;
8
+ export {};
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { buildStyles } from 'react-circular-progressbar';
3
+ interface CircularProgressBarStylesProps {
4
+ rotation?: number;
5
+ strokeLinecap?: any;
6
+ textColor?: string;
7
+ textSize?: string | number;
8
+ pathColor?: string;
9
+ pathTransition?: string;
10
+ pathTransitionDuration?: number;
11
+ trailColor?: string;
12
+ backgroundColor?: string;
13
+ }
14
+ interface CircularProgressBarProps {
15
+ value: number;
16
+ text?: string;
17
+ children?: React.ReactNode;
18
+ strokeWidth?: number;
19
+ styles?: CircularProgressBarStylesProps;
20
+ background?: boolean;
21
+ backgroundPadding?: number;
22
+ counterClockwise?: boolean;
23
+ circleRatio?: number;
24
+ }
25
+ export declare const CircularProgressBar: React.FC<CircularProgressBarProps>;
26
+ export { buildStyles };
@@ -0,0 +1 @@
1
+ export * from './circular-progress-bar';
package/dist/index.d.ts CHANGED
@@ -12,4 +12,6 @@ export * from './theme';
12
12
  export * from './cesium-map';
13
13
  export * from './autocomplete';
14
14
  export * from './file-picker';
15
- export * from './multiSelection';
15
+ export * from './multi-selection';
16
+ export * from './circular-progress-bar';
17
+ export * from './animated';
@@ -0,0 +1 @@
1
+ export * from './multi-selection';
@@ -1,18 +1,18 @@
1
1
  import React from 'react';
2
2
  import { GroupBase, StylesConfig as rcStylesConfig } from 'react-select';
3
- export type MultiSelectOption = {
3
+ export type MultiSelectionOption = {
4
4
  value: string;
5
5
  label: string;
6
6
  color?: string;
7
7
  disabled?: boolean;
8
8
  };
9
- interface IPropsMultiSelection {
10
- options: MultiSelectOption[];
11
- values?: MultiSelectOption[];
9
+ interface MultiSelectionProps {
10
+ options: MultiSelectionOption[];
11
+ values?: MultiSelectionOption[];
12
12
  onChange?: (data: any) => void;
13
13
  placeholder?: string;
14
14
  styles?: StylesConfig;
15
15
  }
16
- export declare const MultiSelection: (props: IPropsMultiSelection) => React.JSX.Element;
16
+ export declare const MultiSelection: (props: MultiSelectionProps) => React.JSX.Element;
17
17
  export type StylesConfig = rcStylesConfig<unknown, false, GroupBase<unknown>> | undefined;
18
18
  export {};
@@ -6,4 +6,7 @@ declare const useMappedMuiTheme: (theme: {
6
6
  declare const mapMcToMuiTheme: (mcTheme: {
7
7
  [key: string]: string;
8
8
  }, prefersDarkMode?: boolean) => Theme;
9
- export { useMediaQuery, useMappedMuiTheme, mapMcToMuiTheme };
9
+ declare const useMappedCesiumTheme: (theme: {
10
+ [key: string]: string;
11
+ }) => any;
12
+ export { useMediaQuery, useMappedMuiTheme, mapMcToMuiTheme, useMappedCesiumTheme };
@@ -0,0 +1 @@
1
+ export declare const getValue: (storyName: string, key: string) => string;