Skip to content

Commit 66bc3bb

Browse files
authored
feat: Add support for the canon output format
* Add support for the `canon` output format * Added the `canon` format to the tests
1 parent 15665b1 commit 66bc3bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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";
7+
export type Format = "svg" | "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/test/graphviz.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-
export const formats: Format[] = ["svg", "dot", "json", "dot_json", "xdot_json", "plain", "plain-ext"];
7+
export const formats: Format[] = ["svg", "dot", "json", "dot_json", "xdot_json", "plain", "plain-ext", "canon"];
88
export const engines: Engine[] = ["circo", "dot", "fdp", "sfdp", "neato", "osage", "patchwork", "twopi", "nop", "nop2"];
99

1010
describe("all combos", function () {

0 commit comments

Comments
 (0)