Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@kangax kangax released this 29 Nov 14:23
· 3298 commits to master since this release

This release features:

long-awaited and super-duper-awesome fabric.IText!

Notable additions:

  • fabric.Image#crossOrigin
  • fabric.Canvas#toSVG reviver support
  • off with no arguments removes all events
  • object controls visibiliy

See all 296 commits since v1.3.0 with tons of fixes, improvements, small additions.

The list of back-incompatible changes (for a cleaner, simpler, more intuitive API) is as follows:

  • JSON and Cufon are no longer included in default build
  • Change default objects' originX/originY to left/top
  • fabric.StaticCanvas#backgroundImage and fabric.StaticCanvas#overlayImage are fabric.Image instances. fabric.StaticCanvas#backgroundImageOpacity, fabric.StaticCanvas#backgroundImageStretch, fabric.StaticCanvas#overlayImageLeft and fabric.StaticCanvas#overlayImageTop were removed.
  • fabric.Text#backgroundColor is now fabric.Object#backgroundColor
  • Remove fabric.Object#toGrayscale and fabric.Object#overlayFill since they're too specific
  • Remove fabric.StaticCanvas.toGrayscale since we already have that logic in fabric.Image.filters.Grayscale.
  • Split centerTransform into the properties centeredScaling and centeredRotation. Object rotation now happens around originX/originY point UNLESS centeredRotation=true. Object scaling now happens non-centered UNLESS centeredScaling=true.