Releases: dencreativityspace/fig-gallery
Releases · dencreativityspace/fig-gallery
v1.7.6
v1.7.5
- 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
Bugfix: added check missing control for overlay
definition in getActiveFigure()
and in getActiveContent()
.
v1.7.3
Now FigGallery (uncached) is deprecated.
v1.7.1
Bug-fix:
- Fixed open class removal when a gallery gets closed.
v.1.7.0
- Added
fig-gallery
namespace to all the events:- Renamed
opened
event infig-gallery:opened
; - Renamed
prev
event infig-gallery:prev
; - Renamed
next
event infig-gallery:next
; - Renamed
setted
event infig-gallery:setted
; - Renamed
closed
event infig-gallery:closed
; - Renamed
openablechange
event infig-gallery:openablechange
;
- Renamed
- Added
active
field to events data. Returns the active figure in the overlay; - Exposed global constants
RESIZE_POLICY
,BUTTON_PLACEMENT_POLICY
andBUTTON_CONTAINER_PLACEMENT_POLICY
.
v1.6.0
- Added
swipe
tag. Default value isfalse
.
v1.5.0
- Added array to determine order for buttons.
v1.4.1
- 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
- Added support to swipe-event 2.x (must be tested);
- Rewritten
src/fig-gallery.css
in LESS; - Improved consistency in
eventCallbacks.keyboardNavigation()
usingthat
instead ofthis
; - Translated errors from italian to english;
- Now
eventCallbacks.figureClick()
checks if the clicked element is afigure
, if not, loops through theparentNode
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. Theclose
button is in.overlay
;CLOSE_ONLY
: only theclose
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
.