MCPcopy Create free account
hub / github.com/antvis/F2Native / HideToolTip

Method HideToolTip

core/graphics/tooltip/TooltipController.cpp:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428bool tooltip::ToolTipController::HideToolTip() {
429 nlohmann::json emptyData;
430 std::for_each(actionListeners_.begin(), actionListeners_.end(),
431 [&](ToolTipMarkerItemsCallback callback) -> void { callback(emptyData); });
432 container_->Clear();
433 chart_->Redraw();
434 return true;
435}
436
437std::string tooltip::ToolTipController::InvertYTip(const util::Point &p, xg::scale::AbstractScale &yScale) {
438 util::Point invertPoint = chart_->GetCoord().InvertPoint(p);

Callers 1

OnPressEndMethod · 0.95

Calls 4

beginMethod · 0.80
endMethod · 0.80
ClearMethod · 0.45
RedrawMethod · 0.45

Tested by

no test coverage detected