refactor: some tweaks
This commit is contained in:
parent
7be206581d
commit
c99f602efa
|
|
@ -81,7 +81,6 @@ export default function MdTokenViewer(props: TokenViewerProps) {
|
|||
// 初始化 Three.js 场景
|
||||
onMount(() => {
|
||||
const viewerEl = viewerRef();
|
||||
console.log("Viewer element:", viewerEl);
|
||||
if (!viewerEl) return;
|
||||
|
||||
// 创建场景
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue