@prefecthq/graphs 0.1.12 → 0.1.13

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.
@@ -44,6 +44,7 @@ export type TextStyles = {
44
44
  nodeTextInverse: Partial<IBitmapTextStyle>;
45
45
  nodeTextStyles: TextStyle;
46
46
  timeMarkerLabel: Partial<IBitmapTextStyle>;
47
+ playheadTimerLabel: Partial<IBitmapTextStyle>;
47
48
  };
48
49
  type FormatDate = (date: Date) => string;
49
50
  export type FormatDateFns = {
@@ -15,16 +15,13 @@ export declare class TimelineEdge extends Container {
15
15
  private sourceY;
16
16
  private targetX;
17
17
  private targetY;
18
- private directionFromSource;
19
18
  private readonly edge;
20
19
  private readonly arrow;
21
20
  private readonly unwatch;
22
21
  constructor({ styles, sourceNode, targetNode, }: TimelineEdgeProps);
23
22
  private assignStartAndEndPositions;
24
23
  private drawEdge;
25
- private readonly getSourcePosition;
26
- private readonly getSourceBezier;
27
- private readonly getTargetBezier;
24
+ private readonly getXBezier;
28
25
  private drawArrow;
29
26
  update(): void;
30
27
  destroy(): void;
@@ -33,7 +33,7 @@ export declare class TimelineNodes extends Container {
33
33
  private updateNodeRecordAndEdgesLayout;
34
34
  private createNode;
35
35
  private fitNodesInViewport;
36
- private addEdges;
36
+ private addNodeEdges;
37
37
  update(newData?: TimelineNodeData[]): void;
38
38
  updateSelection(selectedNodeId?: string | null): void;
39
39
  private highlightSelectedNodePath;
@@ -2,20 +2,24 @@ import type { Viewport } from 'pixi-viewport';
2
2
  import { Container } from 'pixi.js';
3
3
  import type { Application } from 'pixi.js';
4
4
  import { ComputedRef } from 'vue';
5
- import { ParsedThemeStyles } from '../models';
5
+ import { FormatDateFns, ParsedThemeStyles } from '../models';
6
6
  type TimelinePlayheadProps = {
7
7
  viewportRef: Viewport;
8
8
  appRef: Application;
9
+ formatDateFns: ComputedRef<FormatDateFns>;
9
10
  styles: ComputedRef<ParsedThemeStyles>;
10
11
  };
11
12
  export declare class TimelinePlayhead extends Container {
12
13
  private readonly viewportRef;
13
14
  private readonly appRef;
15
+ private readonly formatDateFns;
14
16
  private readonly styles;
15
17
  private readonly unwatch;
16
18
  private readonly playhead;
17
- constructor({ viewportRef, appRef, styles, }: TimelinePlayheadProps);
19
+ private label;
20
+ constructor({ viewportRef, appRef, formatDateFns, styles, }: TimelinePlayheadProps);
18
21
  private drawPlayhead;
22
+ private drawTimeLabel;
19
23
  updatePosition(): void;
20
24
  destroy(): void;
21
25
  }
@@ -1,4 +1,4 @@
1
- import { P as c, R as b, T as C, C as P } from "./index-fc45ccf7.mjs";
1
+ import { P as c, R as b, T as C, C as P } from "./index-2abc99ba.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-bb25550c.mjs.map
1533
+ //# sourceMappingURL=viewport.es-0176c6aa.mjs.map