@evergis/react 2.0.264 → 2.0.265
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/LICENSE +20 -20
- package/README.md +31 -31
- package/dist/components/Legend/styled.d.ts +0 -1
- package/dist/components/index.d.ts +0 -10
- package/dist/contexts/index.d.ts +0 -4
- package/dist/core/attributes/types.d.ts +0 -1
- package/dist/core/attributes/utils.d.ts +2 -68
- package/dist/core/feature/index.d.ts +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/legend/types.d.ts +2 -27
- package/dist/hooks/index.d.ts +2 -28
- package/dist/index.d.ts +0 -1
- package/dist/react.cjs.development.js +2875 -5505
- 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 +2892 -5424
- package/dist/react.esm.js.map +1 -1
- package/dist/symbols/index.d.ts +0 -1
- package/dist/utils/legend.d.ts +1 -4
- package/package.json +5 -5
- package/dist/components/DraggableMarker/DraggableMarker.d.ts +0 -3
- package/dist/components/DraggableMarker/index.d.ts +0 -2
- package/dist/components/DraggableMarker/types.d.ts +0 -8
- package/dist/components/EvergisCard/AttributeValue.d.ts +0 -3
- package/dist/components/EvergisCard/EvergisCard.d.ts +0 -16
- package/dist/components/EvergisCard/EvergisCardAttribute.d.ts +0 -7
- package/dist/components/EvergisCard/MailValue.d.ts +0 -5
- package/dist/components/EvergisCard/PhoneValue.d.ts +0 -5
- package/dist/components/EvergisCard/StyledCard.d.ts +0 -4
- package/dist/components/EvergisCard/UrlValue.d.ts +0 -5
- package/dist/components/EvergisCard/index.d.ts +0 -3
- package/dist/components/EvergisCard/styled.d.ts +0 -16
- package/dist/components/EvergisSelect/EvergisSelect.d.ts +0 -3
- package/dist/components/EvergisSelect/index.d.ts +0 -1
- package/dist/components/EvergisSelect/types.d.ts +0 -11
- package/dist/components/Layers/ClusterLayer.d.ts +0 -3
- package/dist/components/Layers/EvergisDynamicLayer.d.ts +0 -3
- package/dist/components/Layers/EvergisSelectLayer.d.ts +0 -9
- package/dist/components/Layers/EvergisTileLayer.d.ts +0 -3
- package/dist/components/Layers/FeatureLayer.d.ts +0 -3
- package/dist/components/Layers/TileLayer.d.ts +0 -3
- package/dist/components/Layers/index.d.ts +0 -6
- package/dist/components/Layers/useSGisFeatures.d.ts +0 -3
- package/dist/components/Map/Map.d.ts +0 -13
- package/dist/components/Map/index.d.ts +0 -1
- package/dist/components/MapControls/Fullscreen.d.ts +0 -1
- package/dist/components/MapControls/Measure.d.ts +0 -1
- package/dist/components/MapControls/Search.d.ts +0 -1
- package/dist/components/MapControls/index.d.ts +0 -4
- package/dist/components/MapControls/styled.d.ts +0 -16
- package/dist/components/Measurer/MeasureTool.d.ts +0 -32
- package/dist/components/Measurer/Measurer.d.ts +0 -16
- package/dist/components/Measurer/index.d.ts +0 -2
- package/dist/components/Noop/index.d.ts +0 -2
- package/dist/components/ScaleControl/ScaleRuler.d.ts +0 -2
- package/dist/components/ScaleControl/Zoom.d.ts +0 -4
- package/dist/components/ScaleControl/ZoomLevel.d.ts +0 -2
- package/dist/components/ScaleControl/index.d.ts +0 -4
- package/dist/components/ScaleControl/styled.d.ts +0 -13
- package/dist/components/SearchInput/SearchInput.d.ts +0 -6
- package/dist/components/SearchInput/styled.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/Tooltip/styled.d.ts +0 -4
- package/dist/components/Tooltip/types.d.ts +0 -24
- package/dist/contexts/EvergisContext.d.ts +0 -8
- package/dist/contexts/EvergisSelectContext.d.ts +0 -8
- package/dist/contexts/MapContext.d.ts +0 -14
- package/dist/contexts/TooltipContext.d.ts +0 -14
- package/dist/controls/BaseMeasureToolCreator.d.ts +0 -41
- package/dist/controls/BaseMeasureToolEditor.d.ts +0 -23
- package/dist/controls/MeasureToolFormatters.d.ts +0 -6
- package/dist/controls/index.d.ts +0 -2
- package/dist/core/crs/index.d.ts +0 -16
- package/dist/core/feature/EvergisFeature.d.ts +0 -22
- package/dist/core/layer/EvergisLayer.d.ts +0 -12
- package/dist/core/layer/index.d.ts +0 -2
- package/dist/core/layer/types.d.ts +0 -2
- package/dist/core/measurer.d.ts +0 -4
- package/dist/core/scale.d.ts +0 -1
- package/dist/hooks/LayerProps.d.ts +0 -5
- package/dist/hooks/useClusterLayer.d.ts +0 -13
- package/dist/hooks/useCrs.d.ts +0 -2
- package/dist/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/hooks/useDraggableMarker.d.ts +0 -2
- package/dist/hooks/useEventPoint.d.ts +0 -3
- package/dist/hooks/useEvergisCard.d.ts +0 -9
- package/dist/hooks/useEvergisDynamicLayer.d.ts +0 -6
- package/dist/hooks/useEvergisSelect.d.ts +0 -5
- package/dist/hooks/useEvergisTileLayer.d.ts +0 -6
- package/dist/hooks/useFeatureLayer.d.ts +0 -7
- package/dist/hooks/useLayerOpacity.d.ts +0 -2
- package/dist/hooks/useLayerOrder.d.ts +0 -2
- package/dist/hooks/useLayerVisibility.d.ts +0 -2
- package/dist/hooks/useMapBboxChange.d.ts +0 -8
- package/dist/hooks/useMapPick.d.ts +0 -14
- package/dist/hooks/useMapResize.d.ts +0 -1
- package/dist/hooks/useMapState.d.ts +0 -2
- package/dist/hooks/useMapView.d.ts +0 -9
- package/dist/hooks/useMapViewActions.d.ts +0 -21
- package/dist/hooks/useMapWrapper.d.ts +0 -2
- package/dist/hooks/useMaxMinScale.d.ts +0 -3
- package/dist/hooks/useMetersToPixels.d.ts +0 -3
- package/dist/hooks/usePagination.d.ts +0 -7
- package/dist/hooks/useProperty.d.ts +0 -11
- package/dist/hooks/useScale.d.ts +0 -7
- package/dist/hooks/useTileLayer.d.ts +0 -6
- package/dist/hooks/useTooltip.d.ts +0 -17
- package/dist/hooks/useUpdate.d.ts +0 -7
- package/dist/hooks/useUpdateMapView.d.ts +0 -4
- package/dist/hooks/useZoomToFeature.d.ts +0 -2
- package/dist/symbols/Label/LabelSymbol.d.ts +0 -19
- package/dist/symbols/Label/createLabelSymbol.d.ts +0 -11
- package/dist/symbols/Label/index.d.ts +0 -2
- package/dist/ui/mixins/placementMixin.d.ts +0 -3
package/dist/symbols/index.d.ts
CHANGED
package/dist/utils/legend.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AttributeType, FeatureLayerServiceInfoDc, ServiceInfoDc, SimplePolylineSymbolDc, StyleDc } from '@evergis/api';
|
|
2
2
|
import { ClassifyParameter, LegendProps, LegendSectionItem, ParameterInfo } from '../components';
|
|
3
3
|
import { ClassificationClass, ClassificationCondition, ClassificationParameter, ClassificationParameterExtended, ClassifyAble, ImageSymbol, LabelType, LayerAttribute, LegendValueType, MaskedImageSymbol, ParameterByAttribute, ParameterByAttributeValue, ParameterValue, ParameterValueWithSymbol, PointSymbolType, PolygonSymbol, PolylineSymbol, RangeClass, SquareSymbol, StyleSymbolType, SvgPointSymbol, UniqueClass } from '../core';
|
|
4
4
|
export declare const isLayerService: (value?: unknown) => value is import("@evergis/api").ResourceInfoDc | ServiceInfoDc;
|
|
@@ -78,8 +78,5 @@ export declare const getServiceConfiguration: (layer?: ServiceInfoDc | undefined
|
|
|
78
78
|
export declare const GEOMETRY_ATTRIBUTE = "geometry";
|
|
79
79
|
/** default attribute name which contains unique id info */
|
|
80
80
|
export declare const DEFAULT_ID_ATTRIBUTE_NAME = "gid";
|
|
81
|
-
export declare const getAttributesConfiguration: (layer: ServiceInfoDc) => AttributesConfigurationDc;
|
|
82
|
-
export declare const getLayerDefinition: (layer?: FeatureLayerServiceInfoDc | undefined) => LayerDefinitionDc;
|
|
83
|
-
export declare function getAttributeType(layer: FeatureLayerServiceInfoDc, attributeName: string): AttributeType;
|
|
84
81
|
export declare const getClassificationValue: (parameterValue: ParameterValueWithSymbol, title: string, condition: ClassificationCondition) => ClassificationClass;
|
|
85
82
|
export {};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.265",
|
|
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": "^3.0.
|
|
47
|
+
"@evergis/api": "^3.0.215",
|
|
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,12 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@evergis/color": "^1.0.0-alpha.1",
|
|
79
|
-
"@evergis/condition": "^1.2.
|
|
80
|
-
"@evergis/icons": "^1.0.
|
|
79
|
+
"@evergis/condition": "^1.2.116",
|
|
80
|
+
"@evergis/icons": "^1.0.143",
|
|
81
81
|
"@svgdotjs/svg.js": "^3.1.2",
|
|
82
82
|
"lodash": "^4.17.21",
|
|
83
83
|
"punycode": "^2.1.1",
|
|
84
84
|
"styled-components": "^5.3.5"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "f71807a4cab41dbd7b5f6d5a6047a69029ec540e"
|
|
87
87
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Symbol } from '@evergis/sgis/es/symbols/Symbol';
|
|
2
|
-
import { Coordinates } from '@evergis/sgis/es/baseTypes';
|
|
3
|
-
import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
|
|
4
|
-
export declare type DraggableMarkerProps = {
|
|
5
|
-
position: Coordinates | null;
|
|
6
|
-
onChange: (position: Coordinates) => void;
|
|
7
|
-
symbol?: Symbol<PointFeature>;
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { UseEvergisCard } from '../../hooks/useEvergisCard';
|
|
3
|
-
import { EvergisFeature, FeatureAttribute } from '../../core';
|
|
4
|
-
export declare type EvergisCardProps = {
|
|
5
|
-
features?: EvergisFeature[];
|
|
6
|
-
reset?: VoidFunction;
|
|
7
|
-
children?: (current: number) => React.ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
renderCard?: (cardProps: Omit<EvergisCardProps, 'className' | 'renderCard' | 'children'> & UseEvergisCard) => ReactElement;
|
|
10
|
-
onAttributes?: (attributes: FeatureAttribute[]) => FeatureAttribute[];
|
|
11
|
-
onStatistics?: (feature: EvergisFeature) => void;
|
|
12
|
-
onFeatureChange?: (current: number) => void;
|
|
13
|
-
headerExtra?: ReactNode;
|
|
14
|
-
hideZoom?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const EvergisCard: React.FC<EvergisCardProps>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './EvergisCard';
|
|
2
|
-
export { EvergisCardContainer, CardHeader, CardAttributes, AttributeValueContainer as EvergisCardAttributeValueContainer, AttributeTitle as EvergisCardAttributeTitle, ValueLink as EvergisCardValueLink, SimpleAttribute as EvergisCardSimpleValue, CardPagination as EvergisCardPagination, StickyHeader as EvergisCardStickyHeader, CardTitle as EvergisCardCardTitle, FeatureName as EvergisCardFeatureName, LayerName as EvergisCardLayerName, CardControls as EvergisCardCardControls, PaginationDescription as EvergisCardPaginationDescription, CurrentFeatureIndex as EvergisCardCurrentFeatureIndex, AttributeContainer as EvergisCardAttributeContainer, } from './styled';
|
|
3
|
-
export * from './EvergisCardAttribute';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const EvergisCardContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const StickyHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const CardHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const CardTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const CardControls: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const FeatureName: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const LayerName: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const CardPagination: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const PaginationDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const CurrentFeatureIndex: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const CardAttributes: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const AttributeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const AttributeTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const AttributeValueContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const SimpleAttribute: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
-
export declare const ValueLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EvergisSelect';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MapPickResult } from '../../hooks';
|
|
2
|
-
import { EvergisFeature, FeatureAttribute } from '../../core';
|
|
3
|
-
import { EvergisCardProps } from '../EvergisCard';
|
|
4
|
-
export declare type EvergisSelectProps = {
|
|
5
|
-
onPick: (mapPickResult: MapPickResult) => Promise<EvergisFeature[]>;
|
|
6
|
-
className?: string;
|
|
7
|
-
zIndex?: number;
|
|
8
|
-
onFeatures?: (features: EvergisFeature[]) => EvergisFeature[];
|
|
9
|
-
onAttributes?: (attributes: FeatureAttribute[]) => FeatureAttribute[];
|
|
10
|
-
onStatistics?: (feature: EvergisFeature) => void;
|
|
11
|
-
} & Pick<EvergisCardProps, 'renderCard'>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EvergisFeature } from '../../core';
|
|
3
|
-
declare type EvergisSelectLayerProps = {
|
|
4
|
-
features: EvergisFeature[];
|
|
5
|
-
current: number;
|
|
6
|
-
zIndex: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const EvergisSelectLayer: React.FC<EvergisSelectLayerProps>;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
import { Coordinates } from '@evergis/sgis/es/baseTypes';
|
|
3
|
-
import { MapState } from '../../hooks';
|
|
4
|
-
export declare type MapProps = PropsWithChildren<{
|
|
5
|
-
className?: string;
|
|
6
|
-
position?: Coordinates;
|
|
7
|
-
resolution?: number;
|
|
8
|
-
minScale?: number;
|
|
9
|
-
maxScale?: number;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
onBboxChange?: (mapState: MapState) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const Map: React.FC<MapProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Map';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Fullscreen: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Measure: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Search: () => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Placement } from '../../ui/mixins/placementMixin';
|
|
2
|
-
export declare type MapControlsProps = {
|
|
3
|
-
placement?: Placement;
|
|
4
|
-
vertical?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare type MapControlBtnProps = {
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const ZoomInBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
|
|
10
|
-
export declare const ZoomOutBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
|
|
11
|
-
export declare const SearchBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
|
|
12
|
-
export declare const FullscreenBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
|
|
13
|
-
export declare const MeasureBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
|
|
14
|
-
export declare const MapControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const MapControls: import("styled-components").StyledComponent<"div", any, MapControlsProps, never>;
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Polyline } from '@evergis/sgis/es/features/Polyline';
|
|
3
|
-
import { Map as SMap } from '@evergis/sgis/es/Map';
|
|
4
|
-
import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
|
|
5
|
-
import { FeatureLayer } from '@evergis/sgis/es/layers/FeatureLayer';
|
|
6
|
-
import { DrawingFinishEvent } from '@evergis/sgis/es/controls/Control';
|
|
7
|
-
import { Feature } from '@evergis/sgis/es/features/Feature';
|
|
8
|
-
import { renderLabelSymbolType, MeasureProps } from './Measurer';
|
|
9
|
-
import { BaseMeasureToolCreator, BaseMeasureToolEditor } from '../../controls';
|
|
10
|
-
interface MeasureToolProps extends Omit<MeasureProps, 'isActive'> {
|
|
11
|
-
map: SMap;
|
|
12
|
-
painter: DomPainter;
|
|
13
|
-
}
|
|
14
|
-
export declare class MeasureTool extends React.Component<MeasureToolProps> {
|
|
15
|
-
layer?: FeatureLayer;
|
|
16
|
-
createControl?: BaseMeasureToolCreator;
|
|
17
|
-
editorControl?: BaseMeasureToolEditor;
|
|
18
|
-
componentDidMount(): void;
|
|
19
|
-
componentWillUnmount(): void;
|
|
20
|
-
initCreateMode(map: SMap, painter: DomPainter, renderLabelSymbol: renderLabelSymbolType): void;
|
|
21
|
-
initEditMode(map: SMap, painter: DomPainter, renderLabelSymbol: renderLabelSymbolType): void;
|
|
22
|
-
componentDidUpdate({ formatters }: MeasureToolProps): void;
|
|
23
|
-
offEvents(): void;
|
|
24
|
-
clearProperties(): void;
|
|
25
|
-
switchMode(create: boolean, edit: boolean): void;
|
|
26
|
-
getFeature(rings: [number, number][][]): Feature | Feature[];
|
|
27
|
-
createFeature: (event: DrawingFinishEvent<Polyline>) => void;
|
|
28
|
-
removeFeature: () => void;
|
|
29
|
-
cancelFeatureCreation: () => void;
|
|
30
|
-
render(): React.ReactElement;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { MeasureToolFormatters } from '../../controls/MeasureToolFormatters';
|
|
3
|
-
import { ShadowedPolySymbol, ShadowedPointSymbol } from '../../symbols';
|
|
4
|
-
export declare type renderLabelSymbolType = (props: {
|
|
5
|
-
content: string;
|
|
6
|
-
onClose?: VoidFunction;
|
|
7
|
-
}) => ReactElement;
|
|
8
|
-
export declare type MeasureProps = {
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
renderLabelSymbol: renderLabelSymbolType;
|
|
11
|
-
formatters?: MeasureToolFormatters;
|
|
12
|
-
snapSymbol?: ShadowedPointSymbol;
|
|
13
|
-
lengthSymbol?: ShadowedPolySymbol;
|
|
14
|
-
areaSymbol?: ShadowedPolySymbol;
|
|
15
|
-
};
|
|
16
|
-
export declare const Measurer: React.FC<MeasureProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const ScaleRulerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
declare type ScaleRulerBlockProps = {
|
|
3
|
-
width: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const ScaleRulerBlock: import("styled-components").StyledComponent<"div", any, ScaleRulerBlockProps, never>;
|
|
6
|
-
declare type TextContainerProps = {
|
|
7
|
-
margin?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
buttonText?: boolean;
|
|
10
|
-
alignEnd?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const TextContainer: import("styled-components").StyledComponent<"div", any, TextContainerProps, never>;
|
|
13
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TooltipComponentProps, Placement } from './types';
|
|
2
|
-
export declare const TOOLTIP_PLACEMENTS: Placement[];
|
|
3
|
-
export declare const placementMixin: (placement: "top" | "right" | "left" | "bottom" | undefined, distance: string, cornerSize: string | null) => import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
-
export declare const TooltipComponent: import("styled-components").StyledComponent<"div", any, TooltipComponentProps, never>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Feature } from '@evergis/sgis/es/features/Feature';
|
|
3
|
-
import { Map } from '@evergis/sgis/es/Map';
|
|
4
|
-
import { LabelSymbolComponent } from '../../symbols';
|
|
5
|
-
export declare type Placement = 'top' | 'right' | 'left' | 'bottom';
|
|
6
|
-
export declare type TooltipComponentProps = {
|
|
7
|
-
placement?: Placement;
|
|
8
|
-
distance?: string;
|
|
9
|
-
withArrow?: boolean;
|
|
10
|
-
cornerSize?: string;
|
|
11
|
-
};
|
|
12
|
-
declare type Children = (value: Feature[]) => ReactNode;
|
|
13
|
-
export interface ITooltip extends TooltipComponentProps {
|
|
14
|
-
center?: boolean;
|
|
15
|
-
features?: Feature[];
|
|
16
|
-
map?: Map;
|
|
17
|
-
component?: LabelSymbolComponent;
|
|
18
|
-
zIndex?: number;
|
|
19
|
-
children?: Children;
|
|
20
|
-
content?: ReactNode;
|
|
21
|
-
onEachFeature?: (feature: Feature | Map) => ReactNode;
|
|
22
|
-
clickMode?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EvergisLayer } from '../core/layer/EvergisLayer';
|
|
3
|
-
declare type EvergisSelectProviderProps = {
|
|
4
|
-
layers: EvergisLayer[];
|
|
5
|
-
};
|
|
6
|
-
export declare const EvergisSelectProvider: React.FC<EvergisSelectProviderProps>;
|
|
7
|
-
export declare const useEvergisSelectContext: () => EvergisLayer[];
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { Map } from '@evergis/sgis/es/Map';
|
|
3
|
-
import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
|
|
4
|
-
declare type MapContext = {
|
|
5
|
-
map: Map;
|
|
6
|
-
painter: DomPainter;
|
|
7
|
-
};
|
|
8
|
-
interface MapProviderProps extends PropsWithChildren<any> {
|
|
9
|
-
map?: Map;
|
|
10
|
-
painter?: DomPainter;
|
|
11
|
-
}
|
|
12
|
-
export declare const MapProvider: FC<MapProviderProps>;
|
|
13
|
-
export declare const useMapContext: () => MapContext;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeatureLayer } from '@evergis/sgis/es/layers/FeatureLayer';
|
|
3
|
-
declare type TooltipContext = {
|
|
4
|
-
layer: FeatureLayer;
|
|
5
|
-
popupLayer: FeatureLayer;
|
|
6
|
-
};
|
|
7
|
-
declare type TooltipProviderProps = {
|
|
8
|
-
layer?: FeatureLayer;
|
|
9
|
-
popupLayer?: FeatureLayer;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const TooltipProvider: React.FC<TooltipProviderProps>;
|
|
13
|
-
export declare const useTooltipContext: () => TooltipContext;
|
|
14
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { PolylineControl } from '@evergis/sgis/es/controls/PolylineControl';
|
|
2
|
-
import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
|
|
3
|
-
import { Map as SMap } from '@evergis/sgis/es/Map';
|
|
4
|
-
import { PolyControlParams } from '@evergis/sgis/es/controls/PolyControl';
|
|
5
|
-
import { sGisMouseMoveEvent } from '@evergis/sgis/es/commonEvents';
|
|
6
|
-
import { renderLabelSymbolType } from '../components';
|
|
7
|
-
import { ShadowedPolySymbol } from '../symbols';
|
|
8
|
-
import { MeasureToolFormatters } from './MeasureToolFormatters';
|
|
9
|
-
interface BaseMeasureToolCreatorParams extends PolyControlParams {
|
|
10
|
-
renderLabelSymbol: renderLabelSymbolType;
|
|
11
|
-
formatters?: MeasureToolFormatters;
|
|
12
|
-
areaSymbol?: ShadowedPolySymbol;
|
|
13
|
-
}
|
|
14
|
-
export declare class BaseMeasureToolCreator extends PolylineControl {
|
|
15
|
-
private tempLabel?;
|
|
16
|
-
private coordLabel?;
|
|
17
|
-
private measureResultLabel?;
|
|
18
|
-
private tempPolygon?;
|
|
19
|
-
formatters: MeasureToolFormatters;
|
|
20
|
-
painter: DomPainter;
|
|
21
|
-
renderLabelSymbol: renderLabelSymbolType;
|
|
22
|
-
areaSymbol?: ShadowedPolySymbol;
|
|
23
|
-
constructor(map: SMap, painter: DomPainter, params: BaseMeasureToolCreatorParams);
|
|
24
|
-
protected _handleMousemove(event: sGisMouseMoveEvent): void;
|
|
25
|
-
protected _activate(): void;
|
|
26
|
-
protected _deactivate(): void;
|
|
27
|
-
private handlePointAdd;
|
|
28
|
-
private polygonPreview;
|
|
29
|
-
private removeTempPolygon;
|
|
30
|
-
private updateDistance;
|
|
31
|
-
private addTempLabel;
|
|
32
|
-
private addCoordLabel;
|
|
33
|
-
private addMeasureResultLabel;
|
|
34
|
-
private removeTempLabel;
|
|
35
|
-
private removeCoordLabel;
|
|
36
|
-
private removeMeasureLabel;
|
|
37
|
-
private drawPointOnMouseMove;
|
|
38
|
-
private setCursor;
|
|
39
|
-
private cancel;
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PolyEditor } from '@evergis/sgis/es/controls/PolyEditor';
|
|
2
|
-
import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
|
|
3
|
-
import { Map as SMap } from '@evergis/sgis/es/Map';
|
|
4
|
-
import { ControlWithSymbolParams } from '@evergis/sgis/es/controls/Control';
|
|
5
|
-
import { renderLabelSymbolType } from '../components';
|
|
6
|
-
import { MeasureToolFormatters } from './MeasureToolFormatters';
|
|
7
|
-
interface BaseMeasureToolEditorParams extends ControlWithSymbolParams {
|
|
8
|
-
renderLabelSymbol: renderLabelSymbolType;
|
|
9
|
-
formatters?: MeasureToolFormatters;
|
|
10
|
-
}
|
|
11
|
-
export declare class BaseMeasureToolEditor extends PolyEditor {
|
|
12
|
-
private measureResultLabel?;
|
|
13
|
-
formatters: MeasureToolFormatters;
|
|
14
|
-
painter: DomPainter;
|
|
15
|
-
renderLabelSymbol: renderLabelSymbolType;
|
|
16
|
-
constructor(map: SMap, painter: DomPainter, params: BaseMeasureToolEditorParams);
|
|
17
|
-
protected _activate(): void;
|
|
18
|
-
private measureResult;
|
|
19
|
-
private addMeasureResultLabel;
|
|
20
|
-
updateMeasureResult(): void;
|
|
21
|
-
private removeFeature;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
package/dist/controls/index.d.ts
DELETED
package/dist/core/crs/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Crs } from '@evergis/sgis/es/Crs';
|
|
2
|
-
/** Spatial Reference WKID using for @evergis/sgis */
|
|
3
|
-
export declare enum SrId {
|
|
4
|
-
/** 3857 */
|
|
5
|
-
WebMercator = 3857,
|
|
6
|
-
/** 4326 */
|
|
7
|
-
Geo = 4326,
|
|
8
|
-
/** 84 */
|
|
9
|
-
Wgs84 = 84,
|
|
10
|
-
/** 3395 */
|
|
11
|
-
EllipticalMercator = 3395
|
|
12
|
-
}
|
|
13
|
-
export declare const CRS_MAP: Record<SrId, Crs>;
|
|
14
|
-
export declare const DEFAULT_SRID = SrId.WebMercator;
|
|
15
|
-
export declare const DEFAULT_CRS: Crs;
|
|
16
|
-
export declare const getCrs: (srId: number) => Crs;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FeatureDc, GeometryDc } from '@evergis/api';
|
|
2
|
-
import { MultiPoint } from '@evergis/sgis/es/features/MultiPoint';
|
|
3
|
-
import { Polyline } from '@evergis/sgis/es/features/Polyline';
|
|
4
|
-
import { Polygon } from '@evergis/sgis/es/features/Polygon';
|
|
5
|
-
import { PointFeature } from '@evergis/sgis/es/features/PointFeature';
|
|
6
|
-
import { FeatureAttribute } from '../attributes';
|
|
7
|
-
import { StyleSymbolType } from '../style';
|
|
8
|
-
export declare type FeatureDCExtened = FeatureDc & {
|
|
9
|
-
layer?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare class EvergisFeature {
|
|
12
|
-
id?: string | null;
|
|
13
|
-
displayName?: string | null;
|
|
14
|
-
geometry?: GeometryDc | null;
|
|
15
|
-
layerName?: string | null;
|
|
16
|
-
layerAlias?: string | null;
|
|
17
|
-
attributes?: FeatureAttribute[] | null;
|
|
18
|
-
symbol?: StyleSymbolType | null;
|
|
19
|
-
constructor(feature: FeatureDCExtened);
|
|
20
|
-
sGisFeature(): PointFeature | MultiPoint | Polyline | Polygon | null;
|
|
21
|
-
extent(): import("@evergis/sgis").Bbox | null;
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ServiceInfoDc } from '@evergis/api';
|
|
2
|
-
import { EvergisFeature } from '../feature';
|
|
3
|
-
export declare class EvergisLayer {
|
|
4
|
-
readonly name: string | null;
|
|
5
|
-
private readonly titleAttribute;
|
|
6
|
-
private readonly alias;
|
|
7
|
-
private readonly attributes;
|
|
8
|
-
private readonly style;
|
|
9
|
-
constructor(service: ServiceInfoDc);
|
|
10
|
-
evaluateFeature(feature: EvergisFeature): EvergisFeature;
|
|
11
|
-
}
|
|
12
|
-
export declare const evaluateFeature: (layers: EvergisLayer[]) => (feature: EvergisFeature) => EvergisFeature;
|