|
@@ -24,7 +24,6 @@ export const help = {
|
|
|
[stateService.getDraggingItem(), "Dragging"],
|
|
|
[stateService.getFocusItem(), "Focus"],
|
|
|
];
|
|
|
- console.log(itemsEntry);
|
|
|
let currentAttr;
|
|
|
|
|
|
//console.log(itemsEntry)
|
|
@@ -1135,6 +1134,31 @@ export default class Draw {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (vector.category === VectorCategory.Point.FixPoint) {
|
|
|
+ let select = false;
|
|
|
+ const geo = stateService.getFocusItem();
|
|
|
+ if (geo) {
|
|
|
+ const realVector = dataService.getGeo(geo.type, geo.vectorId);
|
|
|
+ select = realVector && realVector.linkedPointId === vector.vectorId;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (attr || select) {
|
|
|
+ this.context.beginPath();
|
|
|
+ const padding = style.radius * coordinate.ratio;
|
|
|
+ this.context.moveTo(pt.x - padding, pt.y - padding);
|
|
|
+ this.context.lineTo(pt.x + padding, pt.y - padding);
|
|
|
+ this.context.lineTo(pt.x + padding, pt.y + padding);
|
|
|
+ this.context.lineTo(pt.x - padding, pt.y + padding);
|
|
|
+ this.context.strokeStyle = "rgba(255, 153, 0, 1)";
|
|
|
+ this.context.fillStyle = "rgba(255, 153, 0, 0.30)";
|
|
|
+ this.context.lineWidth = 2 * coordinate.ratio;
|
|
|
+ this.context.setLineDash([6 * coordinate.ratio, 2 * coordinate.ratio]);
|
|
|
+ this.context.closePath();
|
|
|
+ this.context.stroke();
|
|
|
+ this.context.fill();
|
|
|
+ }
|
|
|
+ }
|
|
|
ctx.restore();
|
|
|
}
|
|
|
|
|
@@ -1184,7 +1208,7 @@ export default class Draw {
|
|
|
const realVector = dataService.getGeo(geo.type, geo.vectorId);
|
|
|
select = realVector && realVector.linkedTextId === vector.vectorId;
|
|
|
}
|
|
|
- if (select || foo) {
|
|
|
+ if (select || foo === "Focus") {
|
|
|
this.context.beginPath();
|
|
|
const padding = 2 * coordinate.ratio;
|
|
|
this.context.moveTo(bound[0].x - padding, bound[0].y - padding);
|