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

Function _getSquarePathData

esm/utils/PathEditor.js:119–122  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

117 return ~~(value * 1000 + (value < 0 ? -.5 : .5)) / 1000;
118},
119 _getSquarePathData = function _getSquarePathData(size) {
120 size = _round(size);
121 return ["M-" + size, -size, size, -size, size, size, -size, size + "z"].join(_comma);
122},
123 _getCirclePathData = function _getCirclePathData(size) {
124 var circ = 0.552284749831,
125 rcirc = _round(size * circ);

Callers 1

PathEditorFunction · 0.70

Calls 1

_roundFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…