File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
import * as THREE from "three" ;
2
2
3
3
import { COLORS } from "../../enums" ;
4
- import { AtomMesh , AtomObject } from "../../types/atoms" ;
5
4
import { BaseTHREEGroupManager } from "../base" ;
5
+ import { AtomMesh , AtomObject } from "../types/atoms" ;
6
6
7
7
export class AtomColorManager extends BaseTHREEGroupManager {
8
8
/**
Original file line number Diff line number Diff line change
1
+ import * as THREE from "three" ;
2
+
3
+ export interface AtomUserData {
4
+ symbolWithLabel : string ;
5
+ atomicIndex : number ;
6
+ selected ?: boolean ;
7
+ hovered ?: boolean ;
8
+ connections ?: string [ ] ;
9
+ [ key : string ] : any ;
10
+ }
11
+
12
+ export interface AtomMesh extends THREE . Mesh {
13
+ previousColor ?: THREE . Color ;
14
+ userData : AtomUserData ;
15
+ }
16
+
17
+ export interface AtomObject extends THREE . Object3D {
18
+ userData : AtomUserData ;
19
+ }
You can’t perform that action at this time.
0 commit comments