3

私が使用Raphael JS libraryしていて、Chrome と Safari でエラーが発生しました

要素属性値の負の値が無効です

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

誰かがそのような状況にあり、私に何かを提案できるかもしれません。

事前にTHX

問題は 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;
                    }
4

0 に答える 0