core-graphics
Version:
A core library for creating shape-based graphic editors
20 lines (15 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reducePersistedHistory;
exports.reduceHistory = reduceHistory;
var _historyReducer = require('../history/history-reducer');
var _historyReducer2 = _interopRequireDefault(_historyReducer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function reducePersistedHistory(history) {
return (0, _historyReducer2.default)(history);
}
function reduceHistory(history) {
return (0, _historyReducer.reduceHistoryEventsToScene)(history);
}