summaryrefslogtreecommitdiff
path: root/src/lightbox.js
AgeCommit message (Collapse)Author
2025-09-18feat(config): make libra more customizable through config.js andQuarkPixel
libra.css
2025-09-17fix: lightbox does not close when moving on touchscreenEltrac
2025-09-17refactor: new config classEltrac
2025-09-16feat: shows zoom-in cursor when hovering on imagesEltrac
2025-09-16refactor: move image handling to shadow classEltrac
- lightbox module no longer handles original image visibility - lightbox module no longer handles shadow placement - lightbox module now only fetch and use shadow object
2025-09-16refactor: rename open/closeLightBox methods shortlyEltrac
2025-09-16refactor: images can be inlineEltrac
- remove block style and max width restraint - images no longer need to be wrapped in a link
2025-09-16refactor: select images directly instead of containerEltrac
2025-09-15refactor: rename project to libra, minify outputEltrac
2025-09-15fix: `this.openLightBox` is undefined due to scope issuesEltrac
2025-09-15refactor: clearer code structrueEltrac
2025-09-15perf: use `closeCurrent` instead of `closeAll`Eltrac
this reduce time complexity from O(n) to O(1)
2025-09-15feat: close lightbox when scrollingEltrac
2025-09-15fix: exit animation not workingEltrac
delay destruction after animation is played
2025-09-15feat: keyboard shortcutsEltrac
2025-09-15refactor: shadow is no longer a child of overlayEltrac
2025-09-15refactor: click overlay to dismissEltrac
2025-09-15fix: generate truly unique IDsEltrac
2025-09-15feat: correctly close lightboxEltrac
2025-09-15refactor: lightbox ID generation and shadow managementEltrac
Replaces the async SHA-256 based unique ID generation with a synchronous hashCode method in Utility. Refactors LightBox to manage Shadow instances in a local cache instead of querying the DOM, and removes the static find method from Shadow. Also extracts image link wrapping logic into a helper method for clarity.
2025-09-15refactor: LightBox and Shadow classes for clarity and reuseEltrac
Added section comments and reorganized methods in both LightBox and Shadow for better readability. Shadow now supports finding existing instances, tracks open state, and separates initialization logic. Improved animation handling and event binding for closing shadows.
2025-09-15refactor: rename 'zoom/zoomed' to 'open'Eltrac
2025-09-15initial commitEltrac