MCPcopy
hub / github.com/greensock/GSAP / _initCore

Function _initCore

esm/InertiaPlugin.js:322–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
353export var InertiaPlugin = {
354 version: "3.15.0",

Callers 1

InertiaPlugin.jsFile · 0.70

Calls 3

_getGSAPFunction · 0.70
_parseEaseFunction · 0.70
configMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…