@advdominion/tooltip@7.2.0

This commit is contained in:
valentinsilyutin committed 2026-10-27 13:05:22 +04:00
1 parent d262e1c818
commit f97680e7db
4 files changed
+142 -21

No files matched your search

+3 -1
View File
@@ -59,6 +59,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
delay: [0, 0],
duration: [0, 0],
easing: ['linear', 'linear'],
flipPadding: 0,
hideOnClick: true, // Возможные значения: true, 'all', 'toggle'
interactive: true,
offset: [0, 8],
@@ -204,6 +205,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
if (
updatedOptions.offset !== undefined ||
updatedOptions.flipPadding !== undefined ||
updatedOptions.shiftPadding !== undefined ||
updatedOptions.arrow !== undefined
) {
@@ -337,7 +339,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
const arrowSize = $el._tooltip.$arrow?.offsetWidth ?? 0;
return [
offset({ mainAxis: options.offset[1], crossAxis: options.offset[0] }),
flip(),
flip({ padding: options.flipPadding }),
shift({
padding: {
top: options.shiftPadding[1],