Re:Show HN: Vecta.io - Team diagramming with an advanced SVG...
by RandyRanderson on Wednesday July 05, 2017 @10:21AM
(#14702591)
Signed up and created a new doc in latest chrome with ad blockers disabled. Stuck at "Loading" throbber with js console err:
-KoI4H-rmhQDnC4k4U3X:234 GET https://vecta.io/js/jspdf.debug.js -KoI4H-rmhQDnC4k4U3X:234 GET https://vecta.io/js/jspdf.debug.js 404 () objects.3f4dc78a27.js:3 Uncaught (in promise) TypeError: Cannot read property 'width' of undefined at Vecta.Document.insertPage (objects.3f4dc78a27.js:3) at Object.callback (objects.3f4dc78a27.js:3) at fire.afed4e0fe2.js:1 at <anonymous>
The namespace 'Vecta' allows you to access the page or shapes in your active drawing. Vecta.activePage.shapes returns you an array of shapes in your current drawing. You can try setting the color to the first shape with a simple line like this: Vecta.activePage.shapes(0).style('fill', '#ff0000 ');