Closed johnwdubois closed 5 years ago
We need a way to select and delete (or select and modify) a Box and/or Chunk.
Adding the functionality to modify a box makes me wonder: should we give chunks a spot in the panel pane, alongside the rez/track/stack lists?
Using the Box brush, a user is now able to select and focus on Chunks they have made. If a Chunk is focused and [delete] is pressed, the Chunk will be deleted. and removed from any chains it was in.
Adding the functionality to modify a box makes me wonder: should we give chunks a spot in the panel pane, alongside the rez/track/stack lists?
Hm, maybe. Or it may be best to use the Pick/Filter approach to find the Chunks that belong to a particular Track chain, etc.
Box is intended as a versatile strategy that gets reused in more than one Brush. Thus the uses of Box are intended to go beyond just making Chunks. In addition to marking Chunks (using the "Chunk" brush to create a 1-line Box), we will want to have a "Box Score" (or " "Box & Send") function/brush to mark multi-line diagraphs, before scoring them. This is triggered by using a multi-line version of Box to mark a rectangle with a first and last column, as well as first and last line).
See https://github.com/johnwdubois/rezonator/issues/135#issue-402584429
Is your feature request related to a problem? It's useful to be able to create a box around a group of words (for example, to show which words are in the
Core
of aClique
).Describe the solution you'd like Create a new brush called
Box
. The user selects this brush, and then:dragStartWord
, for example upper left corner) to another word (lower right corner), and release. (This is the same gesture as forQuickLinks
; the difference is which brush has been selected.)SnapToGrid
strategy described in #218 .QuickStack
andQuickLink
, theBox
only applies to lines that were visible (not filtered) when it was created.Box
is:Box
(similar to aStack
)BoxStartWord
= word in upper left of rectangleBoxEndWord
= word (or cell?) in lower right of triangleBox
can be treated as a special kind of Stack, which has aBoxStartWord
andBoxEndWord
(in addition to the usual list of lines).Boxes
can be written in a newBox
grid, or in the same grid as theStacks
.Additional context This can be implemented fairly easily by re-using techniques borrowed from
QuickStack
#25 andQuickLink
#172 , and especially toSnapToGrid
#222; see also #218 .