two.js
                                
                                
                                
                                    two.js copied to clipboard
                            
                            
                            
                        A renderer agnostic two-dimensional drawing api for the web.
**Is your feature request related to a problem? Please describe.** Two.js creates a texture registry so that multiple image elements aren't created for the same asset. To point to canonical...
**Describe the bug** After creating a texture neither the `texture.scale`, nor the `texture.className`, nor the `texture.image.style` features do a thing on the texture... **To Reproduce** Steps to reproduce the behavior:...
**Describe the bug** I'm trying to use a Two.Arc object (in the "extras") and to dynamically update the height and width after adding it to the scene. Binding a function...
**Describe your question** I'm building an indoor mapping system w/ Two.js. It's a refactor of our current map built on Leaflet.js. I need to be able to edit the perimeter...
Negative scale does not work, with webgl mode only. **To Reproduce** ``` var two = new Two({ type: Two.Types.webgl, fullscreen: true, autostart: true }).appendTo(document.body) const shape = two.makeRectangle(two.width * .5,...
I'm trying to add a rotation method to the ZUI. The two things I'm stuck on are: 1. getting an accurate rotation point/origin. 2. maintaining zoom Not sure why it's...
I have a Vue project that references this JS. In one of the pages, four graphics drawn by TwoJS were rendered. When I re rendered the page, the four TwoJs...
**Describe your question** I'm wondering if there is a way to have multiple objects have the same radial gradient? By this I mean there would be one universal radial gradient...
Hi, I'm currently playing around with `two.js` to build a select functionality for custom shapes (grouped shapes like circles + points, circle with only the outline, etc). The functionality will...
If I declare var data as `var data = two.scene.toObject()` I obtain a JSON Object. Now, how can I convert this JSON Object to a Two.Group?