@evergis/react 2.0.202 → 2.0.203

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.
@@ -1,6 +1,6 @@
1
- import { AttributesConfigurationDc, AttributeType, FeatureLayerServiceInfoDc, LayerDefinitionDc, ServiceInfoDc, StyleDc } from '@evergis/api';
1
+ import { AttributesConfigurationDc, AttributeType, FeatureLayerServiceInfoDc, LayerDefinitionDc, ServiceInfoDc, SimplePolylineSymbolDc, StyleDc } from '@evergis/api';
2
2
  import { ClassifyParameter, LegendProps, LegendSectionItem, ParameterInfo } from '../components';
3
- import { ClassificationClass, ClassificationCondition, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterByAttributeValue, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, StyleSymbolType, SvgPointSymbol, UniqueClass } from '../core';
3
+ import { ClassificationClass, ClassificationCondition, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterByAttributeValue, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, SquareSymbol, 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[];
@@ -44,8 +44,12 @@ export declare function createHiddenCondition(attributeName: string, attributeTy
44
44
  export declare const createOtherHiddenCondition: (values: ClassificationClass[], attributeName: string, attributeType: AttributeType) => string | null;
45
45
  export declare const getMinimizedLegendValues: (attribute: LayerAttribute, classified: ParameterByAttribute<ParameterValueWithSymbol>, formatValue: LegendProps['formatValue'], index: number, otherTitle: string) => LegendValueType[];
46
46
  export declare const getMaximizedLegendValues: (attribute: LayerAttribute, param: ClassificationParameterExtended, params: ClassificationParameterExtended[], classified: ParameterByAttribute<ParameterValueWithSymbol>, symbol: StyleDc['symbol'], formatValue: LegendProps['formatValue'], sectionIndex: number, otherTitle: string) => LegendSectionItem[];
47
- export declare type ClassifiedList = Partial<Record<ClassifyParameter, ParameterByAttribute<ParameterValueWithSymbol>>>;
48
- export declare const getClassified: (layerInfo: FeatureLayerServiceInfoDc) => ClassifiedList;
47
+ export declare type ClassifiedListItem = ParameterByAttribute<ParameterValueWithSymbol> & {
48
+ index?: number;
49
+ };
50
+ export declare type ClassifiedList = Partial<Record<ClassifyParameter, ClassifiedListItem>>;
51
+ export declare const classifyParamsReduce: (symbol?: import("../core").ClientSymbol<"svgPointSymbol", import("@evergis/api").SvgPointSymbolDc, never> | import("../core").ClientSymbol<"circlePointSymbol", import("@evergis/api").CirclePointSymbolDc, never> | SquareSymbol | import("../core").ClientSymbol<"maskedImagePointSymbol", import("@evergis/api").MaskedImagePointSymbolDc, never> | import("../core").ClientSymbol<"imagePointSymbol", import("@evergis/api").ImagePointSymbolDc, never> | PolygonSymbol<import("../core").FillBrushType, import("../core").StrokeBrushType> | import("../core").ClientSymbol<"polylineSymbol", import("@evergis/api").PolylineSymbolDc, never> | import("../core").ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | import("../core").ClientSymbol<"polylineLabelSymbol", import("@evergis/api").PolylineLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../core").ClientSymbol<"polygonLabelSymbol", import("@evergis/api").PolygonLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../core").ClientSymbol<"labelPointSymbol", import("@evergis/api").PointLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../core").ClientSymbol<"rasterSymbol", import("@evergis/api").RasterSymbolDc, never> | import("../core").ClientSymbol<"compositeSymbol", import("@evergis/api").CompositeSymbolDc, never> | import("@evergis/api").H3GridSymbolDc | import("@evergis/api").ClusterSymbolDc | undefined, classifyParams?: ClassifyParameter[] | undefined, index?: number | undefined) => undefined | ClassifiedList;
52
+ export declare const getClassified: (layerInfo: FeatureLayerServiceInfoDc) => ClassifiedList | undefined;
49
53
  export declare const getSymbolStrokeWidth: (symbol: PointSymbolType) => number;
50
54
  export declare const getParameterFromSymbol: <R extends ClassifyAble<ParameterValue>>(symbol: StyleSymbolType | LabelType, parameter: ClassificationParameterExtended) => R;
51
55
  export declare const getLegendSymbolSize: (symbol: StyleSymbolType) => number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.202",
2
+ "version": "2.0.203",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -79,5 +79,5 @@
79
79
  "punycode": "^2.1.1",
80
80
  "styled-components": "^5.3.5"
81
81
  },
82
- "gitHead": "e0de06dc2bc35d0b91e0dbaaf1ac31daabb7a855"
82
+ "gitHead": "37058689576112e1f4ae60a2308831113819f9fd"
83
83
  }