gpt4 book ai didi

javascript - 拉斐尔 JS : wrong position after scale path in IE

转载 作者:行者123 更新时间:2023-11-29 10:51:17 25 4
gpt4 key购买 nike

我在 Internet Explorer 中缩放路径时遇到问题,因为它会导致错误的位置。

这里是 playground 的例子,在 FF 和 IE 中查看:

paper.path("m40,40 h10 v10 h-10 v-10").transform("s8");

我在 Raphael playground 和这里试过这个:http://jsfiddle.net/M4Rmm/ .

在 Firefox 和 Chrome 中工作,但在 IE 中路径被移动并且位置错误。不管我使用 .scale() 还是 .transform() 函数。

paper.path("m40,40 h10 v10 h-10 v-10").scale(8,8); //same result like .transform("s8");

我的系统:Win7, x64/FF10, IE8/Raphael 2.x

我也试过新的Raphael version 2.1.0,但是出现了同样的问题。

有什么想法,如何解决这个问题?

最佳答案

我在 IE 中有同样的定位问题,我有两个弧(我使用了 raphael polar-clock arc 函数的简化版本)。但是在 IE 中定位不对。

我按照 Chris 的建议更改了 matrix.translate,这解决了我的问题。

谢谢

关于javascript - 拉斐尔 JS : wrong position after scale path in IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9718089/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com