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) {
12
12
* @param {number } t
13
13
* @returns {number }
14
14
*/
15
- export function cubic_in_out ( t ) {
15
+ function cubic_in_out ( t ) {
16
16
return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math . pow ( 2.0 * t - 2.0 , 3.0 ) + 1.0 ;
17
17
}
18
18
19
19
/** @param {number | string } value
20
20
* @returns {[number, string] }
21
21
*/
22
- export function split_css_unit ( value ) {
22
+ function split_css_unit ( value ) {
23
23
const split = typeof value === 'string' && value . match ( / ^ \s * ( - ? [ \d . ] + ) ( [ ^ \s ] * ) \s * $ / ) ;
24
24
return split ? [ parseFloat ( split [ 1 ] ) , split [ 2 ] || 'px' ] : [ /** @type {number } */ ( value ) , 'px' ] ;
25
25
}
Original file line number Diff line number Diff line change @@ -2079,12 +2079,6 @@ declare module 'svelte/transition' {
2079
2079
duration ?: number | ( ( len : number ) => number ) ;
2080
2080
easing ?: EasingFunction ;
2081
2081
}
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 ] ;
2088
2082
/**
2089
2083
* Animates a `blur` filter alongside an element's opacity.
2090
2084
*
You can’t perform that action at this time.
0 commit comments