weex-gcanvas
Advanced tools
Comparing version 0.5.30 to 0.5.32
@@ -120,3 +120,3 @@ /** | ||
//----------------------------- | ||
GLog.d('gcanvas#=====>>>version: 0.5.30'); | ||
GLog.d('gcanvas#=====>>>version: 0.5.32'); | ||
@@ -155,2 +155,4 @@ GCanvas.start = function(el){ | ||
var canvas = new GCanvas(el.ref); | ||
canvas.width = el.style.width; | ||
canvas.height = el.style.height; | ||
// GCanvas.canvasMap.put(el.ref, canvas); | ||
@@ -157,0 +159,0 @@ return canvas; |
@@ -813,3 +813,3 @@ var GBridge = require("./gutil").GBridge; | ||
GContext2D.prototype.render = function(flag) { | ||
GLog.d("gcontext.render"+this._drawCommands); | ||
// GLog.d("gcontext.render"+this._drawCommands); | ||
if (this.timer && typeof flag === "undefined"){ | ||
@@ -816,0 +816,0 @@ clearInterval(this.timer); |
@@ -481,3 +481,3 @@ var GBridge = require("./gutil").GBridge; | ||
}else{ | ||
GLog.d("GContext2D loadTexture errorCallback!"); | ||
// GLog.d("GContext2D loadTexture errorCallback!"); | ||
errorCallback && errorCallback(e); | ||
@@ -707,7 +707,7 @@ } | ||
var appVersion = weex.config.env.appVersion; | ||
if( (appName == "TB") && versionLessThen(appVersion, "6.11.2") ) //低于6.11.2.3的使用老接口 | ||
if( (appName == "TB") && versionLessThen(appVersion, "6.11.2.3") ) //低于6.11.2.3的使用老接口 | ||
{ | ||
return true; | ||
} | ||
else if(appName == "TM" && versionLessThen(appVersion, "6.4.2") ) //低于6.4.2的使用老接口 | ||
else if(appName == "TM" && versionLessThen(appVersion, "6.4.1.2") ) //低于6.4.1.2的使用老接口 | ||
{ | ||
@@ -760,3 +760,3 @@ return true; | ||
if(typeof callGCanvasLinkNative !== 'undefined') { | ||
GLog.d('gcontext2d#drawImage() with callGCanvasLinkNative'); | ||
// GLog.d('gcontext2d#drawImage() with callGCanvasLinkNative'); | ||
GBridge.bindImageTexture(that.componentId, [image.src, image.id], function(e){ | ||
@@ -779,3 +779,3 @@ if( !e.error ) | ||
} else { | ||
GLog.d('gcontext2d#drawImage()'); | ||
// GLog.d('gcontext2d#drawImage()'); | ||
GBridge.bindImageTexture(that.componentId, image.src, function(e){ | ||
@@ -782,0 +782,0 @@ if( !e.error ) |
@@ -52,10 +52,10 @@ ///////////////////////////////////////////////////////////////// | ||
if(this.isIOS() || this.isBrowser()){ | ||
GLog.d('bridge#callrender in iOS'); | ||
// GLog.d('bridge#callrender in iOS'); | ||
canvasModule.render && canvasModule.render( commands, componentId ); | ||
}else{ | ||
if(typeof callGCanvasLinkNative !== 'undefined') { | ||
GLog.d('bridge#callGCanvasLinkNative()'); | ||
// GLog.d('bridge#callGCanvasLinkNative()'); | ||
callGCanvasLinkNative(componentId, 0x20000001, commands); | ||
} else { | ||
GLog.d('bridge#callRender()'); | ||
// GLog.d('bridge#callRender()'); | ||
canvasModule.render && canvasModule.render( commands, componentId ); | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "weex-gcanvas", | ||
"version": "0.5.30", | ||
"version": "0.5.32", | ||
"main":"gcanvas.js", | ||
@@ -5,0 +5,0 @@ "platform": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240423
6588