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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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,
waitForTransition: true,
disableOnInteraction: true,
st... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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-swiper-autoplay')) {
delay = ... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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;
run();
} else {
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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);
});
swiper.autoplay.paused =... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onMouseEnter() {
if (swiper.params.autoplay.disableOnInteraction) {
stop();
} else {
emit('autoplayPause');
pause();
}
['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} | onMouseEnter | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function Thumb(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
thumbs: {
swiper: null,
multipleActiveThumbs: true,
autoScrollOffset: 0,
slideThumbActiveClass: 'swiper-slide-thumb-active',
thumbsContainerClass: 'swiper-thumbs'
}
});
let initiali... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.thumbs.slideThumbActive... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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;
Object.assign(swiper.thumb... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 thumbsToActivat... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function freeMode(_ref) {
let {
swiper,
extendParams,
emit,
once
} = _ref;
extendParams({
freeMode: {
enabled: false,
momentum: true,
momentumRatio: 1,
momentumBounce: true,
momentumBounceRatio: 1,
momentumVelocityRatio: 1,
sticky: false,
minimum... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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
});
}
data.velocities... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onTouchEnd(_ref2) {
let {
currentPos
} = _ref2;
const {
params,
$wrapperEl,
rtlTranslate: rtl,
snapGrid,
touchEventsData: data
} = swiper; // Time diff
const touchEndTime = now();
const timeDiff = touchEndTime - data.touchStartTime;
if (currentP... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function Grid(_ref) {
let {
swiper,
extendParams
} = _ref;
extendParams({
grid: {
rows: 1,
fill: 'column'
}
});
let slidesNumberEvenToRows;
let slidesPerRow;
let numFullColumns;
const initSlides = slidesLength => {
const {
slidesPerView
} = swiper.params;
c... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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(slidesLength / rows) === slidesLength / rows) {... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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(slidesLength / rows) === slidesLength / rows) {... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 row;
if (fill === 'row' && slidesPerGrou... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 row;
if (fill === 'row' && slidesPerGrou... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => {
const {
spaceBetween,
centeredSlides,
roundLengths
} = swiper.params;
const {
rows
} = swiper.params.grid;
swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenToRows;
swiper.virtualSize = Math... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => {
const {
spaceBetween,
centeredSlides,
roundLengths
} = swiper.params;
const {
rows
} = swiper.params.grid;
swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenToRows;
swiper.virtualSize = Math... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 (slides[i]) $wrapperEl.append(slides[i]);
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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) {
for (let i = 0; i < slides.length; i += 1... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 = $wrapperEl.children(`.${params.slideClass... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.slides = $wrapperEl.children(`.${params.slideCl... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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: removeAllSlides.bind(swiper)
});
} | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function effectInit(params) {
const {
effect,
swiper,
on,
setTranslate,
setTransition,
overwriteParams,
perspective,
recreateShadows,
getEffectParams
} = params;
on('beforeInit', () => {
if (swiper.params.effect !== effect) return;
swiper.classNames.push(`${swiper.param... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function effectVirtualTransitionEnd(_ref) {
let {
swiper,
duration,
transformEl,
allSlides
} = _ref;
const {
slides,
activeIndex,
$wrapperEl
} = swiper;
if (swiper.params.virtualTranslate && duration !== 0) {
let eventTriggered = false;
let $transitionEndTarget;
if (a... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function EffectFade(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
fadeEffect: {
crossFade: false,
transformEl: null
}
});
const setTranslate = () => {
const {
slides
} = swiper;
const params = swiper.params.fadeEffect;
for (let i = 0; i... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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;
if (!swiper.params.virtualTranslate... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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;
if (!swiper.params.virtualTranslate... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransition = duration => {
const {
transformEl
} = swiper.params.fadeEffect;
const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides;
$transitionElements.transition(duration);
effectVirtualTransitionEnd({
swiper,
duration,
transformEl,
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransition = duration => {
const {
transformEl
} = swiper.params.fadeEffect;
const $transitionElements = transformEl ? swiper.slides.find(transformEl) : swiper.slides;
$transitionElements.transition(duration);
effectVirtualTransitionEnd({
swiper,
duration,
transformEl,
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function EffectCube(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
cubeEffect: {
slideShadows: true,
shadow: true,
shadowOffset: 20,
shadowScale: 0.94
}
});
const createSlideShadows = ($slideEl, progress, isHorizontal) => {
let shadowBefore = i... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
$el,
$wrapperEl,
slides,
width: swiperWidth,
height: swiperHeight,
rtlTranslate: rtl,
size: swiperSize,
browser
} = swiper;
const params = swiper.params.cubeEffect;
const isHorizontal = swiper.isHorizontal();
const isVirt... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
$el,
$wrapperEl,
slides,
width: swiperWidth,
height: swiperHeight,
rtlTranslate: rtl,
size: swiperSize,
browser
} = swiper;
const params = swiper.params.cubeEffect;
const isHorizontal = swiper.isHorizontal();
const isVirt... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 && !swiper.isHorizontal())... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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 && !swiper.isHorizontal())... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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) {
$shadowEl = ... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function EffectFlip(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
flipEffect: {
slideShadows: true,
limitRotation: true,
transformEl: null
}
});
const createSlideShadows = ($slideEl, progress, params) => {
let shadowBefore = swiper.isHorizontal() ? ... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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-shadow-bo... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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-shadow-bo... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.min(slideEl.progress, 1), -1);... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.min(slideEl.progress, 1), -1);... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.params.flipEffect.limitRotation) {
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.params.flipEffect.limitRotation) {
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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, .swiper-slide-shadow-botto... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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, .swiper-slide-shadow-botto... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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: null
}
});
const setTranslate = () => {
con... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
width: swiperWidth,
height: swiperHeight,
slides,
slidesSizesGrid
} = swiper;
const params = swiper.params.coverflowEffect;
const isHorizontal = swiper.isHorizontal();
const transform = swiper.translate;
const center = isHorizontal ? -transf... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
width: swiperWidth,
height: swiperHeight,
slides,
slidesSizesGrid
} = swiper;
const params = swiper.params.coverflowEffect;
const isHorizontal = swiper.isHorizontal();
const transform = swiper.translate;
const center = isHorizontal ? -transf... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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, .swiper-slide-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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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, .swiper-slide-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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function EffectCreative(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
creativeEffect: {
transformEl: null,
limitProgress: 1,
shadowPerProgress: false,
progressMultiplier: 1,
perspective: true,
prev: {
translate: [0, 0, 0],
rotat... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
slides,
$wrapperEl,
slidesSizesGrid
} = swiper;
const params = swiper.params.creativeEffect;
const {
progressMultiplier: multiplier
} = params;
const isCenteredSlides = swiper.params.centeredSlides;
if (isCenteredSlides) {
const m... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
slides,
$wrapperEl,
slidesSizesGrid
} = swiper;
const params = swiper.params.creativeEffect;
const {
progressMultiplier: multiplier
} = params;
const isCenteredSlides = swiper.params.centeredSlides;
if (isCenteredSlides) {
const m... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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);
effectVirtualTransitionEnd(... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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);
effectVirtualTransitionEnd(... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function EffectCards(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
cardsEffect: {
slideShadows: true,
transformEl: null,
rotate: true,
perSlideRotate: 2,
perSlideOffset: 8
}
});
const setTranslate = () => {
const {
slides,
ac... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
slides,
activeIndex
} = swiper;
const params = swiper.params.cardsEffect;
const {
startTranslate,
isTouched
} = swiper.touchEventsData;
const currentTranslate = swiper.translate;
for (let i = 0; i < slides.length; i += 1) {
const ... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
slides,
activeIndex
} = swiper;
const params = swiper.params.cardsEffect;
const {
startTranslate,
isTouched
} = swiper.touchEventsData;
const currentTranslate = swiper.translate;
for (let i = 0; i < slides.length; i += 1) {
const ... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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);
effectVirtualTransitionEnd({
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.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);
effectVirtualTransitionEnd({
... | 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.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function slideToLoop(index, speed, runCallbacks, internal) {
if (index === void 0) {
index = 0;
}
if (speed === void 0) {
speed = this.params.speed;
}
if (runCallbacks === void 0) {
runCallbacks = true;
}
if (typeof index === 'string') {
/**
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideToLoop | 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 slideNext(speed, runCallbacks, internal) {
if (speed === void 0) {
speed = this.params.speed;
}
if (runCallbacks === void 0) {
runCallbacks = true;
}
const swiper = this;
const {
animating,
enabled,
params
} = swiper;
if ... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideNext | 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 slidePrev(speed, runCallbacks, internal) {
if (speed === void 0) {
speed = this.params.speed;
}
if (runCallbacks === void 0) {
runCallbacks = true;
}
const swiper = this;
const {
params,
animating,
snapGrid,
slidesGrid,
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slidePrev | 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 normalize(val) {
if (val < 0) return -Math.floor(Math.abs(val));
return Math.floor(val);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | normalize | 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 slideReset(speed, runCallbacks, internal) {
if (speed === void 0) {
speed = this.params.speed;
}
if (runCallbacks === void 0) {
runCallbacks = true;
}
const swiper = this;
return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideReset | 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 slideToClosest(speed, runCallbacks, internal, threshold) {
if (speed === void 0) {
speed = this.params.speed;
}
if (runCallbacks === void 0) {
runCallbacks = true;
}
if (threshold === void 0) {
threshold = 0.5;
}
const swiper = this;
le... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideToClosest | 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 slideToClickedSlide() {
const swiper = this;
const {
params,
$wrapperEl
} = swiper;
const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;
let slideToIndex = swiper.clickedIndex;
let realIndex;
if ... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideToClickedSlide | 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 loopCreate() {
const swiper = this;
const document = getDocument();
const {
params,
$wrapperEl
} = swiper; // Remove duplicated slides
const $selector = $wrapperEl.children().length > 0 ? $($wrapperEl.children()[0].parentNode) : $wrapperEl;
$selector.childre... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | loopCreate | 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 loopFix() {
const swiper = this;
swiper.emit('beforeLoopFix');
const {
activeIndex,
slides,
loopedSlides,
allowSlidePrev,
allowSlideNext,
snapGrid,
rtlTranslate: rtl
} = swiper;
let newIndex;
swiper.allowSlidePrev = tru... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | loopFix | 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 loopDestroy() {
const swiper = this;
const {
$wrapperEl,
params,
slides
} = swiper;
$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass},.${params.slideClass}.${params.slideBlankClass}`).remove();
slides.removeAttr('data-swiper-slide-ind... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | loopDestroy | 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 setGrabCursor(moving) {
const swiper = this;
if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;
el.style.c... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setGrabCursor | 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 unsetGrabCursor() {
const swiper = this;
if (swiper.support.touch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {
return;
}
swiper[swiper.params.touchEventsTarget === 'container' ? 'el' : 'wrapperEl'].style.cursor = '';
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | unsetGrabCursor | 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 closestElement(selector, base) {
if (base === void 0) {
base = this;
}
function __closestFrom(el) {
if (!el || el === getDocument() || el === getWindow()) return null;
if (el.assignedSlot) el = el.assignedSlot;
const found = el.closest(selector);
if (... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | closestElement | 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 __closestFrom(el) {
if (!el || el === getDocument() || el === getWindow()) return null;
if (el.assignedSlot) el = el.assignedSlot;
const found = el.closest(selector);
if (!found && !el.getRootNode) {
return null;
}
return found || __closestFrom(el.get... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | __closestFrom | 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(event) {
const swiper = this;
const document = getDocument();
const window = getWindow();
const data = swiper.touchEventsData;
const {
params,
touches,
enabled
} = swiper;
if (!enabled) return;
if (swiper.animating && params.... | 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(event) {
const document = getDocument();
const swiper = this;
const data = swiper.touchEventsData;
const {
params,
touches,
rtlTranslate: rtl,
enabled
} = swiper;
if (!enabled) return;
let e = event;
if (e.originalEvent... | 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(event) {
const swiper = this;
const data = swiper.touchEventsData;
const {
params,
touches,
rtlTranslate: rtl,
slidesGrid,
enabled
} = swiper;
if (!enabled) return;
let e = event;
if (e.originalEvent) e = e.originalEve... | 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 onResize() {
const swiper = this;
const {
params,
el
} = swiper;
if (el && el.offsetWidth === 0) return; // Breakpoints
if (params.breakpoints) {
swiper.setBreakpoint();
} // Save locks
const {
allowSlideNext,
allowSlidePrev,
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onResize | 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 onClick(e) {
const swiper = this;
if (!swiper.enabled) return;
if (!swiper.allowClick) {
if (swiper.params.preventClicks) e.preventDefault();
if (swiper.params.preventClicksPropagation && swiper.animating) {
e.stopPropagation();
e.stopImmediatePropagation... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onClick | 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 onScroll() {
const swiper = this;
const {
wrapperEl,
rtlTranslate,
enabled
} = swiper;
if (!enabled) return;
swiper.previousTranslate = swiper.translate;
if (swiper.isHorizontal()) {
swiper.translate = -wrapperEl.scrollLeft;
} else {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onScroll | 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 |
events = (swiper, method) => {
const document = getDocument();
const {
params,
touchEvents,
el,
wrapperEl,
device,
support
} = swiper;
const capture = !!params.nested;
const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListe... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | events | 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 |
events = (swiper, method) => {
const document = getDocument();
const {
params,
touchEvents,
el,
wrapperEl,
device,
support
} = swiper;
const capture = !!params.nested;
const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListe... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | events | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.