fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
29.2k stars 3.52k forks source link

[Feature]: Fabric.js support for webworkers #10042

Open girish1729 opened 3 months ago

girish1729 commented 3 months ago

CheckList

Description

I have seen multiple discussions on fabric.js webworkers here.

There is suggestion to use the node package which works well for my API purposes but I can't see how to import them in a webworker.

This line:

import * ad fabric from 'fabric/node';

does not work in webworker.

Are thre any plans?

I see discussions till 2023 with no conclusive evidence.

I need this to get my image filters working async.

Current State

All dicussions are dated with old code.

Additional Context

If I could help in some way or contribute code I will be glad.

Thanks.

asturur commented 3 months ago

there is a full demo somewhere of webworkers in browser, but the strategy to make it solid wasn't clear.

asturur commented 3 months ago

https://github.com/fabricjs/fabric.js/pull/8774