| 744 | } |
| 745 | |
| 746 | function 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 |