Skip to content

Commit

Permalink
feat: Add support for the canon output format
Browse files Browse the repository at this point in the history
* Add support for the `canon` output format
* Added the `canon` format to the tests
  • Loading branch information
tmr232 authored Sep 17, 2024
1 parent 15665b1 commit 66bc3bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/graphviz/src/graphviz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import load, { reset } from "../../../build/packages/graphviz/src-cpp/graphvizli
/**
* 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.
*/
export type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext";
export type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext" | "canon";

/**
* Various algorithms for projecting abstract graphs into a space for visualization. See [Layout Engines](https://graphviz.gitlab.io/docs/layouts/) for more details.
Expand Down
2 changes: 1 addition & 1 deletion packages/graphviz/test/graphviz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { badDot, dot } from "./dot001.js";
import { ortho } from "./dot002.js";
import { dotMemory } from "./dot003.js";

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

describe("all combos", function () {
Expand Down

0 comments on commit 66bc3bb

Please sign in to comment.