File tree 4 files changed +2
-21
lines changed
4 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"scripts" : {
14
14
"serve" : " vue-cli-service serve ./samples/main.ts" ,
15
- "build" : " tsc -p tsconfig.prod.json" ,
15
+ "build" : " rimraf ./build && tsc -p tsconfig.prod.json" ,
16
16
"lint" : " vue-cli-service lint" ,
17
17
"test:unit" : " vue-cli-service test:unit" ,
18
18
"validate" : " npm run build && npm run test:unit && npm pack --dry-run"
33
33
"@vue/test-utils" : " ^1.0.0-beta.20" ,
34
34
"babel-core" : " 7.0.0-bridge.0" ,
35
35
"lint-staged" : " ^7.2.2" ,
36
+ "rimraf" : " ^2.6.2" ,
36
37
"three" : " ^0.97.0" ,
37
38
"ts-jest" : " ^23.0.0" ,
38
39
"tslint-config-prettier" : " ^1.15.0" ,
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ export class Three extends Vue {
25
25
this . _app = new Application ( ) ;
26
26
this . onChangeActive ( ) ;
27
27
this . isReady = true ;
28
-
29
- ( window as any ) . App = this . _app ;
30
28
}
31
29
32
30
public beforeDestroy ( ) {
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { Camera } from "three";
4
4
export type CameraManagerHook = "change" ;
5
5
6
6
export class CameraManager {
7
- private _mainCamera ?: Camera ;
8
-
9
7
private _cameras : Map < string , Camera > = new Map ( ) ;
10
8
private _hooks = new EventEmitter ( ) ;
11
9
private _uses = new Map < string , number > ( ) ;
@@ -46,11 +44,4 @@ export class CameraManager {
46
44
}
47
45
this . _uses . set ( name , usages - 1 ) ;
48
46
}
49
-
50
- public get main ( ) {
51
- return this . _mainCamera ;
52
- }
53
- public set main ( val ) {
54
- this . _mainCamera = val ;
55
- }
56
47
}
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { Scene } from "three";
4
4
export type SceneManagerHook = "change" | "activate" | "deactivate" ;
5
5
6
6
export class SceneManager {
7
- private _activeScene ?: Scene ;
8
-
9
7
private _scenes = new Map < string , Scene > ( ) ;
10
8
private _hooks = new EventEmitter ( ) ;
11
9
private _uses = new Map < string , number > ( ) ;
@@ -58,11 +56,4 @@ export class SceneManager {
58
56
}
59
57
this . _uses . set ( name , usages - 1 ) ;
60
58
}
61
-
62
- public get active ( ) {
63
- return this . _activeScene ;
64
- }
65
- public set active ( val ) {
66
- this . _activeScene = val ;
67
- }
68
59
}
You can’t perform that action at this time.
0 commit comments