UNPKG

react-planner

Version:

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

45 lines (40 loc) 990 B
import {ElementsFactories} from 'react-planner'; const info = { title: 'wall', tag: ['wall'], description: 'Wall with bricks or painted', image: require('./wall.png'), visibility: { catalog: true, layerElementsVisible: true } }; const textures = { bricks: { name: 'Bricks', uri: require('./textures/bricks.jpg'), lengthRepeatScale: 0.01, heightRepeatScale: 0.01, normal: { uri: require('./textures/bricks-normal.jpg'), lengthRepeatScale: 0.01, heightRepeatScale: 0.01, normalScaleX: 0.8, normalScaleY: 0.8 } }, painted: { name:'Painted', uri: require('./textures/painted.jpg'), lengthRepeatScale: 0.01, heightRepeatScale: 0.01, normal: { uri: require('./textures/painted-normal.jpg'), lengthRepeatScale: 0.01, heightRepeatScale: 0.01, normalScaleX: 0.4, normalScaleY: 0.4 } }, }; export default ElementsFactories.WallFactory('wall', info, textures);