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
e0e062d1
Commit
e0e062d1
authored
Aug 31, 2018
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rjf
parent
f194ea04
Changes
46
Show whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
645 additions
and
551 deletions
+645
-551
package_20180627173707.json
.history/package_20180627173707.json
+0
-15
package_20180702143332.json
.history/package_20180702143332.json
+0
-14
package_20180702150459.json
.history/package_20180702150459.json
+0
-14
package_20180703102048.json
.history/package_20180703102048.json
+0
-14
package_20180703113327.json
.history/package_20180703113327.json
+0
-14
package_20180703121926.json
.history/package_20180703121926.json
+0
-14
package_20180704163837.json
.history/package_20180704163837.json
+0
-14
package_20180704164836.json
.history/package_20180704164836.json
+0
-14
package_20180704165053.json
.history/package_20180704165053.json
+0
-14
package_20180704171102.json
.history/package_20180704171102.json
+0
-14
package_20180704172839.json
.history/package_20180704172839.json
+0
-14
package_20180704185339.json
.history/package_20180704185339.json
+0
-14
package_20180704190054.json
.history/package_20180704190054.json
+0
-14
package_20180704191615.json
.history/package_20180704191615.json
+0
-14
package_20180704192946.json
.history/package_20180704192946.json
+0
-14
package_20180710145442.json
.history/package_20180710145442.json
+0
-14
package_20180713101627.json
.history/package_20180713101627.json
+0
-14
package_20180713104551.json
.history/package_20180713104551.json
+0
-14
package_20180713111522.json
.history/package_20180713111522.json
+0
-14
package_20180719113901.json
.history/package_20180719113901.json
+0
-14
package_20180719151935.json
.history/package_20180719151935.json
+0
-14
package_20180719152932.json
.history/package_20180719152932.json
+0
-14
package_20180719153856.json
.history/package_20180719153856.json
+0
-14
package_20180719164032.json
.history/package_20180719164032.json
+0
-14
package_20180719174359.json
.history/package_20180719174359.json
+0
-14
package_20180719175330.json
.history/package_20180719175330.json
+0
-14
package_20180719180517.json
.history/package_20180719180517.json
+0
-14
package_20180719180753.json
.history/package_20180719180753.json
+0
-14
package_20180719181236.json
.history/package_20180719181236.json
+0
-14
package_20180719181551.json
.history/package_20180719181551.json
+0
-14
package_20180719181717.json
.history/package_20180719181717.json
+0
-14
package_20180719184140.json
.history/package_20180719184140.json
+0
-14
package_20180719184429.json
.history/package_20180719184429.json
+0
-14
package_20180719184621.json
.history/package_20180719184621.json
+0
-14
package_20180719184941.json
.history/package_20180719184941.json
+0
-14
package_20180719192934.json
.history/package_20180719192934.json
+0
-14
package_20180719194350.json
.history/package_20180719194350.json
+0
-14
package_20180831165018.json
.history/package_20180831165018.json
+1
-1
YtAssetsManager_20180713100503.ts
.history/src/manager/YtAssetsManager_20180713100503.ts
+149
-0
YtAssetsManager_20180831164830.ts
.history/src/manager/YtAssetsManager_20180831164830.ts
+151
-0
YtAssetsManager_20180831165018.ts
.history/src/manager/YtAssetsManager_20180831165018.ts
+152
-0
YtAssetsManager_20180831165055.ts
.history/src/manager/YtAssetsManager_20180831165055.ts
+152
-0
YtAssetsManager.js
dist/manager/YtAssetsManager.js
+17
-11
YtAssetsManager.js.map
dist/manager/YtAssetsManager.js.map
+1
-1
package.json
package.json
+1
-1
YtAssetsManager.ts
src/manager/YtAssetsManager.ts
+21
-18
No files found.
.history/package_20180627173707.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"wx"
,
"version"
:
"1.0.7"
,
"description"
:
"基于annieJs的兑吧活动组件库"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tl"
:
"git+ssh://git@gitlab2.dui88.com:clq/tl.git#1.0"
,
"tw"
:
"git+ssh://git@gitlab2.dui88.com:clq/tw.git#1.0"
}
}
\ No newline at end of file
.history/package_20180702143332.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.0"
,
"description"
:
"基于Babylonjs的兑吧活动组件库"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180702150459.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.0"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180703102048.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.1"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180703113327.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.2"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180703121926.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.3"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704163837.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.4"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704164836.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.5"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704165053.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.6"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704171102.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.7"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704172839.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.8"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704185339.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.9"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704190054.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.10"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704191615.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.11"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180704192946.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.12"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180710145442.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.13"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180713101627.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.14"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"scripts"
:
{
},
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"tc"
:
"git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
.history/package_20180713104551.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.15"
,
"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/package_20180713111522.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.16"
,
"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/package_20180719113901.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.17"
,
"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/package_20180719151935.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.18"
,
"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/package_20180719152932.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.19"
,
"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/package_20180719153856.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.20"
,
"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/package_20180719164032.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.21"
,
"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/package_20180719174359.json
deleted
100644 → 0
View file @
f194ea04
{
"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/package_20180719175330.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.23"
,
"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/package_20180719180517.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.24"
,
"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/package_20180719180753.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.25"
,
"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/package_20180719181236.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.26"
,
"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/package_20180719181551.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.27"
,
"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/package_20180719181717.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.28"
,
"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/package_20180719184140.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.29"
,
"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/package_20180719184429.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.30"
,
"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/package_20180719184621.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.31"
,
"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/package_20180719184941.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.32"
,
"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/package_20180719192934.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.33"
,
"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/package_20180719194350.json
deleted
100644 → 0
View file @
f194ea04
{
"name"
:
"yt"
,
"version"
:
"1.0.34"
,
"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/package_20180
713104336
.json
→
.history/package_20180
831165018
.json
View file @
e0e062d1
{
{
"name"
:
"yt"
,
"name"
:
"yt"
,
"version"
:
"1.0.
14
"
,
"version"
:
"1.0.
35
"
,
"description"
:
"基于Babylonjs的3D框架"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"types"
:
"./types/index.d.ts"
,
...
...
.history/src/manager/YtAssetsManager_20180713100503.ts
0 → 100644
View file @
e0e062d1
//import {ResourceCon} from "../resource/resource";
export
class
YtAssetsManager
{
private
_resourceData
;
private
_resourceObject
:
object
;
private
static
instance
:
YtAssetsManager
;
public
static
get
ins
():
YtAssetsManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtAssetsManager
();
}
return
this
.
instance
;
}
constructor
(){
//this._resourceData=ResourceCon.ins.resource;
this
.
_resourceObject
=
{
binarys
:{},
images
:{},
models
:{},
textures
:{},
cubeTextures
:{}
}
}
public
set
resourceData
(
resource
){
this
.
_resourceData
=
resource
;
}
public
loadFile
(
sceneNames
:
Array
<
string
>
,
scene
,
callback
,
progress
){
let
assetsManager
=
new
BABYLON
.
AssetsManager
(
scene
);
assetsManager
.
useDefaultLoadingScreen
=
false
;
sceneNames
.
forEach
(
function
(
sceneName
){
//加载模型
var
_thisModel
=
{}
this
.
_resourceData
[
sceneName
].
models
.
forEach
(
function
(
model
){
let
meshTask
=
assetsManager
.
addMeshTask
(
"skull task"
,
""
,
model
.
filePath
,
model
.
fileName
);
meshTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
"meshTask"
)
console
.
log
(
task
)
task
.
loadedMeshes
.
forEach
(
function
(
mesh
){
mesh
.
isVisible
=
false
;
mesh
.
name
=
"noneisVisible_"
+
mesh
;
})
let
_thisMesh
=
task
;
_thisModel
[
model
.
name
]
=
_thisMesh
this
.
_resourceObject
.
models
[
sceneName
]
=
_thisModel
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载图片
var
_thisImage
=
{}
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
let
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
image
.
filePath
+
image
.
fileName
,
);
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载贴图
var
_thisTexture
=
{}
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
let
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
texture
.
filePath
+
texture
.
fileName
,
);
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载二进制文件
var
_thisBinary
=
{}
this
.
_resourceData
[
sceneName
].
binarys
.
forEach
(
function
(
binary
){
let
binaryTask
=
assetsManager
.
addBinaryFileTask
(
"binary task"
,
binary
.
filePath
+
binary
.
fileName
,
);
binaryTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
6666677
)
console
.
log
(
task
.
data
)
_thisBinary
[
binary
.
name
]
=
task
.
data
_thisBinary
[
binary
.
name
][
"url"
]
=
task
.
url
this
.
_resourceObject
.
binarys
[
sceneName
]
=
_thisBinary
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载天空盒子/环境贴图
var
_thisCubeTexture
=
{}
this
.
_resourceData
[
sceneName
].
cubeTextures
.
forEach
(
function
(
cubeTexture
){
let
cubeTextureTask
=
assetsManager
.
addCubeTextureTask
(
"cubeTexture task"
,
cubeTexture
.
filePath
+
cubeTexture
.
fileName
,
);
cubeTextureTask
.
onSuccess
=
function
(
task
)
{
_thisCubeTexture
[
cubeTexture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
cubeTextures
[
sceneName
]
=
_thisCubeTexture
;
}.
bind
(
this
)
}.
bind
(
this
))
}.
bind
(
this
))
assetsManager
.
load
();
//加载成功一个子元素调用
assetsManager
.
onProgress
=
function
(
task
)
{
var
_this
=
{
totalTasksCount
:
assetsManager
.
_totalTasksCount
,
waitingTasksCount
:
assetsManager
.
_waitingTasksCount
,
loadCount
:(
assetsManager
.
_totalTasksCount
-
assetsManager
.
_waitingTasksCount
)
/
assetsManager
.
_totalTasksCount
}
progress
(
_this
)
}.
bind
(
this
);
//全部加载成功调用
assetsManager
.
onFinish
=
function
(
task
)
{
callback
()
}.
bind
(
this
);
}
public
get
resourceObject
(){
return
this
.
_resourceObject
;
}
}
\ No newline at end of file
.history/src/manager/YtAssetsManager_20180831164830.ts
0 → 100644
View file @
e0e062d1
import
{
getImgURL
}
from
'duiba-tc'
;
export
class
YtAssetsManager
{
private
_resourceData
;
private
_resourceObject
:
object
;
private
static
instance
:
YtAssetsManager
;
public
static
get
ins
():
YtAssetsManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtAssetsManager
();
}
return
this
.
instance
;
}
constructor
(){
//this._resourceData=ResourceCon.ins.resource;
this
.
_resourceObject
=
{
binarys
:{},
images
:{},
models
:{},
textures
:{},
cubeTextures
:{}
}
}
public
set
resourceData
(
resource
){
this
.
_resourceData
=
resource
;
}
public
loadFile
(
sceneNames
:
Array
<
string
>
,
scene
,
callback
,
progress
){
let
assetsManager
=
new
BABYLON
.
AssetsManager
(
scene
);
assetsManager
.
useDefaultLoadingScreen
=
false
;
sceneNames
.
forEach
(
function
(
sceneName
){
//加载模型
var
_thisModel
=
{}
this
.
_resourceData
[
sceneName
].
models
.
forEach
(
function
(
model
){
let
meshTask
=
assetsManager
.
addMeshTask
(
"skull task"
,
""
,
model
.
filePath
,
model
.
fileName
);
meshTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
"meshTask"
)
console
.
log
(
task
)
task
.
loadedMeshes
.
forEach
(
function
(
mesh
){
mesh
.
isVisible
=
false
;
mesh
.
name
=
"noneisVisible_"
+
mesh
;
})
let
_thisMesh
=
task
;
_thisModel
[
model
.
name
]
=
_thisMesh
this
.
_resourceObject
.
models
[
sceneName
]
=
_thisModel
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载图片
var
_thisImage
=
{}
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
let
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
image
.
filePath
+
image
.
fileName
,
);
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载贴图
var
_thisTexture
=
{}
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,(
url
)
=>
{
let
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
url
,
);
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
)
})
}.
bind
(
this
))
//加载二进制文件
var
_thisBinary
=
{}
this
.
_resourceData
[
sceneName
].
binarys
.
forEach
(
function
(
binary
){
let
binaryTask
=
assetsManager
.
addBinaryFileTask
(
"binary task"
,
binary
.
filePath
+
binary
.
fileName
,
);
binaryTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
6666677
)
console
.
log
(
task
.
data
)
_thisBinary
[
binary
.
name
]
=
task
.
data
_thisBinary
[
binary
.
name
][
"url"
]
=
task
.
url
this
.
_resourceObject
.
binarys
[
sceneName
]
=
_thisBinary
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载天空盒子/环境贴图
var
_thisCubeTexture
=
{}
this
.
_resourceData
[
sceneName
].
cubeTextures
.
forEach
(
function
(
cubeTexture
){
let
cubeTextureTask
=
assetsManager
.
addCubeTextureTask
(
"cubeTexture task"
,
cubeTexture
.
filePath
+
cubeTexture
.
fileName
,
);
cubeTextureTask
.
onSuccess
=
function
(
task
)
{
_thisCubeTexture
[
cubeTexture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
cubeTextures
[
sceneName
]
=
_thisCubeTexture
;
}.
bind
(
this
)
}.
bind
(
this
))
}.
bind
(
this
))
assetsManager
.
load
();
//加载成功一个子元素调用
assetsManager
.
onProgress
=
function
(
task
)
{
var
_this
=
{
totalTasksCount
:
assetsManager
.
_totalTasksCount
,
waitingTasksCount
:
assetsManager
.
_waitingTasksCount
,
loadCount
:(
assetsManager
.
_totalTasksCount
-
assetsManager
.
_waitingTasksCount
)
/
assetsManager
.
_totalTasksCount
}
progress
(
_this
)
}.
bind
(
this
);
//全部加载成功调用
assetsManager
.
onFinish
=
function
(
task
)
{
callback
()
}.
bind
(
this
);
}
public
get
resourceObject
(){
return
this
.
_resourceObject
;
}
}
\ No newline at end of file
.history/src/manager/YtAssetsManager_20180831165018.ts
0 → 100644
View file @
e0e062d1
import
{
getImgURL
}
from
'duiba-tc'
;
export
class
YtAssetsManager
{
private
_resourceData
;
private
_resourceObject
:
object
;
private
static
instance
:
YtAssetsManager
;
public
static
get
ins
():
YtAssetsManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtAssetsManager
();
}
return
this
.
instance
;
}
constructor
(){
//this._resourceData=ResourceCon.ins.resource;
this
.
_resourceObject
=
{
binarys
:{},
images
:{},
models
:{},
textures
:{},
cubeTextures
:{}
}
}
public
set
resourceData
(
resource
){
this
.
_resourceData
=
resource
;
}
public
loadFile
(
sceneNames
:
Array
<
string
>
,
scene
,
callback
,
progress
){
let
assetsManager
=
new
BABYLON
.
AssetsManager
(
scene
);
assetsManager
.
useDefaultLoadingScreen
=
false
;
sceneNames
.
forEach
(
function
(
sceneName
){
//加载模型
var
_thisModel
=
{}
this
.
_resourceData
[
sceneName
].
models
.
forEach
(
function
(
model
){
let
meshTask
=
assetsManager
.
addMeshTask
(
"skull task"
,
""
,
model
.
filePath
,
model
.
fileName
);
meshTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
"meshTask"
)
console
.
log
(
task
)
task
.
loadedMeshes
.
forEach
(
function
(
mesh
){
mesh
.
isVisible
=
false
;
mesh
.
name
=
"noneisVisible_"
+
mesh
;
})
let
_thisMesh
=
task
;
_thisModel
[
model
.
name
]
=
_thisMesh
this
.
_resourceObject
.
models
[
sceneName
]
=
_thisModel
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载图片
var
_thisImage
=
{}
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,(
url
)
=>
{
let
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
url
,
);
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
)
})
}.
bind
(
this
))
//加载贴图
var
_thisTexture
=
{}
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,(
url
)
=>
{
let
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
url
,
);
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
)
})
}.
bind
(
this
))
//加载二进制文件
var
_thisBinary
=
{}
this
.
_resourceData
[
sceneName
].
binarys
.
forEach
(
function
(
binary
){
let
binaryTask
=
assetsManager
.
addBinaryFileTask
(
"binary task"
,
binary
.
filePath
+
binary
.
fileName
,
);
binaryTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
6666677
)
console
.
log
(
task
.
data
)
_thisBinary
[
binary
.
name
]
=
task
.
data
_thisBinary
[
binary
.
name
][
"url"
]
=
task
.
url
this
.
_resourceObject
.
binarys
[
sceneName
]
=
_thisBinary
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载天空盒子/环境贴图
var
_thisCubeTexture
=
{}
this
.
_resourceData
[
sceneName
].
cubeTextures
.
forEach
(
function
(
cubeTexture
){
let
cubeTextureTask
=
assetsManager
.
addCubeTextureTask
(
"cubeTexture task"
,
cubeTexture
.
filePath
+
cubeTexture
.
fileName
,
);
cubeTextureTask
.
onSuccess
=
function
(
task
)
{
_thisCubeTexture
[
cubeTexture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
cubeTextures
[
sceneName
]
=
_thisCubeTexture
;
}.
bind
(
this
)
}.
bind
(
this
))
}.
bind
(
this
))
assetsManager
.
load
();
//加载成功一个子元素调用
assetsManager
.
onProgress
=
function
(
task
)
{
var
_this
=
{
totalTasksCount
:
assetsManager
.
_totalTasksCount
,
waitingTasksCount
:
assetsManager
.
_waitingTasksCount
,
loadCount
:(
assetsManager
.
_totalTasksCount
-
assetsManager
.
_waitingTasksCount
)
/
assetsManager
.
_totalTasksCount
}
progress
(
_this
)
}.
bind
(
this
);
//全部加载成功调用
assetsManager
.
onFinish
=
function
(
task
)
{
callback
()
}.
bind
(
this
);
}
public
get
resourceObject
(){
return
this
.
_resourceObject
;
}
}
\ No newline at end of file
.history/src/manager/YtAssetsManager_20180831165055.ts
0 → 100644
View file @
e0e062d1
import
{
getImgURL
}
from
'duiba-tc'
;
export
class
YtAssetsManager
{
private
_resourceData
;
private
_resourceObject
:
object
;
private
static
instance
:
YtAssetsManager
;
public
static
get
ins
():
YtAssetsManager
{
if
(
!
this
.
instance
)
{
this
.
instance
=
new
YtAssetsManager
();
}
return
this
.
instance
;
}
constructor
(){
//this._resourceData=ResourceCon.ins.resource;
this
.
_resourceObject
=
{
binarys
:{},
images
:{},
models
:{},
textures
:{},
cubeTextures
:{}
}
}
public
set
resourceData
(
resource
){
this
.
_resourceData
=
resource
;
}
public
loadFile
(
sceneNames
:
Array
<
string
>
,
scene
,
callback
,
progress
){
let
assetsManager
=
new
BABYLON
.
AssetsManager
(
scene
);
assetsManager
.
useDefaultLoadingScreen
=
false
;
sceneNames
.
forEach
(
function
(
sceneName
){
//加载模型
var
_thisModel
=
{}
this
.
_resourceData
[
sceneName
].
models
.
forEach
(
function
(
model
){
let
meshTask
=
assetsManager
.
addMeshTask
(
"skull task"
,
""
,
model
.
filePath
,
model
.
fileName
);
meshTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
"meshTask"
)
console
.
log
(
task
)
task
.
loadedMeshes
.
forEach
(
function
(
mesh
){
mesh
.
isVisible
=
false
;
mesh
.
name
=
"noneisVisible_"
+
mesh
;
})
let
_thisMesh
=
task
;
_thisModel
[
model
.
name
]
=
_thisMesh
this
.
_resourceObject
.
models
[
sceneName
]
=
_thisModel
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载图片
var
_thisImage
=
{}
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
getImgURL
(
image
.
filePath
+
image
.
fileName
,(
url
)
=>
{
let
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
url
,
);
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
)
})
}.
bind
(
this
))
//加载贴图
var
_thisTexture
=
{}
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,(
url
)
=>
{
let
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
url
,
);
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
)
})
}.
bind
(
this
))
//加载二进制文件
var
_thisBinary
=
{}
this
.
_resourceData
[
sceneName
].
binarys
.
forEach
(
function
(
binary
){
let
binaryTask
=
assetsManager
.
addBinaryFileTask
(
"binary task"
,
binary
.
filePath
+
binary
.
fileName
,
);
binaryTask
.
onSuccess
=
function
(
task
)
{
console
.
log
(
6666677
)
console
.
log
(
task
.
data
)
_thisBinary
[
binary
.
name
]
=
task
.
data
_thisBinary
[
binary
.
name
][
"url"
]
=
task
.
url
this
.
_resourceObject
.
binarys
[
sceneName
]
=
_thisBinary
;
}.
bind
(
this
)
}.
bind
(
this
))
//加载天空盒子/环境贴图
var
_thisCubeTexture
=
{}
this
.
_resourceData
[
sceneName
].
cubeTextures
.
forEach
(
function
(
cubeTexture
){
let
cubeTextureTask
=
assetsManager
.
addCubeTextureTask
(
"cubeTexture task"
,
cubeTexture
.
filePath
+
cubeTexture
.
fileName
,
);
cubeTextureTask
.
onSuccess
=
function
(
task
)
{
_thisCubeTexture
[
cubeTexture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
cubeTextures
[
sceneName
]
=
_thisCubeTexture
;
}.
bind
(
this
)
}.
bind
(
this
))
}.
bind
(
this
))
assetsManager
.
load
();
//加载成功一个子元素调用
assetsManager
.
onProgress
=
function
(
task
)
{
var
_this
=
{
totalTasksCount
:
assetsManager
.
_totalTasksCount
,
waitingTasksCount
:
assetsManager
.
_waitingTasksCount
,
loadCount
:(
assetsManager
.
_totalTasksCount
-
assetsManager
.
_waitingTasksCount
)
/
assetsManager
.
_totalTasksCount
}
progress
(
_this
)
}.
bind
(
this
);
//全部加载成功调用
assetsManager
.
onFinish
=
function
(
task
)
{
callback
()
}.
bind
(
this
);
}
public
get
resourceObject
(){
return
this
.
_resourceObject
;
}
}
\ No newline at end of file
dist/manager/YtAssetsManager.js
View file @
e0e062d1
"use strict"
;
"use strict"
;
//import {ResourceCon} from "../resource/resource";
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
duiba_tc_1
=
require
(
"duiba-tc"
);
var
YtAssetsManager
=
/** @class */
(
function
()
{
var
YtAssetsManager
=
/** @class */
(
function
()
{
function
YtAssetsManager
()
{
function
YtAssetsManager
()
{
//this._resourceData=ResourceCon.ins.resource;
//this._resourceData=ResourceCon.ins.resource;
...
@@ -52,20 +52,26 @@ var YtAssetsManager = /** @class */ (function () {
...
@@ -52,20 +52,26 @@ var YtAssetsManager = /** @class */ (function () {
//加载图片
//加载图片
var
_thisImage
=
{};
var
_thisImage
=
{};
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
)
{
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
)
{
var
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
image
.
filePath
+
image
.
fileName
);
var
_this
=
this
;
duiba_tc_1
.
getImgURL
(
image
.
filePath
+
image
.
fileName
,
function
(
url
)
{
var
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
url
);
imageTask
.
onSuccess
=
function
(
task
)
{
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
;
_thisImage
[
image
.
name
]
=
task
.
image
;
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
);
}.
bind
(
_this
);
});
}.
bind
(
this
));
}.
bind
(
this
));
//加载贴图
//加载贴图
var
_thisTexture
=
{};
var
_thisTexture
=
{};
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
)
{
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
)
{
var
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
texture
.
filePath
+
texture
.
fileName
);
var
_this
=
this
;
duiba_tc_1
.
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,
function
(
url
)
{
var
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
url
);
textureTask
.
onSuccess
=
function
(
task
)
{
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
;
_thisTexture
[
texture
.
name
]
=
task
.
texture
;
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
);
}.
bind
(
_this
);
});
}.
bind
(
this
));
}.
bind
(
this
));
//加载二进制文件
//加载二进制文件
var
_thisBinary
=
{};
var
_thisBinary
=
{};
...
...
dist/manager/YtAssetsManager.js.map
View file @
e0e062d1
{"version":3,"file":"YtAssetsManager.js","sourceRoot":"","sources":["../../src/manager/YtAssetsManager.ts"],"names":[],"mappings":";AAAA,mDAAmD;;AAEnD;IAcI;QACI,8CAA8C;QAC9C,IAAI,CAAC,eAAe,GAAC;YACjB,OAAO,EAAC,EAAE;YACV,MAAM,EAAC,EAAE;YACT,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;YACX,YAAY,EAAC,EAAE;SAClB,CAAA;IACL,CAAC;IAhBD,sBAAkB,sBAAG;aAArB;YACI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;aACzC;YACD,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAaD,sBAAW,yCAAY;aAAvB,UAAwB,QAAQ;YAC5B,IAAI,CAAC,aAAa,GAAC,QAAQ,CAAC;QAChC,CAAC;;;OAAA;IAEM,kCAAQ,GAAf,UAAgB,UAAwB,EAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ;QAE5D,IAAI,aAAa,GAAG,IAAI,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrD,aAAa,CAAC,uBAAuB,GAA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C,gBAAgB;aAC7G,CAAA;YACD,QAAQ,CAAC,KAAK,CAAC,CAAA;QAEnB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEb,UAAU;QACV,aAAa,CAAC,QAAQ,GAAC,UAAS,IAAI;YAChC,QAAQ,EAAE,CAAA;QACd,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEjB,CAAC;IAED,sBAAW,2CAAc;aAAzB;YACI,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,CAAC;;;OAAA;IAEL,sBAAC;AAAD,CAAC,AAtJD,IAsJC;AAtJY,0CAAe"}
\ No newline at end of file
\ No newline at end of file
package.json
View file @
e0e062d1
{
{
"name"
:
"yt"
,
"name"
:
"yt"
,
"version"
:
"1.0.3
4
"
,
"version"
:
"1.0.3
5
"
,
"description"
:
"基于Babylonjs的3D框架"
,
"description"
:
"基于Babylonjs的3D框架"
,
"main"
:
"./dist/index.js"
,
"main"
:
"./dist/index.js"
,
"types"
:
"./types/index.d.ts"
,
"types"
:
"./types/index.d.ts"
,
...
...
src/manager/YtAssetsManager.ts
View file @
e0e062d1
//import {ResourceCon} from "../resource/resource";
import
{
getImgURL
}
from
'duiba-tc'
;
export
class
YtAssetsManager
{
export
class
YtAssetsManager
{
private
_resourceData
;
private
_resourceData
;
private
_resourceObject
:
object
;
private
_resourceObject
:
object
;
...
@@ -62,14 +61,16 @@ export class YtAssetsManager {
...
@@ -62,14 +61,16 @@ export class YtAssetsManager {
//加载图片
//加载图片
var
_thisImage
=
{}
var
_thisImage
=
{}
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
this
.
_resourceData
[
sceneName
].
images
.
forEach
(
function
(
image
){
getImgURL
(
image
.
filePath
+
image
.
fileName
,(
url
)
=>
{
let
imageTask
=
assetsManager
.
addImageTask
(
let
imageTask
=
assetsManager
.
addImageTask
(
"image task"
,
"image task"
,
image
.
filePath
+
image
.
fileName
,
url
,
);
);
imageTask
.
onSuccess
=
function
(
task
)
{
imageTask
.
onSuccess
=
function
(
task
)
{
_thisImage
[
image
.
name
]
=
task
.
image
_thisImage
[
image
.
name
]
=
task
.
image
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
this
.
_resourceObject
.
images
[
sceneName
]
=
_thisImage
;
}.
bind
(
this
)
}.
bind
(
this
)
})
}.
bind
(
this
))
}.
bind
(
this
))
...
@@ -78,14 +79,16 @@ export class YtAssetsManager {
...
@@ -78,14 +79,16 @@ export class YtAssetsManager {
//加载贴图
//加载贴图
var
_thisTexture
=
{}
var
_thisTexture
=
{}
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
this
.
_resourceData
[
sceneName
].
textures
.
forEach
(
function
(
texture
){
getImgURL
(
texture
.
filePath
+
texture
.
fileName
,(
url
)
=>
{
let
textureTask
=
assetsManager
.
addTextureTask
(
let
textureTask
=
assetsManager
.
addTextureTask
(
"texture task"
,
"texture task"
,
texture
.
filePath
+
texture
.
fileName
,
url
,
);
);
textureTask
.
onSuccess
=
function
(
task
)
{
textureTask
.
onSuccess
=
function
(
task
)
{
_thisTexture
[
texture
.
name
]
=
task
.
texture
_thisTexture
[
texture
.
name
]
=
task
.
texture
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
this
.
_resourceObject
.
textures
[
sceneName
]
=
_thisTexture
;
}.
bind
(
this
)
}.
bind
(
this
)
})
}.
bind
(
this
))
}.
bind
(
this
))
...
...
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