DIR : /home/kozerus/public_html/cropex/node/node_modules/framer-motion/dist/es/utils/offsets/fill.mjs
/home/kozerus/public_html/cropex/node/node_modules/framer-motion/dist/es/utils/offsets
import { progress } from 'motion-utils';
import { mixNumber } from '../mix/number.mjs';
function fillOffset(offset, remaining) {
const min = offset[offset.length - 1];
for (let i = 1; i <= remaining; i++) {
const offsetProgress = progress(0, remaining, i);
offset.push(mixNumber(min, 1, offsetProgress));
}
}
export { fillOffset };
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer