Versions in this module Expand all Collapse all v1 v1.3.1 Oct 19, 2024 v1.3.0 Dec 29, 2023 Changes in this version + const BLIP_KIND_R + const BLIP_KIND_T v1.2.5 Dec 26, 2023 Changes in this version type Drawingthing_i + func Json2ScaledDt(jif interface{}, scale float64) (Drawingthing_i, error) v1.2.4 Dec 26, 2023 Changes in this version type Dt_graph_base + IsScaled bool + ScaledH float64 + ScaledW float64 + func (dt *Dt_graph_base) Set_scale(scale float64) v1.2.3 Aug 15, 2023 v1.2.2 Jun 30, 2023 v1.2.1 Jun 28, 2023 Changes in this version type Dt_blip + Rect *Dt_rect v1.2.0 Jun 24, 2023 Changes in this version type Dt_blip + func (dt *Dt_blip) Contains(x float64, y float64) bool v1.1.0 Jan 21, 2022 Changes in this version type Dt_base + func (dt *Dt_base) Updated() bool v1.0.1 Jan 19, 2022 Changes in this version + const DASHED_LINE + const DOT_DASH_LINE + const DOT_DOT_DASH_LINE + const DOT_LINE + const DS_DEFAULT + const DS_HIDDEN + const DS_LOW_LEFT + const DS_LOW_RIGHT + const DS_MAX + const DS_UP_LEFT + const DS_UP_RIGHT + const DT_ARC + const DT_BARGRAPH + const DT_BASE + const DT_BGSTYLE_OUTLINE + const DT_BGSTYLE_SOLID + const DT_BGSTYLE_TRANSP + const DT_BLIP + const DT_CIRCLE + const DT_CLOCK + const DT_GRAPH + const DT_IMAGE + const DT_LINE + const DT_METER + const DT_PIECHART + const DT_POLY + const DT_RECT + const DT_REGPOLY + const DT_RUNGRAPH + const DT_TANGLE + const DT_TEXT + const Meter_180 + const Meter_220 + const Meter_90 + const Needle_full + const Needle_tic + const Paint_jump + const Paint_smooth + const SOLID_LINE + const XL_DATE + const XL_DATE_TIME + const XL_DEFAULT + const XL_INDEX + const XL_REVERSE + const XL_REV_DATE + const XL_REV_DATE_TIME + const XL_REV_INDEX + const XL_REV_TIME + const XL_REV_TIME_H + const XL_REV_TIME_HM + const XL_TIME + const XL_TIME_H + const XL_TIME_HM + func Circle_pt(scale float64, cx float64, cy float64, radius float64, angle float64) *sktools.Point + func Json_update(dt Drawingthing_i, jblob interface{}) + func Line_style_to_pattern(style int) []int + func Rotate_pts(rpt *sktools.Point, points []*sktools.Point, angle float64) (new_points []*sktools.Point) + type Drawingthing_i interface + Contains func(x float64, y float64) bool + Get_data func() *data_mgr.Data_group + Get_id func() string + Get_text func() string + Is_kind func(kind int) bool + Nuke func(sketch.Graphics_api) + Paint func(gc sketch.Graphics_api, scale float64) + Preserve func() + Restore func() + Rotate func(vertex float64, angle float64) + Set_colour func(cname string) + Set_data func(data interface{}) + Set_delta_hw func(dheight float64, dwidth float64) + Set_delta_length func(dlength float64) + Set_endpt func(x1 float64, y1 float64) + Set_fill func(state bool) + Set_fill_colour func(cname string) + Set_hw func(height float64, width float64) + Set_iscale func(new_scale float64) + Set_length func(length float64) + Set_line_style func(style int) + Set_origin func(new_xo float64, new_yo float64) + Set_rel_origin func(delta_xo float64, delta_yo float64) + Set_scale func(new_scale float64) + Set_vis_threshold func(new_threshold float64) + String func() string + Tickle func(data interface{}) + To_json func() (string, error) + func Json2dt(jif interface{}) (Drawingthing_i, error) + type Dt_bar_graph struct + func Mk_default_bar_graph() *Dt_bar_graph + func (dt *Dt_bar_graph) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_bar_graph) To_json() (string, error) + type Dt_base struct + Colour string + Id string + Kind int + Rot_angle float64 + Rot_vertex float64 + Scale float64 + Vis_threshold float64 + Visible bool + Xo float64 + Yo float64 + func Mk_drawingthing(id string, kind dt_kind, xo float64, yo float64) (dt *Dt_base) + func (dt *Dt_base) Contains(x float64, y float64) bool + func (dt *Dt_base) Get_data() *data_mgr.Data_group + func (dt *Dt_base) Get_id() string + func (dt *Dt_base) Get_text() string + func (dt *Dt_base) Is_kind(kind int) bool + func (dt *Dt_base) Is_visible(scale float64) bool + func (dt *Dt_base) Nuke(sketch.Graphics_api) + func (dt *Dt_base) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_base) Preserve() + func (dt *Dt_base) Restore() + func (dt *Dt_base) Rotate(vertex float64, angle float64) + func (dt *Dt_base) Set_colour(cname string) + func (dt *Dt_base) Set_data(data_thing interface{}) + func (dt *Dt_base) Set_delta_hw(dheight float64, dwidth float64) + func (dt *Dt_base) Set_delta_length(length float64) + func (dt *Dt_base) Set_endpt(x1 float64, y1 float64) + func (dt *Dt_base) Set_fill(state bool) + func (dt *Dt_base) Set_fill_colour(cname string) + func (dt *Dt_base) Set_hw(height float64, width float64) + func (dt *Dt_base) Set_iscale(increment float64) + func (dt *Dt_base) Set_length(length float64) + func (dt *Dt_base) Set_line_style(style int) + func (dt *Dt_base) Set_origin(new_xo float64, new_yo float64) + func (dt *Dt_base) Set_rel_origin(delta_xo float64, delta_yo float64) + func (dt *Dt_base) Set_scale(new_scale float64) + func (dt *Dt_base) Set_updated(state bool) + func (dt *Dt_base) Set_vis_threshold(new_t float64) + func (dt *Dt_base) Set_visibility(state bool) + func (dt *Dt_base) String() string + func (dt *Dt_base) Tickle(data interface{}) + func (dt *Dt_base) To_json() (string, error) + type Dt_blip struct + Alt float64 + Crumbs bool + Heading float64 + Raw_txt string + Tangle *Dt_tangle + Tcolour string + Tfill string + Txt_size float64 + func Mk_blip(xo float64, yo float64, colour string, text string) *Dt_blip + func Mk_def_blip() (dt *Dt_blip) + func (dt *Dt_blip) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_blip) Preserve() + func (dt *Dt_blip) Restore() + func (dt *Dt_blip) Tickle(qualifier interface{}) + func (dt *Dt_blip) To_json() (string, error) + type Dt_circle struct + Fcolour string + Fill_style int + Line_style int + Radius float64 + func Mk_circle(xo float64, yo float64, radius float64, outline_colour string, fill bool, ...) *Dt_circle + func Mk_def_circle() (dt *Dt_circle) + func (dt *Dt_circle) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_circle) Set_delta_length(dr float64) + func (dt *Dt_circle) Set_fill(state bool) + func (dt *Dt_circle) Set_fill_colour(cname string) + func (dt *Dt_circle) Set_length(r float64) + func (dt *Dt_circle) Set_line_style(style int) + func (dt *Dt_circle) String() string + func (dt *Dt_circle) To_json() (string, error) + type Dt_clock struct + Font string + Format string + Size int + Tz string + Weight int + Zulu bool + func Mk_clock(xo float64, yo float64, size float64, font string, colour string, tfmt string) *Dt_clock + func Mk_default_clock() *Dt_clock + func (dt *Dt_clock) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_clock) Set_delta_hw(dsize float64, dwidth float64) + func (dt *Dt_clock) Set_size(size float64, width float64) + func (dt *Dt_clock) String() string + func (dt *Dt_clock) To_json() (string, error) + type Dt_graph_base struct + Axis_colour string + Bg_colour string + Data *data_mgr.Data_group + Gheight float64 + Grid_colour string + Gwidth float64 + Height float64 + Label_colour string + Label_size int + Left_max float64 + Left_min float64 + Left_round float64 + Orig_x float64 + Orig_y float64 + Right_max float64 + Right_min float64 + Scale_fmt string + Show_left_scale bool + Show_left_yaxis bool + Show_right_scale bool + Show_right_yaxis bool + Show_xgrid bool + Show_xlabels bool + Show_ygrid bool + Sp_colour string + Sp_created bool + Subtitle_colour string + Subtitle_font string + Subtitle_size int + Title string + Title_colour string + Title_font string + Title_size int + Width float64 + X_disp float64 + X_lab_style int + X_split int + X_title string + Y_ltitle string + Y_rtitle string + Y_split int + Ymargin int + Yrmargin int + func Mk_base_graph(xo float64, yo float64, height float64, width float64, gh float64, gw float64) *Dt_graph_base + func (dt *Dt_graph_base) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_graph_base) Preserve() + func (dt *Dt_graph_base) Restore() + func (dt *Dt_graph_base) Set_data(data_thing interface{}) + func (dtg *Dt_graph_base) Nuke(gc sketch.Graphics_api) + type Dt_image struct + Border bool + Fname string + Height float64 + Rfreq int64 + Width float64 + func Mk_default_image() *Dt_image + func Mk_image(gc sketch.Graphics_api, x0 float64, y0 float64, fname string, height float64, ...) *Dt_image + func (dt *Dt_image) First_image() + func (dt *Dt_image) Fix_fnames() + func (dt *Dt_image) Last_image() + func (dt *Dt_image) Load_next() + func (dt *Dt_image) Load_prev() + func (dt *Dt_image) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_image) Reload(gc sketch.Graphics_api) + func (dt *Dt_image) Set_data(data_thing interface{}) + func (dt *Dt_image) Set_endpt(x float64, y float64) + func (dt *Dt_image) Set_iscale(increment float64) + func (dt *Dt_image) Set_scale(new_scale float64) + func (dt *Dt_image) String() string + func (dt *Dt_image) Tickle(idata interface{}) + func (dt *Dt_image) To_json() (string, error) + type Dt_line struct + Line_style int + X1 float64 + Y1 float64 + func Mk_line(x0 float64, y0 float64, x1 float64, y1 float64, colour string, style int) *Dt_line + func (dt *Dt_line) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_line) Set_endpt(x1 float64, y1 float64) + func (dt *Dt_line) String() string + func (dt *Dt_line) To_json() (string, error) + type Dt_meter struct + Arc_colour string + Arc_type int + Center_box bool + Needle_colour string + Needle_style int + Paint_style int + Radius float64 + Smooth_factor float64 + Smooth_step float64 + Text_colour string + Text_size int + Tic_marks bool + Val_cur float64 + Val_max float64 + Val_min float64 + Val_target float64 + Value_box bool + func Mk_default_meter() (dt *Dt_meter) + func (dt *Dt_meter) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_meter) Preserve() + func (dt *Dt_meter) Restore() + func (dt *Dt_meter) Set_data(data_thing interface{}) + func (dt *Dt_meter) Tickle(idata interface{}) + func (dt *Dt_meter) To_json() (string, error) + type Dt_piechart struct + Fcolours []string + Fill_style int + Pcts []float64 + Radius float64 + Sep_colour string + func Mk_piechart(xo float64, yo float64, radius float64, outline_colour string, ...) *Dt_piechart + func Mk_piechart_values(xo float64, yo float64, radius float64, outline_colour string, ...) *Dt_piechart + func (dt *Dt_piechart) Add_colour(cname string) + func (dt *Dt_piechart) Add_pctg(p float64) + func (dt *Dt_piechart) Clear_values(clear_colours bool) + func (dt *Dt_piechart) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_piechart) Set_delta_radius(dr float64) + func (dt *Dt_piechart) Set_radius(r float64) + func (dt *Dt_piechart) String() string + func (dt *Dt_piechart) To_json() (string, error) + func (dt *Dt_piechart) XTo_json() string + type Dt_rect struct + Fcolour string + Fill_style int + Height float64 + Line_style int + Width float64 + func Mk_rect(xo float64, yo float64, height float64, width float64, outline_colour string, ...) *Dt_rect + func (dt *Dt_rect) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_rect) Set_delta_hw(h float64, w float64) + func (dt *Dt_rect) Set_fill(state bool) + func (dt *Dt_rect) Set_fill_colour(cname string) + func (dt *Dt_rect) Set_line_style(style int) + func (dt *Dt_rect) Set_size(h float64, w float64) + func (dt *Dt_rect) String() string + func (dt *Dt_rect) To_json() (string, error) + type Dt_reg_polygon struct + Fcolour string + Fill_style int + Line_style int + Points []*sktools.Point + Radius float64 + Sides int + func Mk_def_poly() (dt *Dt_reg_polygon) + func Mk_reg_poly(xo float64, yo float64, radius float64, sides int, outline_colour string, ...) *Dt_reg_polygon + func (dt *Dt_reg_polygon) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_reg_polygon) Rotate(vertex float64, angle float64) + func (dt *Dt_reg_polygon) Set_fill(state bool) + func (dt *Dt_reg_polygon) Set_fill_colour(cname string) + func (dt *Dt_reg_polygon) Set_iscale(increment float64) + func (dt *Dt_reg_polygon) Set_line_style(style int) + func (dt *Dt_reg_polygon) Set_origin(new_xo float64, new_yo float64) + func (dt *Dt_reg_polygon) Set_scale(new_scale float64) + func (dt *Dt_reg_polygon) String() string + func (dt *Dt_reg_polygon) To_json() (string, error) + type Dt_run_graph struct + Line_styles []int + func Mk_default_run_graph() *Dt_run_graph + func (dt *Dt_run_graph) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_run_graph) To_json() (string, error) + type Dt_tangle struct + Adjusted bool + Adjusted_xo float64 + Adjusted_yo float64 + Align_centre bool + Base_len float64 + Fcolour string + Fill_style int + Height float64 + Line_style int + Peak_offset float64 + Points []*sktools.Point + Rise float64 + func Mk_def_tangle() (dt *Dt_tangle) + func Mk_tangle(xo float64, yo float64, height float64, base_len float64, peak_off float64, ...) *Dt_tangle + func (dt *Dt_tangle) Centre_xy() (x float64, y float64) + func (dt *Dt_tangle) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_tangle) Set_delta_hb(h float64, b float64) + func (dt *Dt_tangle) Set_fill(state bool) + func (dt *Dt_tangle) Set_fill_colour(cname string) + func (dt *Dt_tangle) Set_line_style(style int) + func (dt *Dt_tangle) Set_rot_angle(new_angle float64) + func (dt *Dt_tangle) Set_size(h float64, b float64) + func (dt *Dt_tangle) String() string + func (dt *Dt_tangle) To_json() (string, error) + type Dt_text struct + Fcolour string + Fill_style int + Font string + Ital bool + Size int + Text string + Weight int + func Mk_text(xo float64, yo float64, size float64, font string, outline_colour string, ...) *Dt_text + func (dt *Dt_text) Paint(gc sketch.Graphics_api, scale float64) + func (dt *Dt_text) Set_data(data_thing interface{}) + func (dt *Dt_text) Set_delta_hw(dsize float64, dwidth float64) + func (dt *Dt_text) Set_fill(state bool) + func (dt *Dt_text) Set_fill_colour(cname string) + func (dt *Dt_text) Set_size(size float64, width float64) + func (dt *Dt_text) String() string + func (dt *Dt_text) To_json() (string, error) + type J2dt struct + Kind int