-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into modernize-module
- Loading branch information
Showing
3 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Skia Canvas | ||
|
||
[![Tags](https://img.shields.io/github/release/DjDeveloperr/skia_canvas)](https://github.com/DjDeveloperr/skia_canvas/releases) | ||
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].5/mod.ts) | ||
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].6/mod.ts) | ||
[![Checks](https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml/badge.svg)](https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml) | ||
[![License](https://img.shields.io/github/license/DjDeveloperr/skia_canvas)](https://github.com/DjDeveloperr/skia_canvas/blob/master/LICENSE) | ||
[![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. | |
## Example | ||
|
||
```ts | ||
import { createCanvas } from "https://deno.land/x/skia_canvas@0.5.5/mod.ts"; | ||
import { createCanvas } from "jsr:@gfx/canvas@0.5.6"; | ||
|
||
const canvas = createCanvas(300, 300); | ||
const ctx = canvas.getContext("2d"); | ||
|
@@ -39,13 +39,13 @@ canvas.save("image.png"); | |
## Usage | ||
|
||
Since this library depends on the unstable FFI API, you must pass `--allow-env`, | ||
`--allow-ffi` and `--unstable` flags. Without it, the module will fail to find | ||
and open native library. | ||
`--allow-ffi` and `--unstable-ffi` flags. Without it, the module will fail to | ||
find and open native library. | ||
|
||
```sh | ||
deno run --allow-ffi --allow-env --unstable <file> | ||
deno run --allow-ffi --allow-env --unstable-ffi <file> | ||
# or just | ||
deno run -A --unstable <file> | ||
deno run -A --unstable-ffi <file> | ||
``` | ||
|
||
## API | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
export { dlopen } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { | ||
createDownloadURL, | ||
ensureCacheLocation, | ||
} from "https://deno.land/x/[email protected]/download.ts"; | ||
export { isFile, urlToFilename } from "https://deno.land/x/[email protected]/util.ts"; | ||
export type { FetchOptions } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { | ||
dirname, | ||
extname, | ||
join, | ||
} from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts"; | ||
export { | ||
decodeBase64, | ||
encodeBase64, | ||
} from "https://deno.land/[email protected]/encoding/base64.ts"; | ||
} from "jsr:@std/[email protected]/base64"; | ||
export { dlopen } from "jsr:@denosaurs/[email protected]"; | ||
export { | ||
createDownloadURL, | ||
ensureCacheLocation, | ||
} from "jsr:@denosaurs/[email protected]/download"; | ||
export { isFile, urlToFilename } from "jsr:@denosaurs/[email protected]/util"; | ||
export type { FetchOptions } from "jsr:@denosaurs/plug@1"; | ||
export { dirname, extname, join } from "jsr:@std/[email protected]"; | ||
export { ensureDir } from "jsr:@std/[email protected]"; |