🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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