refactor: some tweaks

This commit is contained in:
2026-03-16 09:02:35 +08:00
parent 7be206581d
commit c99f602efa
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -59,11 +59,11 @@ export async function traceImage(
// 默认配置 - 使用 detailed preset 作为基础
const defaultOptions: Partial<Options> = {
...Options.Presets.detailed,
...Options.Presets.curvy,
numberOfColors: 8, // 限制颜色数量以控制图层数
minColorQuota: 0.001, // 降低最小颜色占比阈值
minColorQuota: 0.01, // 降低最小颜色占比阈值
strokeWidth: 0, // 不需要描边
lineFilter: false, // 保留所有线条
lineFilter: true,
...options,
};