MCPcopy Index your code
hub / github.com/apache/echarts / makeControlIcon

Function makeControlIcon

src/component/timeline/SliderTimelineView.ts:746–766  ·  view source on GitHub ↗
(
    timelineModel: TimelineModel,
    objPath: ControlIconName,
    rect: number[],
    opts: PathProps
)

Source from the content-addressed store, hash-verified

744}
745
746function makeControlIcon(
747 timelineModel: TimelineModel,
748 objPath: ControlIconName,
749 rect: number[],
750 opts: PathProps
751) {
752 const style = opts.style;
753
754 const icon = graphic.createIcon(
755 timelineModel.get(['controlStyle', objPath]),
756 opts || {},
757 new BoundingRect(rect[0], rect[1], rect[2], rect[3])
758 );
759
760 // TODO createIcon won't use style in opt.
761 if (style) {
762 (icon as Displayable).setStyle(style);
763 }
764
765 return icon;
766}
767
768/**
769 * Create symbol or update symbol

Callers 1

makeBtnMethod · 0.85

Calls 2

setStyleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…