two.js icon indicating copy to clipboard operation
two.js copied to clipboard

A renderer agnostic two-dimensional drawing api for the web.

Results 89 two.js issues
Sort by recently updated
recently updated
newest added

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 {...

enhancement

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...

enhancement

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...

enhancement

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...

enhancement

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...

enhancement
question

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.

enhancement

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.

bug

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 ``,...

enhancement

It will be very good to have something like bunnymark and direct comparison with Pixi and other WebGL wrappers....

enhancement
question

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...

enhancement