Commit 25637fbb authored by 邱旭's avatar 邱旭

换个版本号打印的方式

parent 1dd4b223
...@@ -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
......
This diff is collapsed.
This diff is collapsed.
...@@ -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
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment