UNPKG

svelte-motion

Version:

Svelte animation library based on the React library framer-motion.

27 lines (24 loc) 656 B
/** based on framer-motion@4.0.3, Copyright (c) 2018 Framer B.V. */ import { axisBox, delta } from '../../utils/geometry/index.js'; var createProjectionState = function () { return ({ isEnabled: false, isTargetLocked: false, target: axisBox(), targetFinal: axisBox(), }); }; function createLayoutState() { return { isHydrated: false, layout: axisBox(), layoutCorrected: axisBox(), treeScale: { x: 1, y: 1 }, delta: delta(), deltaFinal: delta(), deltaTransform: "", }; } var zeroLayout = createLayoutState(); export { createLayoutState, createProjectionState, zeroLayout };