UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

31 lines (30 loc) 702 B
const o = (i, a, n, t) => { if (i.past.length === 0) return; const e = i.past[i.past.length - 1]; a((g) => ({ ...e, bgImage: g.bgImage })), n((g) => ({ ...g, bgImageSize: { ...e.bgImageSize }, bgImagePosition: { ...e.bgImagePosition }, originalBgSize: g.originalBgSize })), t(); }, b = (i, a, n, t) => { if (i.future.length === 0) return; const e = i.future[0]; a((g) => ({ ...e, bgImage: g.bgImage })), n((g) => ({ ...g, bgImageSize: { ...e.bgImageSize }, bgImagePosition: { ...e.bgImagePosition }, originalBgSize: g.originalBgSize })), t(); }; export { b as handleRedo, o as handleUndo }; //# sourceMappingURL=index.es96.js.map