@conboai/storybook.components 0.6.60 → 0.6.61
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/Shapes/CrossLineArrow/index.d.ts +0 -1
- package/dist/components/Shapes/CrossLineArrow/useDirectionState.d.ts +1 -1
- package/dist/components/Shapes/CrossLineArrow/utils.d.ts +1 -1
- package/dist/components/Shapes/Header/index.d.ts +1 -1
- package/dist/components/Shapes/Header/types.d.ts +0 -1
- package/dist/components/Shapes/MousePoint/index.d.ts +1 -2
- package/dist/components/Shapes/NumericMarker/index.d.ts +1 -2
- package/dist/components/Shapes/Text/index.d.ts +1 -2
- package/dist/components/Shapes/constants.d.ts +0 -7
- package/dist/components/Shapes/types.d.ts +0 -1
- package/dist/components/Shapes/utils.d.ts +3 -3
- package/dist/{index-BNeYdM_j.mjs → index-Cs0hNG-m.mjs} +1979 -2028
- package/dist/{mapbox-gl-D90W8RUK.mjs → mapbox-gl-QfnoNZpK.mjs} +1 -1
- package/dist/storybook.components.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Point } from './index';
|
|
2
2
|
|
|
3
|
-
export declare const useDirectionState: (directionFromProps: number | undefined, points: Point[], rect: DOMRect | null
|
|
3
|
+
export declare const useDirectionState: (directionFromProps: number | undefined, points: Point[], rect: DOMRect | null) => number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Point } from '../types';
|
|
2
2
|
|
|
3
3
|
export declare const getMidpoint: (points: Point[]) => Point;
|
|
4
|
-
export declare const getLineAngle: (p1: Point, p2: Point, rect: DOMRect
|
|
4
|
+
export declare const getLineAngle: (p1: Point, p2: Point, rect: DOMRect) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IHeaderProps } from './types';
|
|
3
3
|
|
|
4
|
-
export declare const Header: ({ header, point, rect, styles
|
|
4
|
+
export declare const Header: ({ header, point, rect, styles }: IHeaderProps) => React.JSX.Element | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Point } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare const MousePoint: ({ coordinates, rect, isInFov, styles
|
|
4
|
+
export declare const MousePoint: ({ coordinates, rect, isInFov, styles }: {
|
|
5
5
|
coordinates: Point;
|
|
6
6
|
rect: DOMRect | null;
|
|
7
7
|
isInFov?: boolean;
|
|
@@ -9,5 +9,4 @@ export declare const MousePoint: ({ coordinates, rect, isInFov, styles, reversed
|
|
|
9
9
|
fill?: string;
|
|
10
10
|
stroke?: string;
|
|
11
11
|
};
|
|
12
|
-
reversedY?: boolean;
|
|
13
12
|
}) => React.JSX.Element | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Point } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare const NumericMarker: ({ point, number, rect
|
|
4
|
+
export declare const NumericMarker: ({ point, number, rect }: {
|
|
5
5
|
point: Point;
|
|
6
6
|
number: number;
|
|
7
7
|
rect: DOMRect;
|
|
8
|
-
reversedY?: boolean;
|
|
9
8
|
}) => React.JSX.Element;
|
|
@@ -4,7 +4,6 @@ import { Shape } from '../types';
|
|
|
4
4
|
interface TextProps {
|
|
5
5
|
shape: Shape;
|
|
6
6
|
rect: DOMRect | null;
|
|
7
|
-
reversedY?: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare const Text: ({ shape, rect
|
|
8
|
+
export declare const Text: ({ shape, rect }: TextProps) => React.JSX.Element | undefined;
|
|
10
9
|
export {};
|
|
@@ -2,9 +2,9 @@ import { Point, Shape } from './types';
|
|
|
2
2
|
|
|
3
3
|
export declare const generateRainbowColor: (id: string, total: number) => string;
|
|
4
4
|
export declare const _snapToBoundaries: (point: Point, threshold?: number) => Point;
|
|
5
|
-
export declare const toNormalizedCoords: (x: number, y: number, rect: DOMRect
|
|
6
|
-
export declare const toPixelCoords: (x: number, y: number, rect: DOMRect
|
|
7
|
-
export declare const calculateCoordinates: (points: Point[], rect: DOMRect | null
|
|
5
|
+
export declare const toNormalizedCoords: (x: number, y: number, rect: DOMRect) => Point;
|
|
6
|
+
export declare const toPixelCoords: (x: number, y: number, rect: DOMRect) => Point;
|
|
7
|
+
export declare const calculateCoordinates: (points: Point[], rect: DOMRect | null) => string | undefined;
|
|
8
8
|
export declare const getLineOrientation: (p1: Point, p2: Point, rect: DOMRect) => "horizontal" | "vertical";
|
|
9
9
|
export declare const isPointNearTargetPoint: (point: Point, targetPoint: Point, threshold?: number) => boolean;
|
|
10
10
|
export declare const calculateDistanceToSegment: (point: Point, segmentStart: Point, segmentEnd: Point) => number;
|