@@ -85,6 +85,17 @@ export class InteractiveObject {
85
85
public mouseClick : Vertex = null ;
86
86
87
87
private _isHovered : boolean = false ;
88
+ private _isClicked : boolean = false ;
89
+ public isSelected : boolean = false ;
90
+ public isScaled : boolean = true ;
91
+ public isFilled : boolean = true ;
92
+ public visible : boolean = true ;
93
+ public inFrame : boolean = true ; // TODO: remove it
94
+
95
+ public referencePath : string = "#" ;
96
+
97
+ constructor ( ) { } ;
98
+
88
99
public get isHovered ( ) : boolean {
89
100
return this . _isHovered ;
90
101
} ;
@@ -102,7 +113,6 @@ export class InteractiveObject {
102
113
this . _isHovered = hovered ;
103
114
}
104
115
105
- private _isClicked : boolean = false ;
106
116
public get isClicked ( ) : boolean {
107
117
return this . _isClicked ;
108
118
}
@@ -118,15 +128,6 @@ export class InteractiveObject {
118
128
}
119
129
this . _isClicked = clicked ;
120
130
}
121
- public isSelected : boolean = false ;
122
- public isScaled : boolean = true ;
123
- public isFilled : boolean = true ;
124
- public visible : boolean = true ;
125
- public inFrame : boolean = true ; // TODO: remove it
126
-
127
- public referencePath : string = "#" ;
128
-
129
- constructor ( ) { } ;
130
131
131
132
public getBounds ( ) : [ Vertex , Vertex ] { return [ new Vertex ( 0 , 1 ) , new Vertex ( 0 , 1 ) ] }
132
133
0 commit comments