Skip to content

Commit

Permalink
Update to canvas@2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Charoite Lee committed Jun 25, 2022
1 parent 85ada8c commit 6c4b32c
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Since AWS Lambda is a secure and isolated runtime and execution environment, thi

[Konva](https://github.com/konvajs/konva) is a framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.

> **Note:** From Canvas Layer v2.9.3 release, since konva-node package is deprecated, konva package is used directly through build script.
## Getting started

To get started, please visit https://github.com/charoitel/lambda-layer-canvas-nodejs/wiki/Getting-Started

Made with ❤️ by Charoite Lee. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless)
Made with ❤️ by Charoite Lee and contributors. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless)
4 changes: 2 additions & 2 deletions build-layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e

LAYER_NAME=canvas-nodejs
LAYER_DESCRIPTION="AWS Lambda Layer with node-canvas and its dependencies packaged, provides a Cairo backed Mozilla Web Canvas API implementation with additional features."
LAYER_VERSION=2.9.1
LAYER_VERSION=2.9.3
LAYER_AUTHOR="Charoite Lee"

# Remove packaged layer if exists
Expand All @@ -26,7 +26,7 @@ rm -rf node_modules package*.json ../package-lock.json
npm init -y
npm install canvas --build-from-source
npm install fabric
npm install konva-node
npm install konva
npm install mocha --save-dev
jq --arg LAYER_NAME "$LAYER_NAME" --arg LAYER_DESCRIPTION "$LAYER_DESCRIPTION" --arg LAYER_VERSION "$LAYER_VERSION" --arg LAYER_AUTHOR "$LAYER_AUTHOR" '.name = $LAYER_NAME | .description = $LAYER_DESCRIPTION | .version = $LAYER_VERSION | .license = "MIT" | .author = $LAYER_AUTHOR | .scripts.test = "mocha"' package.json > package-tmp.json
mv -f package-tmp.json package.json
Expand Down
Binary file modified lib/libblkid.so.1
Binary file not shown.
Binary file modified lib/libc.so.6
Binary file not shown.
Binary file modified lib/libexpat.so.1
Binary file not shown.
Binary file modified lib/libgcc_s.so.1
Binary file not shown.
Binary file modified lib/liblzma.so.5
Binary file not shown.
Binary file modified lib/libmount.so.1
Binary file not shown.
Binary file modified lib/libstdc++.so.6
Binary file not shown.
Binary file modified lib/libuuid.so.1
Binary file not shown.
Binary file modified lib/libz.so.1
Binary file not shown.
2 changes: 1 addition & 1 deletion nodejs/test/fabric-rectangle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let fabric = require('fabric').fabric;
var assert = require('assert');

describe('Canvas', function() {
describe('Fabric', function() {
describe('#drawRectangle', function() {
it('should draw a red rectangle', function() {
var rect = new fabric.Rect({
Expand Down
10 changes: 5 additions & 5 deletions nodejs/test/konva-circle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c4b32c

Please sign in to comment.