@map-colonies/react-components 4.10.4 → 4.13.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 +3161 -2745
  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 +39 -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 +249 -28
  32. package/dist/cesium-map/map.d.ts +27 -10
  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,279 @@
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
+ margin: 3px 3px 1px 3px;
116
+ }
117
+
118
+ .cesium-viewer .cesium-viewer-fullscreenContainer {
119
+ width: 32px;
120
+ height: 32px;
121
+ bottom: 9px;
122
+ right: 30px;
123
+ }
124
+
125
+ body[dir='rtl'] .cesium-viewer .cesium-viewer-fullscreenContainer {
126
+ right: unset;
127
+ left: 30px;
128
+ }
129
+
130
+ .cesium-viewer .cesium-button.cesium-fullscreenButton {
131
+ border-radius: 14%;
132
+ box-sizing: border-box;
133
+ }
134
+
135
+ .cesium-viewer .bottomToolsContainer {
136
+ color: var(--mdc-theme-on-surface);
137
+ opacity: 0.7;
42
138
  display: flex;
43
- flex-direction: row;
44
139
  gap: 8px;
45
- z-index: 2000;
46
140
  position: absolute;
47
- top: 12px;
48
- right: 40px;
141
+ bottom: 10px;
142
+ right: 70px;
49
143
  }
50
144
 
