Add 'verbatim' mode to shape drawing

This commit is contained in:
Skyler Lehmkuhl 2024-12-22 05:33:50 -05:00
parent 0dc791bbba
commit 6456907259
2 changed files with 5 additions and 3 deletions

View File

@ -160,7 +160,7 @@ let tools = {
},
"simplifyMode": {
type: "enum",
options: ["corners", "smooth"], // "auto"],
options: ["corners", "smooth", "verbatim"], // "auto"],
label: "Line Mode"
},
"fillShape": {
@ -1763,6 +1763,8 @@ class Shape extends BaseShape {
points.push([curve.points[3].x, curve.points[3].y])
}
this.fromPoints(points, error)
} else if (mode=="verbatim") {
// Just keep existing shape
}
let epsilon = 0.01
let newCurves = []

View File

@ -165,8 +165,8 @@ button {
background-color: #555;
}
.stage {
width: 1500px;
height: 1000px;
width: 100%;
height: 100%;
/* overflow: scroll; */
}
.stageWrapper {