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

Function _addDimensionalPropTween

esm/MotionPathPlugin.js:200–211  ·  view source on GitHub ↗
(plugin, target, property, rawPath, pathProperty, forceUnit)

Source from the content-addressed store, hash-verified

198 return rawPath;
199},
200 _addDimensionalPropTween = function _addDimensionalPropTween(plugin, target, property, rawPath, pathProperty, forceUnit) {
201 var cache = target._gsap,
202 harness = cache.harness,
203 alias = harness && harness.aliases && harness.aliases[property],
204 prop = alias && alias.indexOf(",") < 0 ? alias : property,
205 pt = plugin._pt = new PropTween(plugin._pt, target, prop, 0, 0, _emptyFunc, 0, cache.set(target, prop, plugin));
206 pt.u = _getUnit(cache.get(target, prop, forceUnit)) || 0;
207 pt.path = rawPath;
208 pt.pp = pathProperty;
209
210 plugin._props.push(prop);
211},
212 _sliceModifier = function _sliceModifier(start, end) {
213 return function (rawPath) {
214 return start || end !== 1 ? sliceRawPath(rawPath, start, end) : rawPath;

Callers 2

_segmentToRawPathFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…