@prefecthq/graphs 1.0.3 → 1.0.4
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/assets/nodeLayout.worker-9075f7b2.js.map +1 -0
- package/dist/graphs.mjs +4 -3
- package/dist/graphs.umd.js +56 -56
- package/dist/graphs.umd.js.map +1 -1
- package/dist/{index-77c40057.mjs → index-21c883f9.mjs} +833 -829
- package/dist/index-21c883f9.mjs.map +1 -0
- package/dist/types/src/models/FlowRunTimeline.d.ts +5 -1
- package/dist/types/src/pixiFunctions/timelineGuide.d.ts +1 -5
- package/dist/types/src/pixiFunctions/timelineGuides.d.ts +1 -4
- package/dist/types/src/pixiFunctions/timelineNodes.d.ts +2 -0
- package/dist/{viewport.es-ff98659c.mjs → viewport.es-84fb8076.mjs} +2 -2
- package/dist/{viewport.es-ff98659c.mjs.map → viewport.es-84fb8076.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/assets/nodeLayout.worker-eea3d42c.js.map +0 -1
- package/dist/index-77c40057.mjs.map +0 -1
|
@@ -5,12 +5,16 @@ import type { ComputedRef } from 'vue';
|
|
|
5
5
|
export type GraphTimelineNode = {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
|
-
start
|
|
8
|
+
start?: Date;
|
|
9
9
|
end: Date | null;
|
|
10
10
|
state: string;
|
|
11
11
|
upstreamDependencies?: string[];
|
|
12
12
|
subFlowRunId?: string;
|
|
13
13
|
};
|
|
14
|
+
export declare function hasStartAndEndDates(node: GraphTimelineNode): node is GraphTimelineNode & {
|
|
15
|
+
start: Date;
|
|
16
|
+
end: Date;
|
|
17
|
+
};
|
|
14
18
|
export type InitTimelineScaleProps = {
|
|
15
19
|
minimumStartTime: number;
|
|
16
20
|
graphXDomain: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Cull } from '@pixi-essentials/cull';
|
|
2
1
|
import { Application, Container } from 'pixi.js';
|
|
3
2
|
import { ComputedRef } from 'vue';
|
|
4
3
|
import { ParsedThemeStyles } from '../models';
|
|
@@ -6,19 +5,16 @@ type TimelineGuideProps = {
|
|
|
6
5
|
appRef: Application;
|
|
7
6
|
labelText: string | null;
|
|
8
7
|
styles: ComputedRef<ParsedThemeStyles>;
|
|
9
|
-
cull: Cull;
|
|
10
8
|
};
|
|
11
9
|
export declare class TimelineGuide extends Container {
|
|
12
10
|
private readonly appRef;
|
|
13
11
|
private readonly labelText;
|
|
14
12
|
private readonly styles;
|
|
15
|
-
private readonly cull;
|
|
16
13
|
private guideLine;
|
|
17
14
|
private label;
|
|
18
|
-
constructor({ appRef, labelText, styles,
|
|
15
|
+
constructor({ appRef, labelText, styles, }: TimelineGuideProps);
|
|
19
16
|
private initGuideLine;
|
|
20
17
|
private drawLabel;
|
|
21
18
|
updateHeight(appHeight: number): void;
|
|
22
|
-
destroy(): void;
|
|
23
19
|
}
|
|
24
20
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Cull } from '@pixi-essentials/cull';
|
|
2
1
|
import type { Viewport } from 'pixi-viewport';
|
|
3
2
|
import { Application, Container } from 'pixi.js';
|
|
4
3
|
import { ComputedRef, Ref } from 'vue';
|
|
@@ -6,7 +5,6 @@ import { FormatDateFns, ParsedThemeStyles } from '../models';
|
|
|
6
5
|
type TimelineGuidesProps = {
|
|
7
6
|
viewportRef: Viewport;
|
|
8
7
|
appRef: Application;
|
|
9
|
-
cull: Cull;
|
|
10
8
|
minimumStartDate: Date;
|
|
11
9
|
maximumEndDate: Ref<Date | undefined>;
|
|
12
10
|
isRunning: boolean;
|
|
@@ -16,7 +14,6 @@ type TimelineGuidesProps = {
|
|
|
16
14
|
export declare class TimelineGuides extends Container {
|
|
17
15
|
private readonly viewportRef;
|
|
18
16
|
private readonly appRef;
|
|
19
|
-
private readonly cull;
|
|
20
17
|
private readonly minimumStartDate;
|
|
21
18
|
private readonly maximumEndDate;
|
|
22
19
|
private readonly isRunning;
|
|
@@ -27,7 +24,7 @@ export declare class TimelineGuides extends Container {
|
|
|
27
24
|
private currentTimeGap;
|
|
28
25
|
private labelFormatter;
|
|
29
26
|
private readonly guides;
|
|
30
|
-
constructor({ viewportRef, appRef,
|
|
27
|
+
constructor({ viewportRef, appRef, minimumStartDate, maximumEndDate, isRunning, styleOptions, formatDateFns, }: TimelineGuidesProps);
|
|
31
28
|
updateGuides(): void;
|
|
32
29
|
private updateIdealGuideCount;
|
|
33
30
|
private updateCurrentTimeGap;
|
|
@@ -12,6 +12,7 @@ export declare class TimelineNodes extends Container {
|
|
|
12
12
|
private readonly layoutWorker;
|
|
13
13
|
private readonly isSubNodes;
|
|
14
14
|
private graphData;
|
|
15
|
+
private readonly graphDataLookup;
|
|
15
16
|
private readonly graphState;
|
|
16
17
|
private readonly nodeContainer;
|
|
17
18
|
readonly nodeRecords: Map<string, TimelineNode>;
|
|
@@ -45,6 +46,7 @@ export declare class TimelineNodes extends Container {
|
|
|
45
46
|
/**
|
|
46
47
|
* Utilities
|
|
47
48
|
*/
|
|
49
|
+
private setGraphDataLookup;
|
|
48
50
|
private registerEmits;
|
|
49
51
|
private emitNullSelection;
|
|
50
52
|
private getNodeData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as c, R as b, T as C, C as P } from "./index-
|
|
1
|
+
import { P as c, R as b, T as C, C as P } from "./index-21c883f9.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
class u {
|
|
4
4
|
constructor(t) {
|
|
@@ -1530,4 +1530,4 @@ export {
|
|
|
1530
1530
|
O as Viewport,
|
|
1531
1531
|
$ as Wheel
|
|
1532
1532
|
};
|
|
1533
|
-
//# sourceMappingURL=viewport.es-
|
|
1533
|
+
//# sourceMappingURL=viewport.es-84fb8076.mjs.map
|