mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-04 14:59:32 +01:00
Made fully constrained construction geometry not be same color as fully constrained regular geometry.
This commit is contained in:
parent
8553ac15ef
commit
5ee42b9068
2 changed files with 14 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 : {
|
||||
|
|
|
|||
Loading…
Reference in a new issue