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

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

Pred finalna verzija

  • Property mode set to 100644
File size: 637 bytes
RevLine 
[0c6b92a]1import RenderedMapShape from "../base/RenderedMapShape.js";
2import {_registerNode} from "konva/lib/Global";
[d565449]3
4export default class RenderedWall extends RenderedMapShape{
5 constructor(attrs,scaleX,scaleY){
6 super({
7 x: attrs.x,
8 y: attrs.y,
9 width: attrs.width * scaleX,
10 height: attrs.height * scaleY,
[0c6b92a]11 fill: '#4B4B4B',
[d565449]12 stroke: 'black',
13 strokeWidth: 1,
14 draggable: false,
15 rotation: attrs.rotation,
16 cornerRadius:3
17 });
18
19 }
[0c6b92a]20}
21
22RenderedWall.prototype.className = "RenderedWall";
23_registerNode(RenderedWall);
Note: See TracBrowser for help on using the repository browser.