不支持视图过渡的渲染器可以从此模块重新导出所有内容。
作用
导出的类型
实例测量
export type InstanceMeasurement = any;
运行视图过渡
export type RunningViewTransition = any;
视图过渡实例
export type ViewTransitionInstance = any;
导出的常量
应用视图过渡名称
备注
源码中 22 行
export const applyViewTransitionName = shim;
恢复视图过渡名称
备注
源码中 23 行
export const restoreViewTransitionName = shim;
取消视图过渡名称
备注
源码中 24 行
export const cancelViewTransitionName = shim;
取消根视图过渡名称
备注
源码中 25 行
export const cancelRootViewTransitionName = shim;
恢复根视图过渡名称
备注
源码中 26 行
export const restoreRootViewTransitionName = shim;
克隆根视图过渡容器
备注
源码中 27 行
export const cloneRootViewTransitionContainer = shim;
移除根视图过渡克隆
备注
源码中 28 行
export const removeRootViewTransitionClone = shim;
度量实例
备注
源码中 30 行
export const measureInstance = shim;
测量克隆实例
备注
源码中 31 行
export const measureClonedInstance = shim;
实例是否在视口中
备注
源码中 32 行
export const wasInstanceInViewport = shim;
实例是否已更改
备注
源码中 33 行
export const hasInstanceChanged = shim;
实例是否影响父项
备注
源码中 34 行
export const hasInstanceAffectedParent = shim;
开始视图过渡
备注
源码中 35 行
export const startViewTransition = shim;
开始手势过渡
备注
源码中 37 行
export const startGestureTransition = shim;
停止视图过渡
备注
源码中 38 行
export const stopViewTransition = shim;
添加视图过渡完成监听器
备注
源码中 39 行
export const addViewTransitionFinishedListener = shim;
创建视图过渡实例
备注
源码中 41 行
export const createViewTransitionInstance = shim;
工具
垫片
// Renderers that don't support view transitions
// can re-export everything from this module.
function shim(...args: any): empty {
throw new Error(
'The current renderer does not support view transitions. ' +
'This error is likely caused by a bug in React. ' +
'Please file an issue.',
);
}