From 66bc3bb7f3d8b7b207766e80230fb86973db99e8 Mon Sep 17 00:00:00 2001 From: Tamir Bahar <1386239+tmr232@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:36:54 +0300 Subject: [PATCH] feat: Add support for the `canon` output format * Add support for the `canon` output format * Added the `canon` format to the tests --- packages/graphviz/src/graphviz.ts | 2 +- packages/graphviz/test/graphviz.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/graphviz/src/graphviz.ts b/packages/graphviz/src/graphviz.ts index 3402cf3b..88a32d87 100644 --- a/packages/graphviz/src/graphviz.ts +++ b/packages/graphviz/src/graphviz.ts @@ -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. diff --git a/packages/graphviz/test/graphviz.ts b/packages/graphviz/test/graphviz.ts index 3ddadf8d..06cadea0 100644 --- a/packages/graphviz/test/graphviz.ts +++ b/packages/graphviz/test/graphviz.ts @@ -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 () {