@juggle/resize-observer
Advanced tools
Comparing version 3.3.1 to 3.4.0
@@ -11,3 +11,3 @@ import { ResizeObserverBoxOptions } from '../ResizeObserverBoxOptions'; | ||
declare const calculateBoxSizes: (target: Element, forceRecalculation?: boolean) => ResizeObserverSizeCollection; | ||
declare const calculateBoxSize: (target: Element, observedBox: ResizeObserverBoxOptions, forceRecalculation?: boolean | undefined) => ResizeObserverSize; | ||
declare const calculateBoxSize: (target: Element, observedBox: ResizeObserverBoxOptions, forceRecalculation?: boolean) => ResizeObserverSize; | ||
export { calculateBoxSize, calculateBoxSizes }; |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ResizeObserver = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
})(this, (function (exports) { 'use strict'; | ||
@@ -84,7 +84,7 @@ var resizeObservers = []; | ||
var isElement = function (obj) { | ||
var _a, _b; | ||
var _a; | ||
if (obj instanceof Element) { | ||
return true; | ||
} | ||
var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView; | ||
var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView; | ||
return !!(scope && obj instanceof scope.Element); | ||
@@ -278,3 +278,3 @@ }; | ||
new MutationObserver(function () { return notify(); }).observe(el_1, config); | ||
trigger = function () { el_1.textContent = "" + (toggle_1 ? toggle_1-- : toggle_1++); }; | ||
trigger = function () { el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++); }; | ||
} | ||
@@ -515,2 +515,2 @@ callbacks.push(callback); | ||
}))); | ||
})); |
@@ -11,7 +11,7 @@ var isSVG = function (target) { return target instanceof SVGElement && 'getBBox' in target; }; | ||
var isElement = function (obj) { | ||
var _a, _b; | ||
var _a; | ||
if (obj instanceof Element) { | ||
return true; | ||
} | ||
var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView; | ||
var scope = (_a = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView; | ||
return !!(scope && obj instanceof scope.Element); | ||
@@ -18,0 +18,0 @@ }; |
@@ -10,3 +10,3 @@ var trigger; | ||
new MutationObserver(function () { return notify(); }).observe(el_1, config); | ||
trigger = function () { el_1.textContent = "" + (toggle_1 ? toggle_1-- : toggle_1++); }; | ||
trigger = function () { el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++); }; | ||
} | ||
@@ -13,0 +13,0 @@ callbacks.push(callback); |
{ | ||
"name": "@juggle/resize-observer", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Polyfills the ResizeObserver API and supports box size options from the latest spec", | ||
@@ -5,0 +5,0 @@ "main": "lib/exports/resize-observer.umd.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1195