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
b26cc4b9
Commit
b26cc4b9
authored
Feb 11, 2022
by
wangjianfeng.yz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.59
parent
275ce6c5
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
20 deletions
+32
-20
FYGE.d.ts
build/FYGE.d.ts
+5
-1
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
+5
-1
package.json
package.json
+1
-1
record.txt
record.txt
+4
-0
const.ts
src/2d/const.ts
+1
-1
tbminiAdapte.ts
src/2d/utils/tbminiAdapte.ts
+10
-10
No files found.
build/FYGE.d.ts
View file @
b26cc4b9
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.5
8
"
;
declare
namespace
FYGE
{
export
const
VERSION
=
"2.0.5
9
"
;
export
function
cos
(
angle
:
number
):
number
;
export
function
cos
(
angle
:
number
):
number
;
...
@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
...
@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
export
function
initedByTbCanvas
(
canvas
:
any
):
void
;
export
function
initedByTbCanvas
(
canvas
:
any
):
void
;
export
function
initedByCanvas
(
canvas
:
any
):
void
;
export
function
destroyTbCanvas
():
void
;
export
function
destroyTbCanvas
():
void
;
export
function
destroyCanvasContent
():
void
;
export
function
createImage
():
HTMLImageElement
;
export
function
createImage
():
HTMLImageElement
;
export
function
requestAnimationFrame
(
callback
:
any
):
any
;
export
function
requestAnimationFrame
(
callback
:
any
):
any
;
...
...
build/fyge.esm.js
View file @
b26cc4b9
This diff is collapsed.
Click to expand it.
build/fyge.esm.js.map
View file @
b26cc4b9
This diff is collapsed.
Click to expand it.
build/fyge.min.js
View file @
b26cc4b9
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
b26cc4b9
This diff is collapsed.
Click to expand it.
build/types.d.ts
View file @
b26cc4b9
export
const
VERSION
=
"2.0.5
8
"
;
export
const
VERSION
=
"2.0.5
9
"
;
export
function
cos
(
angle
:
number
):
number
;
export
function
cos
(
angle
:
number
):
number
;
...
@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
...
@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
export
function
initedByTbCanvas
(
canvas
:
any
):
void
;
export
function
initedByTbCanvas
(
canvas
:
any
):
void
;
export
function
initedByCanvas
(
canvas
:
any
):
void
;
export
function
destroyTbCanvas
():
void
;
export
function
destroyTbCanvas
():
void
;
export
function
destroyCanvasContent
():
void
;
export
function
createImage
():
HTMLImageElement
;
export
function
createImage
():
HTMLImageElement
;
export
function
requestAnimationFrame
(
callback
:
any
):
any
;
export
function
requestAnimationFrame
(
callback
:
any
):
any
;
...
...
package.json
View file @
b26cc4b9
{
{
"name"
:
"fyge"
,
"name"
:
"fyge"
,
"version"
:
"2.0.5
8
"
,
"version"
:
"2.0.5
9
"
,
"description"
:
"canvas渲染引擎"
,
"description"
:
"canvas渲染引擎"
,
"main"
:
"./build/fyge.min.js"
,
"main"
:
"./build/fyge.min.js"
,
"module"
:
"./build/fyge.esm.js"
,
"module"
:
"./build/fyge.esm.js"
,
...
...
record.txt
View file @
b26cc4b9
...
@@ -560,6 +560,10 @@
...
@@ -560,6 +560,10 @@
loadSpine废弃原先为了兼容老版本格式的字段spine和skeletonData
loadSpine废弃原先为了兼容老版本格式的字段spine和skeletonData
其他的都是注释和部分提示信息的修改
其他的都是注释和部分提示信息的修改
2.0.59 tbminAdpate暂时恢复方法initedByCanvas和destroyCanvasContent,为了老版本维护
...
...
src/2d/const.ts
View file @
b26cc4b9
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @name VERSION
* @name VERSION
* @type {string}
* @type {string}
*/
*/
export
const
VERSION
=
"2.0.5
8
"
;
export
const
VERSION
=
"2.0.5
9
"
;
/**
/**
...
...
src/2d/utils/tbminiAdapte.ts
View file @
b26cc4b9
...
@@ -75,11 +75,11 @@ export function initedByTbCanvas(canvas) {
...
@@ -75,11 +75,11 @@ export function initedByTbCanvas(canvas) {
tbCanvas
=
canvas
;
tbCanvas
=
canvas
;
setEnv
(
EnvType
.
tb
);
setEnv
(
EnvType
.
tb
);
}
}
//
//
兼容老版本,TODO废弃
//兼容老版本,TODO废弃
//
export function initedByCanvas(canvas) {
export
function
initedByCanvas
(
canvas
)
{
//
console.warn("Function initedByCanvas will be abandoned soon,use function initedByTbCanvas instead")
console
.
warn
(
"Function initedByCanvas will be abandoned soon,use function initedByTbCanvas instead"
)
//
initedByTbCanvas(canvas)
initedByTbCanvas
(
canvas
)
//
}
}
/**
/**
* 销毁记录的tbCanvas,一般也没必要执行,
* 销毁记录的tbCanvas,一般也没必要执行,
* 尤其多页面的淘宝小程序,销毁的话,createImage会有问题
* 尤其多页面的淘宝小程序,销毁的话,createImage会有问题
...
@@ -87,11 +87,11 @@ export function initedByTbCanvas(canvas) {
...
@@ -87,11 +87,11 @@ export function initedByTbCanvas(canvas) {
export
function
destroyTbCanvas
()
{
export
function
destroyTbCanvas
()
{
tbCanvas
=
null
;
tbCanvas
=
null
;
}
}
//
//
兼容老版本,TODO废弃
//兼容老版本,TODO废弃
//
export function destroyCanvasContent() {
export
function
destroyCanvasContent
()
{
//
console.warn("Function destroyCanvasContent will be abandoned soon,use function destroyTbCanvas instead")
console
.
warn
(
"Function destroyCanvasContent will be abandoned soon,use function destroyTbCanvas instead"
)
//
destroyTbCanvas();
destroyTbCanvas
();
//
}
}
/**
/**
* 返回图片
* 返回图片
...
...
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