MCPcopy Index your code
hub / github.com/bqplot/bqplot / create_tooltip_widget

Method create_tooltip_widget

js/src/MarketMap.ts:824–843  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822 }
823
824 create_tooltip_widget() {
825 const tooltip_model = this.model.get('tooltip_widget');
826 if (this.tooltip_view !== null && this.tooltip_view !== undefined) {
827 //remove the previous tooltip
828 this.tooltip_view.remove();
829 this.tooltip_view = null;
830 }
831 const that = this;
832 if (tooltip_model) {
833 const tooltip_widget_creation_promise =
834 this.create_child_view(tooltip_model);
835 tooltip_widget_creation_promise.then((view) => {
836 that.tooltip_view = view as Tooltip;
837
838 MessageLoop.sendMessage(getLuminoWidget(view), Widget.Msg.BeforeAttach);
839 that.tooltip_div.node().appendChild(view.el);
840 MessageLoop.sendMessage(getLuminoWidget(view), Widget.Msg.AfterAttach);
841 });
842 }
843 }
844
845 get_group_transform(index) {
846 return 'translate(' + '0' + ', 0)';

Callers 1

renderImplMethod · 0.95

Calls 2

getLuminoWidgetFunction · 0.90
removeMethod · 0.45

Tested by

no test coverage detected