@prefecthq/graphs 1.0.7 → 2.0.1
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/LICENSE +201 -0
- package/dist/assets/nodeLayout.worker-ba54e168.js.map +1 -0
- package/dist/graphs.mjs +3 -4
- package/dist/graphs.umd.js +578 -63
- package/dist/graphs.umd.js.map +1 -1
- package/dist/index-aba921f4.mjs +19945 -0
- package/dist/index-aba921f4.mjs.map +1 -0
- package/dist/types/demo/App.vue.d.ts +1 -43
- package/dist/types/demo/components/ComponentPage.vue.d.ts +18 -85
- package/dist/types/demo/components/ContextSidebar.vue.d.ts +1 -43
- package/dist/types/demo/components/HashLink.vue.d.ts +11 -54
- package/dist/types/demo/components/ResizableSection.vue.d.ts +8 -47
- package/dist/types/demo/sections/Data.vue.d.ts +1 -43
- package/dist/types/demo/sections/Home.vue.d.ts +1 -43
- package/dist/types/demo/sections/components/FlowRunTimelineDemo.vue.d.ts +1 -43
- package/dist/types/demo/sections/components/TimescaleTable.vue.d.ts +16 -67
- package/dist/types/demo/utilities/timescaleData.d.ts +2 -2
- package/dist/types/src/FlowRunTimeline.vue.d.ts +30 -122
- package/dist/types/src/containers/guide.d.ts +28 -0
- package/dist/types/src/containers/guides.d.ts +26 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/models/FlowRunTimeline.d.ts +16 -28
- package/dist/types/src/pixiFunctions/bitmapFonts.d.ts +1 -1
- package/dist/types/src/pixiFunctions/index.d.ts +1 -2
- package/dist/types/src/pixiFunctions/nodeSprites.d.ts +2 -2
- package/dist/types/src/pixiFunctions/subNodesToggle.d.ts +3 -2
- package/dist/types/src/pixiFunctions/timeScale.d.ts +2 -0
- package/dist/types/src/pixiFunctions/timelineEdge.d.ts +2 -2
- package/dist/types/src/pixiFunctions/timelineNode.d.ts +8 -7
- package/dist/types/src/pixiFunctions/timelineNodes.d.ts +8 -10
- package/dist/types/src/pixiFunctions/timelinePlayhead.d.ts +4 -19
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/timeline.d.ts +11 -0
- package/dist/types/src/utilities/index.d.ts +2 -1
- package/dist/types/src/utilities/time.d.ts +13 -10
- package/dist/types/src/utilities/viewport.d.ts +3 -0
- package/dist/types/src/utilities/zIndex.d.ts +5 -0
- package/dist/types/src/workers/layouts/nearestNeighbor.d.ts +10 -0
- package/dist/types/src/workers/layouts/waterfall.d.ts +3 -0
- package/dist/{viewport.es-a4ca92c6.mjs → viewport.es-73ad6f79.mjs} +706 -2
- package/dist/{viewport.es-a4ca92c6.mjs.map → viewport.es-73ad6f79.mjs.map} +1 -1
- package/package.json +11 -11
- package/dist/assets/nodeLayout.worker-30c2c715.js.map +0 -1
- package/dist/index-0669fb1d.mjs +0 -17267
- package/dist/index-0669fb1d.mjs.map +0 -1
- package/dist/types/src/pixiFunctions/timelineGuide.d.ts +0 -20
- package/dist/types/src/pixiFunctions/timelineGuides.d.ts +0 -33
- package/dist/types/src/pixiFunctions/timelineScale.d.ts +0 -7
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Application, Container } from 'pixi.js';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
import { ParsedThemeStyles } from '../models';
|
|
4
|
-
type TimelineGuideProps = {
|
|
5
|
-
pixiApp: Application;
|
|
6
|
-
labelText: string | null;
|
|
7
|
-
styleOptions: ComputedRef<ParsedThemeStyles>;
|
|
8
|
-
};
|
|
9
|
-
export declare class TimelineGuide extends Container {
|
|
10
|
-
private readonly pixiApp;
|
|
11
|
-
private readonly labelText;
|
|
12
|
-
private readonly styleOptions;
|
|
13
|
-
private guideLine;
|
|
14
|
-
private label;
|
|
15
|
-
constructor({ pixiApp, labelText, styleOptions, }: TimelineGuideProps);
|
|
16
|
-
private initGuideLine;
|
|
17
|
-
private drawLabel;
|
|
18
|
-
updateHeight(appHeight: number): void;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Container } from 'pixi.js';
|
|
2
|
-
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { FormatDateFns, GraphState } from '../models';
|
|
4
|
-
type TimelineGuideProps = {
|
|
5
|
-
graphState: GraphState;
|
|
6
|
-
maximumEndDate: Ref<Date | undefined>;
|
|
7
|
-
formatDateFns: ComputedRef<FormatDateFns>;
|
|
8
|
-
};
|
|
9
|
-
export declare class TimelineGuides extends Container {
|
|
10
|
-
private readonly graphState;
|
|
11
|
-
private readonly maximumEndDate;
|
|
12
|
-
private readonly formatDateFns;
|
|
13
|
-
private readonly unWatchers;
|
|
14
|
-
private idealGuideCount;
|
|
15
|
-
private currentTimeGap;
|
|
16
|
-
private labelFormatter;
|
|
17
|
-
private readonly guides;
|
|
18
|
-
constructor({ graphState, maximumEndDate, formatDateFns, }: TimelineGuideProps);
|
|
19
|
-
private initWatchers;
|
|
20
|
-
updateGuides(): void;
|
|
21
|
-
private updateIdealGuideCount;
|
|
22
|
-
private updateCurrentTimeGap;
|
|
23
|
-
private createGuides;
|
|
24
|
-
private getGuidePosition;
|
|
25
|
-
private updateGuidePositions;
|
|
26
|
-
private setLabelFormatter;
|
|
27
|
-
private formatByMinutesWithDates;
|
|
28
|
-
private isRedrawRequired;
|
|
29
|
-
private noGuidesExist;
|
|
30
|
-
private isGuideLengthOutdated;
|
|
31
|
-
destroy(): void;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DateToX, XToDate, TimelineScale, InitTimelineScaleProps } from '../models';
|
|
2
|
-
export declare let timelineScale: {
|
|
3
|
-
dateToX: DateToX;
|
|
4
|
-
xToDate: XToDate;
|
|
5
|
-
};
|
|
6
|
-
export declare const createTimelineScale: ({ minimumStartTime, graphXDomain, initialOverallTimeSpan, }: InitTimelineScaleProps) => TimelineScale;
|
|
7
|
-
export declare const initTimelineScale: ({ minimumStartTime, graphXDomain, initialOverallTimeSpan, }: InitTimelineScaleProps) => TimelineScale;
|