LING71671/moon-egui/examples/canvas does not have a README file
pub struct BenchmarkState {
grid_dim : Int
wave_pulse : Bool
magnetic_repel : Bool
ripple_active : Bool
ripple_cx : Double
ripple_cy : Double
ripple_progress : Double
frame_tick : Double
click_count : Int
cam_x : Double
cam_y : Double
zoom : Double
selected_id : Int
selected_col : Int
selected_row : Int
drag_mode : Int
item_drag_dx : Double
item_drag_dy : Double
is_dragging_item : Bool
visible_cells : Int
show_studio : Bool
panel_tab : Int
jump_text : String
jump_after : Int
show_grid : Bool
}pub struct FrameOutput {
draw_list : DrawList
cam_x : Double
cam_y : Double
zoom : Double
grid_dim : Int
visible_cells : Int
selected_id : Int
show_studio : Bool
is_vector : Bool
cursor : String
navigate_url : String
}pub struct GalleryState {
button_clicks : Int
checkbox_gpu : Bool
checkbox_grid : Bool
checkbox_dark_contrast : Bool
checkbox_antialiasing : Bool
toggle_minimal : Bool
toggle_autosave : Bool
toggle_retina : Bool
toggle_haptics : Bool
radio_quality : Int
slider_zoom : Double
slider_opacity : Double
drag_x : Double
drag_y : Double
drag_scale : Double
stepper_count : Double
stepper_gain : Double
rating_val : Double
steps_current : Int
pagination_page : Int
knob_cutoff : Double
knob_res : Double
knob_pan : Double
knob_drive : Double
fader_vol : Double
fader_gain : Double
fader_l : Double
fader_r : Double
combo_format : Int
combo_color : Int
color_idx : Int
progress_val : Double
tree_selected : String?
tree_expanded : Array[String]
tab_selected : Int
text_name : String
text_email : String
code_buffer : String
toasts : Array[Toast]
cmd_open : Bool
cmd_query : String
cmd_idx : Int
ctx_menu_open : Bool
ctx_menu_pos : Vec2
status_text : String
active_comp_id : String
splitter_ratio : Double
table_sort_col : String
table_sort_dir : TableSortDirection
table_columns : Array[TableColumn]
table_selected_row : Int
dialog_open : Bool
dialog_last_result : String
segmented_sel : Int
tag1_open : Bool
tag2_open : Bool
tag3_open : Bool
sparkline_data : Array[Double]
color_picker_val : Color
breadcrumb_last_clicked : String
rich_text_last_url : String
dock_tree : DockTree
node_items : Array[NodeItem]
node_conns : Array[NodeConnection]
spring_puck_x : Double
spring_puck_y : Double
spring_model : Spring2D
spring_stiffness : Double
spring_damping : Double
spring_dragging : Bool
svg_export_done : Bool
}type MineChunktype MineWorldpub struct MinesFrame {
draw_list : DrawList
revealed : Int
flagged : Int
hits : Int
pending : Bool
flag_mode : Bool
pan_mode : Bool
cursor : String
tile_x : Int
tile_y : Int
cell : Double
domain_size : Int
view_x : Int
view_y : Int
view_cols : Int
view_rows : Int
navigate_url : String
}pub struct StudioState {
files : Array[StudioFile]
open_tabs : Array[Int]
active_tab : Int
split_h_ratio : Double
split_v_ratio : Double
terminal_lines : Array[TerminalLine]
term_tab : Int
cmd_palette_open : Bool
cmd_query : String
cmd_index : Int
tree_expanded : Array[String]
initialized : Bool
}let DOMAIN_SIZE : Intlet MINES_THRESHOLD : UInt64fn mines_calibrate_threshold(target : Int) -> UInt64fn mines_count_for_threshold(threshold : UInt64) -> Intfn mines_density_percent() -> Doublefn mines_domain_tiles() -> Intfn mines_is_mine_raw(x : Int, y : Int) -> Boolfn mines_step(mouse_x : Double, mouse_y : Double, mouse_down : Bool, mouse_secondary_down : Bool, pan_dx : Double, pan_dy : Double, zoom_delta : Double, action_switch : Int, vp_w : Double, vp_h : Double) -> MinesFramefn step(mouse_x : Double, mouse_y : Double, mouse_down : Bool, pan_dx : Double, pan_dy : Double, zoom_delta : Double, switch_mode : Int, vp_w : Double, vp_h : Double, text_input : String, keys_pressed : Array[String], keys_released : Array[String], mod_flags : Int) -> FrameOutputInstall
Download zipHigh-performance, pure MoonBit Immediate-Mode GUI library for WebAssembly, Canvas, and Games.