These constructors separate options that affect source geometry from options that can be updated live in the browser.
Usage
d_geometry_options(width = 7200, height = 4800)
d_display_options(
region_palette = NULL,
show_origin_outlines = FALSE,
show_movement_connectors = FALSE,
show_drag_trail = FALSE,
map_background = c("white", "transparent", "light_grid", "dark"),
connector_color = "#334155",
connector_linewidth = 1.3
)
d_interaction_options(
draggable_regions = TRUE,
draggable_labels = TRUE,
state_emit = c("end", "throttled", "continuous"),
live_drag = TRUE,
throttle_ms = 75
)Arguments
- width, height
Widget canvas dimensions in CSS pixels.
- region_palette
Optional named color vector.
- show_origin_outlines, show_movement_connectors, show_drag_trail
Logical display toggles.
- map_background
One of
"white","transparent","light_grid", or"dark".- connector_color
Browser label-connector color.
- connector_linewidth
Browser label-connector width.
- draggable_regions, draggable_labels
Enable region and label dragging.
- state_emit
Browser-to-Shiny drag emission policy.
"end"sends the full canonical state at drag end only;"throttled"also sends compact live drag events atthrottle_ms;"continuous"sends compact live events for every browser drag callback.- live_drag
Update geometry locally during pointer movement.
- throttle_ms
Minimum milliseconds between compact live drag events.
