main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
619 bytes
|
Line | |
---|
1 | import RenderedMapShape from "../base/RenderedMapShape.js";
|
---|
2 | import {_registerNode} from "konva/lib/Global";
|
---|
3 |
|
---|
4 | export default class RenderedWall extends RenderedMapShape{
|
---|
5 | constructor(attrs,scaleX,scaleY){
|
---|
6 | super({
|
---|
7 | x: attrs.x,
|
---|
8 | y: attrs.y,
|
---|
9 | width: attrs.width,
|
---|
10 | height: attrs.height,
|
---|
11 | fill: '#4B4B4B',
|
---|
12 | stroke: 'black',
|
---|
13 | strokeWidth: 1,
|
---|
14 | draggable: false,
|
---|
15 | rotation: attrs.rotation,
|
---|
16 | cornerRadius:3
|
---|
17 | });
|
---|
18 |
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 | RenderedWall.prototype.className = "RenderedWall";
|
---|
23 | _registerNode(RenderedWall); |
---|
Note:
See
TracBrowser
for help on using the repository browser.