diff --git a/README-zh.md b/README-zh.md index f422a334..f4002a2f 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,7 +1,7 @@ # `skr canvas` ![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg) -![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm118-hotpink) +![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm121-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) diff --git a/README.md b/README.md index 1de5b9a3..3d7ea971 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # `skr canvas` ![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg) -![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm118-hotpink) +![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm121-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) diff --git a/rust-toolchain b/rust-toolchain index 44334278..12ab2163 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2023-08-09 +nightly-2023-12-11 diff --git a/scripts/build-skia.js b/scripts/build-skia.js index ba869923..95197c15 100644 --- a/scripts/build-skia.js +++ b/scripts/build-skia.js @@ -51,7 +51,6 @@ const GN_ARGS = [ `skia_enable_tools=false`, `skia_enable_svg=true`, `skia_enable_skparagraph=true`, - `skia_enable_sktext=true`, `skia_pdf_subset_harfbuzz=true`, `skia_use_expat=true`, `skia_use_system_expat=false`, diff --git a/skia b/skia index bd56a010..e8d7db9f 160000 --- a/skia +++ b/skia @@ -1 +1 @@ -Subproject commit bd56a010b6941116cd1900276bf5201f9a9c73da +Subproject commit e8d7db9facb4f23ab15d6205204d9b4bb61fe538 diff --git a/skia-c/skia_c.hpp b/skia-c/skia_c.hpp index 243a170a..d7fa629c 100644 --- a/skia-c/skia_c.hpp +++ b/skia-c/skia_c.hpp @@ -2,6 +2,7 @@ #define SKIA_CAPI_H #include +#include #include #include #include @@ -14,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/src/state.rs b/src/state.rs index d5a5f371..5c4c369e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -44,9 +44,9 @@ impl Default for Context2dRenderingState { shadow_blur: 0f32, shadow_color: RGBA::new(0, 0, 0, 255), shadow_color_string: "#000000".to_owned(), - /// 0.0 ~ 1.0 + // 0.0 ~ 1.0 global_alpha: 1.0, - /// A float specifying the amount of the line dash offset. The default value is 0.0. + // A float specifying the amount of the line dash offset. The default value is 0.0. line_dash_offset: 0.0, image_smoothing_enabled: true, image_smoothing_quality: FilterQuality::default(),