@conboai/storybook.components 0.5.25 → 0.5.27
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/Geo/Geo.d.ts +1 -1
- package/dist/components/Geo/components/Polyline/index.d.ts +5 -1
- package/dist/components/Geo/components/Polyline/utils.d.ts +1 -1
- package/dist/components/Geo/types.d.ts +6 -0
- package/dist/components/GoogleMap/GoogleMap.d.ts +2 -1
- package/dist/components/Shapes/Shapes.d.ts +1 -1
- package/dist/components/Shapes/types.d.ts +11 -0
- package/dist/components/TrailPathView/TrailPathView.d.ts +28 -0
- package/dist/storybook.components.mjs +17312 -17155
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { GeoComponentProps } from './types';
|
|
3
3
|
|
|
4
|
-
declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, onDragEnd, showDirection, showNumbers, allowDelete, allowAdd, disableControls, fitZoom, mapCentering, showOnlyPoints, initialCenter, zoom: zoomFromProps, onLoad, onError, googleMapsApiKey, googleMapsOptions }: GeoComponentProps) => React.JSX.Element;
|
|
4
|
+
declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, onDragEnd, showDirection, showNumbers, allowDelete, allowAdd, disableControls, fitZoom, mapCentering, showOnlyPoints, initialCenter, zoom: zoomFromProps, onLoad, onError, googleMapsApiKey, googleMapsOptions, startMarkerLabel, endMarkerLabel, scaleNumber, fullscreenControl, showEndDirection, mapOverlay, }: GeoComponentProps) => React.JSX.Element;
|
|
5
5
|
export default Geo;
|
|
@@ -4,10 +4,14 @@ import { CoordinatePoint, GeoType } from '../../types';
|
|
|
4
4
|
interface IPolyline {
|
|
5
5
|
zoom?: number;
|
|
6
6
|
showDirection?: boolean;
|
|
7
|
+
showEndDirection?: boolean;
|
|
8
|
+
startMarkerLabel?: string | google.maps.MarkerLabel;
|
|
9
|
+
endMarkerLabel?: string | google.maps.MarkerLabel;
|
|
7
10
|
onChange?: (polygonPath: CoordinatePoint[], id: string, isComplete: boolean) => void;
|
|
8
11
|
data?: GeoType | null;
|
|
9
12
|
showNumbers?: boolean;
|
|
10
13
|
showOnlyPoints?: boolean;
|
|
14
|
+
scaleNumber?: number;
|
|
11
15
|
}
|
|
12
|
-
declare const Polyline: React.MemoExoticComponent<({ zoom: zoomFromProps, showDirection, onChange: onChangeFromProps, data, showNumbers, showOnlyPoints }: IPolyline) => React.JSX.Element>;
|
|
16
|
+
declare const Polyline: React.MemoExoticComponent<({ zoom: zoomFromProps, showDirection, showEndDirection, startMarkerLabel, endMarkerLabel, onChange: onChangeFromProps, data, showNumbers, showOnlyPoints, scaleNumber, }: IPolyline) => React.JSX.Element>;
|
|
13
17
|
export default Polyline;
|
|
@@ -10,7 +10,7 @@ export declare const calculateArrowPosition: (path: CoordinatePoint[], scale: nu
|
|
|
10
10
|
rotation: number;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare const createStartIcon: (scale: number) => {
|
|
13
|
+
export declare const createStartIcon: (scale: number, fillColor?: string, additionalScale?: number) => {
|
|
14
14
|
path: google.maps.SymbolPath;
|
|
15
15
|
fillColor: string;
|
|
16
16
|
fillOpacity: number;
|
|
@@ -63,6 +63,12 @@ export interface GeoComponentProps {
|
|
|
63
63
|
errorJSX?: ReactElement;
|
|
64
64
|
options?: Record<string, any>;
|
|
65
65
|
} | null;
|
|
66
|
+
startMarkerLabel?: string | google.maps.MarkerLabel;
|
|
67
|
+
endMarkerLabel?: string | google.maps.MarkerLabel;
|
|
68
|
+
scaleNumber?: number;
|
|
69
|
+
fullscreenControl?: boolean;
|
|
70
|
+
showEndDirection?: boolean;
|
|
71
|
+
mapOverlay?: boolean;
|
|
66
72
|
}
|
|
67
73
|
export declare enum LibraryTypes {
|
|
68
74
|
DRAWING = "drawing",
|
|
@@ -17,6 +17,7 @@ interface IGoogleMap {
|
|
|
17
17
|
} | null;
|
|
18
18
|
id?: string;
|
|
19
19
|
zoom: number;
|
|
20
|
+
mapOverlay?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export declare const GoogleMap: ({ googleMapsApiKey, onMouseMove, onDragEnd, children, options, onLoad, onError, center, styles, zoom, id, googleMapsOptions }: IGoogleMap) => React.JSX.Element;
|
|
22
|
+
export declare const GoogleMap: ({ googleMapsApiKey, onMouseMove, onDragEnd, children, options, onLoad, onError, center, styles, zoom, id, googleMapsOptions, mapOverlay, }: IGoogleMap) => React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IShapesProps } from './types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, styles, }: IShapesProps) => React.JSX.Element;
|
|
4
|
+
declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, styles, polylineProps, }: IShapesProps) => React.JSX.Element;
|
|
5
5
|
export default Shapes;
|
|
@@ -48,4 +48,15 @@ export interface IShapesProps {
|
|
|
48
48
|
selectedShapeZIndex?: boolean;
|
|
49
49
|
showPoints?: boolean;
|
|
50
50
|
styles?: any;
|
|
51
|
+
polylineProps?: {
|
|
52
|
+
startMarkerLabel?: string;
|
|
53
|
+
endMarkerLabel?: string;
|
|
54
|
+
showEndDirection?: boolean;
|
|
55
|
+
showPolylineMarkerEnd?: boolean;
|
|
56
|
+
polylineStroke?: string;
|
|
57
|
+
polylineCircleFill?: string;
|
|
58
|
+
textFill?: string;
|
|
59
|
+
circleRadius?: number;
|
|
60
|
+
fontSize?: number;
|
|
61
|
+
};
|
|
51
62
|
}
|
|
@@ -10,6 +10,15 @@ interface IGeoPath {
|
|
|
10
10
|
points?: never;
|
|
11
11
|
feedUrl?: never;
|
|
12
12
|
googleMapsApiKey: string;
|
|
13
|
+
styles?: Record<string, any>;
|
|
14
|
+
startMarkerLabel?: string | google.maps.MarkerLabel;
|
|
15
|
+
endMarkerLabel?: string | google.maps.MarkerLabel;
|
|
16
|
+
scaleNumber?: number;
|
|
17
|
+
showEndDirection?: boolean;
|
|
18
|
+
fullscreenControl?: boolean;
|
|
19
|
+
mapOverlay?: boolean;
|
|
20
|
+
darkShapeMode?: never;
|
|
21
|
+
polylineProps?: never;
|
|
13
22
|
}
|
|
14
23
|
interface IFeedPath {
|
|
15
24
|
type: TrailPathType.Feed;
|
|
@@ -17,6 +26,25 @@ interface IFeedPath {
|
|
|
17
26
|
feedUrl: string;
|
|
18
27
|
coordinates?: never;
|
|
19
28
|
googleMapsApiKey?: never;
|
|
29
|
+
styles?: Record<string, any>;
|
|
30
|
+
polylineProps?: {
|
|
31
|
+
startMarkerLabel?: string;
|
|
32
|
+
endMarkerLabel?: string;
|
|
33
|
+
showEndDirection?: boolean;
|
|
34
|
+
showPolylineMarkerEnd?: boolean;
|
|
35
|
+
polylineStroke?: string;
|
|
36
|
+
polylineCircleFill?: string;
|
|
37
|
+
textFill?: string;
|
|
38
|
+
circleRadius?: number;
|
|
39
|
+
fontSize?: number;
|
|
40
|
+
};
|
|
41
|
+
darkShapeMode?: boolean;
|
|
42
|
+
mapOverlay?: never;
|
|
43
|
+
fullscreenControl?: never;
|
|
44
|
+
showEndDirection?: never;
|
|
45
|
+
scaleNumber?: never;
|
|
46
|
+
endMarkerLabel?: never;
|
|
47
|
+
startMarkerLabel?: never;
|
|
20
48
|
}
|
|
21
49
|
export type ITrailPathView = IGeoPath | IFeedPath;
|
|
22
50
|
declare const TrailPathView: FC<ITrailPathView>;
|