|
@@ -933,9 +933,6 @@ export default class Draw {
|
|
|
...style,
|
|
|
...stylea
|
|
|
}
|
|
|
- // if (!attr) {
|
|
|
- // return;
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
if (vector.color) {
|
|
@@ -955,22 +952,7 @@ export default class Draw {
|
|
|
ctx.fill();
|
|
|
ctx.restore();
|
|
|
};
|
|
|
- // let points = dataService.vectorData.points;
|
|
|
- // Settings.basePointIds =[]
|
|
|
- // for (let key in points) {
|
|
|
- // if (points[key].category == VectorCategory.Point.BasePoint) {
|
|
|
- // Settings.basePointIds.push(points[key].vectorId)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if( Settings.basePointIds.length==1){
|
|
|
- // Settings.selectBasePointId = Settings.basePointIds[0];
|
|
|
- // }else{
|
|
|
- // // Settings.selectBasePointId =null
|
|
|
- // }
|
|
|
- let focusItem = stateService.getFocusItem()
|
|
|
- // if (Settings.selectBasePointId === vector.vectorId && focusItem?.vectorId == vector.vectorId ) {
|
|
|
if (Settings.selectBasePointId === vector.vectorId ) {
|
|
|
-
|
|
|
style = {
|
|
|
...style,
|
|
|
strokeStyle: "rgba(255,255,255,1)",
|
|
@@ -981,7 +963,7 @@ export default class Draw {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ console.log(vector, style, Settings.selectBasePointId)
|
|
|
draw(style);
|
|
|
if (style.out) {
|
|
|
draw(style.out);
|