two.js
                                
                                
                                
                                    two.js copied to clipboard
                            
                            
                            
                        A renderer agnostic two-dimensional drawing api for the web.
Hi, I am struggling when writing unit tests in a react/jest environment for my canvas drawing methods. In contrast to the built-in browser canvas, I use `node-canvas`: ``` import {...
I really like the simplicity of working with Two.js so far, but I was wondering if there is any explicit way to control the depth/z order of objects. I couldn't...
I am loading an image inside the SVG board through file form selector. When I upload a bigger image, it takes time to load on the SVG board even though...
Hi all! I'm new to two.js so forgive me if the question is stupid. I'm running into performance issues with the WebGLRenderer with large numbers of `Two.Sprite` all using the...
This may be related to #328. Currently, each `Two.Anchor` has a `Command` property. However, these are a value from the `Two.Commands` enum, which mirrors SVG commands. The problem is that...
Currently the `Two.Anchor` support `move`, `line` and `curve` commands, but we'll need to include `arc` moving forward. Figure out a way to gracefully handle this.
The logic for copying Path.matrix isn't present in the clone methods for shapes subclassing Two.Path such as Two.Circle. For that reason, the script from #402 still shows a problem.
Currently two.js can only create an svg `clipPath` with a single path, as commented here: https://github.com/jonobr1/two.js/blob/06392d97b7e1753c97874c79845e43b232fb7c60/src/renderer/svg.js#L324-L328 It seems true that we can't add a `` as a child of ``,...
It will be very good to have something like bunnymark and direct comparison with Pixi and other WebGL wrappers....
Currently, there's a lot of stuff in Two.Utils that was copied in from Underscore. It looks like some work has already been put into reducing the use of Underscore in...