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
cde11d81
Commit
cde11d81
authored
Mar 01, 2021
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.18
parent
413e9b7c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29270 additions
and
12 deletions
+29270
-12
fyge.min.js
build/fyge.min.js
+29253
-1
fyge.min.js.map
build/fyge.min.js.map
+1
-1
package.json
package.json
+1
-1
record.txt
record.txt
+6
-2
const.ts
src/2d/const.ts
+1
-1
loadAtlas.ts
src/spine/loadAtlas.ts
+8
-6
No files found.
build/fyge.min.js
View file @
cde11d81
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
cde11d81
This diff is collapsed.
Click to expand it.
package.json
View file @
cde11d81
{
{
"name"
:
"fyge"
,
"name"
:
"fyge"
,
"version"
:
"2.0.1
7
"
,
"version"
:
"2.0.1
8
"
,
"description"
:
"canvas渲染引擎"
,
"description"
:
"canvas渲染引擎"
,
"main"
:
"./build/fyge.min.js"
,
"main"
:
"./build/fyge.min.js"
,
"types"
:
"./build/FYGE.d.ts"
,
"types"
:
"./build/FYGE.d.ts"
,
...
...
record.txt
View file @
cde11d81
...
@@ -238,10 +238,12 @@
...
@@ -238,10 +238,12 @@
2.0.17 Shape类的各种绘图指令都加上返回自身,方便链式
2.0.17 Shape类的各种绘图指令都加上返回自身,方便链式
2.0.18 loadAtlas里的 createTexturesByAtlas trim的y轴偏移修改
现在不改,索引数据过大时得用Uint32Array,同时开扩展gl.getExtension( "OES_element_index_uint" )和drawElements改参数类型为gl.UNSIGNED_INT
现在不改,索引数据过大时得用Uint32Array,同时开扩展gl.getExtension( "OES_element_index_uint" )和drawElements改参数类型为gl.UNSIGNED_INT
//现在不改,DisplayObject的getLocalBounds最后是否考虑计算一次updateTransform(不用计算自己的,为了计算子级的)
//现在不改,DisplayObject的getLocalBounds最后是否考虑计算一次updateTransform(不用计算自己的,为了计算子级的)
现在不改,D3Renderer里的aSkinIndex传值用了Uint8Array,类型是gl.UNSIGNED_BYTE,估计那个外星头是因为这个
现在不改,D3Renderer里的aSkinIndex传值用了Uint8Array,类型是gl.UNSIGNED_BYTE,估计那个外星头是因为这个
现在不改,到时loadSpine要改成返回数据(方便创建多个实例)
以后要改成和three一样的几何数据处理方式,为了数据能修改
以后要改成和three一样的几何数据处理方式,为了数据能修改
...
@@ -296,4 +298,6 @@ FloatDisplay会阻止鼠标事件,因为现在stage的鼠标事件是在canvas
...
@@ -296,4 +298,6 @@ FloatDisplay会阻止鼠标事件,因为现在stage的鼠标事件是在canvas
FloatDisplay现在是body上面的。以后有时间取canvas的父级
FloatDisplay现在是body上面的。以后有时间取canvas的父级
文本以后按照bottom来,但是真实高度怎么拿
文本以后按照bottom来,但是真实高度怎么拿
\ No newline at end of file
gltf加载考虑怎么变成加载数据,通过数据初始化一个显示对象,或者用paser生成个新的对象
\ No newline at end of file
src/2d/const.ts
View file @
cde11d81
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @name VERSION
* @name VERSION
* @type {string}
* @type {string}
*/
*/
export
const
VERSION
=
"2.0.1
7
"
;
export
const
VERSION
=
"2.0.1
8
"
;
/**
/**
...
...
src/spine/loadAtlas.ts
View file @
cde11d81
...
@@ -129,12 +129,14 @@ export function createTexturesByAtlas(baseTexture: BaseTexture, altaData: string
...
@@ -129,12 +129,14 @@ export function createTexturesByAtlas(baseTexture: BaseTexture, altaData: string
//如果是被截掉过透明边界的 ,,加上如果和原始尺寸不一致也是裁切
//如果是被截掉过透明边界的 ,,加上如果和原始尺寸不一致也是裁切
if
(
ox
||
oy
||
w
!=
sw
||
h
!=
sh
)
{
if
(
ox
||
oy
||
w
!=
sw
||
h
!=
sh
)
{
//其实就是在orig上切图,偏移
//其实就是在orig上切图,偏移
trim
=
new
Rectangle
(
// trim = new Rectangle(
Math
.
floor
(
ox
),
// Math.floor(ox),
Math
.
floor
(
oy
),
// Math.floor(oy),
Math
.
floor
(
w
),
// Math.floor(w),
Math
.
floor
(
h
)
// Math.floor(h)
);
// );
//斟酌是否有必要用Math.floor,包括上面所有的
trim
=
new
Rectangle
(
ox
,
sh
-
h
-
oy
,
w
,
h
);
}
}
//暂时不考虑进全局图集
//暂时不考虑进全局图集
textures
[
line
]
=
new
Texture
(
textures
[
line
]
=
new
Texture
(
...
...
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