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
25637fbb
Commit
25637fbb
authored
Nov 26, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换个版本号打印的方式
parent
1dd4b223
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
14 deletions
+9
-14
FYGE.d.ts
build/FYGE.d.ts
+3
-3
fyge.min.js
build/fyge.min.js
+1
-1
fyge.min.js.map
build/fyge.min.js.map
+1
-1
types.d.ts
build/types.d.ts
+3
-3
Stage.ts
src/2d/display/Stage.ts
+1
-6
No files found.
build/FYGE.d.ts
View file @
25637fbb
...
@@ -1864,7 +1864,7 @@ export function mapSize(type: string): number;
...
@@ -1864,7 +1864,7 @@ export function mapSize(type: string): number;
export
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
Int32Array
|
0
;
export
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
Int32Array
|
Float32Array
|
0
;
export
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
...
@@ -5566,7 +5566,7 @@ export class Stage extends Container {
...
@@ -5566,7 +5566,7 @@ export class Stage extends Container {
/**
/**
* 移动端不常用
* 移动端不常用
* 微信浏览器使用情景:ios返回页面下面出现操作栏
* 微信浏览器使用情景:ios返回页面下面出现操作栏
* window.addEventListener(
'resize'
, () => {stage.resize()});
* window.addEventListener(
"resize"
, () => {stage.resize()});
* 这里会按照原_dpi修改canvas的实际尺寸
* 这里会按照原_dpi修改canvas的实际尺寸
* 一般设备的dpi不会改变,
* 一般设备的dpi不会改变,
* web全屏环境可不传参数,否则自行计算显示尺寸传入
* web全屏环境可不传参数,否则自行计算显示尺寸传入
...
@@ -10568,7 +10568,7 @@ export class GLTFParser {
...
@@ -10568,7 +10568,7 @@ export class GLTFParser {
* @param {number} skinIndex
* @param {number} skinIndex
* @return {Promise<Object>}
* @return {Promise<Object>}
*/
*/
loadSkin
(
skinIndex
:
any
):
any
;
loadSkin
(
skinIndex
:
any
):
Promise
<
any
>
;
/**
/**
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
* @param {number} animationIndex
* @param {number} animationIndex
...
...
build/fyge.min.js
View file @
25637fbb
This diff is collapsed.
Click to expand it.
build/fyge.min.js.map
View file @
25637fbb
This diff is collapsed.
Click to expand it.
build/types.d.ts
View file @
25637fbb
...
@@ -1864,7 +1864,7 @@ export function mapSize(type: string): number;
...
@@ -1864,7 +1864,7 @@ export function mapSize(type: string): number;
export
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
Int32Array
|
0
;
export
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
Int32Array
|
Float32Array
|
0
;
export
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
...
@@ -5566,7 +5566,7 @@ export class Stage extends Container {
...
@@ -5566,7 +5566,7 @@ export class Stage extends Container {
/**
/**
* 移动端不常用
* 移动端不常用
* 微信浏览器使用情景:ios返回页面下面出现操作栏
* 微信浏览器使用情景:ios返回页面下面出现操作栏
* window.addEventListener(
'resize'
, () => {stage.resize()});
* window.addEventListener(
"resize"
, () => {stage.resize()});
* 这里会按照原_dpi修改canvas的实际尺寸
* 这里会按照原_dpi修改canvas的实际尺寸
* 一般设备的dpi不会改变,
* 一般设备的dpi不会改变,
* web全屏环境可不传参数,否则自行计算显示尺寸传入
* web全屏环境可不传参数,否则自行计算显示尺寸传入
...
@@ -10568,7 +10568,7 @@ export class GLTFParser {
...
@@ -10568,7 +10568,7 @@ export class GLTFParser {
* @param {number} skinIndex
* @param {number} skinIndex
* @return {Promise<Object>}
* @return {Promise<Object>}
*/
*/
loadSkin
(
skinIndex
:
any
):
any
;
loadSkin
(
skinIndex
:
any
):
Promise
<
any
>
;
/**
/**
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
* @param {number} animationIndex
* @param {number} animationIndex
...
...
src/2d/display/Stage.ts
View file @
25637fbb
...
@@ -223,16 +223,11 @@ export class Stage extends Container {
...
@@ -223,16 +223,11 @@ export class Stage extends Container {
//打印个版本号
//打印个版本号
console
.
log
(
console
.
log
(
"
\n
%c %c %c FYGE "
+
VERSION
+
" -
\
u2730 "
+
[
"Unknown"
,
"WebGL"
,
"Canvas"
][
renderType
]
+
"
\
u2730 %c
%c https://www.fyge.duiba.com.cn/ %c %c
\
u2665%c
\
u2665%c
\
u2665
\n\n
"
,
"
\n
%c %c %c FYGE "
+
VERSION
+
" -
\
u2730 "
+
[
"Unknown"
,
"WebGL"
,
"Canvas"
][
renderType
]
+
"
\
u2730 %c "
,
"background: #0077FA; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"color: #0095EE; background: #030307; padding:5px 0;"
,
"color: #0095EE; background: #030307; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"background: #2BB0FF; padding:5px 0;"
,
"background: #0077FA; padding:5px 0;"
,
"color: #ff2424; background: #fff; padding:5px 0;"
,
"color: #ff2424; background: #fff; padding:5px 0;"
,
"color: #ff2424; background: #fff; padding:5px 0;"
);
);
if
(
renderType
==
RENDERER_TYPE
.
CANVAS
)
{
if
(
renderType
==
RENDERER_TYPE
.
CANVAS
)
{
...
...
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