Problem:
Uncaught DOMException: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The HTMLImageElement provided is in the ‘broken’ state.
scene.background属性之前可以直接写颜色,js
升级之后属性要改成“backgroundColor”
2.
增加图像缩放:
stage.wheelZoom=0.85
(官方API文档有介绍)
设置node位置 不是setPosition 应该是setLocation(x,y);
4.设置文字node:
var text=new JTopo.TextNode("出水口");
text.setLocation(100,300);
scene.add(text);