OrcaSlicer-bambulab/resources/web/guide/swiper/shared/dom.js
Louis Rossmann c661ddc2eb
Some checks failed
My Build All / build_windows (push) Has been cancelled
My Build All / build_linux_portable (push) Has been cancelled
My Build All / build_linux_appimage (push) Has been cancelled
My Build All / build_macos (push) Has been cancelled
My Build All / Publish release assets (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
Initial release
2026-05-11 07:39:33 -05:00

46 lines
No EOL
893 B
JavaScript

import { $, addClass, removeClass, hasClass, toggleClass, attr, removeAttr, transform, transition, on, off, trigger, transitionEnd, outerWidth, outerHeight, styles, offset, css, each, html, text, is, index, eq, append, prepend, next, nextAll, prev, prevAll, parent, parents, closest, find, children, filter, remove } from 'dom7';
const Methods = {
addClass,
removeClass,
hasClass,
toggleClass,
attr,
removeAttr,
transform,
transition,
on,
off,
trigger,
transitionEnd,
outerWidth,
outerHeight,
styles,
offset,
css,
each,
html,
text,
is,
index,
eq,
append,
prepend,
next,
nextAll,
prev,
prevAll,
parent,
parents,
closest,
find,
children,
filter,
remove
};
Object.keys(Methods).forEach(methodName => {
Object.defineProperty($.fn, methodName, {
value: Methods[methodName],
writable: true
});
});
export default $;