()
| 320 | return duration > maxDuration ? maxDuration : duration < minDuration ? minDuration : duration; |
| 321 | }, |
| 322 | _initCore = function _initCore() { |
| 323 | gsap = _getGSAP(); |
| 324 | |
| 325 | if (gsap) { |
| 326 | _parseEase = gsap.parseEase; |
| 327 | _toArray = gsap.utils.toArray; |
| 328 | _getUnit = gsap.utils.getUnit; |
| 329 | _getCache = gsap.core.getCache; |
| 330 | _clamp = gsap.utils.clamp; |
| 331 | _getStyleSaver = gsap.core.getStyleSaver; |
| 332 | |
| 333 | _reverting = gsap.core.reverting || function () {}; |
| 334 | |
| 335 | _power3 = _parseEase("power3"); |
| 336 | _checkPointRatio = _power3(0.05); |
| 337 | PropTween = gsap.core.PropTween; |
| 338 | gsap.config({ |
| 339 | resistance: 100, |
| 340 | unitFactors: { |
| 341 | time: 1000, |
| 342 | totalTime: 1000, |
| 343 | progress: 1000, |
| 344 | totalProgress: 1000 |
| 345 | } |
| 346 | }); |
| 347 | _config = gsap.config(); |
| 348 | gsap.registerPlugin(VelocityTracker); |
| 349 | _coreInitted = 1; |
| 350 | } |
| 351 | }; |
| 352 | |
| 353 | export var InertiaPlugin = { |
| 354 | version: "3.15.0", |
no test coverage detected
searching dependent graphs…