Skip to content

Releases: dencreativityspace/fig-gallery

v1.7.6

19 Mar 09:45
Compare
Choose a tag to compare
  • Fixed image resizing on lazy-loaded images.

The old code listened for DOMContentLoaded event instead of load on the current image.

v1.7.5

26 May 21:05
Compare
Choose a tag to compare
  • Added getControlsContainer().
  • Fixed a bug that setted width and height of the current image to 0px. Now those properties are updated with the DOMContentLoaded event.

v.1.7.4

14 Mar 10:02
Compare
Choose a tag to compare

Bugfix: added check missing control for overlay definition in getActiveFigure() and in getActiveContent().

v1.7.3

17 Jul 09:37
Compare
Choose a tag to compare

Now FigGallery (uncached) is deprecated.

v1.7.1

07 May 07:10
Compare
Choose a tag to compare

Bug-fix:

  • Fixed open class removal when a gallery gets closed.

v.1.7.0

03 May 09:27
Compare
Choose a tag to compare
  • Added fig-gallery namespace to all the events:
    • Renamed opened event in fig-gallery:opened;
    • Renamed prev event in fig-gallery:prev;
    • Renamed next event in fig-gallery:next;
    • Renamed setted event in fig-gallery:setted;
    • Renamed closed event in fig-gallery:closed;
    • Renamed openablechange event in fig-gallery:openablechange;
  • Added active field to events data. Returns the active figure in the overlay;
  • Exposed global constants RESIZE_POLICY, BUTTON_PLACEMENT_POLICY and BUTTON_CONTAINER_PLACEMENT_POLICY.

v1.6.0

20 Mar 09:35
Compare
Choose a tag to compare
  • Added swipe tag. Default value is false.

v1.5.0

19 Mar 16:00
Compare
Choose a tag to compare
  • Added array to determine order for buttons.

v1.4.1

19 Mar 15:52
Compare
Choose a tag to compare
  • Added outer click from overlay to close it;
  • Added button container placement policy;
  • Added uncompressed CSS stylesheet in dist.

Fixes:

  • Fixed iframe resize policy.

v1.4.0

17 Feb 08:29
Compare
Choose a tag to compare
  • Added support to swipe-event 2.x (must be tested);
  • Rewritten src/fig-gallery.css in LESS;
  • Improved consistency in eventCallbacks.keyboardNavigation() using that instead of this;
  • Translated errors from italian to english;
  • Now eventCallbacks.figureClick() checks if the clicked element is a figure, if not, loops through the parentNode while a figure is reached;
  • Added button placement policy: determines which button should be moved in a given container, specified by buttonContainerSelector rule.
    Can take 3 different values:
    • ALL (default): all the buttons shares the same container;
    • NAVIGATORS_ONLY: only navigation buttons shares the same container. The close button is in .overlay;
    • CLOSE_ONLY: only the close button is in the given container. Navigation buttons are in .overlay;
  • Added resize policy: determines which element must be resized when needed.
    Can take 2 values:
    • CONTENT (default): only the media get resized;
    • CONTAINER: resizes .overlay-content.