问题描述
我明白这是一个三角形和一条线,但如何描述呢?
以下是从文档中添加您自己的元素的简短示例。
SVG.Rounded = SVG.invent({
// Define the type of element that should be created
create: 'rect'
// Specify from which existing class this shape inherits,inherit: SVG.Shape
// Add custom methods to invented shape,extend: {
// Create method to proportionally scale the rounded corners
size: function(width,height) {
return this.attr({
width: width,height: height,rx: height / 5,ry: height / 5
})
}
}
// Add method to parent elements,construct: {
// Create a rounded element
rounded: function(width,height) {
return this.put(new SVG.Rounded).size(width,height)
}
}
})
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)