by moomooc · 9y ago · 0 comments
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 ');
-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>