mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 21:44:08 -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
8
resources/web/guide/swiper/core/transition/index.js
Normal file
8
resources/web/guide/swiper/core/transition/index.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import setTransition from './setTransition.js';
|
||||
import transitionStart from './transitionStart.js';
|
||||
import transitionEnd from './transitionEnd.js';
|
||||
export default {
|
||||
setTransition,
|
||||
transitionStart,
|
||||
transitionEnd
|
||||
};
|
|
@ -0,0 +1,9 @@
|
|||
export default function setTransition(duration, byController) {
|
||||
const swiper = this;
|
||||
|
||||
if (!swiper.params.cssMode) {
|
||||
swiper.$wrapperEl.transition(duration);
|
||||
}
|
||||
|
||||
swiper.emit('setTransition', duration, byController);
|
||||
}
|
33
resources/web/guide/swiper/core/transition/transitionEmit.js
Normal file
33
resources/web/guide/swiper/core/transition/transitionEmit.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
export default function transitionEmit({
|
||||
swiper,
|
||||
runCallbacks,
|
||||
direction,
|
||||
step
|
||||
}) {
|
||||
const {
|
||||
activeIndex,
|
||||
previousIndex
|
||||
} = swiper;
|
||||
let dir = direction;
|
||||
|
||||
if (!dir) {
|
||||
if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
|
||||
}
|
||||
|
||||
swiper.emit(`transition${step}`);
|
||||
|
||||
if (runCallbacks && activeIndex !== previousIndex) {
|
||||
if (dir === 'reset') {
|
||||
swiper.emit(`slideResetTransition${step}`);
|
||||
return;
|
||||
}
|
||||
|
||||
swiper.emit(`slideChangeTransition${step}`);
|
||||
|
||||
if (dir === 'next') {
|
||||
swiper.emit(`slideNextTransition${step}`);
|
||||
} else {
|
||||
swiper.emit(`slidePrevTransition${step}`);
|
||||
}
|
||||
}
|
||||
}
|
16
resources/web/guide/swiper/core/transition/transitionEnd.js
Normal file
16
resources/web/guide/swiper/core/transition/transitionEnd.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import transitionEmit from './transitionEmit.js';
|
||||
export default function transitionEnd(runCallbacks = true, direction) {
|
||||
const swiper = this;
|
||||
const {
|
||||
params
|
||||
} = swiper;
|
||||
swiper.animating = false;
|
||||
if (params.cssMode) return;
|
||||
swiper.setTransition(0);
|
||||
transitionEmit({
|
||||
swiper,
|
||||
runCallbacks,
|
||||
direction,
|
||||
step: 'End'
|
||||
});
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
import transitionEmit from './transitionEmit.js';
|
||||
export default function transitionStart(runCallbacks = true, direction) {
|
||||
const swiper = this;
|
||||
const {
|
||||
params
|
||||
} = swiper;
|
||||
if (params.cssMode) return;
|
||||
|
||||
if (params.autoHeight) {
|
||||
swiper.updateAutoHeight();
|
||||
}
|
||||
|
||||
transitionEmit({
|
||||
swiper,
|
||||
runCallbacks,
|
||||
direction,
|
||||
step: 'Start'
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue