UNPKG

react-planner

Version:

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

31 lines (26 loc) 514 B
import {SELECT_LAYER, ADD_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER} from '../constants'; export function selectLayer(layerID) { return { type: SELECT_LAYER, layerID } } export function addLayer(name, altitude) { return { type: ADD_LAYER, name, altitude } } export function setLayerProperties(layerID, properties) { return { type: SET_LAYER_PROPERTIES, layerID, properties } } export function removeLayer(layerID) { return { type: REMOVE_LAYER, layerID, } }