We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just recording some notes about adding linear & radial gradient support:
["linearGradient", {id: "foo", from: [0,0], to: [100,100]}, [0, "#f00"], [1, "#0cf"]]
Gradient defs will need to be stored in DrawState (add gradients field)
DrawState
gradients
Use $ prefix for gradient refs and add special handling for stroke & fill shape attribs, i.e. to check for $foo
$
stroke
fill
$foo
The text was updated successfully, but these errors were encountered:
feat(hdom-canvas): fix #43, add gradient support
81fe154
- add "linearGradient"/"radialGradient" shape types - add defLinearGradient() & defRadialGradient() - update mergeState(), restoreState() & setAttrib()
postspectacular
No branches or pull requests
Just recording some notes about adding linear & radial gradient support:
Gradient defs will need to be stored in
DrawState
(addgradients
field)Use
$
prefix for gradient refs and add special handling forstroke
&fill
shape attribs, i.e. to check for$foo
The text was updated successfully, but these errors were encountered: