|
2 | 2 |
|
3 | 3 | 
|
4 | 4 |
|
5 |
| -[lambda-layer-canvas-nodejs](https://github.com/charoitel/lambda-layer-canvas-nodejs) published on [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs) packages node-canvas and its dependencies as AWS Lambda Layer. |
| 5 | +Canvas Layer for AWS Lambda is published and available on [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs), and GitHub at [charoitel/lambda-layer-canvas-nodejs](https://github.com/charoitel/lambda-layer-canvas-nodejs). The layer aims to provide a Cairo backed Mozilla Web Canvas API implementation layer for AWS Lambda, powered by [node-canvas](https://github.com/Automattic/node-canvas). |
6 | 6 |
|
7 | 7 | ## About node-canvas
|
8 | 8 |
|
9 |
| -[node-canvas](https://github.com/Automattic/node-canvas) is a Cairo backed Canvas implementation for Node.js. It implements the [Mozilla Web Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) as closely as possible. For the current API compliance, please check [Compatibility Status](https://github.com/Automattic/node-canvas/wiki/Compatibility-Status). |
| 9 | +[node-canvas](https://github.com/Automattic/node-canvas) is a Cairo backed Canvas implementation for Node.js. It implements the [Mozilla Web Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) as closely as possible. For the latest API compliance, you may check [Compatibility Status](https://github.com/Automattic/node-canvas/wiki/Compatibility-Status). |
10 | 10 |
|
11 | 11 | ## How this layer is built?
|
12 | 12 |
|
13 |
| -The Lambda Layer is built from source of node-canvas npm package on [amazonlinux](https://hub.docker.com/_/amazonlinux) dev container instance, with following native dependencies installed. Please check ``` build-layer.sh ``` for details. |
| 13 | +The layer is built from source of node-canvas npm package on [amazonlinux](https://hub.docker.com/_/amazonlinux) dev container instance, with following native dependencies installed. You may check the build layer script, ``` build-layer.sh ```, which is available in repository, for details. |
14 | 14 |
|
15 | 15 | ```bash
|
16 | 16 | gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel librsvg2-devel pango-devel bzip2-devel jq python3
|
17 | 17 | ```
|
18 | 18 |
|
19 |
| -Since AWS Lambda is a secure and isolated runtime and execution environment, this layer aims to target AWS Lambda compatible build. As there are canvas libraries and frameworks relying on node-canvas running on Node.js runtime, this layer also tries to include and support these libraries and frameworks. |
| 19 | +Since AWS Lambda is a secure and isolated runtime and execution environment, the layer aims to target AWS Lambda compatible and native build. As there are canvas libraries and frameworks relying on node-canvas running on Node.js runtime, this layer may also try to include and support those libraries and frameworks. Currently, following libraries and frameworks are included when building and packaging the layer: |
20 | 20 |
|
21 |
| -### Fabric.js support |
| 21 | +- [Chart.js](#chartjs-support) |
| 22 | +- [Fabric.js](#fabricjs-support) |
| 23 | +- [Konva](#konva-support) |
| 24 | +- [PixiJS](#pixijs-support) |
22 | 25 |
|
23 |
| -[Fabric.js](https://github.com/fabricjs/fabric.js) is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. It is also an SVG-to-canvas (and canvas-to-SVG) parser. |
| 26 | +### Chart.js support |
24 | 27 |
|
25 |
| -### Konva support |
| 28 | +[Chart.js](https://github.com/chartjs/chart.js) provides a set of frequently used chart types, plugins, and customization options. In addition to a reasonable set of built-in chart types, there are also community-maintained chart types. |
26 | 29 |
|
27 |
| -[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. |
| 30 | +### Fabric.js support |
28 | 31 |
|
29 |
| -> **Note:** From Canvas Layer v2.9.3 release, since konva-node package is deprecated, konva package is used directly through build script. |
| 32 | +[Fabric.js](https://github.com/fabricjs/fabric.js) provides a missing and interactive object model for canvas, as well as an SVG parser, layer of interactivity, and a whole suite of other indispensable tools. |
| 33 | + |
| 34 | +### Konva support |
30 | 35 |
|
31 |
| -## Getting started |
| 36 | +[Konva](https://github.com/konvajs/konva) enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more. |
32 | 37 |
|
33 |
| -To get started, please visit https://github.com/charoitel/lambda-layer-canvas-nodejs/wiki/Getting-Started |
| 38 | +### PixiJS support |
34 | 39 |
|
35 |
| -Made with ❤️ by Charoite Lee and contributors. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless) |
| 40 | +[PixiJS](https://github.com/pixijs/pixijs) aims to provide a fast, lightweight 2D library that works across all devices. The renderer allows everyone to enjoy the power of hardware acceleration without prior knowledge of WebGL. |
0 commit comments