@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
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.23",
2
+ "version": "3.0.25",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "@babel/core": "^7.17.5",
45
45
  "@babel/plugin-transform-classes": "^7.16.7",
46
46
  "@babel/preset-env": "^7.16.11",
47
- "@evergis/api": "^4.0.22",
47
+ "@evergis/api": "^4.0.24",
48
48
  "@evergis/sgis": "0.5.0-alpha.68",
49
49
  "@storybook/addon-actions": "^6.4.18",
50
50
  "@storybook/addon-controls": "^6.4.18",
@@ -76,12 +76,11 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@evergis/color": "^1.0.0-alpha.1",
79
- "@evergis/condition": "^2.0.23",
80
- "@evergis/icons": "^2.0.22",
79
+ "@evergis/condition": "^2.0.25",
81
80
  "@svgdotjs/svg.js": "^3.1.2",
82
81
  "lodash": "^4.17.21",
83
82
  "punycode": "^2.1.1",
84
83
  "styled-components": "^5.3.5"
85
84
  },
86
- "gitHead": "abea42bda38a3b6950c2d3563b202cfb3c9a9c42"
85
+ "gitHead": "0003a0023907cda5b30f66ca564b135e205c90c5"
87
86
  }
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { LegendProps } from './types';
3
- export declare const Legend: FC<LegendProps>;
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- import { ClusterSymbolDc } from '@evergis/api';
3
- export declare const ClusterSymbolPreview: FC<{
4
- symbol: ClusterSymbolDc;
5
- index?: number;
6
- size?: number;
7
- fontSize?: string;
8
- }>;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { LegendChildrenProps } from '../types';
3
- export declare const LegendChildren: FC<LegendChildrenProps>;
@@ -1,8 +0,0 @@
1
- import { FC } from "react";
2
- import { LegendProps } from "../types";
3
- declare type LegendHeaderButtonsProps = Pick<LegendProps, 'clearHiddenLegends' | 'goToClassification' | 'isShared'> & {
4
- layerName: string;
5
- hasHiddenLegends?: boolean;
6
- };
7
- export declare const LegendHeaderButtons: FC<LegendHeaderButtonsProps>;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { ClassificationParameterExtended } from "../../../core";
3
- export declare const LegendParameterDescription: FC<{
4
- parameter: ClassificationParameterExtended;
5
- index?: number;
6
- }>;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { LegendSectionProps } from '../types';
3
- export declare const LegendSection: FC<LegendSectionProps>;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { StyleSymbolType } from '../../../core';
3
- export declare const LegendSymbolRenderer: FC<{
4
- symbol: StyleSymbolType;
5
- index?: number;
6
- }>;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { MaximizedLegendProps } from '../types';
3
- export declare const MaximizedLegend: FC<MaximizedLegendProps>;
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- import { MinimizedLegendProps } from "../types";
3
- export declare const MinimizedLegend: FC<MinimizedLegendProps>;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { SvgSymbolProps } from '../types';
3
- export declare const SvgSymbol: FC<SvgSymbolProps>;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { SGisSymbol } from '../types';
3
- export declare const SymbolByType: FC<{
4
- symbol?: SGisSymbol;
5
- size?: number;
6
- type?: string;
7
- svg?: string;
8
- skipOffset?: boolean;
9
- }>;
@@ -1,9 +0,0 @@
1
- export * from './ClusterSymbolPreview';
2
- export * from './LegendChildren';
3
- export * from './LegendParameterDescription';
4
- export * from './LegendSection';
5
- export * from './LegendSymbolRenderer';
6
- export * from './MaximizedLegend';
7
- export * from './MinimizedLegend';
8
- export * from './SvgSymbol';
9
- export * from './SymbolByType';
@@ -1,44 +0,0 @@
1
- import { GeometryType } from '@evergis/api';
2
- import { ClassifyParameter, ParameterInfo } from './types';
3
- import { ClassificationParameter, ComparisonOperator } from '../../core';
4
- export declare const DEFAULT_LEGEND_SYMBOL_SIZE = 26;
5
- export declare const EXTRA_BORDER_SIZE = 4;
6
- export declare const DEFAULT_SYMBOL_SIZE = 20;
7
- export declare const DEFAULT_SYMBOL_WITH_BG_SIZE = 24;
8
- export declare const DEFAULT_SYMBOL_FILL_COLOR = "rgba(0, 163, 245, 1)";
9
- export declare const DEFAULT_SYMBOL_STROKE_COLOR = "rgb(255, 255, 255)";
10
- export declare const DEFAULT_SYMBOL_OFFSET: number[];
11
- export declare const DEFAULT_CLUSTER_SVG = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 56 56\" width=\"56px\" height=\"56px\">\n <circle cx=\"28\" cy=\"28\" r=\"22\" fill=\"#00AAFF\" stroke=\"#00AAFF\" stroke-opacity=\"0.28\" stroke-width=\"12\" id=\"symbol-bg\" />\n</svg>\n";
12
- export declare const SYMBOL_CLASSIFICATION: Partial<Record<GeometryType, ClassifyParameter[]>>;
13
- export declare const SYMBOL_LIMITS: {
14
- SIZE_MIN: number;
15
- SIZE_MAX: number;
16
- SIZE_STEP: number;
17
- GRID_SIZE_MIN: number;
18
- GRID_SIZE_MAX: number;
19
- MIN_OBJECTS_COUNT: number;
20
- MAX_OBJECTS_COUNT: number;
21
- MIN_CLUSTER_SIZE: number;
22
- MAX_CLUSTER_SIZE: number;
23
- STROKE_WIDTH_MIN: number;
24
- STROKE_WIDTH_MAX: number;
25
- STROKE_WIDTH_STEP: number;
26
- ANGLE_MIN: number;
27
- ANGLE_MAX: number;
28
- ANGLE_STEP: number;
29
- PREVIEW_SIZE_MAX: number;
30
- PREVIEW_SIZE_MAX_WIDTH: number;
31
- };
32
- export declare const DEFAULT_PARAMETER_INFO: ParameterInfo;
33
- export declare const PARAMETER_INFOS: Partial<Record<ClassificationParameter, ParameterInfo>>;
34
- export declare const OPERATOR_CONDITION_REMAP: Record<ComparisonOperator, string>;
35
- export declare const BASE_OPERATORS: ComparisonOperator[];
36
- export declare const CONTAINS_OPERATORS: ComparisonOperator[];
37
- export declare const FILLED_OPERATORS: ComparisonOperator[];
38
- export declare const STARTS_WITH_OPERATORS: ComparisonOperator[];
39
- export declare const ENDS_WITH_OPERATORS: ComparisonOperator[];
40
- export declare const RANGE_OPERATORS: ComparisonOperator[];
41
- export declare const BETWEEN_OPERATORS: ComparisonOperator[];
42
- export declare const numberComparisonOperators: ComparisonOperator[];
43
- export declare const dateComparisonOperators: ComparisonOperator[];
44
- export declare const textComparisonOperators: ComparisonOperator[];
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { Color } from '@evergis/color/es/Color';
3
- import { SvgPointSymbol } from '../../../core';
4
- import { SvgEditorField, SvgSymbolBg } from '../types';
5
- export declare const useSvgSymbol: (symbol: SvgPointSymbol, skipOffset?: boolean | undefined, isClassified?: boolean | undefined) => {
6
- svgRef: import("react").MutableRefObject<HTMLElement | null>;
7
- initSvg: () => void;
8
- getSvgData: () => string;
9
- manipulateSvg: ({ svg, bg, newSymbol, isClassified, }: {
10
- svg: string;
11
- bg?: SvgSymbolBg | undefined;
12
- newSymbol?: import("../../../core").ClientSymbol<"svgPointSymbol", import("@evergis/api").SvgPointSymbolDc, never> | undefined;
13
- isClassified?: boolean | undefined;
14
- }) => void;
15
- getUpdatedSvgSymbol: (field: keyof SvgEditorField, value: Color | number | string) => any;
16
- };
@@ -1,6 +0,0 @@
1
- export * from './Legend';
2
- export * from './styled';
3
- export * from './constants';
4
- export * from './components';
5
- export * from './types';
6
- export * from './hooks/useSvgSymbol';
@@ -1,54 +0,0 @@
1
- /// <reference types="react" />
2
- import { ClassificationParameterExtended } from '../../core';
3
- import { MapLegendItemProps } from './types';
4
- export declare const MapLegendDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const ItemText: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const ItemSeparator: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const SymbolContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
8
- export declare const ClassifiedItem: import("styled-components").StyledComponent<"div", any, {
9
- isHidden?: boolean | undefined;
10
- isClusterFillColor?: boolean | undefined;
11
- }, never>;
12
- export declare const SymbolButton: import("styled-components").StyledComponent<"span", any, {
13
- onClick?: ((event: import("react").MouseEvent<HTMLSpanElement, MouseEvent>) => void) | null | undefined;
14
- }, never>;
15
- export declare const MapLegendContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- export declare const MapLegendHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
17
- export declare const MapLegendDescriptionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
18
- export declare const MapLegendBadge: import("styled-components").StyledComponent<"span", any, {}, never>;
19
- export declare const MaximizedLegendContainer: import("styled-components").StyledComponent<"div", any, {
20
- isShown?: boolean | undefined;
21
- }, never>;
22
- export declare const MinimizedLegendContainer: import("styled-components").StyledComponent<"div", any, {
23
- isShown?: boolean | undefined;
24
- }, never>;
25
- export declare const LegendHeaderButton: import("styled-components").StyledComponent<"span", any, {}, never>;
26
- export declare const MapLegendSectionContainer: import("styled-components").StyledComponent<"div", any, {
27
- hasHiddenLegends?: boolean | undefined;
28
- }, never>;
29
- export declare const MapLegendSectionItems: import("styled-components").StyledComponent<"div", any, {
30
- minHeight?: number | undefined;
31
- maxHeight?: number | undefined;
32
- isExpanded?: boolean | undefined;
33
- }, never>;
34
- export declare const MapLegendValueDescr: import("styled-components").StyledComponent<"div", any, {}, never>;
35
- export declare const MapLegendItem: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
36
- export declare const MapLegendOther: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
37
- export declare const SizeMinimizedLegend: import("styled-components").StyledComponent<"div", any, {}, never>;
38
- export declare const SizeMinimizedLegendSymbol: import("styled-components").StyledComponent<"div", any, {}, never>;
39
- export declare const SizeMinimizedLegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
40
- export declare const SizeMinimizedLegendDown: import("styled-components").StyledComponent<"div", any, {}, never>;
41
- export declare const SizeMinimizedLegendUp: import("styled-components").StyledComponent<"div", any, {}, never>;
42
- export declare const MapLegendItems: import("styled-components").StyledComponent<"div", any, {
43
- parameter: ClassificationParameterExtended;
44
- isSize?: boolean | undefined;
45
- isStrokeWidth?: boolean | undefined;
46
- isStrokeColor?: boolean | undefined;
47
- isSingle?: boolean | undefined;
48
- }, never>;
49
- export declare const MapLegendItemsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
50
- export declare const MapLegendValues: import("styled-components").StyledComponent<"div", any, {}, never>;
51
- export declare const MapLegendValuesRange: import("styled-components").StyledComponent<"div", any, {}, never>;
52
- export declare const MapLegendValuesOther: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
53
- export declare const MapLegendExpandButton: import("styled-components").StyledComponent<"div", any, {}, never>;
54
- export declare const ClusterLegendContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,106 +0,0 @@
1
- import { ReactNode, RefObject } from 'react';
2
- import { AttributeType, PointLabelSymbolDc, SvgPointSymbolDc, StyleDc, FeatureLayerServiceInfoDc, AttributeFormatDc, FeatureDc } from '@evergis/api';
3
- import { MaskedImage } from '@evergis/sgis/es/symbols/point/MaskedImage';
4
- import { H3Symbol } from '@evergis/sgis/es/symbols/H3Symbol';
5
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
6
- import { ClassificationParameterExtended, LayerAttribute, LegendValueType, ParameterByAttribute, ParameterValueWithSymbol, StyleSymbolType, SvgPointSymbol } from '../../core';
7
- import { SGisBrushFill, SGisImageFill, SGisPolygonSymbol, SGisPolylineSymbol } from '../../symbols';
8
- export declare type ClassifyParameter = 'fill.color' | 'fill.hatchColor' | 'fillColor' | 'stroke.width' | 'stroke.color' | 'strokeWidth' | 'strokeColor' | 'textBackground.fill.color' | 'background.fillColor' | 'background.strokeColor' | 'background.strokeWidth' | 'figure.fillColor' | 'figure.strokeColor' | 'figure.strokeWidth' | 'fontColor' | 'haloColor' | 'size' | 'symbol' | 'angle' | 'maskedColor' | 'endingSize' | 'beginningSize' | 'maxObjectCount' | 'gridSize' | 'selectionObjectsLimit' | 'singleObjectSymbol.size' | 'singleObjectSymbol.figure.fillColor' | 'singleObjectSymbol.figure.strokeColor' | 'singleObjectSymbol.figure.strokeWidth' | 'singleObjectSymbol.background.fillColor' | 'singleObjectSymbol.background.strokeColor' | 'singleObjectSymbol.background.strokeWidth';
9
- export interface ParameterInfo {
10
- min: number;
11
- max: number;
12
- step: number;
13
- units: Units | null;
14
- serialize: (value: number) => number;
15
- deserialize: (value: number) => number;
16
- classifyAble: boolean;
17
- }
18
- export declare const enum Units {
19
- Pixels = "px",
20
- Count = "pcs",
21
- Degrees = "\u00B0"
22
- }
23
- export declare type Positions = Coordinates | Coordinates[] | Coordinates[][];
24
- export declare type FeaturedDcExtendedGeometry = Omit<FeatureDc['geometry'], 'coordinates'> & {
25
- coordinates?: Positions;
26
- };
27
- export declare type LegendProps = {
28
- layerInfo: FeatureLayerServiceInfoDc;
29
- formatValue?: (type: AttributeType, value: string | number | Date | FeaturedDcExtendedGeometry, stringFormat?: AttributeFormatDc) => string;
30
- hiddenLegends?: Record<string, string[]>;
31
- toggleHiddenLegend?: (layerName: string, hiddenCondition: string) => void;
32
- clearHiddenLegends?: (layerName: string) => void;
33
- goToClassification?: VoidFunction;
34
- isShared?: boolean;
35
- };
36
- export declare type LegendChildrenProps = Pick<LegendProps, 'hiddenLegends' | 'toggleHiddenLegend' | 'formatValue' | 'clearHiddenLegends' | 'goToClassification'> & {
37
- layerInfo: FeatureLayerServiceInfoDc;
38
- };
39
- export declare type LegendSectionProps = Pick<LegendProps, 'hiddenLegends' | 'toggleHiddenLegend' | 'formatValue' | 'clearHiddenLegends' | 'goToClassification'> & {
40
- layerName: string;
41
- symbol: StyleDc['symbol'];
42
- parameter: ClassificationParameterExtended;
43
- parameters: ClassificationParameterExtended[];
44
- classified: ParameterByAttribute<ParameterValueWithSymbol>;
45
- attribute: LayerAttribute | null;
46
- index: number;
47
- count?: number;
48
- isShared?: boolean;
49
- };
50
- export declare type LegendSectionItem = Pick<LegendProps, 'hiddenLegends' | 'toggleHiddenLegend'> & {
51
- attributeType: AttributeType;
52
- symbol: StyleSymbolType;
53
- title: string;
54
- index: number;
55
- hiddenCondition?: string;
56
- };
57
- export declare type MaximizedLegendProps = {
58
- innerRef?: RefObject<HTMLDivElement> | undefined;
59
- isShown?: boolean;
60
- layerName: string;
61
- symbol: StyleDc['symbol'];
62
- parameter: ClassificationParameterExtended;
63
- values: LegendSectionItem[];
64
- attributeType: AttributeType;
65
- index: number;
66
- hiddenLegends?: string[];
67
- toggleHiddenLegend?: (layerName: string, hiddenCondition: string) => void;
68
- };
69
- export declare type SvgSymbolProps = {
70
- svg: string;
71
- symbol: SvgPointSymbol;
72
- size?: number;
73
- title?: string;
74
- text?: string;
75
- bg?: SvgSymbolBg;
76
- skipOffset?: boolean;
77
- isClassified?: boolean;
78
- fontSettings?: PointLabelSymbolDc;
79
- onClick?: (svg: string, symbol: SvgPointSymbol) => void;
80
- };
81
- export declare enum SvgSymbolBg {
82
- Rect = "rect",
83
- Circle = "circle"
84
- }
85
- export declare type SGisSymbol = MaskedImage | SvgPointSymbolDc | SGisPolylineSymbol | SGisPolygonSymbol | SGisImageFill | SGisBrushFill | H3Symbol;
86
- export declare type SvgEditorField = Pick<SvgPointSymbol, 'size' | 'offset' | 'angle'> & {
87
- 'background.fillColor': string;
88
- 'background.strokeColor': string;
89
- 'background.strokeWidth': string;
90
- 'figure.strokeColor': string;
91
- 'figure.strokeWidth': string;
92
- 'figure.fillColor': string;
93
- };
94
- export declare type MinimizedLegendProps = {
95
- innerRef?: RefObject<HTMLDivElement> | undefined;
96
- isShown?: boolean;
97
- title?: string | ReactNode;
98
- values: LegendValueType[];
99
- parameter: ClassificationParameterExtended;
100
- hiddenLegends?: string[];
101
- };
102
- export declare type MapLegendItemProps = {
103
- value?: string | number;
104
- parameter?: ClassificationParameterExtended;
105
- isHidden?: boolean;
106
- };
@@ -1,2 +0,0 @@
1
- import { LayerAttribute } from '../../../core';
2
- export declare const getConditionAttribute: (attributes: LayerAttribute[], condition?: string | undefined) => LayerAttribute | null;
@@ -1,5 +0,0 @@
1
- export declare const getLegendText: ({ title, index, isDate, }: {
2
- title?: string | undefined;
3
- index: number;
4
- isDate: boolean;
5
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export declare const isHiddenLegend: (hiddenCondition: string, hiddenLegends?: string[] | undefined) => boolean;
@@ -1,8 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { StyleSymbolType } from '../../core';
3
- declare type StyleSymbolProps = PropsWithChildren<{
4
- symbol: StyleSymbolType;
5
- size?: number;
6
- }>;
7
- export declare const StyleSymbol: React.FC<StyleSymbolProps>;
8
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { UseSymbolParams } from '../../hooks';
3
- interface Props extends UseSymbolParams {
4
- }
5
- export declare const Symbol: React.FC<Props>;
6
- export {};
@@ -1,3 +0,0 @@
1
- export { Symbol } from './Symbol';
2
- export * from './styled';
3
- export * from './StyleSymbol';
@@ -1,9 +0,0 @@
1
- import { GeometryType } from '@evergis/api';
2
- export declare type CompoundIconProps = {
3
- geometryType: GeometryType;
4
- icons: Record<GeometryType, string>;
5
- };
6
- export declare const CompoundIcon: import("styled-components").StyledComponent<"div", any, CompoundIconProps, never>;
7
- export declare const ClusterSymbol: import("styled-components").StyledComponent<"div", any, {
8
- color?: string | undefined;
9
- }, never>;
@@ -1,2 +0,0 @@
1
- export * from './Legend';
2
- export * from './Symbol';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { StyleSymbolType } from '../core/style/types/symbol';
3
- declare type LegendProviderProps = {
4
- symbol?: StyleSymbolType;
5
- };
6
- export declare const LegendProvider: React.FC<LegendProviderProps>;
7
- export declare const useLegendContext: () => import("..").ClientSymbol<"svgPointSymbol", import("@evergis/api").SvgPointSymbolDc, never> | import("..").ClientSymbol<"circlePointSymbol", import("@evergis/api").CirclePointSymbolDc, never> | import("../core/style/types/symbol").SquareSymbol | import("..").ClientSymbol<"maskedImagePointSymbol", import("@evergis/api").MaskedImagePointSymbolDc, never> | import("..").ClientSymbol<"imagePointSymbol", import("@evergis/api").ImagePointSymbolDc, never> | import("../core/style/types/symbol").PolygonSymbol<import("..").FillBrushType, import("..").StrokeBrushType> | import("..").ClientSymbol<"polylineSymbol", import("@evergis/api").PolylineSymbolDc, never> | import("..").ClientSymbol<"simplePolylineSymbol", import("@evergis/api").SimplePolylineSymbolDc, never> | import("..").ClientSymbol<"polylineLabelSymbol", import("@evergis/api").PolylineLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("..").ClientSymbol<"polygonLabelSymbol", import("@evergis/api").PolygonLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("..").ClientSymbol<"labelPointSymbol", import("@evergis/api").PointLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("..").ClientSymbol<"rasterSymbol", import("@evergis/api").RasterSymbolDc, never> | import("..").ClientSymbol<"compositeSymbol", import("@evergis/api").CompositeSymbolDc, never> | import("@evergis/api").H3GridSymbolDc | import("@evergis/api").ClusterSymbolDc | null;
8
- export {};
@@ -1 +0,0 @@
1
- export { LegendProvider, useLegendContext } from './LegendContext';
@@ -1,15 +0,0 @@
1
- import { ClassificationType } from './types';
2
- export declare class ClassificationCondition {
3
- private readonly condition;
4
- private readonly expressions;
5
- constructor(condition: string);
6
- get attributeName(): string;
7
- get uniqueValue(): string;
8
- get range(): [number, number];
9
- get type(): ClassificationType;
10
- isUnique(): boolean;
11
- isRange(): boolean;
12
- toString(): string;
13
- private get leftExpression();
14
- private get rightExpression();
15
- }
@@ -1,14 +0,0 @@
1
- import { ExtendedClassification } from './types';
2
- import { Style } from '../style/types';
3
- export declare class ClassificationManager {
4
- private style;
5
- private classifications;
6
- constructor(style: Style);
7
- get values(): ExtendedClassification<import("./types").ClassificationType, import("./types").ClassificationClass>[];
8
- find(predicate: (classification: ExtendedClassification) => boolean): ExtendedClassification<import("./types").ClassificationType, import("./types").ClassificationClass> | null;
9
- filter(callback: (classification: ExtendedClassification) => boolean): ExtendedClassification<import("./types").ClassificationType, import("./types").ClassificationClass>[];
10
- map<T extends ValueOf<ExtendedClassification>>(callback: (classification: ExtendedClassification) => T): T[];
11
- reduce<T>(callback: (classifications: T, classification: ExtendedClassification) => T, initial: T): T;
12
- hasClassifications(): boolean;
13
- private collectClassifications;
14
- }
@@ -1,4 +0,0 @@
1
- import { ClassificationExtras, ClassificationParameterExtended, ExtendedClassification } from './types';
2
- import { ParameterByAttributeValue, ParameterValueWithSymbol, Style, StyleSymbolType } from '../style';
3
- export declare const toClassification: (values: (ParameterByAttributeValue<ParameterValueWithSymbol> | Style)[], parameter: ClassificationParameterExtended, extras?: ClassificationExtras) => ExtendedClassification;
4
- export declare const getClassifications: (symbol: StyleSymbolType, pathContext?: ClassificationParameterExtended[]) => ExtendedClassification[];
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- export { ClassificationManager } from './ClassificationManager';
3
- export * from './parameterValue';
4
- export { ClassificationCondition } from './ClassificationCondition';
5
- export * from './unClassify';
6
- export * from './printClass';
@@ -1,4 +0,0 @@
1
- import { ClassificationParameterExtended } from './types';
2
- export declare const PARAMETER_SEPARATOR = ".";
3
- export declare const parameterToPaths: (parameter: ClassificationParameterExtended) => ClassificationParameterExtended[];
4
- export declare const pathsToParameter: (paths: ClassificationParameterExtended[]) => ClassificationParameterExtended;
@@ -1,9 +0,0 @@
1
- import { ClassificationParameterExtended, ParameterValueModifier } from './types';
2
- import { CalculatedAble, CalculatedParameter, ClassifyAble, ParameterByAttribute, ParameterValue, ParameterValueWithSymbol, StyleSymbolType, UnidentifiedParameterValue } from '../style';
3
- export declare const isParameterByAttribute: (value: UnidentifiedParameterValue) => value is ParameterByAttribute<ParameterValueWithSymbol>;
4
- export declare const isCalculatedParameter: (value: UnidentifiedParameterValue) => value is CalculatedParameter<ParameterValueWithSymbol>;
5
- export declare const getParameterValue: <Value extends ParameterValueWithSymbol>(value: Value | ParameterByAttribute<Value> | CalculatedParameter<Value>) => Value;
6
- export declare const symbolParameterWalker: (valueModifier: ParameterValueModifier) => <S extends StyleSymbolType>(symbol: S, parameter: ClassificationParameterExtended | ClassificationParameterExtended[]) => S;
7
- export declare const setDefaultParameterValue: <S extends StyleSymbolType>(symbol: S, parameter: ClassificationParameterExtended | ClassificationParameterExtended[]) => S;
8
- export declare const setParameterValue: <S extends StyleSymbolType>(symbol: S, path: ClassificationParameterExtended, value: ClassifyAble<ParameterValue>) => S;
9
- export declare function applyParameterValue(symbol: StyleSymbolType, path: ClassificationParameterExtended, value: ClassifyAble<ParameterValue>): StyleSymbolType;
@@ -1,2 +0,0 @@
1
- import { RangeClass } from './types';
2
- export declare const printRangeClass: (value: RangeClass, index: number) => string;
@@ -1,40 +0,0 @@
1
- import { ClassifyAble, ParameterValue, ParameterValueWithSymbol } from '../style';
2
- import { ClassificationAttribute } from '../attributes';
3
- export declare type NestedClassificationParameters = 'fill.color' | 'fill.hatchColor' | 'stroke.width' | 'stroke.color' | 'background.fillColor' | 'background.strokeColor' | 'background.strokeWidth' | 'figure.fillColor' | 'figure.strokeColor' | 'figure.strokeWidth';
4
- export declare type SimpleClassificationParameters = 'fillColor' | 'strokeColor' | 'strokeWidth' | 'size' | 'symbol' | 'angle' | 'maskedColor';
5
- export declare type ClassificationParameter = NestedClassificationParameters | SimpleClassificationParameters;
6
- export declare type ClassificationParameterExtended = ClassificationParameter | 'width' | 'height';
7
- export interface ClassBase {
8
- title: string | null;
9
- parameterValue: ParameterValueWithSymbol;
10
- attribute?: ClassificationAttribute;
11
- }
12
- export declare type UniqueClass = ClassBase & {
13
- uniqueValue: string;
14
- };
15
- export declare type RangeClass = ClassBase & {
16
- from: number | string | null;
17
- to: number | string | null;
18
- };
19
- export declare type ClassificationClass = UniqueClass | RangeClass;
20
- export declare type ClassificationValues = ClassificationClass[];
21
- export declare const enum ClassificationType {
22
- Range = 0,
23
- Unique = 1
24
- }
25
- export interface Classification<Type extends ClassificationType = ClassificationType, Value extends ClassificationClass = ClassificationClass> {
26
- parameter?: ClassificationParameterExtended;
27
- attribute?: string;
28
- type: Type;
29
- values: Value[];
30
- }
31
- export declare type RangeClassification = Classification<ClassificationType.Range, RangeClass>;
32
- export declare type UniqueClassification = Classification<ClassificationType.Unique, UniqueClass>;
33
- export interface ClassificationExtras {
34
- defaultTitle: string;
35
- defaultValue: ParameterValueWithSymbol;
36
- }
37
- export declare type ExtendedClassification<Type extends ClassificationType = ClassificationType, Value extends ClassificationClass = ClassificationClass> = Classification<Type, Value> & ClassificationExtras;
38
- export declare function isRangeClass(value: ClassificationClass): value is RangeClass;
39
- export declare function isUniqueClass(value: ClassificationClass): value is UniqueClass;
40
- export declare type ParameterValueModifier = (parameterValue: ClassifyAble<ParameterValue>) => ClassifyAble<ParameterValue> | void;
@@ -1,2 +0,0 @@
1
- import { StyleSymbolType, Unclassify } from '../style';
2
- export declare const unClassify: <V extends StyleSymbolType>(symbol: V) => Unclassify<V>;
@@ -1,2 +0,0 @@
1
- import { ConditionAttributes } from '@evergis/condition';
2
- export declare function evaluateCondition(condition: string, attributes: ConditionAttributes): string | number | boolean | null;
@@ -1,7 +0,0 @@
1
- import { FeatureAttribute } from '../attributes';
2
- import { EvergisStyle, ParameterByAttributeValue, ParameterValueWithSymbol, Style, StyleSymbolType } from '../style';
3
- export declare const getAttributeNameFromCondition: (condition: string) => string | null;
4
- export declare const getAttributeNameFromClassified: (values: ParameterByAttributeValue<ParameterValueWithSymbol>[]) => string | null;
5
- export declare function findChildFeatureStyle(childStyles: Style[], attributes: FeatureAttribute[]): Style | null;
6
- export declare function findChildFeatureSymbol(childStyles: Style[], attributes: FeatureAttribute[]): import("../style").ClientSymbol<"svgPointSymbol", import("@evergis/api").SvgPointSymbolDc, never> | import("../style").ClientSymbol<"circlePointSymbol", import("@evergis/api").CirclePointSymbolDc, never> | import("../style").SquareSymbol | import("../style").ClientSymbol<"maskedImagePointSymbol", import("@evergis/api").MaskedImagePointSymbolDc, never> | import("../style").ClientSymbol<"imagePointSymbol", import("@evergis/api").ImagePointSymbolDc, never> | import("../style").PolygonSymbol<import("../style").FillBrushType, import("../style").StrokeBrushType> | import("../style").ClientSymbol<"polylineSymbol", import("@evergis/api").PolylineSymbolDc, never> | import("../style").ClientSymbol<"simplePolylineSymbol", import("@evergis/api").SimplePolylineSymbolDc, never> | import("../style").ClientSymbol<"polylineLabelSymbol", import("@evergis/api").PolylineLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../style").ClientSymbol<"polygonLabelSymbol", import("@evergis/api").PolygonLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../style").ClientSymbol<"labelPointSymbol", import("@evergis/api").PointLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("../style").ClientSymbol<"rasterSymbol", import("@evergis/api").RasterSymbolDc, never> | import("@evergis/api").H3GridSymbolDc | import("@evergis/api").ClusterSymbolDc | null;
7
- export declare function getFeatureSymbol(style: EvergisStyle, attributes: FeatureAttribute[]): StyleSymbolType | null;
@@ -1 +0,0 @@
1
- export * from './getFeatureSymbol';
@@ -1,11 +0,0 @@
1
- import { FilterConditionOperation, FilterConditionType } from "./index";
2
- export declare class FilterCondition {
3
- private condition;
4
- private readonly conditionInterpreter;
5
- constructor(condition?: string | null);
6
- static from(conditions: FilterConditionType[], operation: FilterConditionOperation): FilterCondition;
7
- get conditions(): FilterConditionType[];
8
- get conditionOperation(): FilterConditionOperation | null;
9
- isParsingError(): boolean;
10
- toString(): string | null;
11
- }
@@ -1,8 +0,0 @@
1
- import { Expression } from "@evergis/condition";
2
- import { AttributeType } from "@evergis/api";
3
- import { ComparisonOperator, FilterConditionType } from "./types";
4
- export declare const comparisonOperatorMapReversed: Record<string, ComparisonOperator>;
5
- export declare const NUMERIC_ATTRIBUTE_TYPES: AttributeType[];
6
- export declare function formatCondition(condition: FilterConditionType): string;
7
- export declare function createConditionString(condition: FilterConditionType): string;
8
- export declare function createCondition({ attribute, operation, value }: Expression): FilterConditionType;
@@ -1,2 +0,0 @@
1
- import { ClassificationClass } from '../classification';
2
- export declare function createValueTitle(value: ClassificationClass, index: number): string;
@@ -1,3 +0,0 @@
1
- export * from './createValueTitle';
2
- export * from './isValidParameter';
3
- export * from './types';
@@ -1,2 +0,0 @@
1
- import { ClassificationParameterExtended } from "../classification";
2
- export declare function isValidParameter(parameter: ClassificationParameterExtended): boolean;