react-planner-viewer
Version:
react-planner-viewer is a React Component for view plans builded with react-planner in 2D mode
45 lines (41 loc) • 1.03 kB
JSX
import ElementsFactories from '../../../factories/export';
const info = {
title: 'wall',
tag: ['wall'],
group: 'Vertical closure',
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.png'),
lengthRepeatScale: 0.01,
heightRepeatScale: 0.01,
normalScaleX: 0.4,
normalScaleY: 0.4
}
},
};
export default ElementsFactories.WallFactory('wall', info, textures);