deno-canvas icon indicating copy to clipboard operation
deno-canvas copied to clipboard

Canvas API for Deno, ported from canvaskit-wasm (Skia).

Results 17 deno-canvas issues
Sort by recently updated
recently updated
newest added

Tried setting textAlign and textBaseline. Does not make any difference ``` js ctx.textAlign ="center"; ctx.textBaseline="middle"; ```

Is there any chance that deno-canvas will get canvaskit-wasm bumped to version 0.35.0?

deno-canvas supports writing text to a canvas: ```ts import { createCanvas } from 'https://deno.land/x/canvas/mod.ts' const canvas = createCanvas(500,600) const ctx = canvas.getContext('2d') ctx.fillStyle='red' ctx.fillText(50,50,"Hello World") await Deno.writeFile("image.png", canvas.toBuffer()); ``` this...

I’ve tried deploying this to Deno Deploy, and get the following error: ``` EvalError: Code generation from strings disallowed for this context at new Function () at Qb (https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/v1.3.0/src/lib.js:3977:17) at...

Hello, thanks for this tool, it works great! But not when bundled: ```js import { createCanvas, loadImage } from "https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/master/mod.ts" let canvas = createCanvas(200, 200) let ctx = canvas.getContext("2d") let...

According to types.ts and lib.js, toBuffer() should accept type argument and support "image/png" as well as "image/jpeg". However, a PNG image is created even if "image/jpeg" is specified. PNG's can...

bug

I am using deno-canvas for making a test image and i was using a svg image url to load image but whenever i try to load image it throws me...

enhancement
help wanted

I have noticed that importing this library will cause a long delay before my script is executed. I assume the delay before the script executes is because the wasm file...

bug
help wanted

After a bit of reverse engineering (using mostly https://www.diffchecker.com), I ported Deno-canvas to [email protected]. I have successfully run the three examples in the repo but I think the medium to...

I realize this is probably an issue with canvaskit-wasm, but still it would be awesome if it worked (perhaps by inlcluding an additional small dependency). All the major browsers now...