|
@@ -1021,8 +1021,9 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.miterLimit = 4
|
|
this.context.miterLimit = 4
|
|
this.context.font = "15px ''"
|
|
this.context.font = "15px ''"
|
|
@@ -1198,8 +1199,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1311,8 +1312,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1424,8 +1425,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1497,8 +1498,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1570,8 +1571,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1726,8 +1727,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|
|
@@ -1838,8 +1839,8 @@ export default class Draw {
|
|
this.context.translate(center.x, center.y)
|
|
this.context.translate(center.x, center.y)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.rotate((geometry.angle / 180) * Math.PI)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
this.context.translate(pt.x - center.x, pt.y - center.y)
|
|
- this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32, (geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
- this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32)
|
|
|
|
|
|
+ this.context.scale((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom, (geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
+ this.context.lineWidth = 1 / ((geometry.getLen() * geometry.scale * coordinate.res) / 32 * coordinate.zoom/Constant.defaultZoom)
|
|
|
|
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.strokeStyle="rgba(0,0,0,0)";
|
|
this.context.miterLimit=4;
|
|
this.context.miterLimit=4;
|