MCPcopy
hub / github.com/tdewolff/minify / copyLayoutParams

Function copyLayoutParams

_benchmarks/sample_echarts.js:17096–17101  ·  view source on GitHub ↗

* Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object. * @param {Object} source * @return {Object} Result contains those props.

(target, source)

Source from the content-addressed store, hash-verified

17094 */
17095
17096 function copyLayoutParams(target, source) {
17097 source && target && each$1(LOCATION_PARAMS, function (name) {
17098 source.hasOwnProperty(name) && (target[name] = source[name]);
17099 });
17100 return target;
17101 }
17102
17103 var inner = makeInner();
17104

Callers 2

getLayoutParamsFunction · 0.85
mergeNewElOptionToExistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…