Add SVG import extrusion

This commit is contained in:
Francisco Rivero
2026-07-07 23:59:36 +09:00
parent 4d2d59cb94
commit fd76c5bd96
6 changed files with 57 additions and 22 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { createLocalId } from "@/lib/localIds";
import type { WorkplaneShape } from "@/types/sketchforge";
const stlLoader = new STLLoader();
const SUPPORTED_IMPORT_EXTENSIONS = new Set(["stl"]);
const SUPPORTED_IMPORT_EXTENSIONS = new Set(["stl", "svg"]);
function fileExtension(fileName: string) {
return fileName.split(".").pop()?.toLowerCase() ?? "";