Skip to content

Commit bdc97cb

Browse files
author
Charoite Lee
committed
Update build layer script and README
1 parent c9d4ba3 commit bdc97cb

File tree

4 files changed

+10
-48
lines changed

4 files changed

+10
-48
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@
88

99
[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).
1010

11-
## General Features
11+
## How this layer is built?
1212

13-
s
13+
The Lambda Layer is built from source of node-canvas NPM package on EC2 instance, with following native dependencies installed. Check ``` build-layer.sh ``` for details.
1414

15-
## Fabric.js Support
15+
```bash
16+
gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel librsvg2-devel pango-devel bzip2-devel
17+
```
1618

17-
[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.
18-
19-
## Konva Support
19+
Since AWS Lambda is a secure and isolated runtime and execution environment, this layer aims to target AWS Lambda compatiable 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.
2020

21-
[Konva](https://github.com/konvajs/konva)
21+
### Fabric.js support
2222

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.
2324

24-
## Paper.js Support
25+
### Konva support
2526

26-
s
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.
2728

2829
## Getting started
2930

build-layer.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ npm init -y
2727
npm install canvas --build-from-source
2828
npm install fabric
2929
npm install konva-node
30-
npm install paper-jsdom-canvas
3130
npm install mocha --save-dev
3231
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
3332
mv -f package-tmp.json package.json

docs/_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)