@@ -92,19 +92,13 @@ 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 = cornerSize * notchSize * ( multiplier - 0.28 ) ;
95
+ const adjustedNotchSize = ( paddingSize > 1 ? paddingSize - 0.05 :
96
+ paddingSize < 1 ? paddingSize + 0.05 : paddingSize ) + ( ( cornerSize - 1 ) / 10 ) ;
96
97
BlockSvg . CUSTOM_NOTCHES . forEach ( ( notch ) => {
97
98
if ( ! notch . ogLeft ) notch . ogLeft = notch . left ;
98
99
if ( ! notch . ogRight ) notch . ogRight = notch . right ;
99
- if ( window . test ) {
100
- window . test2 = applyChanges ;
101
- console . log ( "N" , notchSize , "M" , multiplier , "C" , 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 {
105
- notch . left = scalePathXY ( notch . ogLeft , adjustedNotchSize , notchSize * multiplier ) ;
106
- notch . right = scalePathXY ( notch . ogRight , adjustedNotchSize , notchSize * multiplier ) ;
107
- }
100
+ notch . left = scalePathXY ( notch . ogLeft , adjustedNotchSize , notchSize ) ;
101
+ notch . right = scalePathXY ( notch . ogRight , adjustedNotchSize , notchSize ) ;
108
102
} ) ;
109
103
110
104
/* Custom Shape API Support */
0 commit comments