|
|
|
@ -2086,49 +2086,49 @@ export function html(dom, get_value, svg) {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @template P
|
|
|
|
* @template P
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {import('./types.js').TransitionFn<P | undefined>} transition_fn
|
|
|
|
* @param {() => import('./types.js').TransitionFn<P | undefined>} get_transition_fn
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {any} global
|
|
|
|
* @param {any} global
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function transition(dom, transition_fn, props, global = false) {
|
|
|
|
export function transition(dom, get_transition_fn, props, global = false) {
|
|
|
|
bind_transition(dom, transition_fn, props, 'both', global);
|
|
|
|
bind_transition(dom, get_transition_fn, props, 'both', global);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @template P
|
|
|
|
* @template P
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {import('./types.js').TransitionFn<P | undefined>} transition_fn
|
|
|
|
* @param {() => import('./types.js').TransitionFn<P | undefined>} get_transition_fn
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function animate(dom, transition_fn, props) {
|
|
|
|
export function animate(dom, get_transition_fn, props) {
|
|
|
|
bind_transition(dom, transition_fn, props, 'key', false);
|
|
|
|
bind_transition(dom, get_transition_fn, props, 'key', false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @template P
|
|
|
|
* @template P
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {import('./types.js').TransitionFn<P | undefined>} transition_fn
|
|
|
|
* @param {() => import('./types.js').TransitionFn<P | undefined>} get_transition_fn
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {any} global
|
|
|
|
* @param {any} global
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function in_fn(dom, transition_fn, props, global = false) {
|
|
|
|
function in_fn(dom, get_transition_fn, props, global = false) {
|
|
|
|
bind_transition(dom, transition_fn, props, 'in', global);
|
|
|
|
bind_transition(dom, get_transition_fn, props, 'in', global);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export { in_fn as in };
|
|
|
|
export { in_fn as in };
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @template P
|
|
|
|
* @template P
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {HTMLElement} dom
|
|
|
|
* @param {import('./types.js').TransitionFn<P | undefined>} transition_fn
|
|
|
|
* @param {() => import('./types.js').TransitionFn<P | undefined>} get_transition_fn
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {(() => P) | null} props
|
|
|
|
* @param {any} global
|
|
|
|
* @param {any} global
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function out(dom, transition_fn, props, global = false) {
|
|
|
|
export function out(dom, get_transition_fn, props, global = false) {
|
|
|
|
bind_transition(dom, transition_fn, props, 'out', global);
|
|
|
|
bind_transition(dom, get_transition_fn, props, 'out', global);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|