Skip to content

Commit

Permalink
Breaking up the main jsoncanvas file into a separate file for managin…
Browse files Browse the repository at this point in the history
…g embeds
  • Loading branch information
lovettbarron committed Jul 2, 2024
1 parent 68e6508 commit 8cbf5b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
9 changes: 2 additions & 7 deletions src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ import remark2rehype from "remark-rehype";
import rehypeStringify from "rehype-stringify";
import html2canvas from "html2canvas";

import { JSONCanvas, Edge, GenericNode } from "@trbn/jsoncanvas";
import { GenericNode } from "@trbn/jsoncanvas";

import {
createCanvas,
loadImage,
Canvas,
CanvasRenderingContext2D,
} from "canvas";
import { loadImage, Canvas, CanvasRenderingContext2D } from "canvas";
// import { applyDefaults, Options } from "./options";

// This renders out the images
Expand Down
7 changes: 1 addition & 6 deletions src/jsoncanvas.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { JSONCanvas, Edge, GenericNode } from "@trbn/jsoncanvas";

import {
createCanvas,
loadImage,
Canvas,
CanvasRenderingContext2D,
} from "canvas";
import { createCanvas, Canvas, CanvasRenderingContext2D } from "canvas";
import { applyDefaults, Options } from "./options";

export function validate(jsonCanvasData: JSONCanvas) {
Expand Down

0 comments on commit 8cbf5b3

Please sign in to comment.