You can search for identifiers within the package.
in-package search v0.2.0
tiny_appkits.appkit_cad
Cad_drawing
type pt = Cad_geom.pt
type entity =
| Line of pt * pt
| Circle of pt * float
| Arc of pt * float * float * float
| Insert of string * pt * float * float
| Dimension of pt * pt * pt
type ent = {
entity : entity;
layer : string;
}
type layer = {
name : string;
color : int;
on : bool;
type t = {
ents : (int * ent) list;
layers : layer list;
current : string;
blocks : (string * (pt * ent list)) list;
next : int;
val empty : t
val add : entity -> t -> t * int
val get : t -> int -> ent option
val remove : int list -> t -> t
val replace : int -> entity list -> t -> t
val ids : t -> int list
val layer : t -> string -> layer
val ensure_layer : string -> t -> t
val set_layer : layer -> t -> t
val transform : pt -> float -> float -> pt -> pt
val move_entity : pt -> entity -> entity
val pieces : t -> ent -> (Cad_geom.curve * string) list
val dimension_value : pt -> pt -> pt -> float
val dimension_lines : pt -> pt -> pt -> (pt * pt) list
val dimension_text : pt -> pt -> pt -> pt * string
val extents : t -> (pt * pt) option
val pick : t -> float -> pt -> int option
val window : t -> pt -> pt -> crossing:bool -> int list