Skip to content

v2.0.0 (2019-10-20)

Compare
Choose a tag to compare
@tam315 tam315 released this 19 Jan 08:12
· 86 commits to master since this release

Breaking Changes

  • Container's aspect ratio decision logic has changed.
    • With previous versions(version 0, 1), When displaying two images with different aspect ratios, container's aspect ratio was determined by the aspect retio of the right side image
    • From version 2, container size will be determined by taller image's aspect ratio.
    • You can change this behavior by setting aspectRatio props to 'taller' or 'wider'.
    • 'taller' means:
      • the taller image when the images are displayed with the same width.
    • 'wider' means:
      • the shorter image when the images are displayed with the same width.
      • In other words, the wider image when the images are displayed with the same height.

New Features

  • Add vertical comparison feature. use the 'vertical' prop.
  • Hide labels properly.