@ogabrielluiz/patchflow 0.1.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.
@@ -0,0 +1,17 @@
1
+ import { ParseResult, PatchGraph, LayoutOptions, LayoutResult, Theme, DeepPartial, RenderOptions } from './types.cjs';
2
+ export { Block, CableColor, Connection, ConnectionEndpoint, ErrorCode, ErrorSeverity, LayoutBlock, LayoutConnection, LayoutPort, Param, ParseDiagnostic, Point, Port, SignalType, SocketColors } from './types.cjs';
3
+
4
+ declare function parse(input: string): ParseResult;
5
+
6
+ declare function layout(graph: PatchGraph, options?: LayoutOptions): LayoutResult;
7
+
8
+ declare function renderSvg(layoutResult: LayoutResult, theme: Theme): string;
9
+
10
+ declare const defaultTheme: Theme;
11
+ declare function createTheme(overrides: DeepPartial<Theme>): Theme;
12
+
13
+ declare const darkTheme: Theme;
14
+
15
+ declare function render(notation: string, options?: RenderOptions): string;
16
+
17
+ export { DeepPartial, LayoutOptions, LayoutResult, ParseResult, PatchGraph, RenderOptions, Theme, createTheme, darkTheme, defaultTheme, layout, parse, render, renderSvg };
@@ -0,0 +1,17 @@
1
+ import { ParseResult, PatchGraph, LayoutOptions, LayoutResult, Theme, DeepPartial, RenderOptions } from './types.js';
2
+ export { Block, CableColor, Connection, ConnectionEndpoint, ErrorCode, ErrorSeverity, LayoutBlock, LayoutConnection, LayoutPort, Param, ParseDiagnostic, Point, Port, SignalType, SocketColors } from './types.js';
3
+
4
+ declare function parse(input: string): ParseResult;
5
+
6
+ declare function layout(graph: PatchGraph, options?: LayoutOptions): LayoutResult;
7
+
8
+ declare function renderSvg(layoutResult: LayoutResult, theme: Theme): string;
9
+
10
+ declare const defaultTheme: Theme;
11
+ declare function createTheme(overrides: DeepPartial<Theme>): Theme;
12
+
13
+ declare const darkTheme: Theme;
14
+
15
+ declare function render(notation: string, options?: RenderOptions): string;
16
+
17
+ export { DeepPartial, LayoutOptions, LayoutResult, ParseResult, PatchGraph, RenderOptions, Theme, createTheme, darkTheme, defaultTheme, layout, parse, render, renderSvg };