Skip to content

Commit 8f7bb34

Browse files
committed
jsr support (part 2)
1 parent 06b500d commit 8f7bb34

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Skia Canvas
22

33
[![Tags](https://img.shields.io/github/release/DjDeveloperr/skia_canvas)](https://github.com/DjDeveloperr/skia_canvas/releases)
4-
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/skia_canvas@0.5.5/mod.ts)
4+
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/skia_canvas@0.5.6/mod.ts)
55
[![Checks](https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml/badge.svg)](https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml)
66
[![License](https://img.shields.io/github/license/DjDeveloperr/skia_canvas)](https://github.com/DjDeveloperr/skia_canvas/blob/master/LICENSE)
77
[![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/DjDeveloperr)
@@ -11,7 +11,7 @@ Fast HTML Canvas API implementation for Deno using Skia.
1111
## Example
1212

1313
```ts
14-
import { createCanvas } from "https://deno.land/x/skia_canvas@0.5.5/mod.ts";
14+
import { createCanvas } from "jsr:@gfx/canvas@0.5.6";
1515

1616
const canvas = createCanvas(300, 300);
1717
const ctx = canvas.getContext("2d");
@@ -39,13 +39,13 @@ canvas.save("image.png");
3939
## Usage
4040

4141
Since this library depends on the unstable FFI API, you must pass `--allow-env`,
42-
`--allow-ffi` and `--unstable` flags. Without it, the module will fail to find
43-
and open native library.
42+
`--allow-ffi` and `--unstable-ffi` flags. Without it, the module will fail to
43+
find and open native library.
4444

4545
```sh
46-
deno run --allow-ffi --allow-env --unstable <file>
46+
deno run --allow-ffi --allow-env --unstable-ffi <file>
4747
# or just
48-
deno run -A --unstable <file>
48+
deno run -A --unstable-ffi <file>
4949
```
5050

5151
## API

deno.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"tasks": {
77
"build": "cd native/build && CC=clang CXX=clang++ cmake .. && cmake --build . --config Release",
88
"build-win": "rm -rf native/build && mkdir native/build && cd native/build && cmake .. -G \"Visual Studio 17 2022\" -T ClangCL && cmake --build . --config Release",
9-
"test": "deno run -A --unstable ./test/test.ts",
10-
"test-prebuilt": "deno run -A --unstable --import-map=./test/import_map.json ./test/test.ts",
11-
"test-pdf": "deno run -A --unstable ./test/pdf.ts",
12-
"test-svg": "deno run -A --unstable ./test/svg.ts",
13-
"bench-deno": "deno bench -A --unstable bench/deno.js",
9+
"test": "deno run -A --unstable-ffi ./test/test.ts",
10+
"test-prebuilt": "deno run -A --unstable-ffi --import-map=./test/import_map.json ./test/test.ts",
11+
"test-pdf": "deno run -A --unstable-ffi ./test/pdf.ts",
12+
"test-svg": "deno run -A --unstable-ffi ./test/svg.ts",
13+
"bench-deno": "deno bench -A --unstable-ffi bench/deno.js",
1414
"bench-node": "node bench/node.mjs",
15-
"bench": "deno run -A --unstable bench/main.js",
16-
"build-skia": "deno run -A --unstable scripts/build_skia.ts"
15+
"bench": "deno run -A --unstable-ffi bench/main.js",
16+
"build-skia": "deno run -A --unstable-ffi scripts/build_skia.ts"
1717
},
1818

1919
"fmt": {

0 commit comments

Comments
 (0)