mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-15 16:02:19 +08:00
Merge pull request #137 from iHTCboy/main
fix: 修复 AI 智能抠图的画笔大小和硬度调节无效问题
This commit is contained in:
commit
a285e8d850
@ -83,8 +83,8 @@ let mattingParam: MattingType | null
|
||||
const mattingStart = (mattingOptions: MattingType) => {
|
||||
mattingOptions.initLoadImages(props.raw, props.result)
|
||||
state.isErasing = mattingOptions.isErasing
|
||||
state.radius = Number(mattingOptions.radius)
|
||||
state.hardness = Number(mattingOptions.hardness)
|
||||
state.radius = mattingOptions.radius as number;
|
||||
state.hardness = mattingOptions.hardness as number;
|
||||
state.constants = mattingOptions.constants
|
||||
mattingParam = mattingOptions
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user