From 6456907259f48d6b1cd3938b08412ee8a863d899 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Sun, 22 Dec 2024 05:33:50 -0500 Subject: [PATCH] Add 'verbatim' mode to shape drawing --- src/main.js | 4 +++- src/styles.css | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index d29abf6..3490781 100644 --- a/src/main.js +++ b/src/main.js @@ -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 = [] diff --git a/src/styles.css b/src/styles.css index 938baae..ab71481 100644 --- a/src/styles.css +++ b/src/styles.css @@ -165,8 +165,8 @@ button { background-color: #555; } .stage { - width: 1500px; - height: 1000px; + width: 100%; + height: 100%; /* overflow: scroll; */ } .stageWrapper {