Commit b26cc4b9 authored by wangjianfeng.yz's avatar wangjianfeng.yz

2.0.59

parent 275ce6c5
declare namespace FYGE{export const VERSION = "2.0.58";
declare namespace FYGE{export const VERSION = "2.0.59";
export function cos(angle: number): number;
......@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
export function initedByTbCanvas(canvas: any): void;
export function initedByCanvas(canvas: any): void;
export function destroyTbCanvas(): void;
export function destroyCanvasContent(): void;
export function createImage(): HTMLImageElement;
export function requestAnimationFrame(callback: any): any;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
export const VERSION = "2.0.58";
export const VERSION = "2.0.59";
export function cos(angle: number): number;
......@@ -1048,8 +1048,12 @@ export function createCanvas(): HTMLCanvasElement;
export function initedByTbCanvas(canvas: any): void;
export function initedByCanvas(canvas: any): void;
export function destroyTbCanvas(): void;
export function destroyCanvasContent(): void;
export function createImage(): HTMLImageElement;
export function requestAnimationFrame(callback: any): any;
......
{
"name": "fyge",
"version": "2.0.58",
"version": "2.0.59",
"description": "canvas渲染引擎",
"main": "./build/fyge.min.js",
"module": "./build/fyge.esm.js",
......
......@@ -560,6 +560,10 @@
loadSpine废弃原先为了兼容老版本格式的字段spine和skeletonData
其他的都是注释和部分提示信息的修改
2.0.59 tbminAdpate暂时恢复方法initedByCanvas和destroyCanvasContent,为了老版本维护
......
......@@ -7,7 +7,7 @@
* @name VERSION
* @type {string}
*/
export const VERSION = "2.0.58";
export const VERSION = "2.0.59";
/**
......
......@@ -75,11 +75,11 @@ export function initedByTbCanvas(canvas) {
tbCanvas = canvas;
setEnv(EnvType.tb);
}
// //兼容老版本,TODO废弃
// export function initedByCanvas(canvas) {
// console.warn("Function initedByCanvas will be abandoned soon,use function initedByTbCanvas instead")
// initedByTbCanvas(canvas)
// }
//兼容老版本,TODO废弃
export function initedByCanvas(canvas) {
console.warn("Function initedByCanvas will be abandoned soon,use function initedByTbCanvas instead")
initedByTbCanvas(canvas)
}
/**
* 销毁记录的tbCanvas,一般也没必要执行,
* 尤其多页面的淘宝小程序,销毁的话,createImage会有问题
......@@ -87,11 +87,11 @@ export function initedByTbCanvas(canvas) {
export function destroyTbCanvas() {
tbCanvas = null;
}
// //兼容老版本,TODO废弃
// export function destroyCanvasContent() {
// console.warn("Function destroyCanvasContent will be abandoned soon,use function destroyTbCanvas instead")
// destroyTbCanvas();
// }
//兼容老版本,TODO废弃
export function destroyCanvasContent() {
console.warn("Function destroyCanvasContent will be abandoned soon,use function destroyTbCanvas instead")
destroyTbCanvas();
}
/**
* 返回图片
......
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