Comments (3)
Hey @kangax , was thinking of taking a stab at this. Off the top of my head, here's what needs to be done:
- Add a type property to the options expected by .setGradientFill() that'd have values linear or radial
- Use .createRadialGradient() to implement the visuals
Any gotchas in implementing this that I should know of?
from fabric.js.
Sounds good! Well, createRadialGradient
has different syntax (radius 1, radius 2 instead of x1,y1 and x2,y2) so we'll need different parameters to accomodate that.
Aside from that, there's SVG output to take care of, as usual.
from fabric.js.
Fixed in 5e177b2
from fabric.js.
Related Issues (20)
- [Bug]: i-text render different in ubuntu and window HOT 5
- feat(): Have rollup take ack of node 16 support
- [Bug]: HOT 3
- [Bug]: blurred text in zoom if use paintFirst: "stroke" HOT 7
- dragHandler => Control? HOT 5
- [Bug]: Impossible to resize object when added as clippath HOT 5
- [Feature]: listening to subTargets hovering change from the canvas HOT 11
- [Bug CI]: tests are failing when merging to master
- [Bug]: importing previously exprted svg changes clipPath HOT 2
- [Bug]: export svgColor not comply with svg specification HOT 1
- [Bug]: Ellipse stroke gets clipped HOT 7
- [Bug]: `getBoundsOfCurve` doesn't account for `strokeWidth` HOT 2
- [Bug]: Cropped image after running toSVG
- [Bug]: Google Chrome (v118) no longer supports Pattern features HOT 11
- [Bug]: Fast dragging control box moves control points in v6 HOT 2
- "object:modified" event doesn't get fired when changing object props using set method HOT 3
- [Feature]: How to add some custom property in Object HOT 2
- [Feature]: Add the ability to have arrows at the start and/or end of a line. HOT 2
- [Bug]: Issue with font mark of Asean font only for Text on Path HOT 10
- [Bug]: The polyline origin position keeps moving when I am dragging the point after scale if set strokeUniform = true HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric.js.