Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "svg.js";
- class MyView2 extends PolymerElement {
- static get template() {
- return html`
- <div id="drawing"></div>
- `;
- }
- connectedCallback() {
- super.ready();
- var draw = SVG("drawing").size(300, 300);
- var rect = draw.rect(100, 100).attr({ fill: "#f06" });
- }
- }
- svg.js:3060 Uncaught TypeError: Cannot read property 'nodeName' of null
- at new create (svg.js:3060)
- at globalRef.SVG (svg.js:33)
- at HTMLElement.connectedCallback (my-view2.js:42)
- at my-view2.js:50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement