@evergis/react 3.0.23 → 3.0.25

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.
Files changed (105) hide show
  1. package/dist/core/index.d.ts +0 -4
  2. package/dist/hooks/index.d.ts +0 -2
  3. package/dist/index.d.ts +0 -6
  4. package/dist/react.cjs.development.js +36 -4630
  5. package/dist/react.cjs.development.js.map +1 -1
  6. package/dist/react.cjs.production.min.js +1 -1
  7. package/dist/react.cjs.production.min.js.map +1 -1
  8. package/dist/react.esm.js +38 -4409
  9. package/dist/react.esm.js.map +1 -1
  10. package/package.json +4 -5
  11. package/dist/components/Legend/Legend.d.ts +0 -3
  12. package/dist/components/Legend/components/ClusterSymbolPreview.d.ts +0 -8
  13. package/dist/components/Legend/components/LegendChildren.d.ts +0 -3
  14. package/dist/components/Legend/components/LegendHeaderButtons.d.ts +0 -8
  15. package/dist/components/Legend/components/LegendParameterDescription.d.ts +0 -6
  16. package/dist/components/Legend/components/LegendSection.d.ts +0 -3
  17. package/dist/components/Legend/components/LegendSymbolRenderer.d.ts +0 -6
  18. package/dist/components/Legend/components/MaximizedLegend.d.ts +0 -3
  19. package/dist/components/Legend/components/MinimizedLegend.d.ts +0 -3
  20. package/dist/components/Legend/components/SvgSymbol.d.ts +0 -3
  21. package/dist/components/Legend/components/SymbolByType.d.ts +0 -9
  22. package/dist/components/Legend/components/index.d.ts +0 -9
  23. package/dist/components/Legend/constants.d.ts +0 -44
  24. package/dist/components/Legend/hooks/useSvgSymbol.d.ts +0 -16
  25. package/dist/components/Legend/index.d.ts +0 -6
  26. package/dist/components/Legend/styled.d.ts +0 -54
  27. package/dist/components/Legend/types.d.ts +0 -106
  28. package/dist/components/Legend/utils/getConditionAttribute.d.ts +0 -2
  29. package/dist/components/Legend/utils/getLegendText.d.ts +0 -5
  30. package/dist/components/Legend/utils/isHiddenLegend.d.ts +0 -1
  31. package/dist/components/Symbol/StyleSymbol.d.ts +0 -8
  32. package/dist/components/Symbol/Symbol.d.ts +0 -6
  33. package/dist/components/Symbol/index.d.ts +0 -3
  34. package/dist/components/Symbol/styled.d.ts +0 -9
  35. package/dist/components/index.d.ts +0 -2
  36. package/dist/contexts/LegendContext.d.ts +0 -8
  37. package/dist/contexts/index.d.ts +0 -1
  38. package/dist/core/classification/ClassificationCondition.d.ts +0 -15
  39. package/dist/core/classification/ClassificationManager.d.ts +0 -14
  40. package/dist/core/classification/getClassifications.d.ts +0 -4
  41. package/dist/core/classification/index.d.ts +0 -6
  42. package/dist/core/classification/parameter.d.ts +0 -4
  43. package/dist/core/classification/parameterValue.d.ts +0 -9
  44. package/dist/core/classification/printClass.d.ts +0 -2
  45. package/dist/core/classification/types.d.ts +0 -40
  46. package/dist/core/classification/unClassify.d.ts +0 -2
  47. package/dist/core/feature/evaluateCondition.d.ts +0 -2
  48. package/dist/core/feature/getFeatureSymbol.d.ts +0 -7
  49. package/dist/core/feature/index.d.ts +0 -1
  50. package/dist/core/legend/FilterCondition.d.ts +0 -11
  51. package/dist/core/legend/createCondition.d.ts +0 -8
  52. package/dist/core/legend/createValueTitle.d.ts +0 -2
  53. package/dist/core/legend/index.d.ts +0 -3
  54. package/dist/core/legend/isValidParameter.d.ts +0 -2
  55. package/dist/core/legend/types.d.ts +0 -45
  56. package/dist/core/style/EvergisStyle.d.ts +0 -18
  57. package/dist/core/style/compositeSymbol.d.ts +0 -7
  58. package/dist/core/style/index.d.ts +0 -3
  59. package/dist/core/style/types/brush.d.ts +0 -27
  60. package/dist/core/style/types/index.d.ts +0 -8
  61. package/dist/core/style/types/label.d.ts +0 -19
  62. package/dist/core/style/types/miters.d.ts +0 -47
  63. package/dist/core/style/types/offset.d.ts +0 -7
  64. package/dist/core/style/types/parameterValue.d.ts +0 -29
  65. package/dist/core/style/types/style.d.ts +0 -11
  66. package/dist/core/style/types/symbol.d.ts +0 -78
  67. package/dist/core/style/types/utils.d.ts +0 -32
  68. package/dist/hooks/useCanvas.d.ts +0 -6
  69. package/dist/hooks/useSymbol.d.ts +0 -11
  70. package/dist/symbols/Evergis/SGisBrushFill.d.ts +0 -8
  71. package/dist/symbols/Evergis/SGisImageFill.d.ts +0 -7
  72. package/dist/symbols/Evergis/SGisPolygonSymbol.d.ts +0 -7
  73. package/dist/symbols/Evergis/SGisPolylineSymbol.d.ts +0 -13
  74. package/dist/symbols/Evergis/index.d.ts +0 -4
  75. package/dist/symbols/LineMiters/ArrowLineMiterRender.d.ts +0 -8
  76. package/dist/symbols/LineMiters/CircleLineMiterRender.d.ts +0 -8
  77. package/dist/symbols/LineMiters/LineMiterRender.d.ts +0 -27
  78. package/dist/symbols/LineMiters/SquareLineMiterRender.d.ts +0 -8
  79. package/dist/symbols/LineMiters/getLineMiterRender.d.ts +0 -2
  80. package/dist/symbols/LineMiters/index.d.ts +0 -4
  81. package/dist/symbols/LineMiters/miterStyle.d.ts +0 -7
  82. package/dist/symbols/LineMiters/updateRingsForMiter.d.ts +0 -3
  83. package/dist/symbols/SVGPoly/index.d.ts +0 -25
  84. package/dist/symbols/SVGPoly/types.d.ts +0 -37
  85. package/dist/symbols/Selected/SelectedPointSymbol.d.ts +0 -19
  86. package/dist/symbols/Selected/SelectedPolySymbol.d.ts +0 -21
  87. package/dist/symbols/Selected/index.d.ts +0 -3
  88. package/dist/symbols/Selected/selectedSymbols.d.ts +0 -5
  89. package/dist/symbols/Shadowed/ShadowedPointSymbol.d.ts +0 -22
  90. package/dist/symbols/Shadowed/ShadowedPolySymbol.d.ts +0 -37
  91. package/dist/symbols/Shadowed/getEditorPointRenderer.d.ts +0 -5
  92. package/dist/symbols/Shadowed/index.d.ts +0 -2
  93. package/dist/symbols/adjustSymbol.d.ts +0 -6
  94. package/dist/symbols/deserializeSymbol.d.ts +0 -5
  95. package/dist/symbols/getSymbolRenders.d.ts +0 -5
  96. package/dist/symbols/guards.d.ts +0 -11
  97. package/dist/symbols/index.d.ts +0 -14
  98. package/dist/symbols/mockFeatures.d.ts +0 -35
  99. package/dist/symbols/previewLimits.d.ts +0 -4
  100. package/dist/symbols/renderSymbolToCanvas.d.ts +0 -3
  101. package/dist/symbols/strokeStyle.d.ts +0 -23
  102. package/dist/symbols/types.d.ts +0 -16
  103. package/dist/utils/isParameterType.d.ts +0 -3
  104. package/dist/utils/legend.d.ts +0 -82
  105. package/dist/utils/svg.d.ts +0 -12
