@evergis/react 4.0.110 → 4.0.111
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/dist/constants/styling.d.ts +2 -3
- package/dist/core/classification/enrichStyleModelsWithIds.d.ts +2 -0
- package/dist/core/classification/index.d.ts +1 -0
- package/dist/index.js +16 -23
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +15 -22
- package/dist/react.esm.js.map +1 -1
- package/dist/types/styling.d.ts +5 -16
- package/package.json +5 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ClientStyle
|
|
2
|
-
export declare const NUMBER_CLASSIFICATION_TYPES: StyligClassificationTypes[];
|
|
1
|
+
import { ClientStyle } from '../types';
|
|
3
2
|
export declare const DEFAULT_COLOR = "#00ffff";
|
|
4
3
|
export declare const DEFAULT_BLUR = 0;
|
|
5
4
|
export declare const DEFAULT_OPACITY = 0.5;
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const DEFAULT_CIRCLE_RADIUS = 4;
|
|
7
6
|
export declare const DEFAULT_LINE_WIDTH = 1;
|
|
8
7
|
export declare const DEFAULT_LINE_CAP = "butt";
|
|
9
8
|
export declare const DEFAULT_LINE_JOIN = "miter";
|
package/dist/index.js
CHANGED
|
@@ -9432,20 +9432,6 @@ exports.EditGeometryType = void 0;
|
|
|
9432
9432
|
EditGeometryType["Raster"] = "raster";
|
|
9433
9433
|
})(exports.EditGeometryType || (exports.EditGeometryType = {}));
|
|
9434
9434
|
|
|
9435
|
-
exports.StyligClassificationTypes = void 0;
|
|
9436
|
-
(function (StyligClassificationTypes) {
|
|
9437
|
-
StyligClassificationTypes["FillColor"] = "fill-color";
|
|
9438
|
-
StyligClassificationTypes["FillExtrusionColor"] = "fill-extrusion-color";
|
|
9439
|
-
StyligClassificationTypes["CircleColor"] = "circle-color";
|
|
9440
|
-
StyligClassificationTypes["LineColor"] = "line-color";
|
|
9441
|
-
StyligClassificationTypes["CircleStrokeColor"] = "circle-stroke-color";
|
|
9442
|
-
StyligClassificationTypes["CircleRadius"] = "circle-radius";
|
|
9443
|
-
StyligClassificationTypes["CircleStrokeWidth"] = "circle-stroke-width";
|
|
9444
|
-
StyligClassificationTypes["LineWidth"] = "line-width";
|
|
9445
|
-
StyligClassificationTypes["CircleBlur"] = "circle-blur";
|
|
9446
|
-
StyligClassificationTypes["LineBlur"] = "line-blur";
|
|
9447
|
-
})(exports.StyligClassificationTypes || (exports.StyligClassificationTypes = {}));
|
|
9448
|
-
|
|
9449
9435
|
const StyledButton = styled(uilibGl.FlatButton).withConfig({ displayName: "StyledButton", componentId: "sc-13r9ztd" }) `
|
|
9450
9436
|
display: flex;
|
|
9451
9437
|
align-items: center;
|
|
@@ -14831,6 +14817,18 @@ const enrichStyleItemsWithIds = (style) => {
|
|
|
14831
14817
|
};
|
|
14832
14818
|
};
|
|
14833
14819
|
|
|
14820
|
+
const enrichStyleModelsWithIds = (style) => {
|
|
14821
|
+
return {
|
|
14822
|
+
...style,
|
|
14823
|
+
models: style.models.map(model => {
|
|
14824
|
+
return {
|
|
14825
|
+
...model,
|
|
14826
|
+
id: model.id || uuid.v4(),
|
|
14827
|
+
};
|
|
14828
|
+
}),
|
|
14829
|
+
};
|
|
14830
|
+
};
|
|
14831
|
+
|
|
14834
14832
|
const findAttributeInExpression = (expression) => {
|
|
14835
14833
|
if (Array.isArray(expression) && expression.length === 2 && expression[0] === "get") {
|
|
14836
14834
|
return [expression[1]];
|
|
@@ -14983,15 +14981,10 @@ const Map$1 = ({ zIndex, lowerSiblings, upperSiblings, onError, children, ...res
|
|
|
14983
14981
|
}, children: children }), upperSiblings] }));
|
|
14984
14982
|
};
|
|
14985
14983
|
|
|
14986
|
-
const NUMBER_CLASSIFICATION_TYPES = [
|
|
14987
|
-
exports.StyligClassificationTypes.CircleRadius,
|
|
14988
|
-
exports.StyligClassificationTypes.CircleStrokeWidth,
|
|
14989
|
-
exports.StyligClassificationTypes.LineWidth,
|
|
14990
|
-
];
|
|
14991
14984
|
const DEFAULT_COLOR = "#00ffff";
|
|
14992
14985
|
const DEFAULT_BLUR = 0;
|
|
14993
14986
|
const DEFAULT_OPACITY = 0.5;
|
|
14994
|
-
const
|
|
14987
|
+
const DEFAULT_CIRCLE_RADIUS = 4;
|
|
14995
14988
|
const DEFAULT_LINE_WIDTH = 1;
|
|
14996
14989
|
const DEFAULT_LINE_CAP = "butt";
|
|
14997
14990
|
const DEFAULT_LINE_JOIN = "miter";
|
|
@@ -15045,7 +15038,7 @@ const DEFAULT_CIRCLE_STYLE = {
|
|
|
15045
15038
|
type: "circle",
|
|
15046
15039
|
layout: {},
|
|
15047
15040
|
paint: {
|
|
15048
|
-
"circle-radius":
|
|
15041
|
+
"circle-radius": DEFAULT_CIRCLE_RADIUS,
|
|
15049
15042
|
"circle-color": DEFAULT_COLOR,
|
|
15050
15043
|
"circle-blur": DEFAULT_BLUR,
|
|
15051
15044
|
"circle-opacity": DEFAULT_OPACITY,
|
|
@@ -15087,6 +15080,7 @@ exports.DEFAULT_BLUR = DEFAULT_BLUR;
|
|
|
15087
15080
|
exports.DEFAULT_CHART_ANGLE = DEFAULT_CHART_ANGLE;
|
|
15088
15081
|
exports.DEFAULT_CHART_HEIGHT = DEFAULT_CHART_HEIGHT;
|
|
15089
15082
|
exports.DEFAULT_CHART_WIDTH = DEFAULT_CHART_WIDTH;
|
|
15083
|
+
exports.DEFAULT_CIRCLE_RADIUS = DEFAULT_CIRCLE_RADIUS;
|
|
15090
15084
|
exports.DEFAULT_CIRCLE_STYLE = DEFAULT_CIRCLE_STYLE;
|
|
15091
15085
|
exports.DEFAULT_COLOR = DEFAULT_COLOR;
|
|
15092
15086
|
exports.DEFAULT_DASHBOARD_CONFIG = DEFAULT_DASHBOARD_CONFIG;
|
|
@@ -15105,7 +15099,6 @@ exports.DEFAULT_LNG = DEFAULT_LNG;
|
|
|
15105
15099
|
exports.DEFAULT_OPACITY = DEFAULT_OPACITY;
|
|
15106
15100
|
exports.DEFAULT_PAGES_CONFIG = DEFAULT_PAGES_CONFIG;
|
|
15107
15101
|
exports.DEFAULT_PIECHART_RADIUS = DEFAULT_PIECHART_RADIUS;
|
|
15108
|
-
exports.DEFAULT_SIZE = DEFAULT_SIZE;
|
|
15109
15102
|
exports.DEFAULT_ZOOM = DEFAULT_ZOOM;
|
|
15110
15103
|
exports.Dashboard = Dashboard;
|
|
15111
15104
|
exports.DashboardCheckbox = DashboardCheckbox;
|
|
@@ -15189,7 +15182,6 @@ exports.Map = Map$1;
|
|
|
15189
15182
|
exports.MapContext = MapContext;
|
|
15190
15183
|
exports.MapProvider = MapProvider;
|
|
15191
15184
|
exports.NO_CONTENT_VALUE = NO_CONTENT_VALUE;
|
|
15192
|
-
exports.NUMBER_CLASSIFICATION_TYPES = NUMBER_CLASSIFICATION_TYPES;
|
|
15193
15185
|
exports.NUMERIC_ATTRIBUTE_TYPES = NUMERIC_ATTRIBUTE_TYPES;
|
|
15194
15186
|
exports.NoLiveSnapshotContainer = NoLiveSnapshotContainer;
|
|
15195
15187
|
exports.OBJECT_FITS = OBJECT_FITS;
|
|
@@ -15261,6 +15253,7 @@ exports.dateOptions = dateOptions;
|
|
|
15261
15253
|
exports.debounce = debounce;
|
|
15262
15254
|
exports.decimalOpacityToHex = decimalOpacityToHex;
|
|
15263
15255
|
exports.enrichStyleItemsWithIds = enrichStyleItemsWithIds;
|
|
15256
|
+
exports.enrichStyleModelsWithIds = enrichStyleModelsWithIds;
|
|
15264
15257
|
exports.eqlParametersToPayload = eqlParametersToPayload;
|
|
15265
15258
|
exports.findAttributeInExpression = findAttributeInExpression;
|
|
15266
15259
|
exports.formatArea = formatArea;
|