Skip to content

Commit 0ce48b1

Browse files
CopilotGordonSmith
andcommitted
feat: Add svg_inline to GraphViz Format type
fixes #320 * Add svg_inline to GraphViz Format type Co-authored-by: GordonSmith <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: GordonSmith <[email protected]>
1 parent a6c8cab commit 0ce48b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/graphviz/.copilot-package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Graphviz {
5959
### Types and Enums
6060
```typescript
6161
// Output formats
62-
type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext" | "canon"
62+
type Format = "svg" | "svg_inline" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext" | "canon"
6363

6464
// Layout engines
6565
type Engine = "circo" | "dot" | "fdp" | "sfdp" | "neato" | "osage" | "patchwork" | "twopi" | "nop" | "nop2"

packages/graphviz/src/graphviz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import load, { reset } from "../../../build/packages/graphviz/src-cpp/graphvizli
44
/**
55
* Various graphic and data formats for end user, web, documents and other applications. See [Output Formats](https://graphviz.gitlab.io/docs/outputs/) for more information.
66
*/
7-
export type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext" | "canon";
7+
export type Format = "svg" | "svg_inline" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext" | "canon";
88

99
/**
1010
* Various algorithms for projecting abstract graphs into a space for visualization. See [Layout Engines](https://graphviz.gitlab.io/docs/layouts/) for more details.

packages/graphviz/tests/graphviz.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { badDot, dot } from "./dot001.js";
44
import { ortho } from "./dot002.js";
55
import { dotMemory } from "./dot003.js";
66

7-
const formats: Format[] = ["svg", "dot", "json", "dot_json", "xdot_json", "plain", "plain-ext", "canon"];
7+
const formats: Format[] = ["svg", "svg_inline", "dot", "json", "dot_json", "xdot_json", "plain", "plain-ext", "canon"];
88
const engines: Engine[] = ["circo", "dot", "fdp", "sfdp", "neato", "osage", "patchwork", "twopi", "nop", "nop2"];
99

1010
describe("all combos", () => {

0 commit comments

Comments
 (0)