This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express' | |
import { createCanvas, CanvasRenderingContext2D } from "canvas"; | |
import { applyPath2DToCanvasRenderingContext } from "path2d"; | |
applyPath2DToCanvasRenderingContext(CanvasRenderingContext2D); | |
// Path2D features has now been added to CanvasRenderingContext2D | |
const app = express() | |
const port = 3000 |