@prefecthq/graphs 2.2.16 → 2.3.0
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/graphs.mjs +12467 -10226
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +139 -139
- package/dist/graphs.umd.js.map +1 -1
- package/dist/types/src/components/RunGraph.vue.d.ts +1 -0
- package/dist/types/src/factories/animation.d.ts +0 -2
- package/dist/types/src/factories/artifact.d.ts +3 -1
- package/dist/types/src/factories/artifactCluster.d.ts +2 -0
- package/dist/types/src/factories/artifactNode.d.ts +4 -4
- package/dist/types/src/factories/circularProgressBar.d.ts +9 -0
- package/dist/types/src/models/artifact.d.ts +9 -3
- package/package.json +5 -4
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
fullscreen: boolean | null;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
23
|
+
|
|
23
24
|
type __VLS_WithDefaults<P, D> = {
|
|
24
25
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
26
|
default: D[K];
|
|
@@ -5,10 +5,12 @@ type ArtifactFactoryOptions = {
|
|
|
5
5
|
enableLocalClickHandling?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function artifactFactory(artifact: RunGraphArtifact, { cullAtZoomThreshold, enableLocalClickHandling, }?: ArtifactFactoryOptions): Promise<{
|
|
8
|
+
isArtifact: boolean;
|
|
8
9
|
element: import("pixi.js").Container<import("pixi.js").DisplayObject>;
|
|
9
|
-
render: () => Promise<void>;
|
|
10
|
+
render: (artifact: RunGraphArtifact) => Promise<void>;
|
|
10
11
|
getSelected: () => boolean;
|
|
11
12
|
getDate: () => Date;
|
|
12
13
|
getId: () => string;
|
|
13
14
|
}>;
|
|
15
|
+
export declare function isArtifactFactory(value: Record<string, unknown>): value is ArtifactFactory;
|
|
14
16
|
export {};
|
|
@@ -4,6 +4,7 @@ export type ArtifactClusterFactoryRenderProps = {
|
|
|
4
4
|
date: Date;
|
|
5
5
|
};
|
|
6
6
|
export declare function artifactClusterFactory(): Promise<{
|
|
7
|
+
isArtifactCluster: boolean;
|
|
7
8
|
element: import("pixi.js").Container<import("pixi.js").DisplayObject>;
|
|
8
9
|
render: (props?: ArtifactClusterFactoryRenderProps) => Promise<void>;
|
|
9
10
|
getSelected: () => boolean;
|
|
@@ -11,3 +12,4 @@ export declare function artifactClusterFactory(): Promise<{
|
|
|
11
12
|
getIds: () => string[];
|
|
12
13
|
isCluster: boolean;
|
|
13
14
|
}>;
|
|
15
|
+
export declare function isArtifactClusterFactory(value: Record<string, unknown>): value is ArtifactClusterFactory;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Container } from 'pixi.js';
|
|
2
|
-
import { ArtifactType } from '../models';
|
|
2
|
+
import { ArtifactType, RunGraphArtifactTypeAndData } from '../models';
|
|
3
3
|
type ArtifactNodeFactoryOptions = {
|
|
4
4
|
cullAtZoomThreshold?: boolean;
|
|
5
5
|
};
|
|
6
6
|
type ArtifactNodeFactoryRenderOptions = {
|
|
7
7
|
selected?: boolean;
|
|
8
8
|
name?: string;
|
|
9
|
-
type
|
|
10
|
-
};
|
|
9
|
+
type: ArtifactType;
|
|
10
|
+
} & RunGraphArtifactTypeAndData;
|
|
11
11
|
export declare function artifactNodeFactory({ cullAtZoomThreshold }: ArtifactNodeFactoryOptions): Promise<{
|
|
12
12
|
element: Container<import("pixi.js").DisplayObject>;
|
|
13
|
-
render: (options
|
|
13
|
+
render: (options: ArtifactNodeFactoryRenderOptions) => Promise<Container>;
|
|
14
14
|
}>;
|
|
15
15
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CircularProgressBar, MaskedProgressBarOptions } from '@pixi/ui';
|
|
2
|
+
type CircularProgressBarOptions = {
|
|
3
|
+
cullAtZoomThreshold?: boolean;
|
|
4
|
+
} & Partial<MaskedProgressBarOptions>;
|
|
5
|
+
export declare function circularProgressBarFactory(options?: CircularProgressBarOptions): Promise<{
|
|
6
|
+
element: CircularProgressBar;
|
|
7
|
+
render: (data: Partial<MaskedProgressBarOptions> & Pick<MaskedProgressBarOptions, 'lineWidth' | 'radius' | 'value'>) => CircularProgressBar;
|
|
8
|
+
}>;
|
|
9
|
+
export {};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
export declare const artifactTypes: readonly ["result", "markdown", "table", "unknown"];
|
|
1
|
+
export declare const artifactTypes: readonly ["result", "markdown", "table", "progress", "unknown"];
|
|
2
2
|
export type ArtifactType = typeof artifactTypes[number];
|
|
3
|
+
export type RunGraphArtifactTypeAndData = {
|
|
4
|
+
type: Exclude<ArtifactType, 'progress'>;
|
|
5
|
+
} | {
|
|
6
|
+
type: 'progress';
|
|
7
|
+
data: number;
|
|
8
|
+
};
|
|
3
9
|
export type RunGraphArtifact = {
|
|
4
10
|
id: string;
|
|
5
11
|
created: Date;
|
|
6
12
|
key?: string;
|
|
7
|
-
|
|
8
|
-
};
|
|
13
|
+
} & RunGraphArtifactTypeAndData;
|
|
9
14
|
export declare const artifactTypeIconMap: {
|
|
10
15
|
readonly markdown: "ArtifactMarkdown";
|
|
11
16
|
readonly table: "ArtifactTable";
|
|
12
17
|
readonly result: "ArtifactResult";
|
|
18
|
+
readonly progress: "Artifact";
|
|
13
19
|
readonly unknown: "Artifact";
|
|
14
20
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/graphs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "Large scale graphs designed for Prefect",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vite --host --mode=demo",
|
|
@@ -52,19 +52,20 @@
|
|
|
52
52
|
"postcss": "8.4.38",
|
|
53
53
|
"tailwindcss": "3.4.1",
|
|
54
54
|
"tsc-alias": "1.8.8",
|
|
55
|
-
"typescript": "5.
|
|
55
|
+
"typescript": "5.4.5",
|
|
56
56
|
"vite": "5.2.6",
|
|
57
57
|
"vite-svg-loader": "^5.1.0",
|
|
58
|
-
"vue-tsc": "2.0.
|
|
58
|
+
"vue-tsc": "2.0.19"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@prefecthq/prefect-design": "^2.10.
|
|
61
|
+
"@prefecthq/prefect-design": "^2.10.10",
|
|
62
62
|
"@prefecthq/vue-compositions": "^1.6.7",
|
|
63
63
|
"vue": "^3.2.45",
|
|
64
64
|
"vue-router": "^4.0.12"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@pixi-essentials/cull": "2.0.0",
|
|
68
|
+
"@pixi/ui": "^1.0.1",
|
|
68
69
|
"d3": "7.8.5",
|
|
69
70
|
"date-fns": "3.6.0",
|
|
70
71
|
"fontfaceobserver": "^2.3.0",
|