leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

[Bug] 绘制特定圆形时卡死

Open Ronbb opened this issue 11 months ago • 2 comments

import { Leafer, Ellipse } from 'leafer-ui'

const leafer = new Leafer({ view: window })

const ellipse = new Ellipse({  
    fill: "rgb(50,205,121)",
    cornerRadius: 24,
})

leafer.add(ellipse)

Ronbb avatar Feb 07 '25 16:02 Ronbb

可以定位到 PathCorner.smooth 在 处理 [25, 50, 50, 50, 50] 时 swith case 没有 25 分支

Ronbb avatar Feb 07 '25 16:02 Ronbb

感谢反馈,Ellipse不支持cornerRadius, 我下次阻止一下

leaferjs avatar Feb 08 '25 01:02 leaferjs