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
4407bce1
Commit
4407bce1
authored
Oct 29, 2021
by
wangjianfeng.yz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.47
parent
2523b4d3
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
14 deletions
+23
-14
FYGE.d.ts
build/FYGE.d.ts
+4
-2
fyge.esm.js
build/fyge.esm.js
+2
-2
fyge.esm.js.map
build/fyge.esm.js.map
+1
-1
fyge.min.js
build/fyge.min.js
+2
-2
fyge.min.js.map
build/fyge.min.js.map
+1
-1
types.d.ts
build/types.d.ts
+4
-2
package.json
package.json
+1
-1
record.txt
record.txt
+3
-0
const.ts
src/2d/const.ts
+3
-1
BitmapText.ts
src/2d/text/BitmapText.ts
+1
-1
TextField.ts
src/2d/text/TextField.ts
+1
-1
No files found.
build/FYGE.d.ts
View file @
4407bce1
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.4
6
"
;
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.4
7
"
;
export
function
cos
(
angle
:
number
):
number
;
...
...
@@ -44,7 +44,9 @@ export enum TEXT_ALIGN {
export
enum
VERTICAL_ALIGN
{
MIDDLE
=
"middle"
,
UP
=
"up"
,
DOWN
=
"down"
DOWN
=
"down"
,
TOP
=
"top"
,
BOTTOM
=
"bottom"
}
export
enum
TEXT_lINETYPE
{
...
...
build/fyge.esm.js
View file @
4407bce1
This diff is collapsed.
Click to expand it.
build/fyge.esm.js.map
View file @
4407bce1
This diff is collapsed.
Click to expand it.
build/fyge.min.js
View file @
4407bce1
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
4407bce1
This diff is collapsed.
Click to expand it.
build/types.d.ts
View file @
4407bce1
export
const
VERSION
=
"2.0.4
6
"
;
export
const
VERSION
=
"2.0.4
7
"
;
export
function
cos
(
angle
:
number
):
number
;
...
...
@@ -44,7 +44,9 @@ export enum TEXT_ALIGN {
export
enum
VERTICAL_ALIGN
{
MIDDLE
=
"middle"
,
UP
=
"up"
,
DOWN
=
"down"
DOWN
=
"down"
,
TOP
=
"top"
,
BOTTOM
=
"bottom"
}
export
enum
TEXT_lINETYPE
{
...
...
package.json
View file @
4407bce1
{
"name"
:
"fyge"
,
"version"
:
"2.0.4
6
"
,
"version"
:
"2.0.4
7
"
,
"description"
:
"canvas渲染引擎"
,
"main"
:
"./build/fyge.min.js"
,
"module"
:
"./build/fyge.esm.js"
,
...
...
record.txt
View file @
4407bce1
...
...
@@ -472,6 +472,9 @@
2.0.46 Loader的loadRawWeb方法修改,去掉原先的onerror,onreadystatechange里判断改成readyState为4下,2XX或304为成功,其余状态失败
2.0.47 const的VERTICAL_ALIGN新增枚举TOP和BOTTOM,相应修改文件BitmapText和TextField
外层canvas标签的transform数据在获取鼠标坐标时并未考虑,比如旋转
...
...
src/2d/const.ts
View file @
4407bce1
...
...
@@ -7,7 +7,7 @@
* @name VERSION
* @type {string}
*/
export
const
VERSION
=
"2.0.4
6
"
;
export
const
VERSION
=
"2.0.4
7
"
;
/**
...
...
@@ -188,6 +188,8 @@ export enum VERTICAL_ALIGN {
MIDDLE
=
"middle"
,
UP
=
"up"
,
DOWN
=
"down"
,
TOP
=
"top"
,
BOTTOM
=
"bottom"
,
}
/**
...
...
src/2d/text/BitmapText.ts
View file @
4407bce1
...
...
@@ -151,7 +151,7 @@ export class BitmapText extends Container {
// }
// for (var i = 0; i < this.children.length; i++)this.children[i].y = up;
var
up
:
number
=
0
;
if
(
this
.
_verticalAlign
==
VERTICAL_ALIGN
.
DOWN
)
{
if
(
this
.
_verticalAlign
==
VERTICAL_ALIGN
.
DOWN
||
this
.
_verticalAlign
==
VERTICAL_ALIGN
.
BOTTOM
)
{
up
=
-
1
;
}
else
if
(
this
.
_verticalAlign
==
VERTICAL_ALIGN
.
MIDDLE
)
{
up
=
-
1
/
2
;
...
...
src/2d/text/TextField.ts
View file @
4407bce1
...
...
@@ -619,7 +619,7 @@ export class TextField extends Sprite {
//跟trueHeight比较
if
(
s
.
_verticalAlign
==
VERTICAL_ALIGN
.
MIDDLE
)
{
upY
=
(
s
.
_textHeight
-
trueHeight
)
*
0.5
;
}
else
if
(
s
.
_verticalAlign
==
VERTICAL_ALIGN
.
DOWN
)
{
}
else
if
(
s
.
_verticalAlign
==
VERTICAL_ALIGN
.
DOWN
||
s
.
_verticalAlign
==
VERTICAL_ALIGN
.
BOTTOM
)
{
upY
=
s
.
_textHeight
-
trueHeight
;
}
}
...
...
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