Skip to content

Commit e733ac0

Browse files
committed
Move viz file
1 parent 2f30fd0 commit e733ac0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useId } from "react";
22

33
import type { SupportedEngine, SupportedFormat } from "../rendering";
44
import { samples } from "../samples/index.js";
5-
import { displayFormats, supportedEngines } from "../viz/index.js";
5+
import { displayFormats, supportedEngines } from "../viz.js";
66
import ItemMenu from "./ItemMenu.js";
77
import ItemSelection from "./ItemSelection.js";
88
import SiteLogo from "./SiteLogo.js";

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SupportedEngine } from "./rendering.js";
22
import type { ShareData } from "./utils.js";
3-
import { isSupportedEngine } from "./viz/index.js";
3+
import { isSupportedEngine } from "./viz.js";
44

55
const SPLIT_POS_NAME = "splitPos";
66
const LAST_SOURCE = "lastSource";

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
type ExportableFormat,
2323
sourceFormatExtension,
2424
supportedEngines,
25-
} from "./viz/index.js";
25+
} from "./viz.js";
2626

2727
const defaultEngine = supportedEngines[1];
2828

src/rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import workerURL from "viz.js/full.render.js?url";
33

44
import type { FileSaver } from "./FileSaver.js";
55
import { assertNever } from "./utils.js";
6-
import { sourceFormatExtension } from "./viz/index.js";
6+
import { sourceFormatExtension } from "./viz.js";
77

88
const createViz = () => new Viz({ workerURL });
99

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fromUint8Array, toUint8Array } from "js-base64";
22
import { deflate, inflate } from "pako";
33

44
import type { SupportedEngine } from "./rendering.js";
5-
import { isSupportedEngine } from "./viz/index.js";
5+
import { isSupportedEngine } from "./viz.js";
66

77
export const assertNever = (_: never): never => {
88
throw new Error("This should never happen.");

src/viz/index.ts renamed to src/viz.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ItemMenuItem } from "../components/ItemMenu.js";
2-
import type { SupportedEngine, SupportedFormat } from "../rendering.js";
1+
import type { ItemMenuItem } from "./components/ItemMenu.js";
2+
import type { SupportedEngine, SupportedFormat } from "./rendering.js";
33

44
export const sourceFormatName = "Source";
55
export const sourceFormatExtension = "gv";

0 commit comments

Comments
 (0)