Made fully constrained construction geometry not be same color as fully constrained regular geometry.

This commit is contained in:
Mike Molinari 2022-08-27 01:03:38 +00:00 committed by Val Erastov
parent 8553ac15ef
commit 5ee42b9068
2 changed files with 14 additions and 2 deletions

View file

@ -156,7 +156,12 @@ export abstract class SketchObject extends Shape implements SolvableObject {
} else if (productionKind === FUTURE) {
return Styles.FUTURE;
} else if (this.fullyConstrained) {
return Styles.FULLY_CONSTRAINED;
if(this.role === "construction"){
return Styles.FULLY_CONSTRAINED_CONSTRUCTION;
}else{
return Styles.FULLY_CONSTRAINED;
}
} else {
}
return null;

View file

@ -74,10 +74,17 @@ export const Styles = {
fillStyle : "#2c44bc"
},
FULLY_CONSTRAINED_CONSTRUCTION: {
lineWidth : 2,
strokeStyle : "#cfba80",
fillStyle : "#cfba80"
},
CONSTRUCTION : {
lineWidth : 1,
strokeStyle: "#964B00",
fillStyle : "#000000"
fillStyle : "#964B00"
},
CONSTRUCTION_OF_OBJECT : {