把一个svg图像转成json用zrender绘制
把每个元素的属性啥的映射好
new zrender.Path.extend({
shape: {
pathData: 路径,
id: node.shape.id,
},
style: {
fill: 'red',
stroke: 'red',
lineWidth: 1
}
});
这样写绘制不出来,不知道这个实例的opt参数项,或者有没有直接绘制svg的
https://ecomfe.github.io/zrender-doc/public/api.html#zrenderp...