react-planner
Version:
react-planner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
25 lines (18 loc) • 706 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (state, action) {
switch (action.type) {
case _constants.BEGIN_DRAGGING_VERTEX:
return _export.Vertex.beginDraggingVertex(state, action.layerID, action.vertexID, action.x, action.y).updatedState;
case _constants.UPDATE_DRAGGING_VERTEX:
return _export.Vertex.updateDraggingVertex(state, action.x, action.y).updatedState;
case _constants.END_DRAGGING_VERTEX:
return _export.Vertex.endDraggingVertex(state, action.x, action.y).updatedState;
default:
return state;
}
};
var _constants = require('../constants');
var _export = require('../class/export');