UNPKG

kitchen-simulator

Version:

It is a kitchen simulator (self-contained micro-frontend).

140 lines (139 loc) 3.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.beginDraggingHole = beginDraggingHole; exports.beginDraggingHole3D = beginDraggingHole3D; exports.endCreatingHole = endCreatingHole; exports.endDraggingHole = endDraggingHole; exports.endDraggingHole3D = endDraggingHole3D; exports.endDrawingHole = endDrawingHole; exports.endDrawingHole3D = endDrawingHole3D; exports.selectHole = selectHole; exports.selectToolDrawingHole = selectToolDrawingHole; exports.selectToolDrawingHole3D = selectToolDrawingHole3D; exports.updateDraggingHole = updateDraggingHole; exports.updateDraggingHoleChanged = updateDraggingHoleChanged; exports.updateDraggingHoleRulerChanged = updateDraggingHoleRulerChanged; exports.updateDrawingHole = updateDrawingHole; exports.updateDrawingHole3D = updateDrawingHole3D; exports.updatePopupOpen = updatePopupOpen; var _constants = require("../constants"); function endCreatingHole() { return { type: _constants.END_CREATING_HOLE }; } function updatePopupOpen(value) { return { type: _constants.UPDATE_POPUP_OPEN, value: value }; } function selectHole(layerID, holeID) { return { type: _constants.SELECT_HOLE, layerID: layerID, holeID: holeID }; } function selectToolDrawingHole(sceneComponentType) { return { type: _constants.SELECT_TOOL_DRAWING_HOLE, sceneComponentType: sceneComponentType }; } function selectToolDrawingHole3D(sceneComponentType) { return { type: _constants.SELECT_TOOL_DRAWING_HOLE_3D, sceneComponentType: sceneComponentType }; } function updateDrawingHole(layerID, x, y) { return { type: _constants.UPDATE_DRAWING_HOLE, layerID: layerID, x: x, y: y }; } function updateDrawingHole3D(layerID, x, y) { return { type: _constants.UPDATE_DRAWING_HOLE_3D, layerID: layerID, x: x, y: y }; } function endDrawingHole(layerID, x, y) { return { type: _constants.END_DRAWING_HOLE, layerID: layerID, x: x, y: y }; } function endDrawingHole3D(layerID, x, y) { return { type: _constants.END_DRAWING_HOLE_3D, layerID: layerID, x: x, y: y }; } function beginDraggingHole(layerID, holeID, x, y) { return { type: _constants.BEGIN_DRAGGING_HOLE, layerID: layerID, holeID: holeID, x: x, y: y }; } function beginDraggingHole3D(layerID, holeID, x, y) { return { type: _constants.BEGIN_DRAGGING_HOLE_3D, layerID: layerID, holeID: holeID, x: x, y: y }; } function updateDraggingHole(x, y) { return { type: _constants.UPDATE_DRAGGING_HOLE, x: x, y: y }; } function endDraggingHole(x, y) { return { type: _constants.END_DRAGGING_HOLE, x: x, y: y }; } function endDraggingHole3D(x, y) { return { type: _constants.END_DRAGGING_HOLE_3D, x: x, y: y }; } function updateDraggingHoleChanged(x, y, layerID, holeID) { return { type: _constants.UPDATE_DRAGGING_HOLE_CHANGED, x: x, y: y, layerID: layerID, holeID: holeID }; } function updateDraggingHoleRulerChanged(width, layerID, holeID) { return { type: _constants.UPDATE_DRAGGING_HOLE_RULER_CHANGED, width: width, layerID: layerID, holeID: holeID }; }