|
@@ -946,13 +946,20 @@ export default class Draw {
|
|
|
ctx.restore();
|
|
|
};
|
|
|
let points = dataService.vectorData.points;
|
|
|
+ let basePoints = []
|
|
|
for (let key in points) {
|
|
|
if (points[key].category == VectorCategory.Point.BasePoint) {
|
|
|
- Settings.selectBasePointId = points[key].vectorId;
|
|
|
+ basePoints.push(points[key].vectorId)
|
|
|
}
|
|
|
}
|
|
|
+ if(basePoints.length==1){
|
|
|
+ Settings.selectBasePointId = basePoints[0];
|
|
|
+ }else{
|
|
|
+ Settings.selectBasePointId =null
|
|
|
+ }
|
|
|
let focusItem = stateService.getFocusItem()
|
|
|
- if (Settings.selectBasePointId === vector.vectorId && focusItem?.vectorId == vector.vectorId ) {
|
|
|
+ // if (Settings.selectBasePointId === vector.vectorId && focusItem?.vectorId == vector.vectorId ) {
|
|
|
+ if (Settings.selectBasePointId === vector.vectorId ) {
|
|
|
style = {
|
|
|
...style,
|
|
|
strokeStyle: "rgba(255,255,255,1)",
|
|
@@ -1022,7 +1029,7 @@ export default class Draw {
|
|
|
}px Microsoft YaHei`;
|
|
|
const bound = help.getTextCenter(this.context, vector.value)
|
|
|
|
|
|
- console.log(vector)
|
|
|
+ // console.log(vector)
|
|
|
const screen = coordinate.getScreenXY(vector.center)
|
|
|
this.drawTextByInfo(
|
|
|
// vector.center,
|