source: imaps-frontend/src/scripts/rendered_shapes/RenderedWall.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 499 bytes
Line 
1import RenderedMapShape from "./RenderedMapShape.js";
2
3export default class RenderedWall extends RenderedMapShape{
4 constructor(attrs,scaleX,scaleY){
5 super({
6 x: attrs.x,
7 y: attrs.y,
8 width: attrs.width * scaleX,
9 height: attrs.height * scaleY,
10 fill: 'grey',
11 stroke: 'black',
12 strokeWidth: 1,
13 draggable: false,
14 rotation: attrs.rotation,
15 cornerRadius:3
16 });
17
18 }
19}
Note: See TracBrowser for help on using the repository browser.