Skip to content

Commit f4f3c8c

Browse files
authored
test to see if this math works
1 parent e3cadb3 commit f4f3c8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/addons/addons/custom-block-shape/userscript.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ export default async function ({ addon, console }) {
9292
`c -1 ${-1 * notchSize} -2 ${-2 * notchSize} -4 ${-2 * notchSize} `
9393

9494
/* Custom Notch API Support */
95-
const adjustedNotchSize = notchSize === 1 ? 1 :
96-
notchSize > 1 ? notchSize - 0.05 : notchSize + 0.05;
95+
const adjustedNotchSize = cornerSize * notchSize * (multiplier - 0.28);
9796
BlockSvg.CUSTOM_NOTCHES.forEach((notch) => {
9897
if (!notch.ogLeft) notch.ogLeft = notch.left;
9998
if (!notch.ogRight) notch.ogRight = notch.right;
10099
if (window.test) {
101-
console.log(notchSize, multiplier, cornerSize);
100+
window.test2 = applyChanges;
101+
console.log("N", notchSize, "M", multiplier, "C", cornerSize);
102102
notch.left = scalePathXY(notch.ogLeft, window.test[0], window.test[1]);
103103
notch.right = scalePathXY(notch.ogRight, window.test[0], window.test[1]);
104104
} else {
105-
notch.left = scalePathXY(notch.ogLeft, adjustedNotchSize, notchSize);
106-
notch.right = scalePathXY(notch.ogRight, adjustedNotchSize, notchSize);
105+
notch.left = scalePathXY(notch.ogLeft, adjustedNotchSize, notchSize * multiplier);
106+
notch.right = scalePathXY(notch.ogRight, adjustedNotchSize, notchSize * multiplier);
107107
}
108108
});
109109

0 commit comments

Comments
 (0)