Skip to content

Releases: pencil-js/pencil.js

v1.6.5

07 Jul 13:30
Compare
Choose a tag to compare
  • Add Position dotProduct
  • Add Vector getClosestToPoint
  • Line can be hovered

v1.6.4

12 May 11:24
Compare
Choose a tag to compare
  • Fix Path missing a file

v1.6.3

19 Apr 15:45
Compare
Choose a tag to compare
  • Fix Text support of shadow option
  • Add PHI (golden ratio constant) and distribute function to Math

v1.6.2

18 Apr 15:51
Compare
Choose a tag to compare
  • Add shadow option to all Component
  • The event-listening on function now accept an array of event to listen to
  • Fix Text height measure on other browser than Chrome

v1.6.1

18 Apr 15:48
Compare
Choose a tag to compare
  • ⚠️ Breaking change: The rotationAnchor has been renamed to rotationCenter

v1.6.0

06 Mar 11:34
Compare
Choose a tag to compare
  • All Component have an origin option, it allow to move the rendering position without changing the position itself (useful to center Rectangle on center point instead of top-left)
  • Add LinearGradient and RadialGradient class compatible with all fill and stroke options
  • Math has a new map function returning the value from one scale to another
  • Fix mouse hovering detection on rotated component
  • Fix inconsistent behavior with negative stroke
  • Fix Text underscore option not working with alignement

v1.5.0

07 Feb 14:27
Compare
Choose a tag to compare
  • Add Particles, a particle generator class.
  • Improved performance on Position's functions
  • resizable handle can now be customized
  • +90% tests coverage

v1.4.1

08 Jan 17:15
Compare
Choose a tag to compare
  • ⚠️ Breaking change: Container's remove is renamed delete and removeChild is renamed remove.
  • Fix regression where Text font url wasn't used.

v1.4.0

19 Dec 15:27
Compare
Choose a tag to compare

v1.3.1

13 Nov 10:55
Compare
Choose a tag to compare
  • ⚠️ Breaking change: The toImg function was renamed to toImage.
  • Add Color class compatible with existing declaration (options.fill and options.stroke).
  • Remove some visible private variables.