File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte ' : patch
3+ ---
4+
5+ chore: remove internal functions from ` svelte/transition ` exports
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ function cubic_out(t) {
1212 * @param {number } t
1313 * @returns {number }
1414 */
15- export function cubic_in_out ( t ) {
15+ function cubic_in_out ( t ) {
1616 return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math . pow ( 2.0 * t - 2.0 , 3.0 ) + 1.0 ;
1717}
1818
1919/** @param {number | string } value
2020 * @returns {[number, string] }
2121 */
22- export function split_css_unit ( value ) {
22+ function split_css_unit ( value ) {
2323 const split = typeof value === 'string' && value . match ( / ^ \s * ( - ? [ \d . ] + ) ( [ ^ \s ] * ) \s * $ / ) ;
2424 return split ? [ parseFloat ( split [ 1 ] ) , split [ 2 ] || 'px' ] : [ /** @type {number } */ ( value ) , 'px' ] ;
2525}
Original file line number Diff line number Diff line change @@ -2079,12 +2079,6 @@ declare module 'svelte/transition' {
20792079 duration ?: number | ( ( len : number ) => number ) ;
20802080 easing ?: EasingFunction ;
20812081 }
2082- /**
2083- * https://svelte.dev/docs/svelte-easing
2084- * */
2085- export function cubic_in_out ( t : number ) : number ;
2086-
2087- export function split_css_unit ( value : number | string ) : [ number , string ] ;
20882082 /**
20892083 * Animates a `blur` filter alongside an element's opacity.
20902084 *
You can’t perform that action at this time.
0 commit comments