@evergis/react 3.0.5 → 3.0.8
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/core/style/types/symbol.d.ts +6 -9
- package/dist/react.cjs.development.js +2 -5
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +3 -5
- package/dist/react.esm.js.map +1 -1
- package/dist/symbols/Evergis/SGisPolylineSymbol.d.ts +3 -3
- package/dist/utils/legend.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CirclePointSymbolDc, ClusterSymbolDc, CombinedPolylineSymbolDc, CompositeSymbolDc, H3GridSymbolDc, ImagePointSymbolDc, MaskedImagePointSymbolDc, PolygonSymbolDc,
|
|
1
|
+
import { CirclePointSymbolDc, ClusterSymbolDc, CombinedPolylineSymbolDc, CompositeSymbolDc, H3GridSymbolDc, ImagePointSymbolDc, MaskedImagePointSymbolDc, PolygonSymbolDc, RasterSymbolDc, SimplePolylineSymbolDc, SquarePointSymbolDc, StyleDc, SvgPointSymbolDc } from '@evergis/api';
|
|
2
2
|
import { LabelType } from './label';
|
|
3
3
|
import { CalculatedAble } from './parameterValue';
|
|
4
4
|
import { ClientSymbol } from './utils';
|
|
@@ -16,7 +16,7 @@ export declare type PolygonSymbol<Fill = FillBrushType, Stroke = StrokeBrushType
|
|
|
16
16
|
stroke: Stroke;
|
|
17
17
|
};
|
|
18
18
|
export declare type SimplePolylineSymbol = ClientSymbol<'simplePolylineSymbol', SimplePolylineSymbolDc>;
|
|
19
|
-
export declare type
|
|
19
|
+
export declare type CombinedPolylineSymbol = ClientSymbol<'combinedPolylineSymbol', CombinedPolylineSymbolDc>;
|
|
20
20
|
export declare type RasterSymbol = ClientSymbol<'rasterSymbol', RasterSymbolDc>;
|
|
21
21
|
export declare type ClusterSymbolType = ClientSymbol<"cluster", ClusterSymbolDc>;
|
|
22
22
|
export declare type CompositeSymbolType = ClientSymbol<'compositeSymbol', CompositeSymbolDc>;
|
|
@@ -24,13 +24,13 @@ export declare type H3GridSymbol = ClientSymbol<'h3grid', H3GridSymbolDc>;
|
|
|
24
24
|
export declare type SimpleShapeSymbol = PointSymbol | SquareSymbol;
|
|
25
25
|
export declare type ImageSymbol = MaskedImageSymbol | StaticImageSymbol;
|
|
26
26
|
export declare type PointSymbolType = SvgPointSymbol | PointSymbol | SquareSymbol | MaskedImageSymbol | StaticImageSymbol;
|
|
27
|
-
export declare type PolylineSymbols =
|
|
27
|
+
export declare type PolylineSymbols = CombinedPolylineSymbol | SimplePolylineSymbol;
|
|
28
28
|
export declare type StyleSymbolType = PointSymbolType | PolygonSymbol | PolylineSymbols | LabelType | RasterSymbol | CompositeSymbolType | H3GridSymbolDc | ClusterSymbolDc;
|
|
29
29
|
export declare type StyleSymbolTypes = StyleSymbolType['type'];
|
|
30
30
|
export declare type UnknownSymbol = StyleDc['symbol'] | StyleSymbolType;
|
|
31
31
|
export declare type LayerSymbol = PointSymbol | PolylineSymbols | PolygonSymbol;
|
|
32
32
|
export declare type FillStyledSymbols = PolygonSymbol;
|
|
33
|
-
export declare type StrokeStyledSymbols = PolygonSymbol |
|
|
33
|
+
export declare type StrokeStyledSymbols = PolygonSymbol | SimplePolylineSymbol;
|
|
34
34
|
export declare const isPointSymbol: (symbol: {
|
|
35
35
|
type?: string | undefined;
|
|
36
36
|
}) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never>;
|
|
@@ -49,9 +49,6 @@ export declare const isCombinedPolylineSymbol: (symbol: {
|
|
|
49
49
|
export declare const isPolygonSymbol: (symbol: {
|
|
50
50
|
type?: string | undefined;
|
|
51
51
|
}) => symbol is PolygonSymbol<FillBrushType, StrokeBrushType>;
|
|
52
|
-
export declare const isPolylineSymbol: (symbol: {
|
|
53
|
-
type?: string | undefined;
|
|
54
|
-
}) => symbol is ClientSymbol<"polylineSymbol", PolylineSymbolDc, never>;
|
|
55
52
|
export declare const isSimplePolylineSymbol: (symbol: {
|
|
56
53
|
type?: string | undefined;
|
|
57
54
|
}) => symbol is ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never>;
|
|
@@ -66,8 +63,8 @@ export declare const isImageSymbol: (symbol: UnknownSymbol) => symbol is ImageSy
|
|
|
66
63
|
export declare const isTwoDimensionalSymbol: (symbol: UnknownSymbol) => symbol is ImageSymbol;
|
|
67
64
|
export declare const isSizableSymbol: (symbol: UnknownSymbol) => symbol is SimpleShapeSymbol;
|
|
68
65
|
export declare const isStrokeStyledSymbol: (symbol: UnknownSymbol) => symbol is StrokeStyledSymbols;
|
|
69
|
-
export declare const isScalablePolylineSymbol: (symbol:
|
|
70
|
-
export declare const isSimpleSymbol: (symbol: UnknownSymbol) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never> | ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never> | ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never> | ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never> | ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | ClientSymbol<"
|
|
66
|
+
export declare const isScalablePolylineSymbol: (symbol: SimplePolylineSymbol) => boolean | undefined;
|
|
67
|
+
export declare const isSimpleSymbol: (symbol: UnknownSymbol) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never> | ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never> | ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never> | ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never> | ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | ClientSymbol<"combinedPolylineSymbol", CombinedPolylineSymbolDc, never> | ClientSymbol<"rasterSymbol", RasterSymbolDc, never> | ClusterSymbolDc | H3GridSymbolDc | SquareSymbol | PolygonSymbol<FillBrushType, StrokeBrushType>;
|
|
71
68
|
export declare const isH3GridSymbol: (symbol: {
|
|
72
69
|
type?: string | undefined;
|
|
73
70
|
}) => symbol is H3GridSymbolDc;
|
|
@@ -872,9 +872,8 @@ const isMaskedImageSymbol = /*#__PURE__*/symbolTypeGuard('maskedImagePointSymbol
|
|
|
872
872
|
const isStaticImageSymbol = /*#__PURE__*/symbolTypeGuard('imagePointSymbol');
|
|
873
873
|
const isCombinedPolylineSymbol = /*#__PURE__*/symbolTypeGuard("combinedPolylineSymbol");
|
|
874
874
|
const isPolygonSymbol = /*#__PURE__*/symbolTypeGuard('polygonSymbol');
|
|
875
|
-
const isPolylineSymbol = /*#__PURE__*/symbolTypeGuard('polylineSymbol');
|
|
876
875
|
const isSimplePolylineSymbol = /*#__PURE__*/symbolTypeGuard('simplePolylineSymbol');
|
|
877
|
-
const isPolylineSymbols = symbol => Boolean(symbol && (
|
|
876
|
+
const isPolylineSymbols = symbol => Boolean(symbol && (isCombinedPolylineSymbol(symbol) || isSimplePolylineSymbol(symbol)));
|
|
878
877
|
const isCompositeSymbol = /*#__PURE__*/symbolTypeGuard('compositeSymbol');
|
|
879
878
|
const isRasterSymbol = /*#__PURE__*/symbolTypeGuard('rasterSymbol');
|
|
880
879
|
const isImageSymbol = symbol => Boolean(symbol && (isMaskedImageSymbol(symbol) || isStaticImageSymbol(symbol)));
|
|
@@ -2013,7 +2012,7 @@ const createImagePointSymbol = (baseSymbol, parameter, classificationsParams, pa
|
|
|
2013
2012
|
|
|
2014
2013
|
const createLineSymbol = (baseSymbol, parameter, classificationsParams, parameterValue) => {
|
|
2015
2014
|
return updateSymbolParameter(_extends({}, baseSymbol, {
|
|
2016
|
-
type: '
|
|
2015
|
+
type: 'simplePolylineSymbol',
|
|
2017
2016
|
stroke: {
|
|
2018
2017
|
color: getNonClassifiedParamValue(baseSymbol, 'stroke.color', classificationsParams, 2
|
|
2019
2018
|
/* Line */
|
|
@@ -3634,7 +3633,6 @@ function deserializeSymbol(symbol) {
|
|
|
3634
3633
|
return deserializePolygonSymbol(symbol);
|
|
3635
3634
|
|
|
3636
3635
|
case 'simplePolylineSymbol':
|
|
3637
|
-
case 'polylineSymbol':
|
|
3638
3636
|
return deserializePolylineSymbol(symbol);
|
|
3639
3637
|
|
|
3640
3638
|
case "clusterSymbol":
|
|
@@ -4841,7 +4839,6 @@ exports.isPolygonHasPatternBrush = isPolygonHasPatternBrush;
|
|
|
4841
4839
|
exports.isPolygonLabelSymbol = isPolygonLabelSymbol;
|
|
4842
4840
|
exports.isPolygonSymbol = isPolygonSymbol;
|
|
4843
4841
|
exports.isPolylineLabelSymbol = isPolylineLabelSymbol;
|
|
4844
|
-
exports.isPolylineSymbol = isPolylineSymbol;
|
|
4845
4842
|
exports.isPolylineSymbols = isPolylineSymbols;
|
|
4846
4843
|
exports.isRangeClass = isRangeClass;
|
|
4847
4844
|
exports.isRangeCondition = isRangeCondition;
|