Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fyge_for_tb
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
王剑峰
fyge_for_tb
Commits
be66c9a8
Commit
be66c9a8
authored
Jul 20, 2021
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.30
parent
46806a25
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1084 additions
and
80 deletions
+1084
-80
fyge.min.js
build/fyge.min.js
+1
-1
fyge.min.js.map
build/fyge.min.js.map
+1
-1
previewLottieSvga.html
examples/previewLottieSvga.html
+18
-13
package.json
package.json
+1
-1
record.txt
record.txt
+6
-0
const.ts
src/2d/const.ts
+1
-1
Lottie.ts
src/2d/ui/Lottie.ts
+302
-63
Lottie20210719.ts
src/2d/ui/Lottie20210719.ts
+754
-0
No files found.
build/fyge.min.js
View file @
be66c9a8
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
be66c9a8
This diff is collapsed.
Click to expand it.
examples/previewLottieSvga.html
View file @
be66c9a8
...
@@ -75,21 +75,26 @@
...
@@ -75,21 +75,26 @@
if
(
name
.
indexOf
(
".svga"
)
>=
0
)
{
if
(
name
.
indexOf
(
".svga"
)
>=
0
)
{
SvgaParser
.
loadSvga
(
src
,
(
v
)
=>
{
SvgaParser
.
loadSvga
(
src
,
(
v
)
=>
{
console
.
log
(
v
)
console
.
log
(
v
)
window
.
asd
=
stage
.
addChild
(
new
FYGE
.
SvgaAni
(
v
))
window
.
asd
=
stage
.
addChild
(
new
FYGE
.
SvgaAni
(
v
))
// .position.set(
// .position.set(
// (750 - v.videoSize.width) / 2,
// (750 - v.videoSize.width) / 2,
// (stage.viewRect.height - v.videoSize.height) / 2,
// (stage.viewRect.height - v.videoSize.height) / 2,
// )
// )
window
.
asd
.
stop
();
//
window.asd.stop();
})
}
,
(
e
)
=>
{
console
.
log
(
e
)
}
)
}
else
{
}
else
{
//加载
//加载
FYGE
.
GlobalLoader
.
loadJson
((
s
,
json
)
=>
{
FYGE
.
GlobalLoader
.
loadJson
((
s
,
json
)
=>
{
var
l
=
stage
.
addChild
(
new
FYGE
.
Lottie
(
json
))
console
.
log
(
json
)
// l.position.set((750 - json.w) / 2, (stage.viewRect.height - json.h) / 2);
try
{
l
.
play
();
var
l
=
stage
.
addChild
(
new
FYGE
.
Lottie
(
json
))
window
.
asd
=
l
;
// l.position.set((750 - json.w) / 2, (stage.viewRect.height - json.h) / 2);
window
.
asd
.
stop
();
l
.
play
();
window
.
asd
=
l
;
// window.asd.stop();
}
catch
(
e
)
{
console
.
log
(
e
)
}
},
src
)
},
src
)
}
}
}
}
...
@@ -102,7 +107,7 @@
...
@@ -102,7 +107,7 @@
sssss
sssss
},1000)
},1000)
</script> -->
</script> -->
</body>
</body>
</html>
</html>
\ No newline at end of file
package.json
View file @
be66c9a8
{
{
"name"
:
"fyge"
,
"name"
:
"fyge"
,
"version"
:
"2.0.
29
"
,
"version"
:
"2.0.
30
"
,
"description"
:
"canvas渲染引擎"
,
"description"
:
"canvas渲染引擎"
,
"main"
:
"./build/fyge.min.js"
,
"main"
:
"./build/fyge.min.js"
,
"types"
:
"./build/types.d.ts"
,
"types"
:
"./build/types.d.ts"
,
...
...
record.txt
View file @
be66c9a8
...
@@ -387,6 +387,12 @@
...
@@ -387,6 +387,12 @@
Lottie文件里的LottieVisibleTrack类的resetValue方法里添加执行this.setValue(0);
Lottie文件里的LottieVisibleTrack类的resetValue方法里添加执行this.setValue(0);
Lottie文件里的createLottieTracks方法里实例Sprite时获取纹理的逻辑修改,textures不存在或textures里字段不存在时取全局
Lottie文件里的createLottieTracks方法里实例Sprite时获取纹理的逻辑修改,textures不存在或textures里字段不存在时取全局
2.0.30 Lottie的init方法里遍历tracks加了一段给LottieExpressionTrack的帧率赋值
Lottie文件里增加setValue函数
比如LottieBaseTrack的setValue方法替换成setValue
Lottie新增时间轴LottieExpressionTrack,parseExpression函数,runExpressionNode函数
Lottie文件的createLottieTracks方法里把原先分开属性修改成["o", "r", "p", "s"]数组遍历
大尺寸纹理首次传gpu使用时会掉帧,越大耗时越多。考虑如何处理
大尺寸纹理首次传gpu使用时会掉帧,越大耗时越多。考虑如何处理
...
...
src/2d/const.ts
View file @
be66c9a8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @name VERSION
* @name VERSION
* @type {string}
* @type {string}
*/
*/
export
const
VERSION
=
"2.0.
29
"
;
export
const
VERSION
=
"2.0.
30
"
;
/**
/**
...
...
src/2d/ui/Lottie.ts
View file @
be66c9a8
This diff is collapsed.
Click to expand it.
src/2d/ui/Lottie20210719.ts
0 → 100644
View file @
be66c9a8
This diff is collapsed.
Click to expand it.
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