package matrix
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Fast, modern terminal toolkit for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
mosaic-0.1.0.tbz
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/matrix.charts/Matrix_charts/Hit/index.html
Module Matrix_charts.HitSource
Hit-testing results for interactive charts.
Use Layout.hit_test to find the nearest data point or bar to a given cell coordinate, then inspect the returned t for data-level information.
The type for distance metrics.
`Nearest_px: Euclidean distance in cell space.`Nearest_x: horizontal distance only.`Nearest_y: vertical distance only.
The type of mark that was hit.
Source
type payload = Mark-specific data payload.
Source
type t = {mark_id : string option;kind : kind;(*Type of mark that was hit.
*)index : int;(*Index of the data point within the mark's data array.
*)px : int;(*Cell x-coordinate of the snapped hit.
*)py : int;(*Cell y-coordinate of the snapped hit.
*)distance_px : float;(*Distance from query to hit in cell units.
*)0.0for hits inside bars.payload : payload;(*Data values at the hit point.
*)
}The type for hit-test results.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>