@@ -92,18 +92,18 @@ export default async function ({ addon, console }) {
92
92
`c -1 ${ - 1 * notchSize } -2 ${ - 2 * notchSize } -4 ${ - 2 * notchSize } `
93
93
94
94
/* 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 ) ;
97
96
BlockSvg . CUSTOM_NOTCHES . forEach ( ( notch ) => {
98
97
if ( ! notch . ogLeft ) notch . ogLeft = notch . left ;
99
98
if ( ! notch . ogRight ) notch . ogRight = notch . right ;
100
99
if ( window . test ) {
101
- console . log ( notchSize , multiplier , cornerSize ) ;
100
+ window . test2 = applyChanges ;
101
+ console . log ( "N" , notchSize , "M" , multiplier , "C" , cornerSize ) ;
102
102
notch . left = scalePathXY ( notch . ogLeft , window . test [ 0 ] , window . test [ 1 ] ) ;
103
103
notch . right = scalePathXY ( notch . ogRight , window . test [ 0 ] , window . test [ 1 ] ) ;
104
104
} 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 ) ;
107
107
}
108
108
} ) ;
109
109
0 commit comments