two.js
                                
                                
                                
                                    two.js copied to clipboard
                            
                            
                            
                        A renderer agnostic two-dimensional drawing api for the web.
**I want to develop programs similar to CAD. The graphics are always covered. How can I solve this problem? thank you** **this.electronArray.push( this._two.makeRectangle(X, Y, 300, 100) ) ** **Do you...
**No tutorials using arrays or objects** ** var ddd = [400, 600, 120, 50, 140, 150, 160, 50, 180, 150, 190, 100, true] this.electronArray.push( this._two.makeCurve(ddd) )**
**Describe the bug** surfaceToClient of ZUI does not get affected by prior translateSurface (aka. panning) **To Reproduce** Steps to reproduce the behavior: 1. Go to [https://codepen.io/jonobr1/pen/PobMKwb](https://codepen.io/jonobr1/pen/PobMKwb) 2. Write `console.log(JSON.stringify(zui.surfaceToClient({x:10, y:10})))`...
**Is your feature request related to a problem? Please describe.** The main `types.d.ts` currently has types for `Two.ZUI`, but not types for `Two.Arc`. This is because adding them creates conflicts...
I want to add a background image to Two.Rectangle. The size of the background image can be increased to the same size as Two.Rectangle.
I'm attempting to render around 250,000 polygons with various node counts (3-35) in Two.JS. Read a few open questions here already and it seems that the canvas is the best...
**Describe the bug** Using the WebGL renderer in my conditions produces far blurrier output shapes than with the Canvas renderer or SVG renderer. I wouldn't be surprised if Retina magic...
**Describe the bug** I'm trying to create a twojs path from an svg path string **To Reproduce** Steps to reproduce the behavior: var d = 'M 10,30 A 20,20 0,0,1...
**Describe the feature you'd like** Create a static method on `Two.Path` to be able to combine any number different paths and return a new compound path. ```javascript const compound =...
We've been building a web app using paperJS specifically for lasso painting and have hit a wall. After about a thousand path objects, which sounds like a lot but is...