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
e84b79dc
Commit
e84b79dc
authored
May 19, 2022
by
wangjianfeng.yz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.70
parent
5a82e416
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
31 deletions
+39
-31
.gitignore
.gitignore
+2
-1
.npmignore
.npmignore
+2
-1
FYGE.d.ts
build/FYGE.d.ts
+7
-7
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
+7
-7
package.json
package.json
+1
-1
const.ts
src/2d/const.ts
+1
-1
TextField.ts
src/2d/text/TextField.ts
+13
-7
No files found.
.gitignore
View file @
e84b79dc
...
...
@@ -5,4 +5,5 @@ node_modules
debug
.vscode
dist
docs
\ No newline at end of file
docs
srcOri
\ No newline at end of file
.npmignore
View file @
e84b79dc
...
...
@@ -22,4 +22,5 @@ testThree
README.md
abandoned
beta
srcNew
\ No newline at end of file
srcNew
srcOri
\ No newline at end of file
build/FYGE.d.ts
View file @
e84b79dc
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.
69
"
;
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.
70
"
;
export
function
cos
(
angle
:
number
):
number
;
...
...
@@ -6912,25 +6912,25 @@ export class TextField extends Sprite {
get
size
():
number
;
private
_size
;
/**
* 文本的填充颜色值
* 文本的填充颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property fillColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
set
fillColor
(
value
:
string
);
set
fillColor
(
value
:
string
|
number
);
get
fillColor
():
string
;
private
_fillColor
;
/**
* 文本的描边颜色值
* 文本的描边颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property strokeColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
set
strokeColor
(
value
:
string
);
set
strokeColor
(
value
:
string
|
number
);
get
strokeColor
():
string
;
private
_strokeColor
;
/**
...
...
build/fyge.esm.js
View file @
e84b79dc
This diff is collapsed.
Click to expand it.
build/fyge.esm.js.map
View file @
e84b79dc
This diff is collapsed.
Click to expand it.
build/fyge.min.js
View file @
e84b79dc
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
e84b79dc
This diff is collapsed.
Click to expand it.
build/types.d.ts
View file @
e84b79dc
export
const
VERSION
=
"2.0.
69
"
;
export
const
VERSION
=
"2.0.
70
"
;
export
function
cos
(
angle
:
number
):
number
;
...
...
@@ -6912,25 +6912,25 @@ export class TextField extends Sprite {
get
size
():
number
;
private
_size
;
/**
* 文本的填充颜色值
* 文本的填充颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property fillColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
set
fillColor
(
value
:
string
);
set
fillColor
(
value
:
string
|
number
);
get
fillColor
():
string
;
private
_fillColor
;
/**
* 文本的描边颜色值
* 文本的描边颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property strokeColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
set
strokeColor
(
value
:
string
);
set
strokeColor
(
value
:
string
|
number
);
get
strokeColor
():
string
;
private
_strokeColor
;
/**
...
...
package.json
View file @
e84b79dc
{
"name"
:
"fyge"
,
"version"
:
"2.0.
69
"
,
"version"
:
"2.0.
70
"
,
"description"
:
"canvas渲染引擎"
,
"main"
:
"./build/fyge.min.js"
,
"module"
:
"./build/fyge.esm.js"
,
...
...
src/2d/const.ts
View file @
e84b79dc
...
...
@@ -7,7 +7,7 @@
* @name VERSION
* @type {string}
*/
export
const
VERSION
=
"2.0.
69
"
;
export
const
VERSION
=
"2.0.
70
"
;
/**
...
...
src/2d/text/TextField.ts
View file @
e84b79dc
import
{
SCALE_MODES
,
TEXT_ALIGN
,
TEXT_lINETYPE
,
VERTICAL_ALIGN
}
from
"../const"
;
import
Texture
from
"../texture/Texture"
;
import
{
getRGBA
,
createCanvas
,
getEnv
}
from
"../utils"
;
import
{
getRGBA
,
createCanvas
,
getEnv
,
hex2string
}
from
"../utils"
;
import
{
Rectangle
}
from
"../math"
;
import
Sprite
from
"../display/Sprite"
;
import
{
BaseTexture
}
from
"../texture"
;
...
...
@@ -287,14 +287,17 @@ export class TextField extends Sprite {
}
private
_size
:
number
=
12
;
/**
* 文本的填充颜色值
* 文本的填充颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property fillColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
public
set
fillColor
(
value
:
string
)
{
public
set
fillColor
(
value
:
string
|
number
)
{
if
(
typeof
(
value
)
==
"number"
)
{
value
=
hex2string
(
value
);
}
if
(
this
.
_fillColor
!=
value
)
{
this
.
_fillColor
=
value
;
this
.
dirty
=
true
;
...
...
@@ -307,14 +310,17 @@ export class TextField extends Sprite {
private
_fillColor
:
string
=
"#ffffff"
;
/**
* 文本的描边颜色值
* 文本的描边颜色值
,比如字符串"#ffffff"或十六进制数字0xffffff
* @property strokeColor
* @type {string}
* @type {string
|number
}
* @public
* @since 1.0.0
* @default #fff
*/
public
set
strokeColor
(
value
:
string
)
{
public
set
strokeColor
(
value
:
string
|
number
)
{
if
(
typeof
(
value
)
==
"number"
)
{
value
=
hex2string
(
value
);
}
if
(
this
.
_strokeColor
!=
value
)
{
this
.
_strokeColor
=
value
;
this
.
dirty
=
true
;
...
...
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