【发布时间】:2013-07-09 15:24:05
【问题描述】:
我在搞乱Raphael.js 并想将一些SVG 导入Raphael Objects。我检查了来自https://twitter.com/RaphaelJS 的一些推特帖子,他说您可以复制和粘贴路径点并使用它们。不幸的是,我无法让它工作。
我只想做这个简单的 svg:
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="841.89px" height="595.28px" viewBox="0 0 841.89 595.28" enable-background="new 0 0 841.89 595.28" xml:space="preserve">
<polyline fill="#CBBBA0" stroke="#000000" stroke-miterlimit="10" points="272.343,345.194 307.418,535.492 349.955,342.955 "/>
<circle fill="#E30613" stroke="#000000" stroke-miterlimit="10" cx="277.194" cy="282.881" r="62.313"/>
</svg>
进入拉斐尔对象。也许你有一些想法如何解决这个问题。
我认为可能是这样的:
var paper = Raphael(10, 50, 320, 200);
paper.path(["272.343,345.194 307.418,535.492 349.955,342.955"])
真糟糕!没用
谢谢
【问题讨论】: