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

weex-gcanvas

Package Overview
Dependencies
Maintainers
4
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.4.0 to 0.4.1

22

gcontext2d.js

@@ -686,6 +686,12 @@ var GBridge = require("./gutil").GBridge;

return;
}
}
var bindTextureFunc = function()
{
if( GBridge.isIOS() )
{
GBridge.bindImageTexture(that.componentId, image.src, function(){});
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh);
that._saveImageTexture(image.src, image);
}
else
{
GBridge.bindImageTexture(that.componentId, image.src, function(e){

@@ -706,12 +712,2 @@ if( !e.error )

}
if( this._firstBindFlag )
{
setTimeout(bindTextureFunc, 16); //首次bind延迟16毫秒解决iOS的glGenTexture返回错误问题
this._firstBindFlag = false;
}
else
{
bindTextureFunc();
}
};

@@ -718,0 +714,0 @@

{
"name": "weex-gcanvas",
"version": "0.4.0",
"version": "0.4.1",
"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