Skip to content

Commit

Permalink
clean up canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 8, 2024
1 parent 14d7986 commit 94898e9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions canvas/svg.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,11 @@ func (sv *SVG) ReadMetaData() {
}
}

///////////////////////////////////////////////////////////////////////////
// ContextMenu / Actions

// EditNode opens a form editor on node
func (sv *SVG) EditNode(kn tree.Node) { //types:add
core.FormDialog(sv, kn, "SVG Element View", true)
// EditNode opens a [core.Form] dialog on the given node.
func (sv *SVG) EditNode(n tree.Node) { //types:add
d := core.NewBody().AddTitle("Edit node")
core.NewForm(d).SetStruct(n)
d.RunWindowDialog(sv)
}

// MakeNodeContextMenu makes the menu of options for context right click
Expand Down

0 comments on commit 94898e9

Please sign in to comment.