@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,45 +0,0 @@
1
- import { AttributeType } from '@evergis/api';
2
- import { ParameterValueWithSymbol } from '../style';
3
- export declare type LegendValueType = {
4
- title: string;
5
- parameterValue: ParameterValueWithSymbol;
6
- hiddenCondition?: string;
7
- };
8
- export declare enum FilterConditionOperation {
9
- AND = "&&",
10
- OR = "||"
11
- }
12
- export declare enum ComparisonOperator {
13
- /** `==` */
14
- Equals = "Equals",
15
- /** `!=` */
16
- NotEquals = "NotEquals",
17
- /** `>` */
18
- GreaterThan = "GreaterThan",
19
- /** `<` */
20
- LessThan = "LessThan",
21
- /** `>=` */
22
- GreaterOrEquals = "GreaterOrEquals",
23
- /** `<=` */
24
- LessOrEquals = "LessOrEquals",
25
- Filled = "Filled",
26
- Empty = "Empty",
27
- /** `==` */
28
- Contains = "Contains",
29
- /** `!=` */
30
- NotContains = "NotContains",
31
- StartsWith = "StartsWith",
32
- NotStartsWith = "NotStartsWith",
33
- EndsWith = "EndsWith",
34
- NotEndsWith = "NotEndsWith",
35
- Between = "Between",
36
- Outside = "Outside"
37
- }
38
- export interface FilterCondition<Value> {
39
- id?: string;
40
- attribute: string | null;
41
- type?: AttributeType;
42
- comparisonOperator: ComparisonOperator | null;
43
- value: Value | string[] | null;
44
- }
45
- export declare type FilterConditionType = FilterCondition<string | number>;
@@ -1,18 +0,0 @@
1
- import { StyleDc } from '@evergis/api';
2
- import { Style } from './types';
3
- import { ClassificationManager } from '../classification';
4
- export declare class EvergisStyle {
5
- classificationManager: ClassificationManager;
6
- private readonly style;
7
- constructor(style: StyleDc);
8
- serialize(): StyleDc;
9
- hasRasters(): boolean;
10
- get symbol(): import("./types").ClientSymbol<"rasterSymbol", import("@evergis/api").RasterSymbolDc, never> | import("./types").ClientSymbol<"svgPointSymbol", import("@evergis/api").SvgPointSymbolDc, never> | import("./types").ClientSymbol<"circlePointSymbol", import("@evergis/api").CirclePointSymbolDc, never> | import("./types").SquareSymbol | import("./types").ClientSymbol<"maskedImagePointSymbol", import("@evergis/api").MaskedImagePointSymbolDc, never> | import("./types").ClientSymbol<"imagePointSymbol", import("@evergis/api").ImagePointSymbolDc, never> | import("./types").PolygonSymbol<import("./types").FillBrushType, import("./types").StrokeBrushType> | import("./types").ClientSymbol<"polylineSymbol", import("@evergis/api").PolylineSymbolDc, never> | import("./types").ClientSymbol<"simplePolylineSymbol", import("@evergis/api").SimplePolylineSymbolDc, never> | import("./types").ClientSymbol<"polylineLabelSymbol", import("@evergis/api").PolylineLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("./types").ClientSymbol<"polygonLabelSymbol", import("@evergis/api").PolygonLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("./types").ClientSymbol<"labelPointSymbol", import("@evergis/api").PointLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("@evergis/api").H3GridSymbolDc | import("@evergis/api").ClusterSymbolDc;
11
- get raster(): import("./types").ClientSymbol<"rasterSymbol", import("@evergis/api").RasterSymbolDc, never> | null;
12
- get label(): import("./types").ClientSymbol<"polylineLabelSymbol", import("@evergis/api").PolylineLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("./types").ClientSymbol<"polygonLabelSymbol", import("@evergis/api").PolygonLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | import("./types").ClientSymbol<"labelPointSymbol", import("@evergis/api").PointLabelSymbolDc, "fontColor" | "fontSize" | "haloColor"> | null;
13
- get children(): Style[] | null;
14
- get title(): string | undefined;
15
- get condition(): string | undefined;
16
- get ignoreLabel(): boolean | undefined;
17
- get resolution(): Nullable<[number, number]>;
18
- }
@@ -1,7 +0,0 @@
1
- import { StyleDc } from '@evergis/api';
2
- import { CompositeSymbolType, Style, StyleSymbolType, UnknownSymbol } from './types';
3
- export declare const createCompositeSymbol: (childSymbols: StyleSymbolType[]) => CompositeSymbolType;
4
- export declare const getChildSymbols: (symbol?: UnknownSymbol) => StyleSymbolType[];
5
- export declare const extractSymbol: (symbol?: UnknownSymbol) => Pick<Style, 'symbol' | 'label' | 'raster'>;
6
- export declare const extractStyle: (style: StyleDc) => Style;
7
- export declare const packStyle: (style: Style) => StyleDc;
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './EvergisStyle';
3
- export * from './compositeSymbol';
@@ -1,27 +0,0 @@
1
- import { DashedBrushDc, HatchBrushDc, PatternBrushDc, SolidStrokeBrushDc, TextBackgroundDc } from '@evergis/api';
2
- import { ClientSymbol, Unclassify } from './utils';
3
- import { PolygonSymbol, UnknownSymbol } from './symbol';
4
- export declare type SolidBrush = ClientSymbol<'solid', SolidStrokeBrushDc>;
5
- export declare type DashedBrush = ClientSymbol<'dashed', DashedBrushDc>;
6
- export declare type HatchBrush = ClientSymbol<'hatch', HatchBrushDc>;
7
- export declare type PatternBrush = ClientSymbol<'pattern', PatternBrushDc>;
8
- export declare type StrokeBrushType = SolidBrush | DashedBrush;
9
- export declare type FillBrushType = SolidBrush | HatchBrush | PatternBrush;
10
- export declare const isHatchBrush: (symbol: {
11
- type?: string | undefined;
12
- }) => symbol is ClientSymbol<"hatch", HatchBrushDc, never>;
13
- export declare const isPatternBrush: (symbol: {
14
- type?: string | undefined;
15
- }) => symbol is ClientSymbol<"pattern", PatternBrushDc, never>;
16
- export declare const isDashedBrush: (symbol: {
17
- type?: string | undefined;
18
- }) => symbol is ClientSymbol<"dashed", DashedBrushDc, never>;
19
- export declare const isSolidBrush: (symbol: {
20
- type?: string | undefined;
21
- }) => symbol is ClientSymbol<"solid", SolidStrokeBrushDc, never>;
22
- export declare const isPolygonHasPatternBrush: (symbol: UnknownSymbol) => symbol is PolygonSymbol<ClientSymbol<"pattern", PatternBrushDc, never>, StrokeBrushType>;
23
- export declare const isPolygonHasHatchBrush: (symbol: UnknownSymbol) => symbol is PolygonSymbol<ClientSymbol<"hatch", HatchBrushDc, never>, StrokeBrushType>;
24
- export declare type TextBackgroundType = Omit<TextBackgroundDc, 'fill' | 'stroke'> & {
25
- fill: Unclassify<FillBrushType>;
26
- stroke: Unclassify<StrokeBrushType>;
27
- };
@@ -1,8 +0,0 @@
1
- export * from './brush';
2
- export * from './label';
3
- export * from './miters';
4
- export * from './offset';
5
- export * from './parameterValue';
6
- export * from './style';
7
- export * from './symbol';
8
- export * from './utils';
@@ -1,19 +0,0 @@
1
- import { PointLabelSymbolDc, PolygonLabelSymbolDc, PolylineLabelSymbolDc } from '@evergis/api';
2
- import { UnknownSymbol } from './symbol';
3
- import { ClientSymbol } from './utils';
4
- declare type NonClassifyableLabelFields = 'fontColor' | 'fontSize' | 'haloColor';
5
- export declare type PointLabelSymbol = ClientSymbol<'labelPointSymbol', PointLabelSymbolDc, NonClassifyableLabelFields>;
6
- export declare type PolygonLabelSymbol = ClientSymbol<'polygonLabelSymbol', PolygonLabelSymbolDc, NonClassifyableLabelFields>;
7
- export declare type PolylineLabelSymbol = ClientSymbol<'polylineLabelSymbol', PolylineLabelSymbolDc, NonClassifyableLabelFields>;
8
- export declare const isPointLabelSymbol: (symbol: {
9
- type?: string | undefined;
10
- }) => symbol is ClientSymbol<"labelPointSymbol", PointLabelSymbolDc, NonClassifyableLabelFields>;
11
- export declare const isPolygonLabelSymbol: (symbol: {
12
- type?: string | undefined;
13
- }) => symbol is ClientSymbol<"polygonLabelSymbol", PolygonLabelSymbolDc, NonClassifyableLabelFields>;
14
- export declare const isPolylineLabelSymbol: (symbol: {
15
- type?: string | undefined;
16
- }) => symbol is ClientSymbol<"polylineLabelSymbol", PolylineLabelSymbolDc, NonClassifyableLabelFields>;
17
- export declare const isLabelSymbol: (symbol: UnknownSymbol) => symbol is LabelType;
18
- export declare type LabelType = PolylineLabelSymbol | PolygonLabelSymbol | PointLabelSymbol;
19
- export {};
@@ -1,47 +0,0 @@
1
- import { LineEndingType } from "@evergis/api";
2
- import { ClassifyAble } from './parameterValue';
3
- export declare const enum LineMiterSize {
4
- Small = "small",
5
- Large = "large"
6
- }
7
- export declare type NoLineMiterType = {
8
- type: LineEndingType.None;
9
- };
10
- declare type LineMiterBase<T extends LineEndingType> = {
11
- type: T;
12
- color?: ClassifyAble<string>;
13
- };
14
- export declare type ArrowLineType = LineMiterBase<LineEndingType.Arrow> & {
15
- strokeWidth?: number;
16
- arrowLength?: number;
17
- arrowWidth?: number;
18
- };
19
- export declare type FilledArrowLineMiterType = LineMiterBase<LineEndingType.FilledArrow> & {
20
- arrowLength?: number;
21
- arrowWidth?: number;
22
- };
23
- export declare type SquareLineMiterType = LineMiterBase<LineEndingType.Square> & {
24
- size?: number;
25
- strokeWidth?: number;
26
- };
27
- export declare type FilledSquareLineMiterType = LineMiterBase<LineEndingType.FilledSquare> & {
28
- size?: number;
29
- };
30
- export declare type CircleLineMiterType = LineMiterBase<LineEndingType.Circle> & {
31
- size?: number;
32
- strokeWidth?: number;
33
- };
34
- export declare type FilledCircleLineMiterType = LineMiterBase<LineEndingType.FilledCircle> & {
35
- size?: number;
36
- };
37
- export declare type FilledLineMitters = FilledArrowLineMiterType | FilledSquareLineMiterType | FilledCircleLineMiterType;
38
- export declare type ArrowLineMiters = ArrowLineType | FilledArrowLineMiterType;
39
- export declare type SquareLineMiters = SquareLineMiterType | FilledSquareLineMiterType;
40
- export declare type CircleLineMiters = CircleLineMiterType | FilledCircleLineMiterType;
41
- export declare type LineMiterType = NoLineMiterType | ArrowLineMiters | SquareLineMiters | CircleLineMiters;
42
- export declare const isMiterExist: (miter?: undefined | LineMiterType) => miter is FilledArrowLineMiterType | FilledSquareLineMiterType | FilledCircleLineMiterType | ArrowLineType | SquareLineMiterType | CircleLineMiterType;
43
- export declare const isFilledLineMitter: (miter: LineMiterType) => miter is FilledLineMitters;
44
- export declare const isArrowLineMiter: (miter: LineMiterType) => miter is ArrowLineMiters;
45
- export declare const isSquareLineMiter: (miter: LineMiterType) => miter is SquareLineMiters;
46
- export declare const isCircleLineMiter: (miter: LineMiterType) => miter is CircleLineMiters;
47
- export {};
@@ -1,7 +0,0 @@
1
- import { PointSymbolType, UnknownSymbol } from './symbol';
2
- import { ParameterByAttribute } from './parameterValue';
3
- export declare type SimpleOffset = [number, number];
4
- export declare type ClassifiedOffset = [ParameterByAttribute<number>, ParameterByAttribute<number>];
5
- export declare type Offset = SimpleOffset | ClassifiedOffset;
6
- export declare const isSimpleOffset: (offset: Offset) => offset is SimpleOffset;
7
- export declare const isSymbolWithOffset: (symbol: UnknownSymbol) => symbol is PointSymbolType;
@@ -1,29 +0,0 @@
1
- import { StyleSymbolType } from './symbol';
2
- export declare type ParameterByAttributeValue<Value> = {
3
- condition: string;
4
- value: Value;
5
- title: string | null;
6
- };
7
- export declare type ParameterByAttribute<Value> = {
8
- type: 'byAttribute';
9
- defaultValue: Value;
10
- title: string | null;
11
- values: ParameterByAttributeValue<Value>[];
12
- };
13
- export declare type CalculatedParameter<Value> = {
14
- type: 'calculated';
15
- expression: string;
16
- defaultValue: Value;
17
- title?: string | null;
18
- };
19
- export declare type ClassifyAble<Value> = Value | ParameterByAttribute<Value>;
20
- export declare type CalculatedAble<Value> = Value | CalculatedParameter<Value>;
21
- export declare type ParameterValue = string | number | number[] | Date;
22
- export declare type ParameterValueWithSymbol = ParameterValue | StyleSymbolType;
23
- export declare type ParameterByAttributeValues = ParameterByAttributeValue<ParameterValueWithSymbol>[];
24
- export declare type ClassifiedParameterValue = ClassifyAble<ParameterValueWithSymbol>;
25
- export declare type UnidentifiedParameterValue = ParameterValueWithSymbol | Partial<ClassifyAble<ParameterValueWithSymbol>> | Partial<CalculatedAble<ParameterValue>>;
26
- export declare type CalculatedParameterValue = CalculatedAble<ParameterValue>;
27
- export declare const isStringParameterValue: (parameterValue: ParameterValueWithSymbol) => parameterValue is string;
28
- export declare const isParameterValueSimple: (parameterValue: ParameterValueWithSymbol) => parameterValue is ParameterValue;
29
- export declare const isParameterValueSymbol: (parameterValue: ParameterValueWithSymbol) => parameterValue is StyleSymbolType;
@@ -1,11 +0,0 @@
1
- import { StyleDc } from '@evergis/api';
2
- import { LabelType } from './label';
3
- import { CompositeSymbolType, RasterSymbol, StyleSymbolType } from './symbol';
4
- export declare type Style = Omit<StyleDc, 'symbol' | 'children'> & {
5
- symbol: Exclude<StyleSymbolType, CompositeSymbolType>;
6
- ignoreLabel?: boolean;
7
- label: LabelType | null;
8
- raster: RasterSymbol | null;
9
- children: Style[] | null;
10
- };
11
- export declare const isStyle: (value: object) => value is Style;
@@ -1,78 +0,0 @@
1
- import { CirclePointSymbolDc, ClusterSymbolDc, CombinedPolylineSymbolDc, CompositeSymbolDc, H3GridSymbolDc, ImagePointSymbolDc, MaskedImagePointSymbolDc, PolygonSymbolDc, RasterSymbolDc, SimplePolylineSymbolDc, SquarePointSymbolDc, StyleDc, SvgPointSymbolDc } from '@evergis/api';
2
- import { LabelType } from './label';
3
- import { CalculatedAble } from './parameterValue';
4
- import { ClientSymbol } from './utils';
5
- import { FillBrushType, StrokeBrushType } from './brush';
6
- import { ClassificationParameterExtended } from "../../classification";
7
- export declare type PointSymbol = ClientSymbol<'circlePointSymbol', CirclePointSymbolDc>;
8
- export declare type SvgPointSymbol = ClientSymbol<'svgPointSymbol', SvgPointSymbolDc>;
9
- export declare type SquareSymbol = ClientSymbol<'squarePointSymbol', SquarePointSymbolDc> & {
10
- angle?: CalculatedAble<number>;
11
- };
12
- export declare type MaskedImageSymbol = ClientSymbol<'maskedImagePointSymbol', MaskedImagePointSymbolDc>;
13
- export declare type StaticImageSymbol = ClientSymbol<'imagePointSymbol', ImagePointSymbolDc>;
14
- export declare type PolygonSymbol<Fill = FillBrushType, Stroke = StrokeBrushType> = ClientSymbol<'polygonSymbol', PolygonSymbolDc> & {
15
- fill: Fill;
16
- stroke: Stroke;
17
- };
18
- export declare type SimplePolylineSymbol = ClientSymbol<'simplePolylineSymbol', SimplePolylineSymbolDc>;
19
- export declare type CombinedPolylineSymbol = ClientSymbol<'combinedPolylineSymbol', CombinedPolylineSymbolDc>;
20
- export declare type RasterSymbol = ClientSymbol<'rasterSymbol', RasterSymbolDc>;
21
- export declare type ClusterSymbolType = ClientSymbol<"cluster", ClusterSymbolDc>;
22
- export declare type CompositeSymbolType = ClientSymbol<'compositeSymbol', CompositeSymbolDc>;
23
- export declare type H3GridSymbol = ClientSymbol<'h3grid', H3GridSymbolDc>;
24
- export declare type SimpleShapeSymbol = PointSymbol | SquareSymbol;
25
- export declare type ImageSymbol = MaskedImageSymbol | StaticImageSymbol;
26
- export declare type PointSymbolType = SvgPointSymbol | PointSymbol | SquareSymbol | MaskedImageSymbol | StaticImageSymbol;
27
- export declare type PolylineSymbols = CombinedPolylineSymbol | SimplePolylineSymbol;
28
- export declare type StyleSymbolType = PointSymbolType | PolygonSymbol | PolylineSymbols | LabelType | RasterSymbol | CompositeSymbolType | H3GridSymbolDc | ClusterSymbolDc;
29
- export declare type StyleSymbolTypes = StyleSymbolType['type'];
30
- export declare type UnknownSymbol = StyleDc['symbol'] | StyleSymbolType;
31
- export declare type LayerSymbol = PointSymbol | PolylineSymbols | PolygonSymbol;
32
- export declare type FillStyledSymbols = PolygonSymbol;
33
- export declare type StrokeStyledSymbols = PolygonSymbol | SimplePolylineSymbol;
34
- export declare const isPointSymbol: (symbol: {
35
- type?: string | undefined;
36
- }) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never>;
37
- export declare const isSquareSymbol: (symbol: {
38
- type?: string | undefined;
39
- }) => symbol is SquareSymbol;
40
- export declare const isMaskedImageSymbol: (symbol: {
41
- type?: string | undefined;
42
- }) => symbol is ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never>;
43
- export declare const isStaticImageSymbol: (symbol: {
44
- type?: string | undefined;
45
- }) => symbol is ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never>;
46
- export declare const isCombinedPolylineSymbol: (symbol: {
47
- type?: string | undefined;
48
- }) => symbol is CombinedPolylineSymbolDc;
49
- export declare const isPolygonSymbol: (symbol: {
50
- type?: string | undefined;
51
- }) => symbol is PolygonSymbol<FillBrushType, StrokeBrushType>;
52
- export declare const isSimplePolylineSymbol: (symbol: {
53
- type?: string | undefined;
54
- }) => symbol is ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never>;
55
- export declare const isPolylineSymbols: (symbol: UnknownSymbol) => symbol is PolylineSymbols;
56
- export declare const isCompositeSymbol: (symbol: {
57
- type?: string | undefined;
58
- }) => symbol is ClientSymbol<"compositeSymbol", CompositeSymbolDc, never>;
59
- export declare const isRasterSymbol: (symbol: {
60
- type?: string | undefined;
61
- }) => symbol is ClientSymbol<"rasterSymbol", RasterSymbolDc, never>;
62
- export declare const isImageSymbol: (symbol: UnknownSymbol) => symbol is ImageSymbol;
63
- export declare const isTwoDimensionalSymbol: (symbol: UnknownSymbol) => symbol is ImageSymbol;
64
- export declare const isSizableSymbol: (symbol: UnknownSymbol) => symbol is SimpleShapeSymbol;
65
- export declare const isStrokeStyledSymbol: (symbol: UnknownSymbol) => symbol is StrokeStyledSymbols;
66
- export declare const isScalablePolylineSymbol: (symbol: SimplePolylineSymbol) => boolean | undefined;
67
- export declare const isSimpleSymbol: (symbol: UnknownSymbol) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never> | ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never> | ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never> | ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never> | ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | ClientSymbol<"combinedPolylineSymbol", CombinedPolylineSymbolDc, never> | ClientSymbol<"rasterSymbol", RasterSymbolDc, never> | ClusterSymbolDc | H3GridSymbolDc | SquareSymbol | PolygonSymbol<FillBrushType, StrokeBrushType>;
68
- export declare const isH3GridSymbol: (symbol: {
69
- type?: string | undefined;
70
- }) => symbol is H3GridSymbolDc;
71
- export declare const isSvgPointSymbol: (symbol: {
72
- type?: string | undefined;
73
- }) => symbol is ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never>;
74
- export declare const isClusterSymbol: (symbol: {
75
- type?: string | undefined;
76
- }) => symbol is ClientSymbol<"cluster", ClusterSymbolDc, never>;
77
- export declare const isClusterFillColor: (symbol: StyleSymbolType, parameter: ClassificationParameterExtended) => boolean;
78
- export declare const getExtractedSymbol: (symbol: StyleSymbolType, extractCluster?: boolean) => StyleSymbolType;
@@ -1,32 +0,0 @@
1
- import { LineEndingType, ParameterDcColor, ParameterDcDouble } from '@evergis/api';
2
- import { CalculatedAble, ClassifyAble } from './parameterValue';
3
- import { Offset } from './offset';
4
- import { LineMiterSize } from './miters';
5
- import { StyleSymbolType } from './symbol';
6
- import { FillBrushType, StrokeBrushType, TextBackgroundType } from './brush';
7
- declare type ToClientSymbolField<F, IsClassifyable extends boolean> = F extends ParameterDcDouble ? IsClassifyable extends true ? ClassifyAble<number> : number : F extends ParameterDcColor ? IsClassifyable extends true ? ClassifyAble<string> : string : F;
8
- declare type ExtraClientSymbolFields = {
9
- offset: Offset;
10
- fontWeight: number;
11
- childSymbols: StyleSymbolType[];
12
- stroke: StrokeBrushType;
13
- fill: FillBrushType;
14
- textBackground: TextBackgroundType;
15
- beginning: null | LineEndingType;
16
- beginningSize: LineMiterSize;
17
- ending: null | LineEndingType;
18
- endingSize: LineMiterSize;
19
- angle: CalculatedAble<number>;
20
- };
21
- export declare type ClientSymbol<SymbolType, SymbolDcType, NonClassifiedFields extends keyof SymbolDcType = never> = {
22
- [K in keyof SymbolDcType]: K extends 'type' ? SymbolType : K extends keyof ExtraClientSymbolFields ? ExtraClientSymbolFields[K] : ToClientSymbolField<SymbolDcType[K], K extends NonClassifiedFields ? false : true>;
23
- };
24
- export declare const symbolTypeGuard: <ClientSymbol_1 extends {
25
- type?: string | undefined;
26
- }>(type: ClientSymbol_1["type"]) => (symbol: {
27
- type?: string | undefined;
28
- }) => symbol is ClientSymbol_1;
29
- export declare type Unclassify<T> = {
30
- [K in keyof T]: T[K] extends ClassifyAble<infer V> ? V : T[K] extends CalculatedAble<infer V2> ? V2 : T[K];
31
- };
32
- export {};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Canvas } from '@evergis/sgis/es/painters/DomPainter/Canvas';
3
- export declare function useCanvas(): {
4
- canvas: import("react").MutableRefObject<Canvas | null>;
5
- ref: (node: HTMLCanvasElement | null) => void;
6
- };
@@ -1,11 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- import { Canvas } from '@evergis/sgis/es/painters/DomPainter/Canvas';
3
- import { Render } from '@evergis/sgis/es/renders/Render';
4
- import { SGisSymbolType } from '../symbols';
5
- export interface UseSymbolParams {
6
- symbol: SGisSymbolType;
7
- render?: (symbol: SGisSymbolType, size: number) => Promise<Render[]>;
8
- size?: number;
9
- maxWidth?: number;
10
- }
11
- export declare function useSymbol({ symbol, size, render, maxWidth, }: UseSymbolParams, canvasRef: MutableRefObject<Canvas | null>): void;
@@ -1,8 +0,0 @@
1
- import { BrushFill as sBrushFill } from '@evergis/sgis/es/symbols/polygon/BrushFill';
2
- import { HatchBrush, PolygonSymbol } from '../../core/style';
3
- export declare class SGisBrushFill extends sBrushFill {
4
- originalSymbol: PolygonSymbol<HatchBrush>;
5
- constructor(originalSymbol: PolygonSymbol<HatchBrush>);
6
- _updateBrush(): void;
7
- clone(): SGisBrushFill;
8
- }
@@ -1,7 +0,0 @@
1
- import { ImageFill as sImageFill } from '@evergis/sgis/es/symbols/polygon/ImageFill';
2
- import { PatternBrush, PolygonSymbol } from '../../core/style';
3
- export declare class SGisImageFill extends sImageFill {
4
- originalSymbol: PolygonSymbol<PatternBrush>;
5
- constructor(originalSymbol: PolygonSymbol<PatternBrush>);
6
- clone(): SGisImageFill;
7
- }
@@ -1,7 +0,0 @@
1
- import { PolygonSymbol as sPolygonSymbol } from '@evergis/sgis/es/symbols/polygon/Simple';
2
- import { PolygonSymbol } from '../../core/style/types';
3
- export declare class SGisPolygonSymbol extends sPolygonSymbol {
4
- originalSymbol: PolygonSymbol;
5
- constructor(originalSymbol: PolygonSymbol);
6
- clone(): SGisPolygonSymbol;
7
- }
@@ -1,13 +0,0 @@
1
- import { PolylineSymbol as sPolylineSymbol } from '@evergis/sgis/es/symbols/PolylineSymbol';
2
- import { Crs } from '@evergis/sgis/es/Crs';
3
- import { Polyline } from '@evergis/sgis/es/features/Polyline';
4
- import { Render } from '@evergis/sgis/es/renders/Render';
5
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
6
- import { SimplePolylineSymbol } from '../../core/style';
7
- export declare const copyRings: (rings: Coordinates[][]) => Coordinates[][];
8
- export declare class SGisPolylineSymbol extends sPolylineSymbol {
9
- originalSymbol: SimplePolylineSymbol;
10
- constructor(originalSymbol: SimplePolylineSymbol);
11
- renderFunction(feature: Polyline, resolution: number, crs: Crs): Render[];
12
- clone(): SGisPolylineSymbol;
13
- }
@@ -1,4 +0,0 @@
1
- export * from './SGisBrushFill';
2
- export * from './SGisImageFill';
3
- export * from './SGisPolygonSymbol';
4
- export * from './SGisPolylineSymbol';
@@ -1,8 +0,0 @@
1
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
2
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
3
- import { LineMiterRender } from './LineMiterRender';
4
- export declare class ArrowLineMiterRender extends LineMiterRender {
5
- get usageSize(): number;
6
- createRings([x, y]: Coordinates, xMultiplier: number): Coordinates[][];
7
- createRender(miterRings: Coordinates[][]): PolyRender;
8
- }
@@ -1,8 +0,0 @@
1
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
2
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
3
- import { LineMiterRender } from './LineMiterRender';
4
- export declare class CircleLineMiterRender extends LineMiterRender {
5
- get usageSize(): number;
6
- createRings([x, y]: Coordinates, xMultiplier: number): Coordinates[][];
7
- createRender(miterRings: Coordinates[][]): PolyRender;
8
- }
@@ -1,27 +0,0 @@
1
- import { LineEndingType } from "@evergis/api";
2
- import { Crs } from '@evergis/sgis/es/Crs';
3
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
4
- import { Render } from '@evergis/sgis/es/renders/Render';
5
- import { LineMiterSize } from '../../core/style/types';
6
- export declare type MiterPosition = 'left' | 'right';
7
- export interface LineMiterRenderBaseInfo {
8
- position: MiterPosition;
9
- color: string;
10
- strokeWidth: number;
11
- kind: LineEndingType;
12
- size: LineMiterSize;
13
- }
14
- export declare abstract class LineMiterRender implements LineMiterRenderBaseInfo {
15
- position: MiterPosition;
16
- color: string;
17
- strokeWidth: number;
18
- kind: LineEndingType;
19
- size: LineMiterSize;
20
- constructor(baseInfo: LineMiterRenderBaseInfo);
21
- getAnchor: (rings: Coordinates[][]) => Coordinates;
22
- getRender(anchorRings: Coordinates[][], anchorCrs: Crs, resolution: number, currentCrs: Crs): Render;
23
- get miterSize(): number;
24
- abstract get usageSize(): number;
25
- abstract createRings(anchor: Coordinates, xMultiplier: number): Coordinates[][];
26
- abstract createRender(rings: Coordinates[][]): Render;
27
- }
@@ -1,8 +0,0 @@
1
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
2
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
3
- import { LineMiterRender } from './LineMiterRender';
4
- export declare class SquareLineMiterRender extends LineMiterRender {
5
- get usageSize(): number;
6
- createRings([x, y]: Coordinates, xMultiplier: number): Coordinates[][];
7
- createRender(miterRings: Coordinates[][]): PolyRender;
8
- }
@@ -1,2 +0,0 @@
1
- import { LineMiterRenderBaseInfo, LineMiterRender } from './LineMiterRender';
2
- export declare const getLineMiterRender: (options: LineMiterRenderBaseInfo) => LineMiterRender | null;
@@ -1,4 +0,0 @@
1
- export * from './ArrowLineMiterRender';
2
- export * from './CircleLineMiterRender';
3
- export * from './LineMiterRender';
4
- export * from './SquareLineMiterRender';
@@ -1,7 +0,0 @@
1
- import { LineEndingType } from "@evergis/api";
2
- import { LineMiterSize } from '../../core/style/types';
3
- export declare type LineMiterStyle = {
4
- size: LineMiterSize;
5
- type: LineEndingType;
6
- };
7
- export declare const lineMiterStyles: LineMiterStyle[];
@@ -1,3 +0,0 @@
1
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
2
- import { MiterPosition } from './LineMiterRender';
3
- export declare const updateRingsForMiter: (rings: Coordinates[][], position: MiterPosition, miterSize: number) => Coordinates[][];
@@ -1,25 +0,0 @@
1
- import { Symbol } from '@evergis/sgis/es/symbols/Symbol';
2
- import { Render } from '@evergis/sgis/es/renders/Render';
3
- import { Bbox } from '@evergis/sgis/es/Bbox';
4
- import { Crs } from '@evergis/sgis/es/Crs';
5
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
6
- import { SVGPolyProps, SVGFeaturePoly, SvgPolyPathStyles } from './types';
7
- export declare class SVGPoly extends Symbol<SVGFeaturePoly> {
8
- container: HTMLDivElement;
9
- redrawFeatureNode: SVGPolyProps['redrawFeatureNode'];
10
- pathStyles?: SvgPolyPathStyles;
11
- circle?: SVGPolyProps['circle'];
12
- className?: string;
13
- appendToSvg?: SVGPolyProps['appendToSvg'];
14
- constructor({ redrawFeatureNode, pathStyles, circle, className, appendToSvg, }?: SVGPolyProps);
15
- renderFunction(feature: SVGFeaturePoly, resolution: number, crs: Crs): Render[];
16
- setCirclePxRaius(crs: Crs): void;
17
- update({ bbox, resolution, feature, crs, }: {
18
- bbox?: Bbox;
19
- resolution?: number;
20
- feature: SVGFeaturePoly;
21
- crs: Crs;
22
- }): void;
23
- setSvg(coordinates: [number, number][][] | Coordinates): SVGElement | undefined;
24
- private _setEventListeners;
25
- }
@@ -1,37 +0,0 @@
1
- import { Polygon } from '@evergis/sgis/es/features/Polygon';
2
- import { Polyline } from '@evergis/sgis/es/features/Polyline';
3
- import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
4
- import { FillStyle } from '@evergis/sgis/es/renders/Poly';
5
- import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
6
- import { DynamicSymbolFeature } from '@evergis/sgis/es/symbols/DynamicSymbolFeature';
7
- export declare type SVGFeaturePoly = (Polygon | Polyline | PointFeature) & DynamicSymbolFeature;
8
- export declare type SvgPolyPathStyles = {
9
- strokeColor?: string;
10
- strokeWidth?: number;
11
- fillColor?: string;
12
- fillStyle?: FillStyle;
13
- lineDash?: number[];
14
- fillImage?: {
15
- src: string;
16
- width: number | string;
17
- height: number | string;
18
- };
19
- enclosed?: boolean;
20
- lineCap?: 'butt' | 'round' | 'square';
21
- lineJoin?: 'bevel' | 'miter' | 'round';
22
- miterLimit?: number;
23
- center?: [number, number];
24
- radius?: number;
25
- dashOffset?: number;
26
- };
27
- export declare type SVGPolyProps = {
28
- redrawFeatureNode?: (feature: SVGFeaturePoly) => void;
29
- pathStyles?: SvgPolyPathStyles;
30
- circle?: {
31
- radius: number;
32
- painter: DomPainter;
33
- pxOffset?: number;
34
- };
35
- className?: string;
36
- appendToSvg?: (svg: SVGElement, svgElement: SVGPathElement | SVGCircleElement) => void;
37
- };
@@ -1,19 +0,0 @@
1
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
2
- import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
3
- import { EditorPointSymbolParams, ShadowedPointSymbol } from '../Shadowed';
4
- import { Arc } from '@evergis/sgis/es/renders/Arc';
5
- declare type SelectedFeature = PointFeature & {
6
- isSelected: boolean;
7
- };
8
- export declare type SelectedPointSymbolParams = {
9
- selectedStrokeColor: string;
10
- selectedFillColor: string;
11
- } & EditorPointSymbolParams;
12
- export declare class SelectedPointSymbol extends ShadowedPointSymbol {
13
- selectedStrokeColor: string;
14
- selectedFillColor: string;
15
- constructor(props: SelectedPointSymbolParams);
16
- protected getShadow(position: [number, number], feature: SelectedFeature, mapCoordinates: Coordinates): Arc | void;
17
- protected getPoint(position: [number, number], feature: SelectedFeature, mapCoordinates: Coordinates): Arc;
18
- }
19
- export {};
@@ -1,21 +0,0 @@
1
- import { PolyRender } from '@evergis/sgis/es/renders/Poly';
2
- import { Coordinates } from '@evergis/sgis/es/baseTypes';
3
- import { Polygon } from '@evergis/sgis/es/features/Polygon';
4
- import { EditorPolySymbolParams, ShadowedPolySymbol } from '../Shadowed';
5
- declare type SelectedFeature = Polygon & {
6
- isSelected: boolean;
7
- };
8
- export declare type SelectedPolySymbolParams = {
9
- selectedFillColor?: string;
10
- selectedStrokeColor: string;
11
- selectedStrokeWidth?: number;
12
- } & EditorPolySymbolParams;
13
- export declare class SelectedPolySymbol extends ShadowedPolySymbol {
14
- selectedFillColor: string;
15
- selectedStrokeColor: string;
16
- selectedStrokeWidth: number;
17
- constructor(props: SelectedPolySymbolParams);
18
- protected getShadow(coordinates: Coordinates[][], feature: SelectedFeature, mapCoordinates: Coordinates[][]): PolyRender | void;
19
- protected getPolyRender(coordinates: Coordinates[][], feature: SelectedFeature, mapCoordinates: Coordinates[][]): PolyRender;
20
- }
21
- export {};
@@ -1,3 +0,0 @@
1
- export * from './SelectedPointSymbol';
2
- export * from './SelectedPolySymbol';
3
- export * from './selectedSymbols';
@@ -1,5 +0,0 @@
1
- import { SelectedPolySymbol } from './SelectedPolySymbol';
2
- import { SelectedPointSymbol } from './SelectedPointSymbol';
3
- export declare const selectedPoint: SelectedPointSymbol;
4
- export declare const selectedPolyline: SelectedPolySymbol;
5
- export declare const selectedPolygon: SelectedPolySymbol;