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

weex-gcanvas

Package Overview
Dependencies
Maintainers
5
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.18 to 0.5.20

49

gcontext2d.js

@@ -754,18 +754,39 @@ var GBridge = require("./gutil").GBridge;

{
GBridge.bindImageTexture(that.componentId, image.src, function(e){
if( !e.error )
{
if(image.width === 0 && e.width > 0){
image.width = e.width;
}
if(typeof callGCanvasLinkNative !== 'undefined') {
GLog.d('gcontext2d#drawImage() with callGCanvasLinkNative');
GBridge.bindImageTexture(that.componentId, image.src, cacheKey, function(e){
if( !e.error )
{
if(image.width === 0 && e.width > 0){
image.width = e.width;
}
if(image.height === 0 && e.height > 0){
image.height = e.height;
}
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh);
// that._saveImageTexture(image.src, image);
that._saveImageTexture(cacheKey, image);
if(image.height === 0 && e.height > 0){
image.height = e.height;
}
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh);
// that._saveImageTexture(image.src, image);
that._saveImageTexture(cacheKey, image);
}
});
}
});
} else {
GLog.d('gcontext2d#drawImage()');
GBridge.bindImageTexture(that.componentId, image.src, function(e){
if( !e.error )
{
if(image.width === 0 && e.width > 0){
image.width = e.width;
}
if(image.height === 0 && e.height > 0){
image.height = e.height;
}
that._concatDrawCmd(numArgs, image, sx, sy, sw, sh, dx, dy, dw, dh);
// that._saveImageTexture(image.src, image);
that._saveImageTexture(cacheKey, image);
}
});
}
}

@@ -772,0 +793,0 @@ };

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