Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

weex-gcanvas

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weex-gcanvas - npm Package Compare versions

Comparing version 0.5.34 to 0.5.36

2

gcanvas.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc