Skip to content

Releases: pencil-js/pencil.js

v1.18.0

26 Jun 09:04
Compare
Choose a tag to compare
  • 💥 Breaking: Polygons first point is not the position anymore
  • Add more valid origin value for Rectangle
  • You can remove specific callback from listeners
  • Fix bug in shadows
  • Width and height on Square are always in sync

v1.17.0

28 Apr 17:11
Compare
Choose a tag to compare
  • Add plugin definition function
  • Add Text vertical centering
  • Fix scale and rotation inheritance

v1.16.0

12 Apr 14:37
Compare
Choose a tag to compare
  • Change max default value of Slider and Knob to 1
  • Add a length getter to Position
  • Numerous bug fixes

v1.15.0

19 Feb 13:35
Compare
Choose a tag to compare
  • 💥 Breaking change: Rename Arc's horizontalRadius to width and verticalRadius to height
  • Source-map are build along packaged files
  • Anything can be passed to Text and will be stringified
  • Fix Math's modulo function result for 0
  • Fix Sprite rendering size

v1.14.0

21 Dec 12:14
Compare
Choose a tag to compare
  • 💥 Breaking change: the buildCanvas function was renamed to getDrawingContext, 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

29 Nov 11:55
Compare
Choose a tag to compare

Quick patch to add a lot of documentation to NPM and fix setImageSmoothing not being available on OffscreenCanvas

v1.13.0

10 Nov 23:32
Compare
Choose a tag to compare
  • 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

30 Sep 13:05
Compare
Choose a tag to compare
  • Add the Heart component (thanks @zachary-nguyen)
  • Fix a bug when all container children have negative z-index

v1.11.0

13 Sep 09:37
Compare
Choose a tag to compare
  • 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 and from to the Knob class
  • Improve test coverage and crush some bugs

v1.10.3

07 Jul 13:25
Compare
Choose a tag to compare
  • Fix Input change and Screen change having the same event name
  • Draggable constrain option support Vector array definition