我使用Raphael JS library
,我在Chrome和Safari中有一些错误
元素属性-value的无效值
Error: Invalid negative value for <image> attribute width="-3364.67" (index):1
Error: Invalid negative value for <image> attribute height="-3364.67" (index):1
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" (index):1
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" (index):1
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" raphael.js:6153
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" raphael.js:6175
Error: Invalid negative value for <image> attribute width="-3364.6662980435035" raphael.js:6153
Error: Invalid negative value for <image> attribute height="-3364.6662980435035" raphael.js:6175
也许某人有这样的情况并且可以向我推荐一些东西。
提前THXprombelem在Raphael.js上线~6153和6175
case "width":
node.setAttribute(att, value);
o._.dirty = 1;
if (attrs.fx) {
att = "x";
value = attrs.x;
} else {
break;
}
和
case "height":
node.setAttribute(att, value);
o._.dirty = 1;
if (attrs.fy) {
att = "y";
value = attrs.y;
} else {
break;
}