This commit is contained in:
hyper
2026-03-17 12:10:43 +08:00
8 changed files with 979 additions and 416 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ customElement("md-token", { size: 50, defaultThickness: 2 }, (props, { element }
name: layer.name || `图层 ${index + 1}`,
enabled: true,
thickness: props.defaultThickness || 2,
color: layer.color || `hsl(${(index * 60) % 360}, 70%, 50%)`,
color: `#${layer.color.getHexString()}` || `hsl(${(index * 60) % 360}, 70%, 50%)`,
}));
setLayers(layerSettings);
}