Famous / Famous/engine

SVG problem

Open
#399 2 comments 0 reactions 0 assignees View on GitHub
bug question
Dominant language
JavaScript
Stars
1.7k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

Hi,
this time i'm trying to create SVG's. The problem is: i create a big SVG canvas and then add "path" children to it, but they are not shown.

example:

var SVGcanvasNode = myScene.addChild();
var SVGcanvasDOM = new DOMElement(SVGcanvasNode , {tagName:"svg"});

/_here various setAttribute to set the svg_/

var pathNode= SVGcanvasNode .addChild();
var pathDOM= new DOMElement(pathNode, {tagName:"path"});

/_here various setAttribute to set the path_/

nodes are added to the DOM, but they are not visible in the page.
If i edit the code in Google Chrome just adding, for example, a blank space with the spacebar, everything comes out.

Thanks in advance for the help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.