Releases: pencil-js/pencil.js
Releases · pencil-js/pencil.js
v1.18.0
v1.17.0
v1.16.0
v1.15.0
v1.14.0
- 💥 Breaking change: the
buildCanvas
function was renamed togetDrawingContext
, well because it returns a drawing context. - Scene now take the whole page height without additional CSS.
- Pencil.js now export an ESM package you can consume on all modern browsers https://www.pika.dev/npm/pencil.js
- Fix KeyboardEvents not firing sometimes
v1.13.1
v1.13.0
- Add Sprite class to manage and display clip of images
- 🔥 Remove the width and height properties of images to simplify instanciation
- The scale option now support a single number
- You can now pass an image file instead of an URL to the Image constructor
- Fix shadow options with Image
- Add
setImageSmoothing
to control how to scale images (useful on pixel art)
v1.12.0
- Add the Heart component (thanks @zachary-nguyen)
- Fix a bug when all container children have negative z-index
v1.11.0
- All Component drawing is cached, this improve performances when using multiple time the shape in a single frame (moving the mouse and solving
isHover
function) - Image are not reload when setting the same url twice
- Add missing
toJSON
andfrom
to the Knob class - Improve test coverage and crush some bugs