@evergis/react 2.0.189 → 2.0.191
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/components/Legend/Legend.d.ts +2 -2
- package/dist/components/Legend/components/ClusterSymbolPreview.d.ts +7 -0
- package/dist/components/Legend/components/LegendSection.d.ts +2 -2
- package/dist/components/Legend/components/LegendSymbolRenderer.d.ts +2 -2
- package/dist/components/Legend/components/MaximizedLegend.d.ts +2 -2
- package/dist/components/Legend/components/SvgSymbol.d.ts +2 -2
- package/dist/components/Legend/constants.d.ts +4 -3
- package/dist/components/Legend/styled.d.ts +6 -3
- package/dist/components/Legend/types.d.ts +18 -18
- package/dist/react.cjs.development.js +212 -160
- 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 +211 -161
- package/dist/react.esm.js.map +1 -1
- package/dist/utils/legend.d.ts +10 -10
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { LegendProps } from
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LegendProps } from './types';
|
|
3
3
|
export declare const Legend: FC<LegendProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { LegendSectionProps } from
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LegendSectionProps } from '../types';
|
|
3
3
|
export declare const LegendSection: FC<LegendSectionProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { MaximizedLegendProps } from
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MaximizedLegendProps } from '../types';
|
|
3
3
|
export declare const MaximizedLegend: FC<MaximizedLegendProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { SvgSymbolProps } from
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SvgSymbolProps } from '../types';
|
|
3
3
|
export declare const SvgSymbol: FC<SvgSymbolProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GeometryType } from
|
|
2
|
-
import { ClassifyParameter, ParameterInfo } from
|
|
3
|
-
import { ClassificationParameter, ComparisonOperator } from
|
|
1
|
+
import { GeometryType } from '@evergis/api';
|
|
2
|
+
import { ClassifyParameter, ParameterInfo } from './types';
|
|
3
|
+
import { ClassificationParameter, ComparisonOperator } from '../../core';
|
|
4
4
|
export declare const DEFAULT_LEGEND_SYMBOL_SIZE = 26;
|
|
5
5
|
export declare const EXTRA_BORDER_SIZE = 4;
|
|
6
6
|
export declare const DEFAULT_SYMBOL_SIZE = 20;
|
|
@@ -8,6 +8,7 @@ export declare const DEFAULT_SYMBOL_WITH_BG_SIZE = 24;
|
|
|
8
8
|
export declare const DEFAULT_SYMBOL_FILL_COLOR = "rgba(0, 163, 245, 1)";
|
|
9
9
|
export declare const DEFAULT_SYMBOL_STROKE_COLOR = "rgb(255, 255, 255)";
|
|
10
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";
|
|
11
12
|
export declare const SYMBOL_CLASSIFICATION: Partial<Record<GeometryType, ClassifyParameter[]>>;
|
|
12
13
|
export declare const SYMBOL_LIMITS: {
|
|
13
14
|
SIZE_MIN: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ClassificationParameterExtended } from
|
|
3
|
-
import { MapLegendItemProps } from
|
|
2
|
+
import { ClassificationParameterExtended } from '../../core';
|
|
3
|
+
import { MapLegendItemProps } from './types';
|
|
4
4
|
export declare const MapLegendDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const ItemText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const ItemSeparator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -24,7 +24,9 @@ export declare const MinimizedLegendContainer: import("styled-components").Style
|
|
|
24
24
|
}, never>;
|
|
25
25
|
export declare const MapLegendSectionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
26
26
|
export declare const MapLegendSectionItems: import("styled-components").StyledComponent<"div", any, {
|
|
27
|
-
|
|
27
|
+
minHeight?: number | undefined;
|
|
28
|
+
maxHeight?: number | undefined;
|
|
29
|
+
isExpanded?: boolean | undefined;
|
|
28
30
|
}, never>;
|
|
29
31
|
export declare const MapLegendValueDescr: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
32
|
export declare const MapLegendItem: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
|
|
@@ -46,3 +48,4 @@ export declare const MapLegendValues: import("styled-components").StyledComponen
|
|
|
46
48
|
export declare const MapLegendValuesRange: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
47
49
|
export declare const MapLegendValuesOther: import("styled-components").StyledComponent<"div", any, MapLegendItemProps, never>;
|
|
48
50
|
export declare const MapLegendExpandButton: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
51
|
+
export declare const ClusterLegendContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from
|
|
2
|
-
import { AttributeType, PointLabelSymbolDc, SvgPointSymbolDc, StyleDc, FeatureLayerServiceInfoDc, AttributeFormatDc, FeatureDc } from
|
|
3
|
-
import { MaskedImage } from
|
|
4
|
-
import { H3Symbol } from
|
|
5
|
-
import { Coordinates } from
|
|
6
|
-
import { ClassificationParameterExtended, LayerAttribute, LegendValueType, ParameterByAttribute, ParameterValue, StyleSymbolType, SvgPointSymbol } from
|
|
7
|
-
import { SGisBrushFill, SGisImageFill, SGisPolygonSymbol, SGisPolylineSymbol } from
|
|
8
|
-
export declare type ClassifyParameter =
|
|
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, ParameterValue, 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' | 'fontColor' | 'haloColor' | 'size' | 'symbol' | 'angle' | 'maskedColor' | 'endingSize' | 'beginningSize' | 'maxObjectCount' | 'gridSize' | 'selectionObjectsLimit' | 'singleObjectSymbol.figure.fillColor' | 'singleObjectSymbol.background.fillColor';
|
|
9
9
|
export interface ParameterInfo {
|
|
10
10
|
min: number;
|
|
11
11
|
max: number;
|
|
@@ -21,7 +21,7 @@ export declare const enum Units {
|
|
|
21
21
|
Degrees = "\u00B0"
|
|
22
22
|
}
|
|
23
23
|
export declare type Positions = Coordinates | Coordinates[] | Coordinates[][];
|
|
24
|
-
export declare type FeaturedDcExtendedGeometry = Omit<FeatureDc[
|
|
24
|
+
export declare type FeaturedDcExtendedGeometry = Omit<FeatureDc['geometry'], 'coordinates'> & {
|
|
25
25
|
coordinates?: Positions;
|
|
26
26
|
};
|
|
27
27
|
export declare type LegendProps = {
|
|
@@ -30,16 +30,16 @@ export declare type LegendProps = {
|
|
|
30
30
|
hiddenLegends?: Record<string, string[]>;
|
|
31
31
|
toggleHiddenLegend?: (layerName: string, hiddenCondition: string) => void;
|
|
32
32
|
};
|
|
33
|
-
export declare type LegendSectionProps = Pick<LegendProps,
|
|
33
|
+
export declare type LegendSectionProps = Pick<LegendProps, 'hiddenLegends' | 'toggleHiddenLegend' | 'formatValue'> & {
|
|
34
34
|
layerName: string;
|
|
35
|
-
symbol: StyleDc[
|
|
35
|
+
symbol: StyleDc['symbol'];
|
|
36
36
|
parameter: ClassificationParameterExtended;
|
|
37
37
|
parameters: ClassificationParameterExtended[];
|
|
38
38
|
classified: ParameterByAttribute<ParameterValue>;
|
|
39
39
|
attribute: LayerAttribute;
|
|
40
40
|
index: number;
|
|
41
41
|
};
|
|
42
|
-
export declare type LegendSectionItem = Pick<LegendProps,
|
|
42
|
+
export declare type LegendSectionItem = Pick<LegendProps, 'hiddenLegends' | 'toggleHiddenLegend'> & {
|
|
43
43
|
attributeType: AttributeType;
|
|
44
44
|
symbol: StyleSymbolType;
|
|
45
45
|
title: string;
|
|
@@ -50,7 +50,7 @@ export declare type MaximizedLegendProps = {
|
|
|
50
50
|
innerRef?: RefObject<HTMLDivElement> | undefined;
|
|
51
51
|
isShown?: boolean;
|
|
52
52
|
layerName: string;
|
|
53
|
-
symbol: StyleDc[
|
|
53
|
+
symbol: StyleDc['symbol'];
|
|
54
54
|
parameter: ClassificationParameterExtended;
|
|
55
55
|
values: LegendSectionItem[];
|
|
56
56
|
attributeType: AttributeType;
|
|
@@ -74,11 +74,11 @@ export declare enum SvgSymbolBg {
|
|
|
74
74
|
Circle = "circle"
|
|
75
75
|
}
|
|
76
76
|
export declare type SGisSymbol = MaskedImage | SvgPointSymbolDc | SGisPolylineSymbol | SGisPolygonSymbol | SGisImageFill | SGisBrushFill | H3Symbol;
|
|
77
|
-
export declare type SvgEditorField = Pick<SvgPointSymbol,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
export declare type SvgEditorField = Pick<SvgPointSymbol, 'size' | 'offset' | 'angle'> & {
|
|
78
|
+
'background.fillColor': string;
|
|
79
|
+
'background.strokeColor': string;
|
|
80
|
+
'background.strokeWidth': string;
|
|
81
|
+
'figure.fillColor': string;
|
|
82
82
|
};
|
|
83
83
|
export declare type MinimizedLegendProps = {
|
|
84
84
|
innerRef?: RefObject<HTMLDivElement> | undefined;
|