mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
* [wip]feat: implement Color Overlay node's base logic * [wip]feat: attempt implementing node * feat: implement naive node logic - this needs to accommodate coloring the image * [wip]feat: attempt implementing ColorFillNode * fix: color fill node implementation path * Simplify document node definition * [wip]feat: implement ColorFillNode - correct the node implementation logic -[wip]use node in Color Overlay node network * Remove secondary image input * chore: perform cleanup and minor optimization - rename ColorFillNode node to Color Fill - remove unneeded clone method call * refactor: optimize node logic and hide optional params * fix: color fill implementation - fix broken color fill implementation logic - add alpha multiplication data to the image * Fix colour overlay node * Blend mode * chore: remove unused import * Debug logging for overlay * Use premultiplied alpha * Comment out logging * Code review nits * Remove color debug logging --------- Co-authored-by: Dennis Kobert <dennis@kobert.dev> Co-authored-by: 0hypercube <0hypercube@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
67 lines
2.0 KiB
TOML
67 lines
2.0 KiB
TOML
[package]
|
|
name = "graphene-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "API definitions for Graphene"
|
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
std = ["dyn-any", "dyn-any/std", "alloc", "glam/std", "specta", "num-traits/std", "rustybuzz"]
|
|
default = ["async", "serde", "kurbo", "log", "std", "rand_chacha", "wasm"]
|
|
log = ["dep:log"]
|
|
serde = ["dep:serde", "glam/serde", "bezier-rs/serde", "bezier-rs/serde", "base64"]
|
|
gpu = ["spirv-std", "glam/bytemuck", "dyn-any", "glam/libm"]
|
|
async = ["async-trait", "alloc"]
|
|
nightly = []
|
|
alloc = ["dyn-any", "bezier-rs"]
|
|
type_id_logging = []
|
|
wasm = ["web-sys"]
|
|
|
|
[dependencies]
|
|
dyn-any = { path = "../../libraries/dyn-any", features = [
|
|
"derive",
|
|
"glam",
|
|
], optional = true, default-features = false }
|
|
|
|
spirv-std = { version = "0.9", optional = true }
|
|
bytemuck = { version = "1.8", features = ["derive"] }
|
|
async-trait = { version = "0.1", optional = true }
|
|
serde = { version = "1.0", features = [
|
|
"derive",
|
|
"rc"
|
|
], optional = true, default-features = false }
|
|
log = { version = "0.4", optional = true }
|
|
|
|
rand_chacha = { version = "0.3.1", optional = true }
|
|
bezier-rs = { path = "../../libraries/bezier-rs", optional = true }
|
|
kurbo = { git = "https://github.com/linebender/kurbo.git", features = [
|
|
"serde",
|
|
], optional = true }
|
|
spin = "0.9.2"
|
|
glam = { version = "0.24", default-features = false, features = [
|
|
"scalar-math",
|
|
] }
|
|
node-macro = { path = "../node-macro" }
|
|
base64 = { version = "0.21", optional = true }
|
|
specta.workspace = true
|
|
specta.optional = true
|
|
|
|
rustybuzz = { version = "0.8.0", optional = true }
|
|
|
|
num-derive = { version = "0.4" }
|
|
num-traits = { version = "0.2.15", default-features = false, features = [
|
|
"i128",
|
|
] }
|
|
|
|
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
js-sys = { version = "0.3.55", optional = true }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.4"
|
|
optional = true
|
|
features = ["HtmlCanvasElement"]
|