zrender
zrender copied to clipboard
zrender3是否还有modElement方法
zrender2是有modElement方法的,就是类似
zr.modElement(this.shape.id, { style: { "text": text, "xEnd": this.toNode.shape.style.x + this.toNode.shape.position[0], "yEnd": this.toNode.shape.style.y + NODE_HEIGHT / 2 + this.toNode.shape.position[1] } });
似乎zr3没有发现类似接口
那请问zr3里面有什么方法可以完成此效果列
zrender 3 修改属性可以有以下两种方式:
el.attr({ style: {} });
或者
el.style.xxx = '';
el.dirty();