Componenttype part = {kind : string;height : float -> float;natural : (float * float) option;draw : Widget.box -> active:bool -> Playground.shape list;input : Playground.computer -> Widget.box -> part;command : string -> part;save : unit -> string;}type registry = (string * (string -> part)) listval placeholder : kind:string -> string -> partval fitted_height : scaled:bool -> part -> float -> floatval draw_in :
scaled:bool ->
part ->
Widget.box ->
active:bool ->
Playground.shape listval input_in : scaled:bool -> part -> Playground.computer -> Widget.box -> part