code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
destroy = () => { if (swiper.params.hashNavigation.watchState) { $(window).off('hashchange', onHashChange); } }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
destroy
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Autoplay(_ref) { let { swiper, extendParams, on, emit } = _ref; let timeout; swiper.autoplay = { running: false, paused: false }; extendParams({ autoplay: { enabled: false, delay: 3000, wai...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Autoplay
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function run() { if (!swiper.size) { swiper.autoplay.running = false; swiper.autoplay.paused = false; return; } const $activeSlideEl = swiper.slides.eq(swiper.activeIndex); let delay = swiper.params.autoplay.delay; if ($activeSlideEl.attr('data-swi...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
run
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function start() { if (typeof timeout !== 'undefined') return false; if (swiper.autoplay.running) return false; swiper.autoplay.running = true; emit('autoplayStart'); run(); return true; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
start
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function stop() { if (!swiper.autoplay.running) return false; if (typeof timeout === 'undefined') return false; if (timeout) { clearTimeout(timeout); timeout = undefined; } swiper.autoplay.running = false; emit('autoplayStop'); return true; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
stop
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function pause(speed) { if (!swiper.autoplay.running) return; if (swiper.autoplay.paused) return; if (timeout) clearTimeout(timeout); swiper.autoplay.paused = true; if (speed === 0 || !swiper.params.autoplay.waitForTransition) { swiper.autoplay.paused = false; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
pause
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onVisibilityChange() { const document = getDocument(); if (document.visibilityState === 'hidden' && swiper.autoplay.running) { pause(); } if (document.visibilityState === 'visible' && swiper.autoplay.paused) { run(); swiper.autoplay.paused = false...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onVisibilityChange
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onTransitionEnd(e) { if (!swiper || swiper.destroyed || !swiper.$wrapperEl) return; if (e.target !== swiper.$wrapperEl[0]) return; ['transitionend', 'webkitTransitionEnd'].forEach(event => { swiper.$wrapperEl[0].removeEventListener(event, onTransitionEnd); }); ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onTransitionEnd
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onMouseEnter() { if (swiper.params.autoplay.disableOnInteraction) { stop(); } else { emit('autoplayPause'); pause(); } ['transitionend', 'webkitTransitionEnd'].forEach(event => { swiper.$wrapperEl[0].removeEventListener(event, onTransitio...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onMouseEnter
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onMouseLeave() { if (swiper.params.autoplay.disableOnInteraction) { return; } swiper.autoplay.paused = false; emit('autoplayResume'); run(); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onMouseLeave
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function attachMouseEvents() { if (swiper.params.autoplay.pauseOnMouseEnter) { swiper.$el.on('mouseenter', onMouseEnter); swiper.$el.on('mouseleave', onMouseLeave); } }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
attachMouseEvents
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function detachMouseEvents() { swiper.$el.off('mouseenter', onMouseEnter); swiper.$el.off('mouseleave', onMouseLeave); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
detachMouseEvents
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Thumb(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ thumbs: { swiper: null, multipleActiveThumbs: true, autoScrollOffset: 0, slideThumbActiveClass: 'swiper-slide-thumb-active', thumbsContainerC...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Thumb
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onThumbClick() { const thumbsSwiper = swiper.thumbs.swiper; if (!thumbsSwiper || thumbsSwiper.destroyed) return; const clickedIndex = thumbsSwiper.clickedIndex; const clickedSlide = thumbsSwiper.clickedSlide; if (clickedSlide && $(clickedSlide).hasClass(swiper.params.thu...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onThumbClick
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function init() { const { thumbs: thumbsParams } = swiper.params; if (initialized) return false; initialized = true; const SwiperClass = swiper.constructor; if (thumbsParams.swiper instanceof SwiperClass) { swiper.thumbs.swiper = thumbsParams.swiper; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
init
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function update(initial) { const thumbsSwiper = swiper.thumbs.swiper; if (!thumbsSwiper || thumbsSwiper.destroyed) return; const slidesPerView = thumbsSwiper.params.slidesPerView === 'auto' ? thumbsSwiper.slidesPerViewDynamic() : thumbsSwiper.params.slidesPerView; // Activate thumbs let...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
update
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function freeMode(_ref) { let { swiper, extendParams, emit, once } = _ref; extendParams({ freeMode: { enabled: false, momentum: true, momentumRatio: 1, momentumBounce: true, momentumBounceRatio: 1, mome...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
freeMode
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onTouchStart() { const translate = swiper.getTranslate(); swiper.setTranslate(translate); swiper.setTransition(0); swiper.touchEventsData.velocities.length = 0; swiper.freeMode.onTouchEnd({ currentPos: swiper.rtl ? swiper.translate : -swiper.translate }...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onTouchStart
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onTouchMove() { const { touchEventsData: data, touches } = swiper; // Velocity if (data.velocities.length === 0) { data.velocities.push({ position: touches[swiper.isHorizontal() ? 'startX' : 'startY'], time: data.touchStartTime ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onTouchMove
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function onTouchEnd(_ref2) { let { currentPos } = _ref2; const { params, $wrapperEl, rtlTranslate: rtl, snapGrid, touchEventsData: data } = swiper; // Time diff const touchEndTime = now(); const timeDiff = touch...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
onTouchEnd
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Grid(_ref) { let { swiper, extendParams } = _ref; extendParams({ grid: { rows: 1, fill: 'column' } }); let slidesNumberEvenToRows; let slidesPerRow; let numFullColumns; const initSlides = slidesLength => { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Grid
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
initSlides = slidesLength => { const { slidesPerView } = swiper.params; const { rows, fill } = swiper.params.grid; slidesPerRow = slidesNumberEvenToRows / rows; numFullColumns = Math.floor(slidesLength / rows); if (Math.floor(slidesL...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
initSlides
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
initSlides = slidesLength => { const { slidesPerView } = swiper.params; const { rows, fill } = swiper.params.grid; slidesPerRow = slidesNumberEvenToRows / rows; numFullColumns = Math.floor(slidesLength / rows); if (Math.floor(slidesL...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
initSlides
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
updateSlide = (i, slide, slidesLength, getDirectionLabel) => { const { slidesPerGroup, spaceBetween } = swiper.params; const { rows, fill } = swiper.params.grid; // Set slides order let newSlideOrderIndex; let column; let r...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
updateSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
updateSlide = (i, slide, slidesLength, getDirectionLabel) => { const { slidesPerGroup, spaceBetween } = swiper.params; const { rows, fill } = swiper.params.grid; // Set slides order let newSlideOrderIndex; let column; let r...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
updateSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => { const { spaceBetween, centeredSlides, roundLengths } = swiper.params; const { rows } = swiper.params.grid; swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenT...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
updateWrapperSize
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => { const { spaceBetween, centeredSlides, roundLengths } = swiper.params; const { rows } = swiper.params.grid; swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenT...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
updateWrapperSize
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function appendSlide(slides) { const swiper = this; const { $wrapperEl, params } = swiper; if (params.loop) { swiper.loopDestroy(); } if (typeof slides === 'object' && 'length' in slides) { for (let i = 0; i < slides.length; i += 1) { if (s...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
appendSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function prependSlide(slides) { const swiper = this; const { params, $wrapperEl, activeIndex } = swiper; if (params.loop) { swiper.loopDestroy(); } let newActiveIndex = activeIndex + 1; if (typeof slides === 'object' && 'length' in slides) { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
prependSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function addSlide(index, slides) { const swiper = this; const { $wrapperEl, params, activeIndex } = swiper; let activeIndexBuffer = activeIndex; if (params.loop) { activeIndexBuffer -= swiper.loopedSlides; swiper.loopDestroy(); swiper.slides...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
addSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function removeSlide(slidesIndexes) { const swiper = this; const { params, $wrapperEl, activeIndex } = swiper; let activeIndexBuffer = activeIndex; if (params.loop) { activeIndexBuffer -= swiper.loopedSlides; swiper.loopDestroy(); swiper.sli...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
removeSlide
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function removeAllSlides() { const swiper = this; const slidesIndexes = []; for (let i = 0; i < swiper.slides.length; i += 1) { slidesIndexes.push(i); } swiper.removeSlide(slidesIndexes); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
removeAllSlides
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function Manipulation(_ref) { let { swiper } = _ref; Object.assign(swiper, { appendSlide: appendSlide.bind(swiper), prependSlide: prependSlide.bind(swiper), addSlide: addSlide.bind(swiper), removeSlide: removeSlide.bind(swiper), removeAllSlides: removeAl...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
Manipulation
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function effectInit(params) { const { effect, swiper, on, setTranslate, setTransition, overwriteParams, perspective, recreateShadows, getEffectParams } = params; on('beforeInit', () => { if (swiper.params.effect !== effect...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
effectInit
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function effectTarget(effectParams, $slideEl) { if (effectParams.transformEl) { return $slideEl.find(effectParams.transformEl).css({ 'backface-visibility': 'hidden', '-webkit-backface-visibility': 'hidden' }); } return $slideEl; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
effectTarget
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function effectVirtualTransitionEnd(_ref) { let { swiper, duration, transformEl, allSlides } = _ref; const { slides, activeIndex, $wrapperEl } = swiper; if (swiper.params.virtualTranslate && duration !== 0) { let eventTrigger...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
effectVirtualTransitionEnd
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectFade(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ fadeEffect: { crossFade: false, transformEl: null } }); const setTranslate = () => { const { slides } = swiper; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectFade
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides } = swiper; const params = swiper.params.fadeEffect; for (let i = 0; i < slides.length; i += 1) { const $slideEl = swiper.slides.eq(i); const offset = $slideEl[0].swiperSlideOffset; let tx = -offset; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides } = swiper; const params = swiper.params.fadeEffect; for (let i = 0; i < slides.length; i += 1) { const $slideEl = swiper.slides.eq(i); const offset = $slideEl[0].swiperSlideOffset; let tx = -offset; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.fadeEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration); effectVirtualTransitionEnd({ swiper, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.fadeEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration); effectVirtualTransitionEnd({ swiper, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectCube(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ cubeEffect: { slideShadows: true, shadow: true, shadowOffset: 20, shadowScale: 0.94 } }); const createSlideShadows = ($slideE...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectCube
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
createSlideShadows = ($slideEl, progress, isHorizontal) => { let shadowBefore = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let shadowAfter = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createSlideShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
createSlideShadows = ($slideEl, progress, isHorizontal) => { let shadowBefore = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let shadowAfter = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createSlideShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
recreateShadows = () => { // create new ones const isHorizontal = swiper.isHorizontal(); swiper.slides.each(slideEl => { const progress = Math.max(Math.min(slideEl.progress, 1), -1); createSlideShadows($(slideEl), progress, isHorizontal); }); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
recreateShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
recreateShadows = () => { // create new ones const isHorizontal = swiper.isHorizontal(); swiper.slides.each(slideEl => { const progress = Math.max(Math.min(slideEl.progress, 1), -1); createSlideShadows($(slideEl), progress, isHorizontal); }); }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
recreateShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { $el, $wrapperEl, slides, width: swiperWidth, height: swiperHeight, rtlTranslate: rtl, size: swiperSize, browser } = swiper; const params = swiper.params.cubeEffect; const isHori...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { $el, $wrapperEl, slides, width: swiperWidth, height: swiperHeight, rtlTranslate: rtl, size: swiperSize, browser } = swiper; const params = swiper.params.cubeEffect; const isHori...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { $el, slides } = swiper; slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration); if (swiper.params.cubeEffect.shadow &&...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { $el, slides } = swiper; slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration); if (swiper.params.cubeEffect.shadow &&...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function createShadow(params, $slideEl, side) { const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}`; const $shadowContainer = params.transformEl ? $slideEl.find(params.transformEl) : $slideEl; let $shadowEl = $shadowContainer.children(`.${shadowClass}`); if (!$shadowEl.length) { ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createShadow
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectFlip(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ flipEffect: { slideShadows: true, limitRotation: true, transformEl: null } }); const createSlideShadows = ($slideEl, progress, params) ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectFlip
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
createSlideShadows = ($slideEl, progress, params) => { let shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-s...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createSlideShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
createSlideShadows = ($slideEl, progress, params) => { let shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-s...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
createSlideShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
recreateShadows = () => { // Set shadows const params = swiper.params.flipEffect; swiper.slides.each(slideEl => { const $slideEl = $(slideEl); let progress = $slideEl[0].progress; if (swiper.params.flipEffect.limitRotation) { progress = Math.max(Math.mi...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
recreateShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
recreateShadows = () => { // Set shadows const params = swiper.params.flipEffect; swiper.slides.each(slideEl => { const $slideEl = $(slideEl); let progress = $slideEl[0].progress; if (swiper.params.flipEffect.limitRotation) { progress = Math.max(Math.mi...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
recreateShadows
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, rtlTranslate: rtl } = swiper; const params = swiper.params.flipEffect; for (let i = 0; i < slides.length; i += 1) { const $slideEl = slides.eq(i); let progress = $slideEl[0].progress; if (swiper.pa...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, rtlTranslate: rtl } = swiper; const params = swiper.params.flipEffect; for (let i = 0; i < slides.length; i += 1) { const $slideEl = slides.eq(i); let progress = $slideEl[0].progress; if (swiper.pa...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.flipEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swipe...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.flipEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swipe...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectCoverflow(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ coverflowEffect: { rotate: 50, stretch: 0, depth: 100, scale: 1, modifier: 1, slideShadows: true, transformEl: ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectCoverflow
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { width: swiperWidth, height: swiperHeight, slides, slidesSizesGrid } = swiper; const params = swiper.params.coverflowEffect; const isHorizontal = swiper.isHorizontal(); const transform = swiper.translate; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { width: swiperWidth, height: swiperHeight, slides, slidesSizesGrid } = swiper; const params = swiper.params.coverflowEffect; const isHorizontal = swiper.isHorizontal(); const transform = swiper.translate; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.coverflowEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, ....
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.coverflowEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, ....
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectCreative(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ creativeEffect: { transformEl: null, limitProgress: 1, shadowPerProgress: false, progressMultiplier: 1, perspective: true, ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectCreative
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getTranslateValue = value => { if (typeof value === 'string') return value; return `${value}px`; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getTranslateValue
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
getTranslateValue = value => { if (typeof value === 'string') return value; return `${value}px`; }
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
getTranslateValue
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, $wrapperEl, slidesSizesGrid } = swiper; const params = swiper.params.creativeEffect; const { progressMultiplier: multiplier } = params; const isCenteredSlides = swiper.params.centeredSlides; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, $wrapperEl, slidesSizesGrid } = swiper; const params = swiper.params.creativeEffect; const { progressMultiplier: multiplier } = params; const isCenteredSlides = swiper.params.centeredSlides; ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.creativeEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration); eff...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.creativeEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration); eff...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
function EffectCards(_ref) { let { swiper, extendParams, on } = _ref; extendParams({ cardsEffect: { slideShadows: true, transformEl: null, rotate: true, perSlideRotate: 2, perSlideOffset: 8 } }); con...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
EffectCards
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, activeIndex } = swiper; const params = swiper.params.cardsEffect; const { startTranslate, isTouched } = swiper.touchEventsData; const currentTranslate = swiper.translate; for (let i = ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTranslate = () => { const { slides, activeIndex } = swiper; const params = swiper.params.cardsEffect; const { startTranslate, isTouched } = swiper.touchEventsData; const currentTranslate = swiper.translate; for (let i = ...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTranslate
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.cardsEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration); effect...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
setTransition = duration => { const { transformEl } = swiper.params.cardsEffect; const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides; $transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration); effect...
Determines whether the `index` argument is a valid `number` after being converted from the `string` type. @type {boolean}
setTransition
javascript
cabloy/cabloy
src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.js
MIT
notTextOrCommentNode = function notTextOrCommentNode () { return this.nodeType !== 3 && this.nodeType !== 8; }
handles the actual loading of a node. Used only internally. @private @name _load_node(obj [, callback]) @param {mixed} obj @param {function} callback a function to be executed once loading is complete, the function is executed in the instance's scope and receives one argument - a boolean status @return {Boolean}
notTextOrCommentNode
javascript
cabloy/cabloy
src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
MIT
func = function (data, undefined) { if(data.data) { data = data.data; } var dat = data.dat, par = data.par, chd = [], dpc = [], add = [], df = data.df, t_id = data.t_id, t_cnt = data.t_cnt, m = data.m, p = m[par], sel = data.sel, tmp, i, j, rsl...
appends JSON content to the tree. Used internally. @private @name _append_json_data(obj, data) @param {mixed} obj the node to append to @param {String} data the JSON object to parse and append @param {Boolean} force_processing internal param - do not set @trigger model.jstree, changed.jstree
func
javascript
cabloy/cabloy
src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
MIT
parse_flat = function (d, p, ps) { if(!ps) { ps = []; } else { ps = ps.concat(); } if(p) { ps.unshift(p); } var tid = d.id.toString(), i, j, c, e, tmp = { id : tid, text : d.text || '', icon : d.icon !== undefined ? d.icon : true, paren...
appends JSON content to the tree. Used internally. @private @name _append_json_data(obj, data) @param {mixed} obj the node to append to @param {String} data the JSON object to parse and append @param {Boolean} force_processing internal param - do not set @trigger model.jstree, changed.jstree
parse_flat
javascript
cabloy/cabloy
src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
MIT
parse_nest = function (d, p, ps) { if(!ps) { ps = []; } else { ps = ps.concat(); } if(p) { ps.unshift(p); } var tid = false, i, j, c, e, tmp; do { tid = 'j' + t_id + '_' + (++t_cnt); } while(m[tid]); tmp = { id : false, text : typeof d === 'st...
appends JSON content to the tree. Used internally. @private @name _append_json_data(obj, data) @param {mixed} obj the node to append to @param {String} data the JSON object to parse and append @param {Boolean} force_processing internal param - do not set @trigger model.jstree, changed.jstree
parse_nest
javascript
cabloy/cabloy
src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
MIT
rslt = function (rslt, worker) { if(this.element === null) { return; } this._cnt = rslt.cnt; var i, m = this._model.data; for (i in m) { if (m.hasOwnProperty(i) && m[i].state && m[i].state.loading && rslt.mod[i]) { rslt.mod[i].state.loading = true; } } this._model.data =...
appends JSON content to the tree. Used internally. @private @name _append_json_data(obj, data) @param {mixed} obj the node to append to @param {String} data the JSON object to parse and append @param {Boolean} force_processing internal param - do not set @trigger model.jstree, changed.jstree
rslt
javascript
cabloy/cabloy
src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
https://github.com/cabloy/cabloy/blob/master/src/module-system/cms-themedocs/backend/cms/theme/assets/lib/tree/jstree.js
MIT
function toBeInstanceOf(actual, expected) { if (!(actual instanceof expected)) { throw new AssertionError({ message: 'Expected value to be instance:', operator: 'instanceOf', actual, expected, stackStartFn: toBeInstanceOf, }) } }
Tests that the actual object is an instance of the expected class.
toBeInstanceOf
javascript
stitchesjs/stitches
.task/internal/expect.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/expect.js
MIT
function toNotBeInstanceOf(actual, expected) { if (actual instanceof expected) { throw new AssertionError({ message: 'Expected value to be instance:', operator: 'instanceOf', actual, expected, stackStartFn: toNotBeInstanceOf, }) } }
Tests that the actual object is not an instance of the expected class.
toNotBeInstanceOf
javascript
stitchesjs/stitches
.task/internal/expect.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/expect.js
MIT
async function toThrow(actualFunction, expected) { let actual = undefined try { actual = await actualFunction() } catch (error) { // do nothing and continue return } throw new AssertionError({ message: 'Expected exception:', operator: 'throws', stackStartFn: toThrow, actual, expected, }) }
Tests that the actual function does throw when it is called.
toThrow
javascript
stitchesjs/stitches
.task/internal/expect.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/expect.js
MIT
async function toNotThrow(actualFunction, expected) { let actual = undefined try { actual = await actualFunction() // do nothing and continue return } catch (error) { throw new AssertionError({ message: 'Unexpected exception:', operator: 'doesNotThrow', stackStartFn: toThrow, actual, expecte...
Tests that the actual function does not throw when it is called.
toNotThrow
javascript
stitchesjs/stitches
.task/internal/expect.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/expect.js
MIT
copydir = async function copydir(src, dst) { let copydir = async (src, dst) => { await mkdir(dst, { recursive: true }) for (const dirent of await readdir(src, { withFileTypes: true })) { await (dirent.isDirectory() ? copydir : copyFile)( src.dir.to(dirent.name), dst.dir.to(dirent.name) ) } } co...
Asynchronously copies dir to dest. By default, dest is overwritten if it already exists.
copydir
javascript
stitchesjs/stitches
.task/internal/fs.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/fs.js
MIT
copydir = async function copydir(src, dst) { let copydir = async (src, dst) => { await mkdir(dst, { recursive: true }) for (const dirent of await readdir(src, { withFileTypes: true })) { await (dirent.isDirectory() ? copydir : copyFile)( src.dir.to(dirent.name), dst.dir.to(dirent.name) ) } } co...
Asynchronously copies dir to dest. By default, dest is overwritten if it already exists.
copydir
javascript
stitchesjs/stitches
.task/internal/fs.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/fs.js
MIT
copydir = async (src, dst) => { await mkdir(dst, { recursive: true }) for (const dirent of await readdir(src, { withFileTypes: true })) { await (dirent.isDirectory() ? copydir : copyFile)( src.dir.to(dirent.name), dst.dir.to(dirent.name) ) } }
Asynchronously copies dir to dest. By default, dest is overwritten if it already exists.
copydir
javascript
stitchesjs/stitches
.task/internal/fs.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/fs.js
MIT
copydir = async (src, dst) => { await mkdir(dst, { recursive: true }) for (const dirent of await readdir(src, { withFileTypes: true })) { await (dirent.isDirectory() ? copydir : copyFile)( src.dir.to(dirent.name), dst.dir.to(dirent.name) ) } }
Asynchronously copies dir to dest. By default, dest is overwritten if it already exists.
copydir
javascript
stitchesjs/stitches
.task/internal/fs.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/fs.js
MIT
async readFileJson(/** @type {import('fs').PathLike | fs.FileHandle} */ path) { const json = await fs.readFile(path, 'utf8') /** @type {JSONValue} */ const data = JSON.parse(json) return data }
Asynchronously reads a file as parsed JSON.
readFileJson
javascript
stitchesjs/stitches
.task/internal/fs.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/fs.js
MIT
getProcessArgOf = (name) => { const lead = argv.indexOf('--' + name) + 1 const tail = lead ? argv.slice(lead).findIndex((arg) => arg.startsWith('--')) : 0 const vals = lead ? argv.slice(lead, ~tail ? lead + tail : argv.length) : [] return lead ? (vals.length ? vals : [true]) : vals }
Returns the values for a given process argument.
getProcessArgOf
javascript
stitchesjs/stitches
.task/internal/process.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/process.js
MIT
getProcessArgOf = (name) => { const lead = argv.indexOf('--' + name) + 1 const tail = lead ? argv.slice(lead).findIndex((arg) => arg.startsWith('--')) : 0 const vals = lead ? argv.slice(lead, ~tail ? lead + tail : argv.length) : [] return lead ? (vals.length ? vals : [true]) : vals }
Returns the values for a given process argument.
getProcessArgOf
javascript
stitchesjs/stitches
.task/internal/process.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/process.js
MIT
question = ( /** @type {string} */ query, /** @type {import('events').Abortable} */ opts = undefined ) => new Promise(resolver => { query = String(query).replace(/[^\s]$/, '$& ') opts = Object(opts) const int = readline.createInterface({ input: process.stdin, output: process.stdout, }) int.question(query...
Displays the query, awaits user input, and returns the provided input.
question
javascript
stitchesjs/stitches
.task/internal/readline.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/readline.js
MIT
question = ( /** @type {string} */ query, /** @type {import('events').Abortable} */ opts = undefined ) => new Promise(resolver => { query = String(query).replace(/[^\s]$/, '$& ') opts = Object(opts) const int = readline.createInterface({ input: process.stdin, output: process.stdout, }) int.question(query...
Displays the query, awaits user input, and returns the provided input.
question
javascript
stitchesjs/stitches
.task/internal/readline.js
https://github.com/stitchesjs/stitches/blob/master/.task/internal/readline.js
MIT
toString = () => { const { cssRules } = groupSheet.sheet return [].map .call(cssRules, (cssRule, cssRuleIndex) => { const { cssText } = cssRule let lastRuleCssText = '' if (cssText.startsWith('--sxs')) return '' if (cssRules[cssRuleIndex - 1] && (lastRuleCssText = cssRules[cssRuleIndex - 1].cs...
@type {SheetGroup} Object hosting the hydrated stylesheet.
toString
javascript
stitchesjs/stitches
packages/core/src/sheet.js
https://github.com/stitchesjs/stitches/blob/master/packages/core/src/sheet.js
MIT
toString = () => { const { cssRules } = groupSheet.sheet return [].map .call(cssRules, (cssRule, cssRuleIndex) => { const { cssText } = cssRule let lastRuleCssText = '' if (cssText.startsWith('--sxs')) return '' if (cssRules[cssRuleIndex - 1] && (lastRuleCssText = cssRules[cssRuleIndex - 1].cs...
@type {SheetGroup} Object hosting the hydrated stylesheet.
toString
javascript
stitchesjs/stitches
packages/core/src/sheet.js
https://github.com/stitchesjs/stitches/blob/master/packages/core/src/sheet.js
MIT
reset = () => { if (groupSheet) { const { rules, sheet } = groupSheet if (!sheet.deleteRule) { while (Object(Object(sheet.cssRules)[0]).type === 3) sheet.cssRules.splice(0, 1) sheet.cssRules = [] } for (const groupName in rules) { delete rules[groupName] } } /** @type {StyleSheetLis...
@type {SheetGroup} Object hosting the hydrated stylesheet.
reset
javascript
stitchesjs/stitches
packages/core/src/sheet.js
https://github.com/stitchesjs/stitches/blob/master/packages/core/src/sheet.js
MIT
reset = () => { if (groupSheet) { const { rules, sheet } = groupSheet if (!sheet.deleteRule) { while (Object(Object(sheet.cssRules)[0]).type === 3) sheet.cssRules.splice(0, 1) sheet.cssRules = [] } for (const groupName in rules) { delete rules[groupName] } } /** @type {StyleSheetLis...
@type {SheetGroup} Object hosting the hydrated stylesheet.
reset
javascript
stitchesjs/stitches
packages/core/src/sheet.js
https://github.com/stitchesjs/stitches/blob/master/packages/core/src/sheet.js
MIT
createCSSMediaRule = (/** @type {string} */ sourceCssText, type) => { return /** @type {CSSMediaRule} */ ({ type, cssRules: [], insertRule(cssText, index) { this.cssRules.splice(index, 0, createCSSMediaRule(cssText, { import: 3, undefined: 1 }[(cssText.toLowerCase().match(/^...
@type {GroupName} Name of the group.
createCSSMediaRule
javascript
stitchesjs/stitches
packages/core/src/sheet.js
https://github.com/stitchesjs/stitches/blob/master/packages/core/src/sheet.js
MIT