@longline/aqua-ui 1.0.160 → 1.0.162
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/containers/Dock/Dockable.js +1 -1
- package/controls/View/EllipsizedContent.d.ts +11 -0
- package/controls/View/EllipsizedContent.js +12 -0
- package/controls/View/ScrollingContent.d.ts +13 -0
- package/controls/View/ScrollingContent.js +23 -0
- package/controls/View/View.d.ts +14 -0
- package/controls/View/View.js +11 -5
- package/map/Map/Map.d.ts +7 -3
- package/map/Map/Map.js +1 -1
- package/map/PositionsManager/PositionsManager.js +1 -1
- package/map/controls/CompassButton/CompassButton.js +1 -1
- package/map/controls/FullscreenButton/FullscreenButton.js +1 -1
- package/map/controls/Geocoder/Geocoder.js +1 -1
- package/map/controls/Graticule/Graticule.js +1 -1
- package/map/controls/ZoomInButton/ZoomInButton.js +1 -1
- package/map/controls/ZoomOutButton/ZoomOutButton.js +1 -1
- package/map/layers/ClusterLayer/ClusterLayer.js +1 -1
- package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.js +1 -1
- package/map/layers/InterpolationLayer/InterpolationLayer.js +2 -6
- package/map/layers/ParticlesLayer/ParticlesLayer.js +2 -6
- package/package.json +4 -4
|
@@ -25,7 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import * as React from 'react';
|
|
28
|
-
import { useMap } from 'react-map-gl';
|
|
28
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
29
29
|
import styled, { css } from 'styled-components';
|
|
30
30
|
import { useViewState } from '../../map/Map';
|
|
31
31
|
var DockableBase = function (props) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Is the View in `ghost` mode? */
|
|
8
|
+
ghost?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const EllipsizedContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<IProps, never>> & string & Omit<(props: IProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
11
|
+
export { EllipsizedContent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
var EllipsizedContentBase = function (props) {
|
|
8
|
+
return React.createElement("div", { className: props.className }, !props.ghost && props.children);
|
|
9
|
+
};
|
|
10
|
+
var EllipsizedContent = styled(EllipsizedContentBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; \n\n display: flex;\n align-items: center;\n height: 36px;\n"], ["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; \n\n display: flex;\n align-items: center;\n height: 36px;\n"])));
|
|
11
|
+
export { EllipsizedContent };
|
|
12
|
+
var templateObject_1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Is this View in `ghost` mode? */
|
|
8
|
+
ghost?: boolean;
|
|
9
|
+
/** Height of the view, in pixels. */
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ScrollingContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<IProps, never>> & string & Omit<(props: IProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
13
|
+
export { ScrollingContent };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|
8
|
+
var ScrollingContentBase = function (props) {
|
|
9
|
+
return React.createElement("div", { className: props.className },
|
|
10
|
+
React.createElement(OverlayScrollbarsComponent, { defer: true, options: { scrollbars: { theme: 'os-theme-light', autoHide: 'leave' } }, style: {
|
|
11
|
+
position: "absolute",
|
|
12
|
+
left: 0,
|
|
13
|
+
top: 8,
|
|
14
|
+
right: 0,
|
|
15
|
+
bottom: 0,
|
|
16
|
+
paddingBottom: "20px",
|
|
17
|
+
paddingRight: "16px",
|
|
18
|
+
overflowY: "auto",
|
|
19
|
+
} }, !props.ghost && props.children));
|
|
20
|
+
};
|
|
21
|
+
var ScrollingContent = styled(ScrollingContentBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n height: calc(", "px - 44px);\n"], ["\n position: relative;\n height: calc(", "px - 44px);\n"])), function (p) { return p.height; });
|
|
22
|
+
export { ScrollingContent };
|
|
23
|
+
var templateObject_1;
|
package/controls/View/View.d.ts
CHANGED
|
@@ -11,6 +11,20 @@ interface IProps {
|
|
|
11
11
|
* `View` label, e.g. `Email address`. Can be JSX.
|
|
12
12
|
*/
|
|
13
13
|
label?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Optional hint. Can be JSX.
|
|
16
|
+
*/
|
|
17
|
+
hint?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* If set, hint area will not have a background color.
|
|
20
|
+
*/
|
|
21
|
+
noHintBg?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* By default, content is ellipsized to one line. If `height` is set,
|
|
24
|
+
* content is allowed to grow, and a scrollbar is added. Height is in
|
|
25
|
+
* pixels.
|
|
26
|
+
*/
|
|
27
|
+
height?: number;
|
|
14
28
|
/**
|
|
15
29
|
* Views may provide their weight in relative units to other Views,
|
|
16
30
|
* for flexbox alignment, e.g. `2`.
|
package/controls/View/View.js
CHANGED
|
@@ -27,13 +27,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
import styled, { css } from 'styled-components';
|
|
29
29
|
import { Label } from '../../containers/Form/elements/Label';
|
|
30
|
+
import { ScrollingContent } from './ScrollingContent';
|
|
31
|
+
import { EllipsizedContent } from './EllipsizedContent';
|
|
30
32
|
var ViewBase = function (props) {
|
|
31
33
|
return (React.createElement("div", { className: props.className },
|
|
32
34
|
React.createElement(Label, null, props.label),
|
|
33
|
-
React.createElement(Content, null,
|
|
35
|
+
React.createElement(Content, null, props.height
|
|
36
|
+
? React.createElement(ScrollingContent, { ghost: props.ghost, height: props.height, children: props.children })
|
|
37
|
+
: React.createElement(EllipsizedContent, { ghost: props.ghost, children: props.children })),
|
|
38
|
+
props.hint && React.createElement(HintContent, null, props.hint)));
|
|
34
39
|
};
|
|
35
|
-
var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
36
|
-
var
|
|
40
|
+
var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n min-height: 36px;\n margin-top: 22px;\n margin-bottom: 22px;\n"], ["\n position: relative;\n min-height: 36px;\n margin-top: 22px;\n margin-bottom: 22px;\n"])));
|
|
41
|
+
var HintContent = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n bottom: 3px;\n left: 12px;\n right: 12px;\n\n font: ", ";\n color: ", ";\n user-select: none;\n // Hints don't wrap and are ellipsized:\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"], ["\n position: absolute;\n bottom: 3px;\n left: 12px;\n right: 12px;\n\n font: ", ";\n color: ", ";\n user-select: none;\n // Hints don't wrap and are ellipsized:\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])), function (p) { return p.theme.font.bodySmall; }, function (p) { return p.theme.colors.neutral[80]; });
|
|
42
|
+
var ViewStyled = styled(ViewBase)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n // Position & size:\n position: relative;\n box-sizing: border-box;\n margin-bottom: 8px;\n \n ", "\n z-index: 0; // for :before\n padding-left: 12px;\n padding-right: 12px;\n\n // Appearance:\n border-radius: ", "px;\n background-color: rgb(from ", " r g b / 30%);\n border: none;\n font: ", ";\n color: ", ";\n\n // Content:\n overflow: hidden;\n\n // Hint background:\n ", "\n\n ", " {\n position: absolute;\n left: 12px;\n right: 12px;\n top: 10px;\n color: ", ";\n }\n\n // Ghost state:\n ", "\n\n // Views may provide their weight in relative units to other fields.\n ", "\n"], ["\n // Position & size:\n position: relative;\n box-sizing: border-box;\n margin-bottom: 8px;\n \n ", "\n z-index: 0; // for :before\n padding-left: 12px;\n padding-right: 12px;\n\n // Appearance:\n border-radius: ", "px;\n background-color: rgb(from ", " r g b / 30%);\n border: none;\n font: ", ";\n color: ", ";\n\n // Content:\n overflow: hidden;\n\n // Hint background:\n ", "\n\n ", " {\n position: absolute;\n left: 12px;\n right: 12px;\n top: 10px;\n color: ", ";\n }\n\n // Ghost state:\n ", "\n\n // Views may provide their weight in relative units to other fields.\n ", "\n"
|
|
37
43
|
/**
|
|
38
44
|
* A `View` is used to display static (read-only) data. A `View` has a label, and its
|
|
39
45
|
* children are its value.
|
|
@@ -42,7 +48,7 @@ var ViewStyled = styled(ViewBase)(templateObject_4 || (templateObject_4 = __make
|
|
|
42
48
|
* <View label="Email address">{email}</View>
|
|
43
49
|
* ```
|
|
44
50
|
*/
|
|
45
|
-
])), function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.colors.primary[5]; }, function (p) { return p.theme.font.bodyLarge; }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.colors.primary[1]; }, Label, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.ghost && css(
|
|
51
|
+
])), function (p) { return p.height && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["height: ", "px;"], ["height: ", "px;"])), p.height); }, function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.colors.primary[5]; }, function (p) { return p.theme.font.bodyLarge; }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return !p.noHintBg && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n &:before {\n z-index: -1;\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n height: 22px;\n background-color: rgb(from ", " r g b / 30%);\n }\n "], ["\n &:before {\n z-index: -1;\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n height: 22px;\n background-color: rgb(from ", " r g b / 30%);\n }\n "])), function (p) { return p.theme.colors.primary[1]; }); }, Label, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.ghost && css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n outline: dashed 1px ", ";\n background-color: transparent;\n color: transparent;\n text-shadow: 0 0 3px rgb(from ", " r g b / 50%);\n pointer-events: none;\n user-select: none;\n \n ", " {\n color: transparent;\n text-shadow: 0 0 3px rgb(from ", " r g b / 50%);\n } \n "], ["\n outline: dashed 1px ", ";\n background-color: transparent;\n color: transparent;\n text-shadow: 0 0 3px rgb(from ", " r g b / 50%);\n pointer-events: none;\n user-select: none;\n \n ", " {\n color: transparent;\n text-shadow: 0 0 3px rgb(from ", " r g b / 50%);\n } \n "])), p.theme.colors.primary[2], function (p) { return p.theme.colors.neutral[100]; }, Label, function (p) { return p.theme.colors.neutral[100]; }); }, function (p) { return p.weight && css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["flex: ", ""], ["flex: ", ""])), p.weight); });
|
|
46
52
|
/**
|
|
47
53
|
* A `View` is used to display static (read-only) data. A `View` has a label, and its
|
|
48
54
|
* children are its value.
|
|
@@ -56,4 +62,4 @@ var View = function (_a) {
|
|
|
56
62
|
return React.createElement(ViewStyled, __assign({ ghost: ghost }, props));
|
|
57
63
|
};
|
|
58
64
|
export { View };
|
|
59
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
65
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
package/map/Map/Map.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MapMouseEvent, Map as OriginalMap } from 'mapbox-gl';
|
|
3
|
-
import { ViewState } from 'react-map-gl';
|
|
4
|
-
import { PaddingOptions } from 'react-map-gl/dist/esm/types';
|
|
3
|
+
import { ViewState } from 'react-map-gl/mapbox';
|
|
5
4
|
interface IProps {
|
|
6
5
|
/** @ignore */
|
|
7
6
|
children?: React.ReactNode;
|
|
@@ -42,7 +41,12 @@ interface IProps {
|
|
|
42
41
|
* Initial padding.
|
|
43
42
|
* @default 0,0,0,0
|
|
44
43
|
*/
|
|
45
|
-
padding?:
|
|
44
|
+
padding?: {
|
|
45
|
+
readonly top?: number;
|
|
46
|
+
readonly bottom?: number;
|
|
47
|
+
readonly right?: number;
|
|
48
|
+
readonly left?: number;
|
|
49
|
+
};
|
|
46
50
|
/**
|
|
47
51
|
* If set, water is clipped at given elevation.
|
|
48
52
|
* A value of `1` generally works.
|
package/map/Map/Map.js
CHANGED
|
@@ -62,7 +62,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
62
62
|
};
|
|
63
63
|
import * as React from 'react';
|
|
64
64
|
import styled, { useTheme } from "styled-components";
|
|
65
|
-
import { Map as GLMap, Layer, Source } from 'react-map-gl';
|
|
65
|
+
import { Map as GLMap, Layer, Source } from 'react-map-gl/mapbox';
|
|
66
66
|
var ViewStateContext = React.createContext(null);
|
|
67
67
|
var useViewState = function () {
|
|
68
68
|
return React.useContext(ViewStateContext);
|
|
@@ -19,7 +19,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import * as React from 'react';
|
|
22
|
-
import { useMap } from 'react-map-gl';
|
|
22
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
23
23
|
import { PositionBox } from './PositionBox';
|
|
24
24
|
// Storage key for saving and restoring positions.
|
|
25
25
|
var STORAGE_KEY = 'positions';
|
|
@@ -25,7 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import * as React from 'react';
|
|
28
|
-
import { useMap } from 'react-map-gl';
|
|
28
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
29
29
|
import styled, { css } from 'styled-components';
|
|
30
30
|
import { MapButton } from '../base/MapButton';
|
|
31
31
|
import { useViewState } from '../../Map';
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import { useMap } from 'react-map-gl';
|
|
24
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
25
25
|
import { MapButton } from '../base/MapButton';
|
|
26
26
|
/**
|
|
27
27
|
* The `FullscreenButton` toggles the map full-screen when clicked.
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
};
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
import styled from 'styled-components';
|
|
29
|
-
import { useMap } from 'react-map-gl';
|
|
29
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
30
30
|
import { GeocoderApi } from './GeocoderApi';
|
|
31
31
|
import { GeocoderEntry } from './GeocoderEntry';
|
|
32
32
|
import { GeocoderList } from './GeocoderList';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Layer, Source, useMap } from 'react-map-gl';
|
|
2
|
+
import { Layer, Source, useMap } from 'react-map-gl/mapbox';
|
|
3
3
|
import { useViewState } from '../../Map';
|
|
4
4
|
/**
|
|
5
5
|
* The `Graticule` component draws a graticule over the map. The caller
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import { useMap } from 'react-map-gl';
|
|
24
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
25
25
|
import { MapButton } from '../base/MapButton';
|
|
26
26
|
import { useViewState } from '../../Map';
|
|
27
27
|
import { Mouse } from '../../../controls/Mouse';
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import { useMap } from 'react-map-gl';
|
|
24
|
+
import { useMap } from 'react-map-gl/mapbox';
|
|
25
25
|
import { MapButton } from '../base/MapButton';
|
|
26
26
|
import { useViewState } from '../../Map';
|
|
27
27
|
import { Mouse } from '../../../controls/Mouse';
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import { Source, useMap } from 'react-map-gl';
|
|
24
|
+
import { Source, useMap } from 'react-map-gl/mapbox';
|
|
25
25
|
import { HtmlMarkerLayer } from '../HtmlMarkerLayer/HtmlMarkerLayer';
|
|
26
26
|
import { ClusterMarker } from '../../markers/ClusterMarker';
|
|
27
27
|
function uuidv4() {
|
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import * as ReactDOM from 'react-dom/client';
|
|
25
|
-
import { Layer, useMap } from 'react-map-gl';
|
|
25
|
+
import { Layer, useMap } from 'react-map-gl/mapbox';
|
|
26
26
|
import { Marker } from 'mapbox-gl';
|
|
27
27
|
/**
|
|
28
28
|
* The `HtmlMarkerLayer` manages HTML markers on a map. HTML markers are far slower
|
|
@@ -32,7 +32,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
32
32
|
import * as React from 'react';
|
|
33
33
|
import { featureCollection, point } from '@turf/helpers';
|
|
34
34
|
import { MercatorCoordinate } from 'mapbox-gl';
|
|
35
|
-
import { Layer, useMap } from 'react-map-gl';
|
|
35
|
+
import { Layer, useMap } from 'react-map-gl/mapbox';
|
|
36
36
|
import tin from '@turf/tin';
|
|
37
37
|
import { RgbColor } from '../../../helper/RgbColor';
|
|
38
38
|
import { LevelsVertexShader } from './LevelsVertexShader';
|
|
@@ -239,11 +239,7 @@ var InterpolationLayerBase = function (props) {
|
|
|
239
239
|
gl.viewport(0, 0, width * window.devicePixelRatio, height * window.devicePixelRatio);
|
|
240
240
|
renderContours(gl, matrix, width, height);
|
|
241
241
|
};
|
|
242
|
-
return (React.createElement(Layer
|
|
243
|
-
// @ts-ignore
|
|
244
|
-
, {
|
|
245
|
-
// @ts-ignore
|
|
246
|
-
type: "custom", beforeId: "overlay", key: time, onAdd: onAddLayer, render: function (gl, matrix) { return onRender(gl, matrix, map.current.getZoom(), map.current.getContainer().clientWidth, map.current.getContainer().clientHeight); } }));
|
|
242
|
+
return (React.createElement(Layer, { id: null, type: "custom", beforeId: "overlay", key: time, onAdd: onAddLayer, render: function (gl, matrix) { return onRender(gl, matrix, map.current.getZoom(), map.current.getContainer().clientWidth, map.current.getContainer().clientHeight); } }));
|
|
247
243
|
};
|
|
248
244
|
/**
|
|
249
245
|
* An `InterpolationLayer` takes a data array of the form `{ latitude, longitude, value }`. It performs triangulation
|
|
@@ -33,7 +33,7 @@ import * as React from 'react';
|
|
|
33
33
|
import { featureCollection, point } from '@turf/helpers';
|
|
34
34
|
import tin from '@turf/tin';
|
|
35
35
|
import { MercatorCoordinate } from 'mapbox-gl';
|
|
36
|
-
import { Layer, useMap } from 'react-map-gl';
|
|
36
|
+
import { Layer, useMap } from 'react-map-gl/mapbox';
|
|
37
37
|
import { UVVertexShader } from './UVVertexShader';
|
|
38
38
|
import { UVFragmentShader } from './UVFragmentShader';
|
|
39
39
|
import { ParticlesFragmentShader } from './ParticlesFragmentShader';
|
|
@@ -328,11 +328,7 @@ var ParticlesLayerBase = function (props) {
|
|
|
328
328
|
// Render particles:
|
|
329
329
|
renderParticles(gl, matrix);
|
|
330
330
|
};
|
|
331
|
-
return (React.createElement(Layer
|
|
332
|
-
// @ts-ignore
|
|
333
|
-
, {
|
|
334
|
-
// @ts-ignore
|
|
335
|
-
type: "custom", beforeId: "overlay", key: time, onAdd: onAddLayer, render: function (gl, matrix) { return onRender(gl, matrix, map.current.getZoom(), map.current.getContainer().clientWidth, map.current.getContainer().clientHeight); } }));
|
|
331
|
+
return (React.createElement(Layer, { id: null, type: "custom", beforeId: "overlay", key: time, onAdd: onAddLayer, render: function (gl, matrix) { return onRender(gl, matrix, map.current.getZoom(), map.current.getContainer().clientWidth, map.current.getContainer().clientHeight); } }));
|
|
336
332
|
};
|
|
337
333
|
var ParticlesLayer = function (_a) {
|
|
338
334
|
var _b = _a.particles, particles = _b === void 0 ? 80 : _b, _c = _a.density, density = _c === void 0 ? 40 : _c, _d = _a.delay, delay = _d === void 0 ? 0 : _d, _e = _a.gradientStops, gradientStops = _e === void 0 ? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longline/aqua-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.162",
|
|
4
4
|
"description": "AquaUI",
|
|
5
5
|
"author": "Alexander van Oostenrijk / Longline Environment",
|
|
6
6
|
"license": "Commercial",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"@turf/helpers": "^7.1.0",
|
|
52
52
|
"@turf/tin": "^7.1.0",
|
|
53
53
|
"@types/geojson": "^7946.0.14",
|
|
54
|
-
"@types/mapbox-gl": "^3.4.
|
|
54
|
+
"@types/mapbox-gl": "^3.4.1",
|
|
55
55
|
"@types/react": "^18.3.10",
|
|
56
56
|
"@types/react-dom": "^18.3.0",
|
|
57
57
|
"awesome-debounce-promise": "^2.1.0",
|
|
58
58
|
"date-fns": "^4.1.0",
|
|
59
59
|
"gl-matrix": "^3.4.3",
|
|
60
|
-
"mapbox-gl": "^3.
|
|
60
|
+
"mapbox-gl": "^3.9.4",
|
|
61
61
|
"overlayscrollbars-react": "^0.5.6",
|
|
62
62
|
"react": "^18.3.1",
|
|
63
63
|
"react-dom": "^18.3.1",
|
|
64
|
-
"react-map-gl": "^
|
|
64
|
+
"react-map-gl": "^8.0.1",
|
|
65
65
|
"react-popper": "^2.3.0",
|
|
66
66
|
"react-router-dom": "^6.26.2",
|
|
67
67
|
"react-transition-state": "^2.2.0",
|