Skip to content

Releases: fusioncharts/fusioncharts-smartlabel

V2.1.2 - Bug fix and improvements

16 Jan 08:50
08fe62c
Compare
Choose a tag to compare
  • isTruncated flag is set to true when label is truncated.

V2.1.0

16 Aug 13:44
965c0a1
Compare
Choose a tag to compare

Changelog

New feature

  • Added support for  . A string containing   will be treated in a similar way as in HTML.

Bug fix

  • detailObj property was missing from the return object of getSize API(previously called getOriSize).

Deprecation Warning

  • getOriSize API is renamed to getSize. getOriSize stands deprecated.

V2.0.1 - Change library name to SmartLabel

10 May 08:27
02d60c9
Compare
Choose a tag to compare

V2.0.0 - Canvas based Smartlabel

08 May 07:47
eafe44d
Compare
Choose a tag to compare

Canvas is used to carry out width calculations instead of div

This improvement stopped the costly reflows that were taking place while using HTML div elements. Canvas.measureText API is used to calculate the width of the text. This may lead to change in width calculations by 1-2px but it shouldn't be a problem. Developers at FusionCharts have not run into any problem due to this.

In browsers not supporting canvas, HTML div element is used as a fallback.

Improved caching mechanism

Smartlabel uses caching to store the dimensions to prevent multiple usage of the otherwise costly canvas APIs/HTML divs for same text. Minor improvements are made in caching mechanism to improve performance.

ID is not required while initialising smartlabel

To create multiple instances of smartlabel, id was provided in V1. The id was used to manage the instances within smartlabel. ID is deprecated, since the user should take care of the multiple instances.