UNPKG

@gorpacrate/core-graphics

Version:

A core library for creating shape-based graphic editors

13 lines 448 B
"use strict"; exports.__esModule = true; var i = require("icepick"); var editor_events_1 = require("../editor-events"); function gridStateReducer(currentState, ev) { if (editor_events_1.isEditorGridEvent(ev) && editor_events_1.isSetGridEvent(ev)) { var value = ev.payload.value; return i.assoc(currentState, 'grid', value); } return currentState; } exports["default"] = gridStateReducer; //# sourceMappingURL=grid.js.map