ait-canvas
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10746
244
0