()
| 109 | return !isNaN(value) && typeof value !== "object" ? parseFloat(value) - offset : _isString(value) && value.charAt(1) === "=" ? parseFloat(value.substr(2)) * (value.charAt(0) === "-" ? -1 : 1) + currentVal - offset : value === "max" ? _max(target, axis) - offset : Math.min(_max(target, axis), _getOffset(value, target)[axis] - offset); |
| 110 | }, |
| 111 | _initCore = function _initCore() { |
| 112 | gsap = _getGSAP(); |
| 113 | |
| 114 | if (_windowExists() && gsap && typeof document !== "undefined" && document.body) { |
| 115 | _window = window; |
| 116 | _body = document.body; |
| 117 | _docEl = document.documentElement; |
| 118 | _toArray = gsap.utils.toArray; |
| 119 | gsap.config({ |
| 120 | autoKillThreshold: 7 |
| 121 | }); |
| 122 | _config = gsap.config(); |
| 123 | _coreInitted = 1; |
| 124 | } |
| 125 | }; |
| 126 | |
| 127 | export var ScrollToPlugin = { |
| 128 | version: "3.15.0", |
no test coverage detected
searching dependent graphs…