jquery - 使用 RaphaelJS 调整形状大小

标签 jquery canvas svg javascript raphael

Is it possible using RaphaelJS ? 我的意思是二维部分。

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

最佳答案

是的。 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);

关于jquery - 使用 RaphaelJS 调整形状大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6378170/

相关文章:

javascript - Dropzone.js 在文件上传后调用自定义函数

html - 动态地将 Canvas 宽度设置为完全等于高度而不会缩放失真

javascript - D3 力导向图方向

html - 使用 CSS 或 SVG 创建 Tab 形状

jquery - 内容隐藏不溢出隐藏

jquery - 专注于每个文本输入在这里不起作用

javascript - Twitter Bootstrap 3 轮播无法正常工作?

javascript - 从像素数据数组绘制图像

html - 什么是cufon和canvas以及如何覆盖它们

python - 使用 reportlab 将 .SVG 文件嵌入到 PDF 中