UNPKG

@gorpacrate/core-graphics

Version:

A core library for creating shape-based graphic editors

23 lines 886 B
"use strict"; exports.__esModule = true; var editor_events_1 = require("../editor-events"); var EditorGridEventType; (function (EditorGridEventType) { EditorGridEventType[EditorGridEventType["SetGrid"] = 0] = "SetGrid"; })(EditorGridEventType = exports.EditorGridEventType || (exports.EditorGridEventType = {})); function isEditorGridEvent(base) { return (base.type === editor_events_1.EditorEventType.Grid); } exports.isEditorGridEvent = isEditorGridEvent; function isSetGridEvent(base) { return (base.subType === EditorGridEventType.SetGrid); } exports.isSetGridEvent = isSetGridEvent; function evFact(subType, payload) { return { type: editor_events_1.EditorEventType.Grid, subType: subType, payload: payload }; } function setGrid(value) { return evFact(EditorGridEventType.SetGrid, { value: value }); } exports.setGrid = setGrid; //# sourceMappingURL=grid.js.map