weex-gcanvas
Advanced tools
Comparing version 0.5.34 to 0.5.36
@@ -120,3 +120,3 @@ /** | ||
//----------------------------- | ||
GLog.d('gcanvas#=====>>>version: 0.5.34'); | ||
GLog.d('gcanvas#=====>>>version: 0.5.36'); | ||
@@ -123,0 +123,0 @@ GCanvas.start = function(el){ |
@@ -41,3 +41,3 @@ var GBridge = require("./gutil").GBridge; | ||
this._checkVersionFlag = false; | ||
this._useOldAPIFlag = false; | ||
this._useNewAPIFlag = true; | ||
@@ -703,3 +703,3 @@ } | ||
function useOldAPI() | ||
function useNewAPI() | ||
{ | ||
@@ -710,11 +710,11 @@ var appName = weex.config.env.appName; | ||
{ | ||
return true; | ||
return false; | ||
} | ||
else if(appName == "TM" && versionLessThen(appVersion, "6.4.1.2") ) //低于6.4.1.2的使用老接口 | ||
{ | ||
return true; | ||
return false; | ||
} | ||
//其他的都使用新接口 | ||
return false; | ||
return true; | ||
} | ||
@@ -743,13 +743,13 @@ | ||
{ | ||
// if( !that._checkVersionFlag ) | ||
// { | ||
// that._useOldAPIFlag = useOldAPI(); | ||
// that._checkVersionFlag = true; | ||
// } | ||
if( !that._checkVersionFlag ) | ||
{ | ||
that._useNewAPIFlag = useNewAPI(); | ||
that._checkVersionFlag = true; | ||
} | ||
// if( that._useOldAPIFlag ){ | ||
// GBridge.bindImageTexture(that.componentId, image.src, function(){}); | ||
// }else{ | ||
if( that._useNewAPIFlag ){ | ||
GBridge.bindImageTexture(that.componentId, [image.src, image.id], function(){}); | ||
// } | ||
}else{ | ||
GBridge.bindImageTexture(that.componentId, image.src, function(){}); | ||
} | ||
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh); | ||
@@ -756,0 +756,0 @@ // that._saveImageTexture(image.src, image); |
{ | ||
"name": "weex-gcanvas", | ||
"version": "0.5.34", | ||
"version": "0.5.36", | ||
"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