@@ -1,22 +0,0 @@
1
- import { PointSymbol, PointSymbolConstructorParams } from '@evergis/sgis/es/symbols/point/Point';
2
- import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
3
- import { Crs } from '@evergis/sgis/es/Crs';
4
- import { Render } from '@evergis/sgis/es/renders/Render';
5
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
6
- import { Feature } from '@evergis/sgis';
7
- import { Arc } from '@evergis/sgis/es/renders/Arc';
8
- export declare type EditorPointSymbolParams = {
9
- shadowColor: string;
10
- shadowSize: number;
11
- mapCoordinates?: Coordinates;
12
- } & PointSymbolConstructorParams;
13
- export declare class ShadowedPointSymbol extends PointSymbol {
14
- shadowColor: string;
15
- shadowSize: number;
16
- constructor(options: EditorPointSymbolParams);
17
- static getShadowArc(position: Coordinates, { strokeWidth, shadowColor, shadowSize, size }: EditorPointSymbolParams, mapCoordinates: Coordinates): Arc;
18
- static getPointArc(position: Coordinates, { strokeWidth, fillColor, strokeColor, size }: EditorPointSymbolParams, mapCoordinates: Coordinates): Arc;
19
- renderFunction(feature: PointFeature, resolution: number, crs: Crs): Render[];
20
- protected getShadow(position: Coordinates, _feature: Feature, mapCoordinates: Coordinates): Arc | void;
21
- protected getPoint(position: Coordinates, _feature: Feature, mapCoordinates: Coordinates): Arc;
22
- }
@@ -1,37 +0,0 @@
1
- import { PolylineSymbol, PolylineSymbolConstructorParams } from '@evergis/sgis/es/symbols/PolylineSymbol';
2
- import { Polygon } from '@evergis/sgis/es/features/Polygon';
3
- import { Crs } from '@evergis/sgis/es/Crs';
4
- import { Render } from '@evergis/sgis/es/renders/Render';
5
- import { Poly } from '@evergis/sgis/es/features/Poly';
6
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
7
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
8
- import { Feature } from '@evergis/sgis';
9
- import { EditorPointSymbolParams, ShadowedPointSymbol } from './ShadowedPointSymbol';
10
- import { Arc } from '@evergis/sgis/es/renders/Arc';
11
- export declare const getSimplifiedPolygonCoordinates: (feature: Poly, crs: Crs, tolerance?: number) => import("@evergis/sgis/es/baseTypes").Contour[];
12
- export declare function createShadowRender(position: Coordinates, { strokeWidth, shadowColor, shadowSize, size, mapCoordinates }: EditorPointSymbolParams): Arc;
13
- export declare function createPointRender(position: Coordinates, { strokeColor, strokeWidth, fillColor, size, mapCoordinates }: EditorPointSymbolParams): Arc;
14
- export declare type EditorPolySymbolParams = {
15
- shadowColor: string;
16
- shadowSize: number;
17
- fillColor?: string;
18
- enclose?: boolean;
19
- showVertex?: boolean;
20
- vertexShadowSize?: number;
21
- } & PolylineSymbolConstructorParams;
22
- export declare class ShadowedPolySymbol extends PolylineSymbol {
23
- shadowColor: string;
24
- shadowSize: number;
25
- fillColor?: string;
26
- enclose?: boolean;
27
- showVertex?: boolean;
28
- vertexShadowSize?: number;
29
- constructor(options: EditorPolySymbolParams);
30
- renderFunction(feature: Polygon, resolution: number, crs: Crs): Render[];
31
- protected getShadow(coordinates: Coordinates[][], _feature: Feature, mapCoordinates: Coordinates[][]): PolyRender | void;
32
- protected getPolyRender(coordinates: Coordinates[][], _feature: Feature, mapCoordinates: Coordinates[][]): PolyRender;
33
- protected getVertexRenders(coordinates: Coordinates[][], mapCoordinates: Coordinates[][]): Arc[] | void;
34
- }
35
- export declare const measureLengthSymbol: ShadowedPolySymbol;
36
- export declare const measureAreaSymbol: ShadowedPolySymbol;
37
- export declare const measurePolygonSnapSymbol: ShadowedPointSymbol;
@@ -1,5 +0,0 @@
1
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
2
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
3
- import { EditorPointSymbolParams } from './ShadowedPointSymbol';
4
- export declare function createShadowRender(position: Coordinates, { strokeWidth, shadowColor, shadowSize, size, }: EditorPointSymbolParams, mapCoordinates: Coordinates[][]): PolyRender;
5
- export declare function getEditorPointRenderer(position: Coordinates, { strokeColor, strokeWidth, shadowColor, fillColor, shadowSize, size, }: EditorPointSymbolParams, mapCoordinates: Coordinates[][]): PolyRender[];
@@ -1,2 +0,0 @@
1
- export * from './ShadowedPolySymbol';
2
- export * from './ShadowedPointSymbol';
@@ -1,6 +0,0 @@
1
- import { SGisSymbolType } from './types';
2
- export declare const clampSymbol: (symbol: SGisSymbolType, min: number, max: number) => SGisSymbolType;
3
- export declare function centerAlignSymbol(symbol: SGisSymbolType): SGisSymbolType;
4
- export declare const adjustSymbol: (symbol: SGisSymbolType, { size }: {
5
- size: number;
6
- }) => SGisSymbolType;
@@ -1,5 +0,0 @@
1
- import { Offset, SimpleOffset, StyleSymbolType } from '../core/style';
2
- import { SGisSymbolType } from './types';
3
- export declare function deserializeSymbol(symbol: StyleSymbolType): SGisSymbolType | null;
4
- export declare const getOffsetParameterValue: (offset: Offset) => SimpleOffset;
5
- export declare function deserializeAnchor(offset: Offset): any;
@@ -1,5 +0,0 @@
1
- import { MOCK_FEATURES } from './mockFeatures';
2
- import { SGisSymbolType } from './types';
3
- export declare function getSymbolRenders(symbol: SGisSymbolType, size?: number, features?: Partial<typeof MOCK_FEATURES>): Promise<import("@evergis/sgis/es/renders/Render").Render[]>;
4
- export declare const getMapLegendSymbolRenders: (symbol: SGisSymbolType, size?: number) => Promise<import("@evergis/sgis/es/renders/Render").Render[]>;
5
- export declare const getLegendSymbolRenders: (symbol: SGisSymbolType, size?: number) => Promise<import("@evergis/sgis/es/renders/Render").Render[]>;
@@ -1,11 +0,0 @@
1
- import { H3Symbol } from "@evergis/sgis/es/symbols/H3Symbol";
2
- import { CombinedPolylineSymbol } from "@evergis/sgis/es/symbols/CombinedPolylineSymbol";
3
- import { ClusterSymbol } from "@evergis/sgis/es/symbols/ClusterSymbol";
4
- import { SGisImageSymbolType, SGisPointSymbolType, SGisPolygonSymbolType, SGisPolylineSymbolType, SGisSymbolType } from './types';
5
- export declare function isSGisPointSymbol(symbol: SGisSymbolType): symbol is SGisPointSymbolType;
6
- export declare function isSGisImageSymbol(symbol: SGisSymbolType): symbol is SGisImageSymbolType;
7
- export declare function isSGisPolygonSymbol(symbol: SGisSymbolType): symbol is SGisPolygonSymbolType;
8
- export declare function isSGisPolylineSymbol(symbol: SGisSymbolType): symbol is SGisPolylineSymbolType;
9
- export declare function isSGisH3Symbol(symbol: SGisSymbolType): symbol is H3Symbol;
10
- export declare function isSGisCombinedPolylineSymbol(symbol: SGisSymbolType): symbol is CombinedPolylineSymbol;
11
- export declare function isSGisClusterSymbol(symbol: SGisSymbolType): symbol is ClusterSymbol;
@@ -1,14 +0,0 @@
1
- export * from './Evergis';
2
- export * from './LineMiters';
3
- export * from './Selected';
4
- export * from './Shadowed';
5
- export * from './SVGPoly';
6
- export * from './SVGPoly/types';
7
- export * from './getSymbolRenders';
8
- export * from './guards';
9
- export * from './renderSymbolToCanvas';
10
- export * from './types';
11
- export { deserializeSymbol, getOffsetParameterValue } from './deserializeSymbol';
12
- export { adjustSymbol } from './adjustSymbol';
13
- export * from './strokeStyle';
14
- export { PREVIEW_LIMITS } from './previewLimits';
@@ -1,35 +0,0 @@
1
- import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
2
- import { Polygon } from '@evergis/sgis/es/features/Polygon';
3
- import { Polyline } from '@evergis/sgis/es/features/Polyline';
4
- import { H3Feature } from "@evergis/sgis/es/features/H3Feature";
5
- import { CombinedPolyline } from "@evergis/sgis/es/features/CombinedPolyline";
6
- /**
7
- * Моки фич для отображения превью символа
8
- * http://cf.everpoint.ru/pages/viewpage.action?pageId=45024217
9
- */
10
- export declare const viewBoxSize = 100;
11
- export declare const pointFeature: PointFeature;
12
- export declare const lineFeature: Polyline;
13
- export declare const combinedLineFeature: CombinedPolyline;
14
- export declare const polygonFeature: Polygon;
15
- export declare const h3gridFeature: H3Feature;
16
- export declare const lineLegendFeature: Polyline;
17
- export declare const polygonLegendFeature: Polygon;
18
- export declare const polygonMapLegendFeature: Polygon;
19
- export declare const MAP_LEGEND_FEATURES: {
20
- polygon: Polygon;
21
- };
22
- export declare const LEGEND_FEATURES: {
23
- point: PointFeature;
24
- polyline: Polyline;
25
- combinedPolyline: CombinedPolyline;
26
- polygon: Polygon;
27
- h3grid: H3Feature;
28
- };
29
- export declare const MOCK_FEATURES: {
30
- readonly point: PointFeature;
31
- readonly polyline: Polyline;
32
- readonly combinedPolyline: CombinedPolyline;
33
- readonly polygon: Polygon;
34
- readonly h3grid: H3Feature;
35
- };
@@ -1,4 +0,0 @@
1
- export declare const PREVIEW_LIMITS: {
2
- STROKE_WIDTH_MIN: number;
3
- STROKE_WIDTH_MAX: number;
4
- };
@@ -1,3 +0,0 @@
1
- import { Canvas } from '@evergis/sgis/es/painters/DomPainter/Canvas';
2
- import { Render } from '@evergis/sgis/es/renders/Render';
3
- export declare function renderSymbolToCanvas(renders: Render[], canvas: Canvas): void;
@@ -1,23 +0,0 @@
1
- import { ClassifyAble, StrokeBrushType } from '../core/style';
2
- export declare const enum StrokeStyle {
3
- Solid = 0,
4
- Dash = 1,
5
- Dot = 2,
6
- DashDot = 3,
7
- DashDotDot = 4,
8
- Custom = 5
9
- }
10
- interface StrokeStylePreset {
11
- style: StrokeStyle;
12
- type: StrokeBrushType['type'];
13
- intervals: number[];
14
- }
15
- export declare const SOLID_INTERVALS: number[];
16
- export declare const solidStrokeStylePreset: StrokeStylePreset;
17
- export declare const strokeStylePresets: StrokeStylePreset[];
18
- export declare const toIntervals: (numbers: number[], width: ClassifyAble<number>) => number[];
19
- export declare const toLineDash: (numbers: number[], width: ClassifyAble<number>) => number[];
20
- export declare const getLineDash: (brush: StrokeBrushType) => number[];
21
- export declare const defineStrokeStylePreset: (intervals: number[]) => StrokeStylePreset | undefined;
22
- export declare const getDashStylePreset: (dashStyle: StrokeStyle) => StrokeStylePreset | undefined;
23
- export {};
@@ -1,16 +0,0 @@
1
- import { StaticImageSymbol } from '@evergis/sgis/es/symbols/point/StaticImageSymbol';
2
- import { SquareSymbol } from '@evergis/sgis/es/symbols/point/Square';
3
- import { PolygonSymbol } from '@evergis/sgis/es/symbols/polygon/Simple';
4
- import { PolylineSymbol } from '@evergis/sgis/es/symbols/PolylineSymbol';
5
- import { BrushFill } from '@evergis/sgis/es/symbols/polygon/BrushFill';
6
- import { MaskedImage } from '@evergis/sgis/es/symbols/point/MaskedImage';
7
- import { ImageFill } from '@evergis/sgis/es/symbols/polygon/ImageFill';
8
- import { PointSymbol } from '@evergis/sgis/es/symbols/point/Point';
9
- import { H3Symbol } from "@evergis/sgis/es/symbols/H3Symbol";
10
- import { ClusterSymbol } from "@evergis/sgis/es/symbols/ClusterSymbol";
11
- import { CombinedPolylineSymbol } from "@evergis/sgis/es/symbols/CombinedPolylineSymbol";
12
- export declare type SGisPointSymbolType = PointSymbol | StaticImageSymbol | SquareSymbol | MaskedImage;
13
- export declare type SGisImageSymbolType = StaticImageSymbol | MaskedImage;
14
- export declare type SGisPolygonSymbolType = PolygonSymbol | BrushFill | ImageFill;
15
- export declare type SGisPolylineSymbolType = PolylineSymbol;
16
- export declare type SGisSymbolType = SGisPointSymbolType | SGisPolygonSymbolType | SGisPolylineSymbolType | H3Symbol | ClusterSymbol | CombinedPolylineSymbol;
@@ -1,3 +0,0 @@
1
- declare type IsParameterType = 'size' | 'strokeWidth' | 'stroke.width' | 'strokeColor' | 'stroke.color';
2
- export declare const isParameterType: (types: IsParameterType | Array<IsParameterType>, parameter?: "symbol" | "size" | "strokeWidth" | "stroke.width" | "strokeColor" | "stroke.color" | "fill.color" | "fill.hatchColor" | "background.fillColor" | "background.strokeColor" | "background.strokeWidth" | "figure.fillColor" | "figure.strokeColor" | "figure.strokeWidth" | "fillColor" | "angle" | "maskedColor" | "width" | "height" | undefined) => boolean;
3
- export {};
@@ -1,82 +0,0 @@
1
- import { AttributeType, FeatureLayerServiceInfoDc, ServiceInfoDc, SimplePolylineSymbolDc, StyleDc } from '@evergis/api';
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, SimplePolylineSymbol, RangeClass, SquareSymbol, StyleSymbolType, SvgPointSymbol, UniqueClass } from '../core';
4
- export declare const isLayerService: (value?: unknown) => value is ServiceInfoDc;
5
- export declare const getAttributeFromCondition: (condition: string) => string;
6
- export declare const getExprFromCondition: (condition: string, partIndex?: number | undefined) => string[];
7
- export declare const getSignFromConditionPart: (condition: string, partIndex?: number | undefined) => string;
8
- export declare const getValueFromConditionPart: (condition: string, partIndex?: number | undefined) => string;
9
- export declare const isRangeCondition: (condition?: string | undefined) => boolean;
10
- export declare const getSymbolParameterInfo: (parameter: ClassificationParameter) => ParameterInfo;
11
- export declare const formatUniqueClassValue: (value: UniqueClass, formatValue?: LegendProps['formatValue']) => string;
12
- export declare const getRangeValues: ({ from, to }: Pick<RangeClass, 'from' | 'to'>, isDouble: boolean, isDate: boolean, index: number) => Pick<RangeClass, 'from' | 'to'>;
13
- export declare const formatRangeClassValue: (value: RangeClass, formatValue: LegendProps['formatValue'], index: number) => string;
14
- export declare const checkLayerHasLegend: (layerInfo: Pick<FeatureLayerServiceInfoDc, 'geometryType' | 'style'>) => boolean;
15
- export declare const getTitleFromCondition: ({ condition, attribute, formatValue, }: {
16
- condition?: string | undefined;
17
- attribute?: LayerAttribute | null | undefined;
18
- formatValue?: LegendProps['formatValue'];
19
- }) => string;
20
- export declare function createValueTitleFromCondition(paramValue: ParameterByAttributeValue<ParameterValueWithSymbol>, attribute: LayerAttribute | null, formatValue: LegendProps['formatValue'], index: number): string;
21
- export declare const enum LegendSymbolTypes {
22
- Point = 0,
23
- ImagePoint = 1,
24
- Line = 2,
25
- Polygon = 3
26
- }
27
- declare type LegendSymbolsMap = {
28
- [LegendSymbolTypes.Point]: PointSymbolType;
29
- [LegendSymbolTypes.ImagePoint]: MaskedImageSymbol;
30
- [LegendSymbolTypes.Line]: SimplePolylineSymbol;
31
- [LegendSymbolTypes.Polygon]: PolygonSymbol;
32
- };
33
- export declare const DEFAULT_LEGEND_STYLES: LegendSymbolsMap;
34
- export declare const SYMBOL_SIZE_PARAMETERS: string[];
35
- export declare const DEFAULT_LEGEND_SIZES: Record<string, number>;
36
- export declare const updateSymbolParameter: <S extends StyleSymbolType>(symbol: S, path: string, value: ClassifyAble<ParameterValue>) => S;
37
- declare type Dimensions = {
38
- height: number;
39
- width: number;
40
- };
41
- export declare function getDimensions(symbol: ImageSymbol, size: number): Dimensions;
42
- export declare const createLegendSymbol: (parameterValue: ParameterValueWithSymbol, parameter: ClassificationParameterExtended, classificationsParams: ClassificationParameterExtended[], baseSymbol: StyleSymbolType) => StyleSymbolType | null;
43
- export declare function createHiddenCondition(attributeName: string, attributeType: AttributeType, value: ClassificationClass): string | null;
44
- export declare const createOtherHiddenCondition: (values: ClassificationClass[], attributeName: string, attributeType: AttributeType) => string | null;
45
- export declare const getMinimizedLegendValues: (attribute: LayerAttribute, classified: ParameterByAttribute<ParameterValueWithSymbol>, formatValue: LegendProps['formatValue'], index: number, otherTitle: string) => LegendValueType[];
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 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<"combinedPolylineSymbol", import("@evergis/api").CombinedPolylineSymbolDc, 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;
53
- export declare const getSymbolStrokeWidth: (symbol: PointSymbolType) => number;
54
- export declare const getParameterFromSymbol: <R extends ClassifyAble<ParameterValue>>(symbol: StyleSymbolType | LabelType, parameter: ClassificationParameterExtended) => R;
55
- export declare const getLegendSymbolSize: (symbol: StyleSymbolType) => number;
56
- export declare const serializeSvgPointSymbol: (symbol: SvgPointSymbol) => {
57
- figure?: {
58
- id: string;
59
- fillColor: string;
60
- strokeColor: string | null;
61
- strokeWidth: import("@evergis/api").CalculatedParameterDc | null;
62
- };
63
- background?: {
64
- id: string;
65
- fillColor: string;
66
- strokeColor: string | null;
67
- strokeWidth: import("@evergis/api").CalculatedParameterDc | null;
68
- type: string;
69
- };
70
- type: string;
71
- size: number | ParameterByAttribute<number> | null | undefined;
72
- offset: import("../core").SimpleOffset | import("../core").ClassifiedOffset | undefined;
73
- angle: number | import("../core").CalculatedParameter<number> | undefined;
74
- } | null;
75
- export declare const isSizeClassification: (parameter: string) => boolean;
76
- export declare const getServiceConfiguration: (layer?: ServiceInfoDc | undefined) => ServiceInfoDc['configuration'];
77
- /** default attribute name which use for geometry info */
78
- export declare const GEOMETRY_ATTRIBUTE = "geometry";
79
- /** default attribute name which contains unique id info */
80
- export declare const DEFAULT_ID_ATTRIBUTE_NAME = "gid";
81
- export declare const getClassificationValue: (parameterValue: ParameterValueWithSymbol, title: string, condition: ClassificationCondition) => ClassificationClass;
82
- export {};
@@ -1,12 +0,0 @@
1
- import { Gradient, Svg } from '@svgdotjs/svg.js';
2
- import { SvgSymbolBg } from '../components/Legend/types';
3
- import { ParameterByAttributeValue, SvgPointSymbol } from '../core';
4
- export declare const convertSvgToBase64: (svg: string) => string;
5
- export declare const createSvgGradient: (svg: Svg, values: ParameterByAttributeValue<string>[]) => Gradient;
6
- export declare const manipulateSvgSymbol: ({ SVGContainer, symbol, svg, bg, isClassified, }: {
7
- SVGContainer: Svg;
8
- symbol: SvgPointSymbol;
9
- svg?: string | undefined;
10
- bg?: SvgSymbolBg | undefined;
11
- isClassified?: boolean | undefined;
12
- }) => Svg;