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

ait-canvas

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ait-canvas - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

17

index.js

@@ -190,14 +190,14 @@ const {

const createLinearGradient = jsword('createLinearGradient', function([x2, y2], [x1, y1]) {
function createLinearGradient([x2, y2], [x1, y1]) {
return this.ctx.createLinearGradient(x1, y1, x2, y2);
});
}
const createRadialGradient = jsword('createRadialGradient', function(r2, [x2, y2], r1, [x1, y1]) {
function createRadialGradient(r2, [x2, y2], r1, [x1, y1]) {
return this.ctx.createRadialGradient(x1, y1, r1, x2, y2, r2);
});
}
const addColorStop = jsword('addColorStop', function(color, offset, gradient) {
function addColorStop(color, offset, gradient) {
gradient.addColorStop(offset, color);
return gradient;
})
}

@@ -247,3 +247,6 @@ module.exports = {

shadowBlur: aitFFI__F(1, 'shadowBlur', unwrapper(shadowBlur)),
shadowColor: aitFFI__F(1, 'shadowColor', unwrapper(shadowColor))
shadowColor: aitFFI__F(1, 'shadowColor', unwrapper(shadowColor)),
createLinearGradient: aitFFI__F(2, 'createLinearGradient', createLinearGradient),
createRadialGradient: aitFFI__F(4, 'createRadialGradient', createRadialGradient),
createColorStop: aitFFI__F(3, 'createColorStop', createColorStop)
};
{
"name": "ait-canvas",
"version": "0.4.0",
"version": "0.4.1",
"description": "Ait module with html canvas bindings",

@@ -5,0 +5,0 @@ "main": "index.js",

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