Skip to content

Commit

Permalink
fix: use viewbox as svg_container_size if width & height is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Aug 2, 2021
1 parent 6ca9526 commit 406a298
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 8 deletions.
5 changes: 4 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# `skr canvas`

![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm93-hotpink)
[![install size](https://packagephobia.com/badge?p=@napi-rs/canvas)](https://packagephobia.com/result?p=@napi-rs/canvas)
[![Downloads](https://img.shields.io/npm/dm/@napi-rs/canvas.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)

> 🚀 帮助我成为全职开源开发者: [Sponsoring me on Github](https://github.com/sponsors/Brooooooklyn)
通过 [Node-API](https://napi.rs) 将 Google Skia 绑定到 Node.js。 **零系统依赖**

> ⚠️ 这个项目还处于早期开发阶段。<br/>
> ⚠️ 这个项目还处于预发布阶段,可能会存在一些 Bug。<br/>
> 在这里可以找到此项目的具体开发计划和路线图 [Roadmap](https://github.com/Brooooooklyn/canvas/issues/113)
[English](./README.md)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# `skr canvas`

![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm93-hotpink)
[![install size](https://packagephobia.com/badge?p=@napi-rs/canvas)](https://packagephobia.com/result?p=@napi-rs/canvas)
[![Downloads](https://img.shields.io/npm/dm/@napi-rs/canvas.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)

> 🚀 Help me to become a full-time open-source developer by [sponsoring me on Github](https://github.com/sponsors/Brooooooklyn)
Google Skia binding to Node.js via [Node-API](https://napi.rs), **0 System dependencies!**

⚠️ This project is in very early stage.<br/>
⚠️ This project is in pre-release stage. And there may some bugs existed.<br/>
For details on planned features and future direction please refer to the [Roadmap](https://github.com/Brooooooklyn/canvas/issues/113).

[中文文档](./README-zh.md)
Expand Down
Loading

1 comment on commit 406a298

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 406a298 Previous: cc2e0dd Ratio
Draw house#skia-canvas 25 ops/sec (±0.72%) 22 ops/sec (±0.26%) 0.88
Draw house#node-canvas 21 ops/sec (±0.31%) 17 ops/sec (±1.03%) 0.81
Draw house#@napi-rs/skia 26 ops/sec (±0.34%) 20 ops/sec (±1.56%) 0.77
Draw gradient#skia-canvas 24 ops/sec (±0.37%) 22 ops/sec (±0.28%) 0.92
Draw gradient#node-canvas 20 ops/sec (±0.23%) 17 ops/sec (±0.29%) 0.85
Draw gradient#@napi-rs/skia 25 ops/sec (±0.06%) 20 ops/sec (±0.27%) 0.80

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.