Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/francoischalifour/medium-zoom
/ functions
Functions
51 in github.com/francoischalifour/medium-zoom
⨍
Functions
51
◇
Types & classes
4
↓ 117 callers
Function
mediumZoom
(selector, options = {})
src/medium-zoom.js:10
↓ 40 callers
Method
getOptions
* Returns the zoom options. * * @returns The zoom options.
src/medium-zoom.d.ts:149
↓ 37 callers
Method
open
* Opens the zoom. * * @param options * @returns A promise resolving with the zoom.
src/medium-zoom.d.ts:67
↓ 31 callers
Method
getImages
* Returns the zoom images. * * @returns The zoom images.
src/medium-zoom.d.ts:156
↓ 23 callers
Method
on
* Registers an event handler on each target of the zoom. * * @param type - The event type to listen for. * @param listener - The function to
src/medium-zoom.d.ts:124
↓ 18 callers
Method
update
* Updates the options. * * @param options * @returns The zoom.
src/medium-zoom.d.ts:106
↓ 16 callers
Method
attach
* Attaches the images to the zoom. * * @param selectors - The selectors describing the images. * @returns The zoom.
src/medium-zoom.d.ts:90
↓ 14 callers
Method
detach
* Releases the images from the zoom. * * @param selectors - The selectors describing the images. * @returns The zoom.
src/medium-zoom.d.ts:98
↓ 14 callers
Function
emptyRootBeforeEach
()
src/__tests__/medium-zoom.test.js:8
↓ 12 callers
Method
close
* Closes the zoom. * * @returns A promise resolving with the zoom.
src/medium-zoom.d.ts:74
↓ 6 callers
Method
clone
* Extends the zoom with the provided options merged with the current ones. * * @param options * @returns The zoom.
src/medium-zoom.d.ts:114
↓ 6 callers
Function
createCustomEvent
(type, params)
src/utils.js:78
↓ 5 callers
Method
getZoomedImage
* Returns the current zoomed image. * * @returns The current zoomed image.
src/medium-zoom.d.ts:163
↓ 4 callers
Function
_animate
()
src/medium-zoom.js:180
↓ 4 callers
Function
close
()
src/medium-zoom.js:425
↓ 4 callers
Function
isNode
src/utils.js:6
↓ 4 callers
Method
off
* Unregisters an event handler. * * @param type - The event type to unregister. * @param listener - The function to remove from the event tar
src/medium-zoom.d.ts:138
↓ 4 callers
Method
toggle
* Toggles the zoom. * * @param options * @returns A promise resolving with the zoom.
src/medium-zoom.d.ts:82
↓ 2 callers
Function
getImagesFromSelector
src/utils.js:13
↓ 2 callers
Function
isSvg
src/utils.js:8
↓ 1 callers
Function
_handleCloseEnd
()
src/medium-zoom.js:432
↓ 1 callers
Function
_handleOpenEnd
()
src/medium-zoom.js:279
↓ 1 callers
Function
attach
(...selectors)
src/medium-zoom.js:98
↓ 1 callers
Function
cloneTarget
src/utils.js:53
↓ 1 callers
Function
createOverlay
src/utils.js:45
↓ 1 callers
Function
getZoom
()
examples/react/src/ImageZoom.tsx:11
↓ 1 callers
Function
isNodeList
src/utils.js:4
↓ 1 callers
Function
open
({ target } = {})
src/medium-zoom.js:179
↓ 1 callers
Function
toggle
({ target } = {})
src/medium-zoom.js:490
Function
App
()
examples/react/src/App.tsx:3
Function
App
()
examples/react-markdown/src/App.tsx:18
Function
ImageZoom
({ options, ...props }: ImageZoomProps)
examples/react/src/ImageZoom.tsx:8
Function
_handleClick
src/medium-zoom.js:21
Function
_handleKeyUp
src/medium-zoom.js:52
Function
_handleScroll
()
src/medium-zoom.js:36
Function
anotherUpdateFunction
()
src/__tests__/medium-zoom.test.js:1545
Function
attachZoom
examples/react/src/ImageZoom.tsx:19
Function
clone
(options = {})
src/medium-zoom.js:96
Function
detach
(...selectors)
src/medium-zoom.js:123
Function
findInStory
(selector)
cypress/support/commands.js:16
Function
getImages
()
src/medium-zoom.js:500
Function
getInStory
(selector)
cypress/support/commands.js:8
Function
getOptions
()
src/medium-zoom.js:498
Function
getZoomedImage
()
src/medium-zoom.js:502
Function
isSupported
src/utils.js:1
Function
loadStories
()
stories/config/config.js:18
Function
noop
()
src/medium-zoom.js:17
Function
off
(type, listener, options = {})
src/medium-zoom.js:163
Function
on
(type, listener, options = {})
src/medium-zoom.js:153
Function
update
(options = {})
src/medium-zoom.js:61
Function
withPreview
(story)
stories/config/decorators.js:1