From c155b39ee10fe8fc50c28cbe8a5196bfced3cbf3 Mon Sep 17 00:00:00 2001 From: Benjamin Fan Date: Fri, 19 Jan 2024 20:49:02 -0800 Subject: [PATCH] fix(sandy): Correct vertical dimensions, and add horizontal dimensions --- designs/sandy/src/skirt.mjs | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/designs/sandy/src/skirt.mjs b/designs/sandy/src/skirt.mjs index 87d1540e526..e01a07738c6 100644 --- a/designs/sandy/src/skirt.mjs +++ b/designs/sandy/src/skirt.mjs @@ -227,21 +227,39 @@ function sandySkirt({ if (angle !== 90) { macro('vd', { id: 'hTopToOpeningRight', - from: points.ex1Rotated, - to: points.in1Rotated, - x: angle > 90 ? points.in1Rotated.x - sa - 15 : points.ex1Rotated.x + sa + 15, + from: points.ex2, + to: points.in2, + x: angle > 90 ? points.in2.x - sa - 15 : points.ex2.x + sa + 15, }) macro('vd', { id: 'hOpeningRightToCenter', - from: points.in1Rotated, + from: points.in2, to: points.center, - x: angle > 90 ? points.in1Rotated.x - sa - 15 : points.ex1Rotated.x + sa + 15, + x: angle > 90 ? points.in2.x - sa - 15 : points.ex2.x + sa + 15, }) macro('vd', { - from: points.ex1Rotated, id: 'hHemRightToCenter', + from: points.ex2, to: points.center, - x: angle > 90 ? points.in1Rotated.x - sa - 30 : points.ex1Rotated.x + sa + 30, + x: angle > 90 ? points.in2.x - sa - 30 : points.ex2.x + sa + 30, + }) + macro('hd', { + id: 'wHemToOpeningRight', + from: points.ex2, + to: points.in2, + y: angle < 90 ? points.center.y - sa - 15 : points.ex2.y - sa - 15, + }) + macro('hd', { + id: 'wOpeningRightToCenter', + from: points.center, + to: points.in2, + y: angle < 90 ? points.center.y - sa - 15 : points.ex2.y - sa - 15, + }) + macro('hd', { + id: 'wHemToCenter', + from: points.center, + to: points.ex2, + y: angle < 90 ? points.center.y - sa - 30 : points.ex2.y - sa - 30, }) }