Constructs a structured sideview_state object containing canvas transform,
card configurations, table join connections, and pipeline script state.
Arguments
- version
Character string representing state schema version (default
"0.3.0").- canvas
Named list containing canvas settings:
zoom(numeric),pan_x(numeric),pan_y(numeric).- cards
List of card state objects (each specifying
id,name,x,y,width,height,minimized,sortsandfilters; a sort islist(col, dir)withdir"asc"or"desc", a filter islist(col, op, val)).- connections
List of join connection objects (each specifying
from_table,from_col,to_table,to_col,join_type).- pipeline
Named list containing
code(character),active_tab(character) and, from version 0.3.0, the pipelinestepsandpipe("%>%"or"|>"). Withoutsteps,codeis restored as one custom step.
Details
The canvas writes this shape when you click Save in the toolbar, and
sideview(..., state = ) / sideview_widget(..., state = ) restore it.
Cards are matched to tables by name.
Examples
st <- new_sideview_state()
print(st)
#> <sideview_state v0.3.0>
#> Cards: 0
#> Connections: 0
#> Canvas: zoom = 1, pan = (0, 0)
#> Active Tab: pipeline
