Skip to content

Commit 2a6dbed

Browse files
committed
chore: remove internal functions from svelte/transition exports
1 parent d171a39 commit 2a6dbed

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/lucky-toes-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
chore: remove internal functions from `svelte/transition` exports

packages/svelte/src/transition/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)