mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
31
resources/web/guide/swiper/shared/effect-init.js
Normal file
31
resources/web/guide/swiper/shared/effect-init.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
export default function effectInit(params) {
|
||||
const {
|
||||
effect,
|
||||
swiper,
|
||||
on,
|
||||
setTranslate,
|
||||
setTransition,
|
||||
overwriteParams,
|
||||
perspective
|
||||
} = params;
|
||||
on('beforeInit', () => {
|
||||
if (swiper.params.effect !== effect) return;
|
||||
swiper.classNames.push(`${swiper.params.containerModifierClass}${effect}`);
|
||||
|
||||
if (perspective && perspective()) {
|
||||
swiper.classNames.push(`${swiper.params.containerModifierClass}3d`);
|
||||
}
|
||||
|
||||
const overwriteParamsResult = overwriteParams ? overwriteParams() : {};
|
||||
Object.assign(swiper.params, overwriteParamsResult);
|
||||
Object.assign(swiper.originalParams, overwriteParamsResult);
|
||||
});
|
||||
on('setTranslate', () => {
|
||||
if (swiper.params.effect !== effect) return;
|
||||
setTranslate();
|
||||
});
|
||||
on('setTransition', (_s, duration) => {
|
||||
if (swiper.params.effect !== effect) return;
|
||||
setTransition(duration);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue