@osrd-project/ui-charts 0.0.69 → 0.0.70
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/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/manchette/consts.d.ts +1 -0
- package/dist/manchette/hooks/useManchetteWithSpaceTimeChart.d.ts +31 -13
- package/dist/manchette/utils/helpers.d.ts +24 -9
- package/dist/spaceTimeChart/components/WorkScheduleLayer.d.ts +6 -1
- package/dist/spaceTimeChart/index.d.ts +8 -1
- package/dist/spaceTimeChart/lib/consts.d.ts +0 -17
- package/dist/spaceTimeChart/lib/types.d.ts +1 -1
- package/dist/spaceTimeChart/utils/canvas.d.ts +11 -3
- package/dist/speedSpaceChart/components/utils.d.ts +1 -12
- package/dist/speedSpaceChart/index.d.ts +1 -1
- package/dist/speedSpaceChart/types.d.ts +4 -4
- package/dist/theme.css +0 -108
- package/dist/theme.css.map +1 -1
- package/package.json +4 -4
- package/dist/spaceTimeChart/stories/additional-data.stories.d.ts +0 -20
- package/dist/spaceTimeChart/stories/base-rendering.stories.d.ts +0 -28
- package/dist/spaceTimeChart/stories/custom-styles.stories.d.ts +0 -24
- package/dist/spaceTimeChart/stories/horizontal-zoom.stories.d.ts +0 -31
- package/dist/spaceTimeChart/stories/layers.stories.d.ts +0 -9
- package/dist/spaceTimeChart/stories/lib/components.d.ts +0 -15
- package/dist/spaceTimeChart/stories/lib/paths.d.ts +0 -16
- package/dist/spaceTimeChart/stories/lib/utils.d.ts +0 -22
- package/dist/spaceTimeChart/stories/measuring.stories.d.ts +0 -20
- package/dist/spaceTimeChart/stories/options.stories.d.ts +0 -27
- package/dist/spaceTimeChart/stories/paths-interactions.stories.d.ts +0 -24
- package/dist/spaceTimeChart/stories/performances.stories.d.ts +0 -25
- package/dist/spaceTimeChart/stories/quadrilateral.stories.d.ts +0 -28
- package/dist/spaceTimeChart/stories/rectangle-zoom.stories.d.ts +0 -40
- package/dist/spaceTimeChart/stories/scroll-navigation.stories.d.ts +0 -19
- package/dist/spaceTimeChart/stories/split.stories.d.ts +0 -21
- package/dist/spaceTimeChart/stories/stage-interactions.stories.d.ts +0 -25
- package/dist/spaceTimeChart/stories/tooltip.stories.d.ts +0 -9
- package/dist/spaceTimeChart/stories/work-schedules.stories.d.ts +0 -31
- package/dist/spaceTimeChart/types.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osrd-project/ui-charts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"bugs": "https://github.com/osrd-project/osrd-ui/issues",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"tailwindcss": ">=3.4"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@osrd-project/ui-core": "^0.0.
|
|
46
|
-
"@osrd-project/ui-icons": "^0.0.
|
|
45
|
+
"@osrd-project/ui-core": "^0.0.70",
|
|
46
|
+
"@osrd-project/ui-icons": "^0.0.70",
|
|
47
47
|
"chroma-js": "^3.1.1",
|
|
48
48
|
"d3-selection": "^3.0.0",
|
|
49
49
|
"d3-zoom": "^3.0.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"@types/file-saver": "^2.0.7",
|
|
57
57
|
"file-saver": "^2.0.5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "c67b8daf41e59a0d22070310fd6c0d381fa76583"
|
|
60
60
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
swapAxis: boolean;
|
|
6
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* This story aims at showcasing how to display additional data.
|
|
10
|
-
*/
|
|
11
|
-
declare const Wrapper: ({ swapAxis, spaceScaleType }: WrapperProps) => React.JSX.Element;
|
|
12
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const DefaultArgs: {
|
|
15
|
-
name: string;
|
|
16
|
-
args: {
|
|
17
|
-
swapAxis: boolean;
|
|
18
|
-
spaceScaleType: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
xZoomLevel: number;
|
|
6
|
-
yZoomLevel: number;
|
|
7
|
-
xOffset: number;
|
|
8
|
-
yOffset: number;
|
|
9
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
10
|
-
emptyData: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* This story aims at showcasing how to render a SpaceTimeChart.
|
|
14
|
-
*/
|
|
15
|
-
declare const Wrapper: ({ xZoomLevel, yZoomLevel, xOffset, yOffset, spaceScaleType, emptyData, }: WrapperProps) => React.JSX.Element;
|
|
16
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare const DefaultArgs: {
|
|
19
|
-
name: string;
|
|
20
|
-
args: {
|
|
21
|
-
xZoomLevel: number;
|
|
22
|
-
yZoomLevel: number;
|
|
23
|
-
xOffset: number;
|
|
24
|
-
yOffset: number;
|
|
25
|
-
spaceScaleType: string;
|
|
26
|
-
emptyData: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
color1: string;
|
|
6
|
-
color2: string;
|
|
7
|
-
color3: string;
|
|
8
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This story aims at showcasing how to customize inside styles.
|
|
12
|
-
*/
|
|
13
|
-
declare const Wrapper: ({ color1, color2, color3, spaceScaleType }: WrapperProps) => React.JSX.Element;
|
|
14
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const DefaultArgs: {
|
|
17
|
-
name: string;
|
|
18
|
-
args: {
|
|
19
|
-
color1: string;
|
|
20
|
-
color2: string;
|
|
21
|
-
color3: string;
|
|
22
|
-
spaceScaleType: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-core/dist/theme.css';
|
|
4
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
5
|
-
import { type PathData, type OperationalPoint } from '../lib/types';
|
|
6
|
-
type SpaceTimeHorizontalZoomWrapperProps = {
|
|
7
|
-
offset: number;
|
|
8
|
-
operationalPoints: OperationalPoint[];
|
|
9
|
-
paths: (PathData & {
|
|
10
|
-
color: string;
|
|
11
|
-
})[];
|
|
12
|
-
};
|
|
13
|
-
declare const SpaceTimeHorizontalZoomWrapper: ({ offset, operationalPoints, paths, }: SpaceTimeHorizontalZoomWrapperProps) => React.JSX.Element;
|
|
14
|
-
declare const _default: Meta<typeof SpaceTimeHorizontalZoomWrapper>;
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const Default: {
|
|
17
|
-
args: {
|
|
18
|
-
offset: number;
|
|
19
|
-
operationalPoints: OperationalPoint[];
|
|
20
|
-
paths: (PathData & {
|
|
21
|
-
color: string;
|
|
22
|
-
border?: {
|
|
23
|
-
offset: number;
|
|
24
|
-
level: import("../components/PathLayer").PathLevel;
|
|
25
|
-
color: string;
|
|
26
|
-
backgroundColor?: string;
|
|
27
|
-
};
|
|
28
|
-
level?: import("../components/PathLayer").PathLevel;
|
|
29
|
-
})[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: () => React.JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
export declare const Default: StoryObj<typeof meta>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type DataPoint, type Point } from '../../lib/types';
|
|
3
|
-
/**
|
|
4
|
-
* This component draws a dashed line from p1 to p2, using SVG:
|
|
5
|
-
*/
|
|
6
|
-
export declare const Line: ({ p1, p2 }: {
|
|
7
|
-
p1: Point;
|
|
8
|
-
p2: Point;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* This component renders a DataLabel under the mouse, using the MouseContext from the SpaceTimeChart:
|
|
12
|
-
*/
|
|
13
|
-
export declare const MouseTracker: ({ reference }: {
|
|
14
|
-
reference?: DataPoint;
|
|
15
|
-
}) => React.JSX.Element | null;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type PathLevel } from '../../components/PathLayer';
|
|
2
|
-
import type { OperationalPoint, PathData } from '../../lib/types';
|
|
3
|
-
export declare function getPaths<T extends object>(prefix: string, points: OperationalPoint[], pauseTime: number, offset: number, speed: number, count: number, t0: number, additionalAttributes: T): (PathData & T)[];
|
|
4
|
-
export declare const OPERATIONAL_POINTS: OperationalPoint[];
|
|
5
|
-
export declare const OPERATIONAL_POINTS_DICT: import("lodash").Dictionary<OperationalPoint>;
|
|
6
|
-
export declare const START_DATE: Date;
|
|
7
|
-
export declare const PATHS: (PathData & {
|
|
8
|
-
color: string;
|
|
9
|
-
border?: {
|
|
10
|
-
offset: number;
|
|
11
|
-
level: PathLevel;
|
|
12
|
-
color: string;
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
};
|
|
15
|
-
level?: PathLevel;
|
|
16
|
-
})[];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type SpaceTimeChartProps } from '../../lib/types';
|
|
2
|
-
export declare const MIN_X_ZOOM: number;
|
|
3
|
-
export declare const MAX_X_ZOOM = 200;
|
|
4
|
-
export declare const MIN_Y_ZOOM: number;
|
|
5
|
-
export declare const MAX_Y_ZOOM = 200;
|
|
6
|
-
export declare const X_ZOOM_LEVEL = 6;
|
|
7
|
-
export declare const Y_ZOOM_LEVEL = 3;
|
|
8
|
-
type ZoomState = {
|
|
9
|
-
xZoomLevel: number;
|
|
10
|
-
yZoomLevel: number;
|
|
11
|
-
xOffset: number;
|
|
12
|
-
yOffset: number;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* This function helps to have a zoom that is centered on the mouse position.
|
|
16
|
-
*/
|
|
17
|
-
export declare function zoom(state: ZoomState, { delta, position: { x, y } }: Parameters<NonNullable<SpaceTimeChartProps['onZoom']>>[0]): ZoomState;
|
|
18
|
-
/**
|
|
19
|
-
* This function helps to pretty-print a Date as a length.
|
|
20
|
-
*/
|
|
21
|
-
export declare function formatTimeLength(date: Date): string;
|
|
22
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
6
|
-
enableSnapping: boolean;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* This story aims at showcasing how to measure times and distances in a SpaceTimeChart.
|
|
10
|
-
*/
|
|
11
|
-
declare const Wrapper: ({ spaceScaleType, enableSnapping }: WrapperProps) => React.JSX.Element;
|
|
12
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const DefaultArgs: {
|
|
15
|
-
name: string;
|
|
16
|
-
args: {
|
|
17
|
-
spaceScaleType: string;
|
|
18
|
-
enableSnapping: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
type WrapperProps = {
|
|
4
|
-
enableSnapping: boolean;
|
|
5
|
-
hideGrid: boolean;
|
|
6
|
-
hidePathsLabels: boolean;
|
|
7
|
-
swapAxis: boolean;
|
|
8
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This story aims at showcasing how to use various specific options in a
|
|
12
|
-
* SpaceTimeChart, such as `swapAxis`, `enableSnapping`, `hideGrid` or
|
|
13
|
-
* `hidePathsLabels`.
|
|
14
|
-
*/
|
|
15
|
-
declare const Wrapper: ({ enableSnapping, hideGrid, hidePathsLabels, swapAxis, spaceScaleType, }: WrapperProps) => React.JSX.Element;
|
|
16
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare const DefaultArgs: {
|
|
19
|
-
name: string;
|
|
20
|
-
args: {
|
|
21
|
-
enableSnapping: boolean;
|
|
22
|
-
hideGrid: boolean;
|
|
23
|
-
hidePathsLabels: boolean;
|
|
24
|
-
swapAxis: boolean;
|
|
25
|
-
spaceScaleType: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
enableDragPaths: boolean;
|
|
6
|
-
pickingTolerance: number;
|
|
7
|
-
enableMultiSelection: boolean;
|
|
8
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This story aims at showcasing how to manipulate paths in a SpaceTimeChart.
|
|
12
|
-
*/
|
|
13
|
-
declare const Wrapper: ({ enableDragPaths, pickingTolerance, enableMultiSelection, spaceScaleType, }: WrapperProps) => React.JSX.Element;
|
|
14
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const DefaultArgs: {
|
|
17
|
-
name: string;
|
|
18
|
-
args: {
|
|
19
|
-
enableDragPaths: boolean;
|
|
20
|
-
enableMultiSelection: boolean;
|
|
21
|
-
spaceScaleType: string;
|
|
22
|
-
pickingTolerance: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
operationalPointsCount: number;
|
|
6
|
-
trainTypes: number;
|
|
7
|
-
pathsPerTrain: number;
|
|
8
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This story aims at testing the performances of the SpaceTimeChart component when rendering a
|
|
12
|
-
* high number of paths.
|
|
13
|
-
*/
|
|
14
|
-
declare const Wrapper: ({ operationalPointsCount, trainTypes, pathsPerTrain, spaceScaleType, }: WrapperProps) => React.JSX.Element;
|
|
15
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
16
|
-
export default _default;
|
|
17
|
-
export declare const DefaultArgs: {
|
|
18
|
-
name: string;
|
|
19
|
-
args: {
|
|
20
|
-
operationalPointsCount: number;
|
|
21
|
-
trainTypes: number;
|
|
22
|
-
pathsPerTrain: number;
|
|
23
|
-
spaceScaleType: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
xZoomLevel: number;
|
|
6
|
-
yZoomLevel: number;
|
|
7
|
-
xOffset: number;
|
|
8
|
-
yOffset: number;
|
|
9
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
10
|
-
emptyData: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* This story aims at showcasing how to render a SpaceTimeChart.
|
|
14
|
-
*/
|
|
15
|
-
declare const Wrapper: ({ xZoomLevel, yZoomLevel, xOffset, yOffset, spaceScaleType, emptyData, }: WrapperProps) => React.JSX.Element;
|
|
16
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare const DefaultArgs: {
|
|
19
|
-
name: string;
|
|
20
|
-
args: {
|
|
21
|
-
xZoomLevel: number;
|
|
22
|
-
yZoomLevel: number;
|
|
23
|
-
xOffset: number;
|
|
24
|
-
yOffset: number;
|
|
25
|
-
spaceScaleType: string;
|
|
26
|
-
emptyData: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-core/dist/theme.css';
|
|
4
|
-
import '../styles/stories/rectangle-zoom.css';
|
|
5
|
-
import { type PathData, type OperationalPoint } from '../lib/types';
|
|
6
|
-
type SpaceTimeHorizontalZoomWrapperProps = {
|
|
7
|
-
swapAxes: boolean;
|
|
8
|
-
spaceOrigin: number;
|
|
9
|
-
xOffset: number;
|
|
10
|
-
yOffset: number;
|
|
11
|
-
operationalPoints: OperationalPoint[];
|
|
12
|
-
paths: (PathData & {
|
|
13
|
-
color: string;
|
|
14
|
-
})[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* This story demonstrates the behavior of drawing a rectangle with the mouse, and how it should behave in regards to the default zoom and pan.
|
|
18
|
-
*/
|
|
19
|
-
declare const RectangleZoomWrapper: ({ swapAxes, spaceOrigin, xOffset, yOffset, operationalPoints, paths, }: SpaceTimeHorizontalZoomWrapperProps) => React.JSX.Element;
|
|
20
|
-
declare const _default: Meta<typeof RectangleZoomWrapper>;
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const Default: {
|
|
23
|
-
args: {
|
|
24
|
-
swapAxes: boolean;
|
|
25
|
-
spaceOrigin: number;
|
|
26
|
-
xOffset: number;
|
|
27
|
-
yOffset: number;
|
|
28
|
-
operationalPoints: OperationalPoint[];
|
|
29
|
-
paths: (PathData & {
|
|
30
|
-
color: string;
|
|
31
|
-
border?: {
|
|
32
|
-
offset: number;
|
|
33
|
-
level: import("../components/PathLayer").PathLevel;
|
|
34
|
-
color: string;
|
|
35
|
-
backgroundColor?: string;
|
|
36
|
-
};
|
|
37
|
-
level?: import("../components/PathLayer").PathLevel;
|
|
38
|
-
})[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* This story aims at showcasing how to implement a different kind of navigation, where the mouse
|
|
9
|
-
* wheel moves the time axis, and where a selected path must remain focused as much as possible.
|
|
10
|
-
*/
|
|
11
|
-
declare const Wrapper: ({ spaceScaleType }: WrapperProps) => React.JSX.Element;
|
|
12
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const DefaultArgs: {
|
|
15
|
-
name: string;
|
|
16
|
-
args: {
|
|
17
|
-
spaceScaleType: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@osrd-project/ui-core/dist/theme.css';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
4
|
-
type WrapperProps = {
|
|
5
|
-
splitPoints: string;
|
|
6
|
-
splitHeight: number;
|
|
7
|
-
scaleWithZoom: boolean;
|
|
8
|
-
swapAxis: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const SplitSpaceTimeChartWrapper: ({ splitPoints, splitHeight, scaleWithZoom, swapAxis, }: WrapperProps) => React.JSX.Element;
|
|
11
|
-
declare const _default: Meta<typeof SplitSpaceTimeChartWrapper>;
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const Default: {
|
|
14
|
-
name: string;
|
|
15
|
-
args: {
|
|
16
|
-
splitPoints: string;
|
|
17
|
-
splitHeight: number;
|
|
18
|
-
scaleWithZoom: boolean;
|
|
19
|
-
swapAxis: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
-
type WrapperProps = {
|
|
4
|
-
xPan: boolean;
|
|
5
|
-
yPan: boolean;
|
|
6
|
-
xZoom: boolean;
|
|
7
|
-
yZoom: boolean;
|
|
8
|
-
spaceScaleType: 'linear' | 'proportional';
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This story aims at showcasing how to handle panning and zooming in a SpaceTimeChart.
|
|
12
|
-
*/
|
|
13
|
-
declare const Wrapper: ({ xPan, yPan, xZoom, yZoom, spaceScaleType }: WrapperProps) => React.JSX.Element;
|
|
14
|
-
declare const _default: Meta<typeof Wrapper>;
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const DefaultArgs: {
|
|
17
|
-
name: string;
|
|
18
|
-
args: {
|
|
19
|
-
xPan: boolean;
|
|
20
|
-
yPan: boolean;
|
|
21
|
-
xZoom: boolean;
|
|
22
|
-
yZoom: boolean;
|
|
23
|
-
spaceScaleType: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import '@osrd-project/ui-charts/dist/theme.css';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: () => React.JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
export declare const Default: StoryObj<typeof meta>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@osrd-project/ui-core/dist/theme.css';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
4
|
-
import { type PathData, type OperationalPoint } from '../lib/types';
|
|
5
|
-
import { type WorkSchedule } from '../types';
|
|
6
|
-
type WorkSchedulesWrapperProps = {
|
|
7
|
-
operationalPoints: OperationalPoint[];
|
|
8
|
-
paths: (PathData & {
|
|
9
|
-
color: string;
|
|
10
|
-
})[];
|
|
11
|
-
workSchedules: WorkSchedule[];
|
|
12
|
-
};
|
|
13
|
-
declare const WorkSchedulesWrapper: ({ operationalPoints, paths, workSchedules, }: WorkSchedulesWrapperProps) => React.JSX.Element;
|
|
14
|
-
declare const _default: Meta<typeof WorkSchedulesWrapper>;
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const Default: {
|
|
17
|
-
args: {
|
|
18
|
-
operationalPoints: OperationalPoint[];
|
|
19
|
-
paths: (PathData & {
|
|
20
|
-
color: string;
|
|
21
|
-
border?: {
|
|
22
|
-
offset: number;
|
|
23
|
-
level: import("../components/PathLayer").PathLevel;
|
|
24
|
-
color: string;
|
|
25
|
-
backgroundColor?: string;
|
|
26
|
-
};
|
|
27
|
-
level?: import("../components/PathLayer").PathLevel;
|
|
28
|
-
})[];
|
|
29
|
-
workSchedules: WorkSchedule[];
|
|
30
|
-
};
|
|
31
|
-
};
|