Skip to content

canvas-constructor@3.0.0

Compare
Choose a tag to compare
@kyranet kyranet released this 25 Feb 21:12
1e67392

Added:

  • Added Canvas#wrapText().

Changed:

  • Make Canvas#addMultilineText() not wrap lines.
  • Renamed Canvas.getCanvas() to Canvas.internalCanvas.
  • Renamed Canvas.fromCanvas() to Canvas.from().
  • Changed the word wrap algorithm to respect newlines while also being slightly faster.
  • Changed callback return types in typings from void to unknown for strict rules to allow return.