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

Function makeControlIcon

_benchmarks/sample_echarts.js:83581–83590  ·  view source on GitHub ↗
(timelineModel, objPath, rect, opts)

Source from the content-addressed store, hash-verified

83579 }
83580
83581 function makeControlIcon(timelineModel, objPath, rect, opts) {
83582 var style = opts.style;
83583 var icon = createIcon(timelineModel.get(['controlStyle', objPath]), opts || {}, new BoundingRect(rect[0], rect[1], rect[2], rect[3])); // TODO createIcon won't use style in opt.
83584
83585 if (style) {
83586 icon.setStyle(style);
83587 }
83588
83589 return icon;
83590 }
83591 /**
83592 * Create symbol or update symbol
83593 * opt: basic position and event handlers

Callers 1

makeBtnFunction · 0.85

Calls 1

createIconFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…