51
- body[dir='rtl'] .sideToolsContainer {
52
- left: 40px;
145
+ body[dir='rtl'] .cesium-viewer .bottomToolsContainer {
146
+ left: 70px;
53
147
  right: unset;
54
148
  }
55
149
 
150
+ /* #region for NATIVE CONTROLS */
151
+ .cesium-viewer input[type='checkbox'] {
152
+ accent-color: var(--mdc-theme-cesium-checkbox-color);
153
+ }
154
+
155
+ .cesium-viewer input::placeholder {
156
+ color: unset;
157
+ opacity: 0.8;
158
+ }
159
+
160
+ .cesium-viewer input {
161
+ font-size: var(--mdc-theme-cesium-font-size);
162
+ color: unset;
163
+ font-weight: bold;
164
+ caret-color: unset;
165
+ }
166
+
167
+ .cesium-viewer ::-webkit-scrollbar {
168
+ width: 6px;
169
+ height: 6px;
170
+ }
171
+
172
+ .cesium-viewer ::-webkit-scrollbar-track {
173
+ box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
174
+ border-radius: 6px;
175
+ }
176
+
177
+ .cesium-viewer ::-webkit-scrollbar-thumb {
178
+ background-color: #aaa;
179
+ border-radius: 6px;
180
+ }
181
+
182
+ /* #endregion for NATIVE CONTROLS */
183
+
184
+ /* #region for mdc-checkbox */
185
+ .cesium-viewer .mdc-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
186
+ .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,
187
+ .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate='true']:enabled ~ .mdc-checkbox__background {
188
+ border-color: var(--mdc-theme-cesium-checkbox-color);
189
+ background-color: var(--mdc-theme-cesium-checkbox-color);
190
+ }
191
+
192
+ .cesium-viewer .mdc-checkbox--upgraded {
193
+ --mdc-checkbox-checked-color: var(--mdc-theme-cesium-checkbox-color);
194
+ }
195
+
196
+ .cesium-viewer .mdc-checkbox {
197
+ width: var(--mdc-theme-cesium-checkbox-width);
198
+ height: var(--mdc-theme-cesium-checkbox-height);
199
+ }
200
+
201
+ .cesium-viewer .mdc-checkbox__background {
202
+ width: 12px;
203
+ height: 12px;
204
+ }
205
+
206
+ .cesium-viewer .mdc-form-field {
207
+ color: unset;
208
+ margin: -2%;
209
+ margin-bottom: -4%;
210
+ }
211
+
212
+ .cesium-viewer .mdc-form-field > label {
213
+ color: unset;
214
+ }
215
+
216
+ .cesium-viewer .mdc-ripple-upgraded--unbounded {
217
+ --mdc-ripple-fg-size: 0px !important;
218
+ }
219
+
220
+ /* #endregion mdc-checkbox */
221
+
222
+ /* #region mdc-list */
223
+ .cesium-viewer .mdc-list {
224
+ font-size: var(--mdc-theme-cesium-font-size);
225
+ font-family: sans-serif;
226
+ padding: 1px;
227
+ color: unset;
228
+ }
229
+
230
+ .cesium-viewer .mdc-list-item {
231
+ padding: unset;
232
+ padding-right: 4px;
233
+ padding-left: 4px;
234
+ height: 24px;
235
+ font-weight: bold;
236
+ }
237
+
238
+ .cesium-viewer .mdc-text-field--filled {
239
+ height: 32px;
240
+ }
241
+
242
+ /* #endregion mdc-list */
243
+
244
+ /* #region mdc-TextField */
245
+ .cesium-viewer .mdc-text-field__input {
246
+ box-sizing: border-box;
247
+ border: unset;
248
+ }
249
+
250
+ .mdc-text-field--filled:not(.mdc-text-field--disabled) {
251
+ background-color: transparent !important;
252
+ }
253
+
254
+ .cesium-viewer .mdc-text-field {
255
+ padding: unset;
256
+ padding-right: 4px;
257
+ padding-left: 4px;
258
+ }
259
+
260
+ /* Removing the purple underline in RMWC */
261
+ .cesium-viewer .mdc-line-ripple::before,
262
+ .cesium-viewer .mdc-line-ripple::after {
263
+ border-bottom: none !important;
264
+ }
265
+
266
+ /* #endregion mdc-TextField */
267
+
268
+ .cesium-viewer .disabled {
269
+ opacity: 0.6;
270
+ cursor: initial;
271
+ }
272
+
273
+ .cesium-viewer .search-results {
274
+ padding: 4px;
275
+ }
276
+
56
277
  .viewer {
57
278
  display: flex;
58
279
  flex-direction: row;
@@ -60,4 +281,4 @@ body[dir='rtl'] .sideToolsContainer {
60
281
 
61
282
  .viewer .mdc-linear-progress__bar-inner {
62
283
  border-top-width: 10px;
63
- }
284
+ }
@@ -2,10 +2,9 @@ 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';
7
- import { CesiumSceneMode } from './proxied.types';
8
- import { IBaseMaps } from './settings/settings';
5
+ import { GeocoderOptions } from './geocoder/geocoder-panel';
6
+ import LayerManager, { IRasterLayer, LegendExtractor } from './layers-manager';
7
+ import { IMapLegend } from './legend';
9
8
  interface ViewerProps extends ComponentProps<typeof Viewer> {
10
9
  }
11
10
  export declare class CesiumViewer extends CesiumViewerCls {
@@ -38,6 +37,25 @@ export interface IContextMenuData {
38
37
  handleClose: () => void;
39
38
  contextEvt: MouseEvent | TouchEvent | KeyboardEvent | React.MouseEvent | React.TouchEvent | React.KeyboardEvent;
40
39
  }
40
+ export interface IBaseMap {
41
+ id: string;
42
+ title?: string;
43
+ thumbnail?: string;
44
+ isCurrent?: boolean;
45
+ isForPreview?: boolean;
46
+ baseRasterLayers: IRasterLayer[];
47
+ }
48
+ export interface IBaseMaps {
49
+ maps: IBaseMap[];
50
+ }
51
+ export interface ITerrain {
52
+ id: string;
53
+ url: string;
54
+ title?: string;
55
+ thumbnail?: string;
56
+ isCurrent?: boolean;
57
+ terrainProvider?: TerrainProvider;
58
+ }
41
59
  interface ILegends {
42
60
  legendsList?: IMapLegend[];
43
61
  emptyText?: string;
@@ -48,23 +66,23 @@ interface ILegends {
48
66
  };
49
67
  mapLegendsExtractor?: LegendExtractor;
50
68
  }
51
- export interface IDebugPanel {
52
- wfs?: Record<string, unknown>;
53
- }
54
69
  export interface CesiumMapProps extends ViewerProps {
55
70
  showMousePosition?: boolean;
56
71
  showZoomLevel?: boolean;
57
72
  showScale?: boolean;
58
73
  showLoadingProgress?: boolean;
59
74
  showCompass?: boolean;
75
+ showZoomButtons?: boolean;
76
+ showDebuggerTool?: boolean;
77
+ showActiveLayersTool?: boolean;
60
78
  projection?: Proj;
61
79
  center?: [number, number];
62
80
  zoom?: number;
63
81
  locale?: {
64
82
  [key: string]: string;
65
83
  };
66
- sceneModes?: (typeof CesiumSceneMode)[];
67
84
  baseMaps?: IBaseMaps;
85
+ terrains?: ITerrain[];
68
86
  useOptimizedTileRequests?: boolean;
69
87
  terrainProvider?: TerrainProvider;
70
88
  imageryContextMenu?: React.ReactElement<IContextMenuData>;
@@ -75,8 +93,7 @@ export interface CesiumMapProps extends ViewerProps {
75
93
  };
76
94
  legends?: ILegends;
77
95
  layerManagerFootprintMetaFieldPath?: string;
78
- displayZoomButtons?: boolean;
79
- debugPanel?: IDebugPanel;
96
+ geocoderPanel?: GeocoderOptions[];
80
97
  }
81
98
  export declare const useCesiumMap: () => CesiumViewer;
82
99
  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;