(core, required)
| 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 | |
| 156 | export var MotionPathHelper = /*#__PURE__*/function () { |
| 157 | function MotionPathHelper(targetOrTween, vars) { |
no test coverage detected
searching dependent graphs…