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

Function _initCore

esm/PhysicsPropsPlugin.js:24–35  ·  view source on GitHub ↗
(core)

Source from the content-addressed store, hash-verified

22 _bonusValidated = 1,
23 //<name>PhysicsPropsPlugin</name>
24_initCore = function _initCore(core) {
25 gsap = core || _getGSAP();
26
27 if (!_coreInitted) {
28 _getUnit = gsap.utils.getUnit;
29 _getStyleSaver = gsap.core.getStyleSaver;
30
31 _reverting = gsap.core.reverting || function () {};
32
33 _coreInitted = 1;
34 }
35};
36
37var PhysicsProp = function PhysicsProp(target, p, velocity, acceleration, friction, stepsPerTimeUnit) {
38 var cache = target._gsap,

Callers 1

Calls 1

_getGSAPFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…