@prefecthq/graphs 3.0.4 → 3.0.5

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.
@@ -54,6 +54,10 @@ export type RunGraphStateStyles = {
54
54
  background?: ColorSource;
55
55
  };
56
56
  export type RunGraphStyles = {
57
+ font?: {
58
+ fontFamily: string;
59
+ type: 'BitmapFont' | 'WebFont';
60
+ };
57
61
  rowGap?: number;
58
62
  columnGap?: number;
59
63
  textDefault?: ColorSource;
@@ -7,7 +7,7 @@ import { LayoutSettings } from '../models/layout';
7
7
  import { RequiredGraphConfig, RunGraphData, RunGraphStyles } from '../models/RunGraph';
8
8
  import { GraphItemSelection } from '../models/selection';
9
9
  import { ViewportDateRange } from '../models/viewport';
10
- import { Fonts } from '../objects/fonts';
10
+ import { FontFactory } from '../objects/fonts';
11
11
  import { VisibilityCull } from '../services/visibilityCull';
12
12
  type Events = {
13
13
  scaleCreated: HorizontalScale;
@@ -21,7 +21,7 @@ type Events = {
21
21
  viewportMoved: null;
22
22
  configCreated: RequiredGraphConfig;
23
23
  configUpdated: RequiredGraphConfig;
24
- fontsLoaded: Fonts;
24
+ fontLoaded: FontFactory;
25
25
  containerCreated: Container;
26
26
  layoutSettingsUpdated: LayoutSettings;
27
27
  layoutSettingsCreated: LayoutSettings;
@@ -1,9 +1,5 @@
1
1
  import { BitmapText } from 'pixi.js';
2
- declare const fonts: {
3
- readonly inter: (text: string) => BitmapText;
4
- };
5
- export type Fonts = typeof fonts;
2
+ export type FontFactory = (text: string) => BitmapText;
6
3
  export declare function startFonts(): Promise<void>;
7
4
  export declare function stopFonts(): void;
8
- export declare function waitForFonts(): Promise<Fonts>;
9
- export {};
5
+ export declare function waitForFonts(): Promise<FontFactory>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prefecthq/graphs",
3
3
  "private": false,
4
- "version": "3.0.4",
4
+ "version": "3.0.5",
5
5
  "description": "Large scale graphs designed for Prefect",
6
6
  "scripts": {
7
7
  "dev": "tsc -w & tsc-alias -w & vite build -w",