@conboai/storybook.components 0.5.63 → 0.5.64

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.
@@ -1,55 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { ITrailPathView } from './types';
2
3
 
3
- export declare enum TrailPathType {
4
- Geo = 0,
5
- Feed = 1
6
- }
7
- interface IGeoPath {
8
- type: TrailPathType.Geo;
9
- coordinates: Array<[number, number]>;
10
- points?: never;
11
- feedUrl?: never;
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;
22
- shapesStyles?: never;
23
- imageStyles?: never;
24
- }
25
- interface IFeedPath {
26
- type: TrailPathType.Feed;
27
- points: Array<[number, number]>;
28
- feedUrl: string;
29
- coordinates?: never;
30
- googleMapsApiKey?: never;
31
- styles?: Record<string, any>;
32
- polylineProps?: {
33
- startMarkerLabel?: string;
34
- endMarkerLabel?: string;
35
- showEndDirection?: boolean;
36
- showPolylineMarkerEnd?: boolean;
37
- polylineStroke?: string;
38
- polylineCircleFill?: string;
39
- textFill?: string;
40
- circleRadius?: number;
41
- fontSize?: number;
42
- };
43
- darkShapeMode?: boolean;
44
- mapOverlay?: never;
45
- fullscreenControl?: never;
46
- showEndDirection?: never;
47
- scaleNumber?: never;
48
- endMarkerLabel?: never;
49
- startMarkerLabel?: never;
50
- shapesStyles?: any;
51
- imageStyles?: any;
52
- }
53
- export type ITrailPathView = IGeoPath | IFeedPath;
54
4
  declare const TrailPathView: FC<ITrailPathView>;
55
5
  export default TrailPathView;
@@ -0,0 +1,51 @@
1
+ export type ITrailPathView = IPixelPath | IGeoPath;
2
+ export declare enum TrailPathType {
3
+ Geo = 0,
4
+ Pixel = 1
5
+ }
6
+ export interface IGeoPath {
7
+ type: TrailPathType.Geo;
8
+ coordinates: Array<[number, number]>;
9
+ points?: never;
10
+ imageUrl?: never;
11
+ googleMapsApiKey: string;
12
+ styles?: Record<string, any>;
13
+ startMarkerLabel?: string | google.maps.MarkerLabel;
14
+ endMarkerLabel?: string | google.maps.MarkerLabel;
15
+ scaleNumber?: number;
16
+ showEndDirection?: boolean;
17
+ fullscreenControl?: boolean;
18
+ mapOverlay?: boolean;
19
+ darkShapeMode?: never;
20
+ polylineProps?: never;
21
+ shapesStyles?: never;
22
+ imageStyles?: never;
23
+ }
24
+ export interface IPixelPath {
25
+ type: TrailPathType.Pixel;
26
+ points: Array<[number, number]>;
27
+ imageUrl: string;
28
+ coordinates?: never;
29
+ googleMapsApiKey?: never;
30
+ styles?: Record<string, any>;
31
+ polylineProps?: {
32
+ startMarkerLabel?: string;
33
+ endMarkerLabel?: string;
34
+ showEndDirection?: boolean;
35
+ showPolylineMarkerEnd?: boolean;
36
+ polylineStroke?: string;
37
+ polylineCircleFill?: string;
38
+ textFill?: string;
39
+ circleRadius?: number;
40
+ fontSize?: number;
41
+ };
42
+ darkShapeMode?: boolean;
43
+ mapOverlay?: never;
44
+ fullscreenControl?: never;
45
+ showEndDirection?: never;
46
+ scaleNumber?: never;
47
+ endMarkerLabel?: never;
48
+ startMarkerLabel?: never;
49
+ shapesStyles?: any;
50
+ imageStyles?: any;
51
+ }