File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ export declare const AtomsMixin: (superclass: any) => {
30
30
getAtomColorByElement ( element : string , pallette ?: any ) : any ;
31
31
getAtomRadiusByElement ( element : string | number , scale ?: number , radiimap ?: any ) : number ;
32
32
getAtomGroups ( ) : THREE . Object3D < THREE . Object3DEventMap > [ ] ;
33
+ isTHREEObjectAnAtom ( object : any ) : object is THREE . Mesh < any , any , any > ;
34
+ getAtomNameFromObject ( object : any ) : any ;
33
35
getVerticeKeyPerAtom ( atom : Object3D ) : any ;
34
36
createAtomVerticesHashMap ( getVerticeKeyPerAtom ?: ( atom : Object3D ) => any , atoms ?: THREE . Object3D < THREE . Object3DEventMap > [ ] ) : import ( "./Hashmap" ) . VerticesHashMapHandler ;
35
37
} ;
36
38
[ x : string ] : any ;
37
- isTHREEObjectAnAtom ( object : any ) : object is THREE . Mesh < any , any , any > ;
38
- getAtomNameFromObject ( object : any ) : any ;
39
39
} ;
Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ export const AtomsMixin = (superclass) => class extends superclass {
109
109
} ) ;
110
110
return atomGroups ;
111
111
}
112
- static isTHREEObjectAnAtom ( object ) {
112
+ // eslint-disable-next-line class-methods-use-this
113
+ isTHREEObjectAnAtom ( object ) {
113
114
return object instanceof THREE . Mesh ;
114
115
}
115
- static getAtomNameFromObject ( object ) {
116
+ // eslint-disable-next-line class-methods-use-this
117
+ getAtomNameFromObject ( object ) {
116
118
return object . name . split ( "-" ) [ 0 ] ;
117
119
}
118
120
getVerticeKeyPerAtom ( atom ) {
Original file line number Diff line number Diff line change @@ -154,11 +154,13 @@ export const AtomsMixin = (superclass: any) =>
154
154
return atomGroups ;
155
155
}
156
156
157
- static isTHREEObjectAnAtom ( object : any ) {
157
+ // eslint-disable-next-line class-methods-use-this
158
+ isTHREEObjectAnAtom ( object : any ) {
158
159
return object instanceof THREE . Mesh ;
159
160
}
160
161
161
- static getAtomNameFromObject ( object : any ) {
162
+ // eslint-disable-next-line class-methods-use-this
163
+ getAtomNameFromObject ( object : any ) {
162
164
return object . name . split ( "-" ) [ 0 ] ;
163
165
}
164
166
You can’t perform that action at this time.
0 commit comments