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

Function _roundPrecise

src/gsap-core.js:91–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 _forEachName = (names, func) => ((names = names.split(",")).forEach(func)) || names, //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).
90 _round = value => Math.round(value * 100000) / 100000 || 0,
91 _roundPrecise = value => Math.round(value * 10000000) / 10000000 || 0, // increased precision mostly for timing values.
92 _parseRelative = (start, value) => {
93 let operator = value.charAt(0),
94 end = parseFloat(value.substr(2));

Callers 14

_animationCycleFunction · 0.70
_setEndFunction · 0.70
_alignPlayheadFunction · 0.70
_addToTimelineFunction · 0.70
_setDurationFunction · 0.70
distributeFunction · 0.70
_roundModifierFunction · 0.70
startTimeMethod · 0.70
renderMethod · 0.70
totalTimeMethod · 0.70
shiftChildrenMethod · 0.70
totalDurationMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…