Skip to content

Commit

Permalink
started on Value based approach for select pos and size in vector
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Feb 27, 2024
1 parent e25dd81 commit 1ef213c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vector/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ func (gv *VectorView) ConfigSelectToolbar() {
gi.NewSeparator(tb)

gi.NewLabel(tb).SetText("X: ")
px := gi.NewSpinner(tb, "posx").SetStep(1).SetTooltip("Horizontal coordinate of selection, in document units")
px.OnChange(func(e events.Event) {
gv.SelSetXPos(px.Value)
giv.NewValue(tb, &gv.EditState.DragSelEffBBox.Min.X).SetDoc("Horizontal coordinate of selection, in document units").OnChange(func(e events.Event) {

Check failure on line 75 in vector/select.go

View workflow job for this annotation

GitHub Actions / build

giv.NewValue(tb, &gv.EditState.DragSelEffBBox.Min.X).SetDoc("Horizontal coordinate of selection, in document units") (no value) used as value or type
gv.SelSetXPos(gv.EditState.DragSelEffBBox.Min.X)
})

gi.NewLabel(tb).SetText("Y: ")
Expand Down

0 comments on commit 1ef213c

Please sign in to comment.