package hardcaml_waveterm
A terminal based digital waveform viewer for Hardcaml
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=a6780e4310f46cd71ff8a3cdf12bb51afdf0eaea5e84645a148a4ecd0f02920b
doc/src/hardcaml_waveterm.kernel/waves.ml.html
Source file waves.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
open Base module type S = Waves_intf.S module M = Waves_intf.M module Make (Data : Data.S) (Wave : Wave.M(Data).S) = struct module Config = struct type t = { mutable signals_width : int ; mutable values_width : int ; mutable wave_width : int ; mutable wave_height : int ; mutable start_cycle : int ; mutable start_signal : int ; mutable selected_signal : int ; mutable wave_cursor : int ; mutable signal_scroll : int ; mutable value_scroll : int } [@@deriving sexp] let default = { signals_width = 20 ; values_width = 20 ; wave_width = 3 ; wave_height = 1 ; start_cycle = 0 ; start_signal = 0 ; selected_signal = 0 ; wave_cursor = 0 ; signal_scroll = 0 ; value_scroll = 0 } ;; end type t = { cfg : Config.t ; waves : Wave.t array } [@@deriving sexp_of] end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>