UNPKG

react-planner

Version:

react-planner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.

32 lines (26 loc) 764 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.beginDraggingVertex = beginDraggingVertex; exports.updateDraggingVertex = updateDraggingVertex; exports.endDraggingVertex = endDraggingVertex; var _constants = require('../constants'); function beginDraggingVertex(layerID, vertexID, x, y, snapMask) { return { type: _constants.BEGIN_DRAGGING_VERTEX, layerID: layerID, vertexID: vertexID, x: x, y: y, snapMask: snapMask }; } function updateDraggingVertex(x, y, snapMask) { return { type: _constants.UPDATE_DRAGGING_VERTEX, x: x, y: y, snapMask: snapMask }; } function endDraggingVertex(x, y, snapMask) { return { type: _constants.END_DRAGGING_VERTEX, x: x, y: y, snapMask: snapMask }; }