main
Last change
on this file 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 | |
---|
1 | import RenderedMapShape from "./RenderedMapShape.js";
|
---|
2 |
|
---|
3 | export 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.