MCPcopy Index your code
hub / github.com/greensock/GSAP / _initCore

Function _initCore

esm/MotionPathHelper.js:130–154  ·  view source on GitHub ↗
(core, required)

Source from the content-addressed store, hash-verified

128 }
129},
130 _initCore = function _initCore(core, required) {
131 var message = "Please gsap.registerPlugin(MotionPathPlugin)";
132 _win = window;
133 gsap = gsap || core || _win.gsap || console.warn(message);
134 gsap && PathEditor.register(gsap);
135 _doc = document;
136 _body = _doc.body;
137 _docEl = _doc.documentElement;
138
139 if (gsap) {
140 MotionPathPlugin = gsap.plugins.motionPath;
141 MotionPathHelper.PathEditor = PathEditor;
142
143 _context = gsap.core.context || function () {};
144 }
145
146 if (!MotionPathPlugin) {
147 required === true && console.warn(message);
148 } else {
149 _initCopyToClipboard();
150
151 _arrayToRawPath = MotionPathPlugin.arrayToRawPath;
152 _rawPathToString = MotionPathPlugin.rawPathToString;
153 }
154};
155
156export var MotionPathHelper = /*#__PURE__*/function () {
157 function MotionPathHelper(targetOrTween, vars) {

Callers 1

MotionPathHelperFunction · 0.70

Calls 2

_initCopyToClipboardFunction · 0.70
registerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…