|
@@ -1,4 +1,4 @@
|
|
-import { SPainter, SPoint, SRect } from "@persagy-web/draw/lib";
|
|
|
|
|
|
+import {SColor, SPainter, SPoint, SRect} from "@persagy-web/draw/lib";
|
|
import { SGraphItem } from "@persagy-web/graph/lib";
|
|
import { SGraphItem } from "@persagy-web/graph/lib";
|
|
import { Door } from "@persagy-web/big/lib/types/floor/Door";
|
|
import { Door } from "@persagy-web/big/lib/types/floor/Door";
|
|
import { ItemColor, ItemOrder } from "@persagy-web/big/lib";
|
|
import { ItemColor, ItemOrder } from "@persagy-web/big/lib";
|
|
@@ -105,10 +105,10 @@ export class SDoorItem extends SGraphItem {
|
|
*/
|
|
*/
|
|
boundingRect(): SRect {
|
|
boundingRect(): SRect {
|
|
return new SRect(
|
|
return new SRect(
|
|
- this.minX,
|
|
|
|
- this.minY,
|
|
|
|
- this.maxX - this.minX,
|
|
|
|
- this.maxY - this.minY
|
|
|
|
|
|
+ 0,
|
|
|
|
+ 0,
|
|
|
|
+ this.r,
|
|
|
|
+ this.r
|
|
);
|
|
);
|
|
} // Function boundingRect()
|
|
} // Function boundingRect()
|
|
|
|
|
|
@@ -123,7 +123,7 @@ export class SDoorItem extends SGraphItem {
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.pen.color = ItemColor.doorColor;
|
|
painter.pen.color = ItemColor.doorColor;
|
|
painter.drawLine(0, 0, this.r, 0);
|
|
painter.drawLine(0, 0, this.r, 0);
|
|
- painter.pen.lineDash = [5, 5];
|
|
|
|
|
|
+ painter.pen.lineDash = [50, 100];
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.drawArc(
|
|
painter.drawArc(
|
|
-this.r,
|
|
-this.r,
|