Skip to content
SheetForge

The record canvas

The record canvas draws one record together with the records it is made of and the records that use it. This page covers how to open the canvas, what it draws, what each card shows, and how to move around the picture.

An edit on the canvas is a staged edit, the same as an edit in the table. The Data Studio holds it until you reflect it to the source. To create, link and disconnect records from the canvas, see Edit on the canvas.

Open and close the canvas

To open the canvas on a record, click the row number at the left of the table. You can also press the ⊞ button at the right end of the row. The canvas opens below the table.

A click with Ctrl, Cmd or Shift held selects rows and does not open the canvas. See Select rows and columns.

To close the canvas, press × at the right end of the canvas header, or press Esc. Esc first clears a selection in the table, then a selected card. When nothing is selected, it closes the canvas.

What the canvas draws

Everything flows one way. The records this record is made of, its materials, stand on the left. The records that use it, its users, stand on the right. The record the canvas is opened on stands in between. That record is the terminus.

View modes

A segmented control in the canvas header picks how far the picture reaches each way.

ModeWhat it draws
Materials → this → usersMaterials and users, one step each
Materials onlyTwo steps of materials, for following an assembly chain
Users onlyOnly what uses this record
Whole graphEvery record connected to this one, with no limit

A sheet with no reference columns of its own has nothing to its left. It offers Users only and Whole graph alone.

The step limit keeps one widely used material from pouring the whole project onto the screen. To see further, double-click the header of a neighboring card to make that record the new terminus.

Whole graph mode

Whole graph drops the limit. It follows every link into and out of the terminus, then every link into and out of each record it reaches, until no new record turns up. The picture holds every record connected to this one. A user's other materials are on it, and so are a material's other users.

It draws every link between the records it reached, including a user that points back at a material. There is no count limit. Cards and wires are built only where the view can reach them, so a large graph stays light.

Materials still stand to the left of the records that use them. A record that nothing points at stands in the rightmost column. The terminus does not stand in the middle here. It takes the column that its own links give it, and it stays highlighted.

The mode changes how the canvas behaves:

  • Cards open with their values folded. The ports and reference rows stay visible outside the fold, because that is where the wires plug in.
  • A card you unfold stays unfolded. Leaving the mode restores what was there before.
  • Below 35% zoom, the canvas draws head-only cards and straight wires.
  • A Fit to view button puts the whole picture on screen.
  • The mode stays chosen when you double-click a neighbor or open the canvas on another row of the table.

Repeats, missing records and cycles

CaseHow it is drawn
The same record is reached twiceStill one node
A record does not existDrawn anyway, marked broken
The links form a cycleThe wire that closes it runs back along a lane under the cards, dashed

A missing record is drawn so that you can see the broken link and fix it.

A cycle is not hidden either. The dashed wire lets you follow where the cycle returns to.

Layout

The layout is deterministic. The same data always produces the same picture.

You can drag a card to a new position for the session. Dragged positions are deliberately not saved.

What a card shows

Each record on the canvas is a node, drawn as a card. A card has a header, reference ports, value rows and an output dot.

Header

The header carries four things:

  • The key.
  • A subtitle. It is the record's sheet, or the human-readable name a plugin supplied.
  • The cell address.
  • A badge that counts who else points at this record.

Ports

Below the header, the reference ports are always visible. A port is where a wire plugs in, so a hidden port would hide the link that ends there.

Each port shows a filled or empty dot, what it accepts, and how many are linked. The dot is tinted with the color of the sheet the port accepts, so one chain reads as one color.

A list port shows its elements in order. Each element has move and remove controls, because a list's order is data.

Value rows

The plain columns fold into an "n values" group. The group is open on the terminus and closed elsewhere.

Each row in the group is a value row you can type in. It is the same widget the grid uses, and it commits through the same gate.

Value lists

Inside the group, a List<> column that holds plain values, such as numbers or text, unfolds into rows of its own. A head row names the column and counts the items. One numbered row per element follows, and an Add row closes the list.

ToDo this
Change an elementType in its row
Move an elementPress ▲ or ▼ on its row
Remove an elementPress ✕ on its row
Add an elementPress Add, type the value, then press Enter

The ▲, ▼ and ✕ buttons appear while the pointer is over the row. Each gesture is one undo step, and the table's cell follows at once. A long list shows its first elements, with a row that shows the rest.

Two kinds of list keep a single row. A list of colors, curves or gradients keeps its chip editor, and a list of asset cells keeps its asset cell. A reference list already shows its elements under its port.

Output dot

At the top of the card's right edge is a single output dot. What this record offers to others is itself, so there is one.

Dragging from a port asks "what does this point at?" Dragging from the output dot asks the opposite question: "where do I use this?"

The dot is drawn only when some sheet in the project has a column that accepts this sheet. A dot that no column accepts would start a drag that has nowhere to land.

The test is the schema, not the data. A column that declares RecordId@ThisSheet keeps the dot alive even before anyone has written a single row.

Staged columns on a card

A card shows what the table shows: the baseline with your staged edits applied. A staged column already stands on the card before it is reflected. Required and reference types are included.

The card marks the column as pending the way the table's header marks it, tooltip included.

Staged changeOn the card
A reference column is addedAppears as a port
A plain column is addedAppears as a value row
A column is renamedShows the new name over the original value
A column is deletedThe row is removed from the card too

Adding a required column to a populated sheet does not blank the cards while the empty cells are still being filled. The canvas keeps showing the sheet as it will be after the reflect, exactly as the grid does.

Move around the canvas

Select and move a card

A card's header is its own handle.

Action on the headerResult
ClickSelects the card and raises it above any card that overlaps it
DragMoves the card for this session
Double-clickMakes that record the new terminus

Zoom

Hold Ctrl or Cmd and turn the wheel to zoom the canvas between 25% and 200%. The point under the cursor holds still. A plain wheel still scrolls.

The percentage in the canvas header is a button that snaps back to 100%.

In the Whole graph mode, the zoom goes down to 10%. Fit to view in the header shrinks the whole picture onto the screen.

Pan

Drag with the middle mouse button, or hold Alt and drag with the left button. The cursor changes while you hold it, so it is clear that the view is being moved rather than something on it.

Left-drag alone keeps meaning "select and link", which is why panning has its own button. Alt with the left button is the same gesture for mice and trackpads that have no middle button.

Panning stops at the edge of the content. The canvas is a scroll view, not an endless plane, so you cannot lose the graph off in blank space.

Next steps