|
@@ -375,7 +375,7 @@ export default class Draw {
|
|
|
help.setVectorStyle(
|
|
|
this.context,
|
|
|
vector,
|
|
|
- vector.category || vector.geoType
|
|
|
+ 'Arrow'
|
|
|
);
|
|
|
if (vector.arrowColor) {
|
|
|
ctx.strokeStyle = vector.arrowColor
|
|
@@ -391,6 +391,7 @@ export default class Draw {
|
|
|
}
|
|
|
|
|
|
drawMagnifier(vector) {
|
|
|
+ console.error(123)
|
|
|
const ctx = this.context
|
|
|
this.drawPoint({
|
|
|
...vector.position,
|
|
@@ -401,7 +402,7 @@ export default class Draw {
|
|
|
const target = vector.popPosition
|
|
|
const style = help.setVectorStyle(ctx, vector)
|
|
|
const offset = style.radius / 2
|
|
|
- console.log(pt, target, pt, style.radius)
|
|
|
+ console.error(pt, target, pt, style.radius)
|
|
|
const targetPts = [
|
|
|
mathUtil.translate(pt, target, pt, style.radius),
|
|
|
target
|
|
@@ -428,7 +429,8 @@ export default class Draw {
|
|
|
drawCircle(element) {
|
|
|
this.drawPoint({
|
|
|
...element,
|
|
|
- geoType: 'Circle'
|
|
|
+ geoType: 'Circle',
|
|
|
+ ...element.center
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -439,7 +441,7 @@ export default class Draw {
|
|
|
if (vector.color) {
|
|
|
ctx.strokeStyle = vector.color
|
|
|
}
|
|
|
- const radius = (vector.radius || style.radius) * coordinate.ratio;
|
|
|
+ const radius = (vector.radius || style.radius) * coordinate.ratio ;
|
|
|
ctx.save();
|
|
|
ctx.beginPath();
|
|
|
ctx.arc(pt.x, pt.y, radius, 0, Math.PI * 2, true);
|
|
@@ -483,7 +485,7 @@ export default class Draw {
|
|
|
|
|
|
drawLine(vector) {
|
|
|
console.log(vector)
|
|
|
- if (vector.category === "Arrow") {
|
|
|
+ if (vector.category === "MeasureLine") {
|
|
|
return this.drawArrow(vector);
|
|
|
}
|
|
|
let start = dataService.getPoint(vector.startId);
|