Comments (3)
I've no experiences with Fabric.js, but I think you can maybe trigger it's behavior after the polyfill has run.
Edit: Okay, I see the issue now after having a look at Fabric.js. I think you need to delay this polyfill after Fabric is run. So you need to load and apply the polyfill after Fabric did its magic (and maybe re-apply it after changes have been made). You can see here how the polyfill is applied. Lazy loading the script is some Stackoverflow research.
It'll may be easier to have a global short hand method to call the polyfill dynamically...
from context-filter-polyfill.
Thanks. I'll check this and let you know if it works.
from context-filter-polyfill.
I checked the lazy loading script. Unfortunately its not working in my case because once the script is loaded it again overrides the default behaviour of all methods. I want to add filters and text from frabic.js simultaneously.
The global method sounds like a solution but I am really new to polyfill. I downloaded js from demo and struggling to create a global class for the same. Could you please create a Js and add to your repo?
from context-filter-polyfill.
Related Issues (13)
- the ctx.clearRect method doesn't work HOT 1
- Unusable with picajs
- Correct way to polyfill? HOT 5
- Any way to support globalCompositeOperation? HOT 1
- the ctx.fillRect method doesn't work HOT 1
- Any plan on supporting custom filters with url
- Only draws a rectangular portion of the image/canvas in Safari HOT 3
- Problem with CropperJs
- not all the files copied while installing plugin HOT 1
- Using blur on canvas, draw different color than actual HOT 5
- Error when filters are empty
- shadowContext canvas is using the default canvas size of 300x150 HOT 1
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 context-filter-polyfill.