【问题标题】:Resize shapes with RaphaelJS使用 RaphaelJS 调整形状大小
【发布时间】:2011-09-16 17:11:15
【问题描述】:

Is it possible using RaphaelJS ? 我的意思是 2D 部分。

我认为唯一的方法是按比例重写所有路径,然后调整它们的大小以适合我的画布容器。

【问题讨论】:

    标签: jquery canvas svg javascript raphael


    【解决方案1】:

    是的。 From the raphael site

    var c = paper.circle(10, 10, 10);
    // makes the circle 1.5 times larger
    c.scale(1.5, 1.5);
    // makes the circle half as wide, and 75% as high
    c.scale(.5, .75);
    

    【讨论】:

    • 圆就是路,专为您创建。检查 Raphael 来源。
    猜你喜欢
    • 1970-01-01
    • 2021-04-27
    • 2017-03-09
    • 2014-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-30
    相关资源
    最近更新 更多