Skip to content

Commit e3cadb3

Browse files
authored
allow injection for test purposes
1 parent 9636d7e commit e3cadb3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,14 @@ export default async function ({ addon, console }) {
9797
BlockSvg.CUSTOM_NOTCHES.forEach((notch) => {
9898
if (!notch.ogLeft) notch.ogLeft = notch.left;
9999
if (!notch.ogRight) notch.ogRight = notch.right;
100+
if (window.test) {
101+
console.log(notchSize, multiplier, cornerSize);
102+
notch.left = scalePathXY(notch.ogLeft, window.test[0], window.test[1]);
103+
notch.right = scalePathXY(notch.ogRight, window.test[0], window.test[1]);
104+
} else {
100105
notch.left = scalePathXY(notch.ogLeft, adjustedNotchSize, notchSize);
101106
notch.right = scalePathXY(notch.ogRight, adjustedNotchSize, notchSize);
107+
}
102108
});
103109

104110
/* Custom Shape API Support */

0 commit comments

Comments
 (0)