Skip to content

Commit

Permalink
Merge branch 'main' into modernize-module
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr authored Mar 3, 2024
2 parents 3c4e7da + 8f7bb34 commit ada13d2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
12 changes: 6 additions & 6 deletions README.md
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)
Expand All @@ -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");
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "skia_canvas",
"name": "@gfx/canvas",
"github": "https://github.com/DjDeveloperr/skia_canvas",
"verision": "0.5.5",
"verision": "0.5.6",

"tasks": {
"build": "cd native/build && CC=clang CXX=clang++ cmake .. && cmake --build . --config Release",
Expand Down
24 changes: 10 additions & 14 deletions deps.ts
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]";

0 comments on commit ada13d2

Please sign in to comment.