T15 Charts: cartesian with axes, legend, crosshair, tooltip, zoom, annotations and export (T15a); pie, donut, radar, heatmaps, treemap, sunburst, waterfall and spreads (T15b); sankey, funnel, gantt, force graph, chord, parallel coordinates, bullet and progress (T15c)
This commit is contained in:
44 files changed
+8639
-35
No files matched your search
@@ -14,6 +14,8 @@ use crate::{
|
||||
pub enum Step {
|
||||
Rest,
|
||||
Hover(&'static str),
|
||||
/// Moves the pointer to an offset from the probe's top-left corner.
|
||||
HoverAt(&'static str, f32, f32),
|
||||
Down(&'static str),
|
||||
Up(&'static str),
|
||||
Click(&'static str),
|
||||
@@ -87,6 +89,10 @@ pub async fn play(
|
||||
let at = target(window, key, cx).await?;
|
||||
send(window, Mouse::Move, at, cx)?;
|
||||
}
|
||||
Step::HoverAt(key, x, y) => {
|
||||
last = target_bounds(window, key, cx).await?.origin + point(px(x), px(y));
|
||||
send(window, Mouse::Move, last, cx)?;
|
||||
}
|
||||
Step::Down(key) => {
|
||||
let at = target(window, key, cx).await?;
|
||||
send(window, Mouse::Move, at, cx)?;
|
||||
|
||||
Reference in new issue
Block a user