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.2.1 to 0.3.0

13

index.js

@@ -151,2 +151,15 @@ const jsword = require('ait-lang/interfaces');

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

@@ -153,0 +166,0 @@ canvasHeight,

2

package.json
{
"name": "ait-canvas",
"version": "0.2.1",
"version": "0.3.0",
"description": "Ait module with html canvas bindings",

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

@@ -16,4 +16,3 @@ # `ait-canvas`

- Image drawing
- Gradients
- Text
- Pixel manipulation
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