leafer-ui
leafer-ui copied to clipboard
子 stroke 的 style 设置 strokeAlign 无效
子 stroke 的 style 设置 strokeAlign 无效,我看ts类型中定义了,但是文档确实没有说支持,是还没有支持吗?
import { Leafer, Text } from 'leafer-ui'
const leafer = new Leafer({ view: window })
const rect = new Text({
fill: "#f40",
text: "leafer",
fontSize: 100,
"strokeAlign": "outside",
x: 100,
stroke: [
{
"type": "solid",
"color": "#ffffff",
"style": {
"strokeWidth": 12,
"strokeJoin": "round",
"strokeAlign": "inside",
"strokeCap": "round"
},
"visible": true
},
{
"type": "solid",
"color": "#000",
"visible": true,
"style": {
"strokeWidth": 5,
"strokeJoin": "round",
"strokeAlign": "center"
}
}
]
})
leafer.add(rect)
是的,目前还不支持,可以通过设置strokeWidth来模拟
是不是有什么困难,可以支持吗?
会增加几何倍的代码复杂度,后续维护也会更麻烦。
后续想到好的方案再支持。
好的,感谢解答