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
|
Rev | Line | |
---|
[0c6b92a] | 1 | import RenderedMapShape from "../base/RenderedMapShape.js";
|
---|
| 2 | import {_registerNode} from "konva/lib/Global";
|
---|
[d565449] | 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 * 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 |
|
---|
| 22 | RenderedWall.prototype.className = "RenderedWall";
|
---|
| 23 | _registerNode(RenderedWall); |
---|
Note:
See
TracBrowser
for help on using the repository browser.