Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
任建锋
yt
Commits
91417cc9
Commit
91417cc9
authored
Jul 19, 2018
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rjf
parent
2230429e
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
883 additions
and
4 deletions
+883
-4
package_20180719174359.json
.history/package_20180719174359.json
+14
-0
YtSceneManager_20180719164233.ts
.history/src/manager/YtSceneManager_20180719164233.ts
+119
-0
YtSceneManager_20180719164248.ts
.history/src/manager/YtSceneManager_20180719164248.ts
+122
-0
YtSceneManager_20180719174203.ts
.history/src/manager/YtSceneManager_20180719174203.ts
+125
-0
YtSceneManager_20180719174214.ts
.history/src/manager/YtSceneManager_20180719174214.ts
+125
-0
YtSceneManager_20180719174312.ts
.history/src/manager/YtSceneManager_20180719174312.ts
+125
-0
YtSceneManager.js
dist/manager/YtSceneManager.js
+7
-1
YtSceneManager.js.map
dist/manager/YtSceneManager.js.map
+1
-1
YtforTlSceneManager.js
dist/manager/YtforTlSceneManager.js
+102
-0
YtforTlSceneManager.js.map
dist/manager/YtforTlSceneManager.js.map
+1
-0
package.json
package.json
+1
-1
YtSceneManager.ts
src/manager/YtSceneManager.ts
+7
-1
YtforTlSceneManager.ts
src/manager/YtforTlSceneManager.ts
+122
-0
YtforTlSceneManager.d.ts
types/manager/YtforTlSceneManager.d.ts
+12
-0
No files found.
.history/package_20180719174359.json
0 → 100644
View file @
91417cc9
{
"name"
:
"yt"
,
"version"
:
"1.0.22"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"duiba-tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/src/manager/YtSceneManager_20180719164233.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
);
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
.history/src/manager/YtSceneManager_20180719164248.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});;
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
.history/src/manager/YtSceneManager_20180719174203.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
.
engine
.
getRenderingCanvas
=
function
(){
return
document
.
getElementById
(
"_a2x_canvas"
)
};
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
.history/src/manager/YtSceneManager_20180719174214.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
.
engine
.
getRenderingCanvas
=
()
=>
{
return
document
.
getElementById
(
"_a2x_canvas"
)
};
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
.history/src/manager/YtSceneManager_20180719174312.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
[
"engine.getRenderingCanvas"
]
=
()
=>
{
return
document
.
getElementById
(
"_a2x_canvas"
)
};
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
dist/manager/YtSceneManager.js
View file @
91417cc9
...
...
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
var
YtSceneManager
=
/** @class */
(
function
()
{
function
YtSceneManager
()
{
this
.
canvas
=
document
.
querySelector
(
"#renderCanvas"
);
this
.
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
);
this
.
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
this
.
init
();
}
Object
.
defineProperty
(
YtSceneManager
,
"ins"
,
{
...
...
@@ -19,6 +22,9 @@ var YtSceneManager = /** @class */ (function () {
YtSceneManager
.
prototype
.
init
=
function
()
{
var
_this
=
this
;
this
.
scene
=
this
.
createScene
();
this
[
"engine.getRenderingCanvas"
]
=
function
()
{
return
document
.
getElementById
(
"_a2x_canvas"
);
};
this
.
engine
.
runRenderLoop
(
function
()
{
_this
.
scene
.
render
();
TWEEN
.
update
();
...
...
dist/manager/YtSceneManager.js.map
View file @
91417cc9
{"version":3,"file":"YtSceneManager.js","sourceRoot":"","sources":["../../src/manager/YtSceneManager.ts"],"names":[],"mappings":";;AACA;IAgBI;QAZO,WAAM,GAAK,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACnD,WAAM,GAAC,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAYhD,IAAI,CAAC,IAAI,EAAE,CAAA;IACf,CAAC;IATD,sBAAkB,qBAAG;aAArB;YACI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;aACxC;YACD,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAMM,6BAAI,GAAX;QAAA,iBASC;QARG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAChC,IAAI,CAAC,MA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value
:
true
});
var
YtSceneManager
=
/** @class */
(
function
()
{
function
YtSceneManager
()
{
this
.
canvas
=
document
.
querySelector
(
"#renderCanvas"
);
this
.
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
this
.
init
();
}
;
Object
.
defineProperty
(
YtSceneManager
,
"ins"
,
{
get
:
function
()
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
},
enumerable
:
true
,
configurable
:
true
});
YtSceneManager
.
prototype
.
init
=
function
()
{
var
_this
=
this
;
this
.
scene
=
this
.
createScene
();
this
.
engine
.
runRenderLoop
(
function
()
{
_this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
function
()
{
_this
.
engine
.
resize
();
});
};
YtSceneManager
.
prototype
.
createScene
=
function
()
{
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
function
(
e
)
{
void
0
!==
e
.
pointerId
&&
n
(
e
);
}
,
scene
.
_onPointerDown
=
function
(
e
)
{
void
0
!==
e
.
pointerId
&&
o
(
e
);
}
,
scene
.
_onPointerMove
=
function
(
e
)
{
void
0
!==
e
.
pointerId
&&
r
(
e
);
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
};
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
YtSceneManager
.
prototype
.
change
=
function
(
display
)
{
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[];
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
};
return
YtSceneManager
;
}());
exports
.
YtSceneManager
=
YtSceneManager
;
//# sourceMappingURL=YtforTlSceneManager.js.map
\ No newline at end of file
dist/manager/YtforTlSceneManager.js.map
0 → 100644
View file @
91417cc9
{"version":3,"file":"YtforTlSceneManager.js","sourceRoot":"","sources":["../../src/manager/YtforTlSceneManager.ts"],"names":[],"mappings":";;AACA;IAmBI;QAfO,WAAM,GAAK,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACnD,WAAM,GAAC,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;YAChD,qBAAqB,EAAE,IAAI;YAC3B,gBAAgB,EAAE,CAAC;SACtB,CAAC,CAAC;QAYC,IAAI,CAAC,IAAI,EAAE,CAAA;IACf,CAAC;IAbE,CAAC;IAIJ,sBAAkB,qBAAG;aAArB;YACI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;aACxC;YACD,OAAO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AAC,CAAC;oBACrB,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;gBAClC,CAAC;;gBAED,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;YAClE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;YAClE,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9D,0BAA0B;QAC1B,IAAI,MAAM,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QACvF,OAAO,KAAK,CAAC;IACjB,CAAC;IAEF;;QAEI;IAEL;;;;;;;;;;UAUM;IAEG,+BAAM,GAAb,UAAc,OAAO;QAClB;;;;YAII;QAEJ;;aAEK;QAEJ,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAC,EAAE,CAAA;QAElC;;;;;;;;;;;;;WAaG;QACH,cAAc,CAAC,GAAG,CAAC,KAAK,GAAC,OAAO,CAAC;IACrC,CAAC;IAaL,qBAAC;AAAD,CAAC,AAxHD,IAwHC;AAxHY,wCAAc"}
\ No newline at end of file
package.json
View file @
91417cc9
{
"name"
:
"yt"
,
"version"
:
"1.0.2
1
"
,
"version"
:
"1.0.2
2
"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
...
...
src/manager/YtSceneManager.ts
View file @
91417cc9
...
...
@@ -4,7 +4,10 @@ export class YtSceneManager{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});
private
static
instance
:
YtSceneManager
;
...
...
@@ -21,6 +24,9 @@ export class YtSceneManager{
public
init
(){
this
.
scene
=
this
.
createScene
();
this
[
"engine.getRenderingCanvas"
]
=
()
=>
{
return
document
.
getElementById
(
"_a2x_canvas"
)
};
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
...
...
src/manager/YtforTlSceneManager.ts
0 → 100644
View file @
91417cc9
export
class
YtSceneManager
{
public
stage
;
public
scene
:
BABYLON
.
Scene
;
public
canvas
:
any
=
document
.
querySelector
(
"#renderCanvas"
);
public
engine
=
new
BABYLON
.
Engine
(
this
.
canvas
,
true
,
{
deterministicLockstep
:
true
,
lockstepMaxSteps
:
2
});;
private
static
instance
:
YtSceneManager
;
public
static
get
ins
():
YtSceneManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtSceneManager
();
}
return
this
.
instance
;
}
constructor
(){
this
.
init
()
}
public
init
(){
this
.
scene
=
this
.
createScene
();
this
.
engine
.
runRenderLoop
(()
=>
{
this
.
scene
.
render
();
TWEEN
.
update
();
});
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
engine
.
resize
();
});
}
public
createScene
(){
var
scene
=
new
BABYLON
.
Scene
(
this
.
engine
);
var
n
=
scene
.
_onPointerUp
,
o
=
scene
.
_onPointerDown
,
r
=
scene
.
_onPointerMove
,
a
=
BABYLON
.
Tools
.
GetPointerPrefix
();
this
.
canvas
.
removeEventListener
(
a
+
"move"
,
r
),
this
.
canvas
.
removeEventListener
(
a
+
"down"
,
o
),
window
.
removeEventListener
(
a
+
"up"
,
n
),
scene
.
_onPointerUp
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
n
(
e
)
}
,
scene
.
_onPointerDown
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
o
(
e
)
}
,
scene
.
_onPointerMove
=
(
e
)
=>
{
void
0
!==
e
.
pointerId
&&
r
(
e
)
}
,
this
.
canvas
.
addEventListener
(
a
+
"move"
,
scene
.
_onPointerMove
,
!
1
),
this
.
canvas
.
addEventListener
(
a
+
"down"
,
scene
.
_onPointerDown
,
!
1
),
window
.
addEventListener
(
a
+
"up"
,
scene
.
_onPointerUp
,
!
1
);
//下面的代码是为了设置微信上面的touch事件兼容
var
camera
=
new
BABYLON
.
FreeCamera
(
"baseCamera"
,
new
BABYLON
.
Vector3
(
0
,
0
,
0
),
scene
);
return
scene
;
}
/* public get stage(): any {
return this._stage;
}*/
/* public get scene(): BABYLON.Scene {
return this._scene;
}
public get canvas(): any {
return this._canvas;
}
public get engine(): any {
return this._engine;
} */
public
change
(
display
){
/* console.log(display)
var i;
for(i in display){
console.log(display[i])
}*/
/* for(var l of SceneManager.ins.scene.meshes){
l.dispose()
} */
YtSceneManager
.
ins
.
scene
.
meshes
=
[]
/*var j;
for(j in SceneManager.ins.stage){
console.log(SceneManager.ins.stage[j])
if( SceneManager.ins.stage[j]){
if(SceneManager.ins.stage[j].getChildMeshes){
SceneManager.ins.stage[j].getChildMeshes(false,(child)=>{
child.dispose();
});
}
if( SceneManager.ins.stage[j].dispose){
SceneManager.ins.stage[j].dispose()
}
}
}*/
YtSceneManager
.
ins
.
stage
=
display
;
}
/* public change(module){
// console.log(this._stage._children)
if(this.stage._children){
this.stage._children.forEach(function (child) {
this.stage.removeChild(child)
child.dispose()
}.bind(this))
}
this.stage.addChild(module)
// console.log( this._scene)
}*/
}
\ No newline at end of file
types/manager/YtforTlSceneManager.d.ts
0 → 100644
View file @
91417cc9
export
declare
class
YtSceneManager
{
stage
:
any
;
scene
:
BABYLON
.
Scene
;
canvas
:
any
;
engine
:
BABYLON
.
Engine
;
private
static
instance
;
static
readonly
ins
:
YtSceneManager
;
constructor
();
init
():
void
;
createScene
():
BABYLON
.
Scene
;
change
(
display
:
any
):
void
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment