Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够将门表示为三角形,但较小的一侧如下图所示。
如何使用 SVG / Raphael 做到这一点?我了解如何制作三角形,但我不确定如何处理弯曲部分。
像任何其他 Raphael 路径一样创建一个路径(请参阅Raphael 文档的 path),并在其定义中包含一个椭圆弧 (A)。
这是一个带有示例的 JSFiddle:http: //jsfiddle.net/XzPzE/362/