Assets 2
  • Improve viewer instance storage to avoid side effect.
  • Fix parameter error of Object.assign in iOS devices.

@fengyuanchen fengyuanchen released this Jul 15, 2018 · 7 commits to master since this release

Assets 2
  • Add 2 new options: toggleOnDblclick (#173) and initialViewIndex (#183).
  • Enhance the title option to support to customize title content (#54, #185).

@fengyuanchen fengyuanchen released this May 27, 2018 · 22 commits to master since this release

Assets 2
  • Add 2 new events: zoom and zoomed (#144).
  • Make the touch zooming more smoother (#162).

@fengyuanchen fengyuanchen released this May 20, 2018 · 25 commits to master since this release

Assets 2
  • Add namespace to data attribute names (from data-* to data-viewer-*) to avoid side effect.
  • Make sure the image data is a non-null object to avoid unexpected errors.
  • Fix broken zoom feature in iOS browsers (#167).

@fengyuanchen fengyuanchen released this Apr 1, 2018 · 33 commits to master since this release

Assets 2
  • Add in browser checking to support to import in Node.js.
  • Cancel update when there are no images when call the update method.

@fengyuanchen fengyuanchen released this Mar 13, 2018 · 39 commits to master since this release

Assets 2
  • Fix the wrong image switching behavior in iOS browsers.
  • Fix a TypeError in strict mode (#149).
  • Fix type definitions issue of the show and hide methods.

@fengyuanchen fengyuanchen released this Mar 10, 2018 · 45 commits to master since this release

Assets 2
  • Add a new option: loading.
  • Add type definitions file for TypeScript.
  • Enhance the show, hide and play methods.
  • Change the default value of loop option from false to true.

@fengyuanchen fengyuanchen released this Feb 13, 2018 · 113 commits to master since this release

Assets 2
  • Add a new option: container.
  • Recover the missing default value of the interval option (#133).

@fengyuanchen fengyuanchen released this Dec 23, 2017 · 120 commits to master since this release

Assets 2
  • Add a new option: backdrop.

@fengyuanchen fengyuanchen released this Dec 17, 2017 · 124 commits to master since this release

Assets 2
  • Add style field to package.json.
  • Fix the issue of NodeList deconstructing (#118).
  • Fall back to document.documentElement if document.body is not existing (#120).