Skip to content

Commit c9a09ca

Browse files
committed
update: clenaup
1 parent 3dc69bd commit c9a09ca

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

dist/mixins/atoms.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ export declare const AtomsMixin: (superclass: any) => {
3030
getAtomColorByElement(element: string, pallette?: any): any;
3131
getAtomRadiusByElement(element: string | number, scale?: number, radiimap?: any): number;
3232
getAtomGroups(): THREE.Object3D<THREE.Object3DEventMap>[];
33+
isTHREEObjectAnAtom(object: any): object is THREE.Mesh<any, any, any>;
34+
getAtomNameFromObject(object: any): any;
3335
getVerticeKeyPerAtom(atom: Object3D): any;
3436
createAtomVerticesHashMap(getVerticeKeyPerAtom?: (atom: Object3D) => any, atoms?: THREE.Object3D<THREE.Object3DEventMap>[]): import("./Hashmap").VerticesHashMapHandler;
3537
};
3638
[x: string]: any;
37-
isTHREEObjectAnAtom(object: any): object is THREE.Mesh<any, any, any>;
38-
getAtomNameFromObject(object: any): any;
3939
};

dist/mixins/atoms.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ export const AtomsMixin = (superclass) => class extends superclass {
109109
});
110110
return atomGroups;
111111
}
112-
static isTHREEObjectAnAtom(object) {
112+
// eslint-disable-next-line class-methods-use-this
113+
isTHREEObjectAnAtom(object) {
113114
return object instanceof THREE.Mesh;
114115
}
115-
static getAtomNameFromObject(object) {
116+
// eslint-disable-next-line class-methods-use-this
117+
getAtomNameFromObject(object) {
116118
return object.name.split("-")[0];
117119
}
118120
getVerticeKeyPerAtom(atom) {

src/mixins/atoms.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ export const AtomsMixin = (superclass: any) =>
154154
return atomGroups;
155155
}
156156

157-
static isTHREEObjectAnAtom(object: any) {
157+
// eslint-disable-next-line class-methods-use-this
158+
isTHREEObjectAnAtom(object: any) {
158159
return object instanceof THREE.Mesh;
159160
}
160161

161-
static getAtomNameFromObject(object: any) {
162+
// eslint-disable-next-line class-methods-use-this
163+
getAtomNameFromObject(object: any) {
162164
return object.name.split("-")[0];
163165
}
164166

src/mixins/labels.js

Whitespace-only changes.

0 commit comments

Comments
 (0)