@evergis/react 2.0.179 → 2.0.181

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.
@@ -2,6 +2,7 @@ import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
2
2
  import { Polygon } from '@evergis/sgis/es/features/Polygon';
3
3
  import { Polyline } from '@evergis/sgis/es/features/Polyline';
4
4
  import { H3Feature } from "@evergis/sgis/es/features/H3Feature";
5
+ import { CombinedPolyline } from "@evergis/sgis/es/features/CombinedPolyline";
5
6
  /**
6
7
  * Моки фич для отображения превью символа
7
8
  * http://cf.everpoint.ru/pages/viewpage.action?pageId=45024217
@@ -9,6 +10,7 @@ import { H3Feature } from "@evergis/sgis/es/features/H3Feature";
9
10
  export declare const viewBoxSize = 100;
10
11
  export declare const pointFeature: PointFeature;
11
12
  export declare const lineFeature: Polyline;
13
+ export declare const combinedLineFeature: CombinedPolyline;
12
14
  export declare const polygonFeature: Polygon;
13
15
  export declare const h3gridFeature: H3Feature;
14
16
  export declare const lineLegendFeature: Polyline;
@@ -20,14 +22,14 @@ export declare const MAP_LEGEND_FEATURES: {
20
22
  export declare const LEGEND_FEATURES: {
21
23
  point: PointFeature;
22
24
  polyline: Polyline;
23
- combinedPolyline: Polyline;
25
+ combinedPolyline: CombinedPolyline;
24
26
  polygon: Polygon;
25
27
  h3grid: H3Feature;
26
28
  };
27
29
  export declare const MOCK_FEATURES: {
28
30
  readonly point: PointFeature;
29
31
  readonly polyline: Polyline;
30
- readonly combinedPolyline: Polyline;
32
+ readonly combinedPolyline: CombinedPolyline;
31
33
  readonly polygon: Polygon;
32
34
  readonly h3grid: H3Feature;
33
35
  };
@@ -8,8 +8,9 @@ import { ImageFill } from '@evergis/sgis/es/symbols/polygon/ImageFill';
8
8
  import { PointSymbol } from '@evergis/sgis/es/symbols/point/Point';
9
9
  import { H3Symbol } from "@evergis/sgis/es/symbols/H3Symbol";
10
10
  import { ClusterSymbol } from "@evergis/sgis/es/symbols/ClusterSymbol";
11
+ import { CombinedPolylineSymbol } from "@evergis/sgis/es/symbols/CombinedPolylineSymbol";
11
12
  export declare type SGisPointSymbolType = PointSymbol | StaticImageSymbol | SquareSymbol | MaskedImage;
12
13
  export declare type SGisImageSymbolType = StaticImageSymbol | MaskedImage;
13
14
  export declare type SGisPolygonSymbolType = PolygonSymbol | BrushFill | ImageFill;
14
15
  export declare type SGisPolylineSymbolType = PolylineSymbol;
15
- export declare type SGisSymbolType = SGisPointSymbolType | SGisPolygonSymbolType | SGisPolylineSymbolType | H3Symbol | ClusterSymbol;
16
+ export declare type SGisSymbolType = SGisPointSymbolType | SGisPolygonSymbolType | SGisPolylineSymbolType | H3Symbol | ClusterSymbol | CombinedPolylineSymbol;
@@ -1,6 +1,6 @@
1
1
  import { AttributesConfigurationDc, AttributeType, FeatureLayerServiceInfoDc, LayerDefinitionDc, ServiceInfoDc, StyleDc } from "@evergis/api";
2
- import { ClassifyParameter, LegendSectionItem, ParameterInfo } from "../components";
3
- import { ClassificationClass, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, FeatureAttributeValue, ImageSymbol, LabelType, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, StyleSymbolType, SvgPointSymbol, UniqueClass } from "../core";
2
+ import { ClassifyParameter, LegendProps, LegendSectionItem, ParameterInfo } from "../components";
3
+ import { ClassificationClass, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, StyleSymbolType, SvgPointSymbol, UniqueClass } from "../core";
4
4
  export declare const isLayerService: (value?: unknown) => value is import("@evergis/api").ResourceInfoDc | ServiceInfoDc;
5
5
  export declare const getAttributeFromCondition: (condition: string) => string;
6
6
  export declare const getExprFromCondition: (condition: string, partIndex?: number | undefined) => string[];
@@ -8,10 +8,9 @@ export declare const getSignFromConditionPart: (condition: string, partIndex?: n
8
8
  export declare const getValueFromConditionPart: (condition: string, partIndex?: number | undefined) => string;
9
9
  export declare const isRangeCondition: (condition: string) => boolean;
10
10
  export declare const getSymbolParameterInfo: (parameter: ClassificationParameter) => ParameterInfo;
11
- export declare const formatValue: (value: FeatureAttributeValue, type?: AttributeType | undefined, calculatedParameter?: "symbol" | "fill.color" | "fill.hatchColor" | "stroke.width" | "stroke.color" | "background.fillColor" | "background.strokeColor" | "background.strokeWidth" | "figure.fillColor" | "fillColor" | "strokeColor" | "strokeWidth" | "size" | "angle" | "maskedColor" | undefined) => string | undefined;
12
- export declare const formatUniqueClassValue: (value: UniqueClass) => string;
11
+ export declare const formatUniqueClassValue: (value: UniqueClass, formatValue?: LegendProps["formatValue"]) => string;
13
12
  export declare const getRangeValues: ({ from, to }: Pick<RangeClass, "from" | "to">, isDouble: boolean, isDate: boolean, index: number) => Pick<RangeClass, "from" | "to">;
14
- export declare const formatRangeClassValue: (value: RangeClass, index: number) => string;
13
+ export declare const formatRangeClassValue: (value: RangeClass, formatValue: LegendProps["formatValue"], index: number) => string;
15
14
  export declare const checkLayerHasLegend: (layerInfo: Pick<FeatureLayerServiceInfoDc, "geometryType" | "style">) => boolean;
16
15
  export declare const getTitleFromCondition: (condition: string) => string;
17
16
  export declare const enum LegendSymbolTypes {
@@ -38,8 +37,8 @@ export declare function getDimensions(symbol: ImageSymbol, size: number): Dimens
38
37
  export declare const createLegendSymbol: (parameterValue: ParameterValueWithSymbol, parameter: ClassificationParameterExtended, classificationsParams: ClassificationParameterExtended[], baseSymbol: StyleSymbolType) => StyleSymbolType | null;
39
38
  export declare function createHiddenCondition(attributeName: string, attributeType: AttributeType, value: ClassificationClass): string | null;
40
39
  export declare const createOtherHiddenCondition: (values: ClassificationClass[], attributeName: string, attributeType: AttributeType) => string | null;
41
- export declare const getMinimizedLegendValues: (attributeName: string, attributeType: AttributeType, classified: ParameterByAttribute<ParameterValue>, index: number, otherTitle: string) => LegendValueType[];
42
- export declare const getMaximizedLegendValues: (attributeName: string, attributeType: AttributeType, param: ClassificationParameterExtended, params: ClassificationParameterExtended[], classified: ParameterByAttribute<ParameterValue>, symbol: StyleDc["symbol"], sectionIndex: number, otherTitle: string) => LegendSectionItem[];
40
+ export declare const getMinimizedLegendValues: (attribute: LayerAttribute, classified: ParameterByAttribute<ParameterValue>, formatValue: LegendProps["formatValue"], index: number, otherTitle: string) => LegendValueType[];
41
+ export declare const getMaximizedLegendValues: (attribute: LayerAttribute, param: ClassificationParameterExtended, params: ClassificationParameterExtended[], classified: ParameterByAttribute<ParameterValue>, symbol: StyleDc["symbol"], formatValue: LegendProps["formatValue"], sectionIndex: number, otherTitle: string) => LegendSectionItem[];
43
42
  export declare type ClassifiedList = Record<ClassifyParameter, ParameterByAttribute<ParameterValue>>;
44
43
  export declare const getClassified: (layerInfo: FeatureLayerServiceInfoDc) => ClassifiedList;
45
44
  export declare const getSymbolStrokeWidth: (symbol: PointSymbolType) => number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.179",
2
+ "version": "2.0.181",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@evergis/api": ">=1.0.0",
24
- "@evergis/sgis": ">=0.5.0-alpha.45",
24
+ "@evergis/sgis": ">=0.5.0-alpha.54",
25
25
  "react": ">=17",
26
26
  "react-dom": ">=17"
27
27
  },
@@ -43,8 +43,8 @@
43
43
  "@babel/core": "^7.17.5",
44
44
  "@babel/plugin-transform-classes": "^7.16.7",
45
45
  "@babel/preset-env": "^7.16.11",
46
- "@evergis/api": "^3.0.147",
47
- "@evergis/sgis": "0.5.0-alpha.45",
46
+ "@evergis/api": "^3.0.148",
47
+ "@evergis/sgis": "0.5.0-alpha.54",
48
48
  "@storybook/addon-actions": "^6.4.18",
49
49
  "@storybook/addon-controls": "^6.4.18",
50
50
  "@storybook/addon-docs": "^6.4.18",
@@ -79,5 +79,5 @@
79
79
  "punycode": "^2.1.1",
80
80
  "styled-components": "^5.3.5"
81
81
  },
82
- "gitHead": "369aaf9dd061730af4da1a3241c9a37e059defbb"
82
+ "gitHead": "40d2d6e7144ea93d4b8759f9aa89a6e0975217d7"
83
83
  }