Releases: MurhafSousli/ngx-gallery
Releases · MurhafSousli/ngx-gallery
v12.0.0
What's Changed
- Add support for Vimeo videos by @ChrisMBarr in #575
New Contributors
- @ChrisMBarr made their first contribution in #575
Full Changelog: v11.0.0...v12.0.0
v12 beta 4
12.0.0-beta.4
See the storybook documentation
- feat: Add RTL support, closes #540.
- All boolean inputs of
<gallery>
components can be used as string attributes- e.g.
<gallery autoHeight>
,<gallery autoHeight="true">
and<gallery [autoHeight]="true">
sets the option's value to true. - e.g.
<gallery autoHeight="false">
and<gallery [autoHeight]="false">
sets the option's value to false.
- e.g.
- All number inputs of
<gallery>
components can be used as string attributes- e.g.
<gallery playerInterval="2000">
and<gallery [playerInterval]="2000">
sets the option's value to 2000
- e.g.
Improved performance
- refactor: Replace the scroll event with intersection observer to detect the active item while scrolling.
ItemAutoSize, ThumbAutoSize features
- enhance: Toggling
itemAutoSize
option is now reactive. - fix:
[thumbAutosize]
causes random invalid starting thumbnail scroller position when scrolling possible, closes #521 - fix:
[ItemAutosize]
in website/safari browsers do not work as expected, closes #543
AutoHeight feature
- enhance: Auto-height feature is not more precise and works well with or without height transition
- fix: Auto-height issue when screen size changes
Autoplay feature
- fix:
autoplay
resets the timer after navigated. - fix:
autoplay
only start the timer after the image is loaded.
Bullets (previously named 'Dots')
- feat:
disableBullets
disable bullets' clicks
Custom template
- feature: Introduce
galleryImage
directive withingalleryItemDef
, to allow recognizing the img element in your custom item template.
Breaking changes
Options renamed:
Core
slidingDirection
→orientation
slidingEase
→scrollEase
slidingDuration
→scrollDuration
slidingDisabled
→disableScroll
mouseSlidingDisabled
→disableMouseScroll
autoPlay
→autoplay
Thumbs
thumb
→thumbs
thumbMode
→thumbCentralized
thumbMode
→thumbCentralized
thumbDetached
→detachThumbs
thumbSlidingDisabled
→disableThumbMouseScroll
thumbMouseSlidingDisabled
→disableThumbMouseScroll
Bullets
dots
→bullets
dotSize
→bulletSize
dotPosition
→bulletPosition
Input removed (no longer exist)
navScrollBehavior
the option is now removed, usescrollBehavior
instead.
v11.0.0
What's Changed
- feat: Add
GalleryThumbDef
,GalleryImageDef
,GalleryItemDef
,GalleryBoxDef
to set custom templates. - feat: Add
imageTemplate
property toGalleryConfig
. - feat: Add
args
property in case need to attach extra data with the gallery item. - enhance: Improve overall typings.
Breaking changes
- Usage of custom template has been changed! see the wiki page for more info.
- The inputs
itemTemplate
,thumbTemplate
andboxTemplate
has been removed from the gallery component, however they still exist inGalleryConfig
by @MurhafSousli in #565
Full Changelog: v10.0.0...v11.0.0
v10.0.0
What's Changed
- feat: Migrate to standalone components by @MurhafSousli in #557
Full Changelog: v9.0.1...v10.0.0
v9.0.1
What's Changed
Full Changelog: v9.0.0...v9.0.1
v9.0.0
v8.0.4
v8.0.3
v8.0.2
What's Changed
- fix(core): Videos are unplayable if type not specified, closes #515 by @MurhafSousli in #516
- feat(core): Add loadingAttr option to img and iframe elements by @MurhafSousli in #517
Full Changelog: v8.0.1...v8.0.2
v8.0.1
What's Changed
- fix(core): Gallery nav icons are not alignment properly, in d4dca8b.
- fox(core): Gallery dots is not horizontally centralized, in f2d6910.
- fix(core): Fix lib's angular peerDependencies version to >=15 in 9ea5ea3.
Full Changelog: v8.0.0...v8.0.1