Apply Plotly newshape styling from uniform Plotly inputs
Source:R/plot_reference_lines.R
apply_plotly_newshape.RdApplies user-drawn shape styling to a Plotly figure using inputs from
uniform_plotly_inputs_ui(). Updates the newshape layout property to
style shapes drawn with Plotly's drawing tools (rectangles, circles, lines,
etc.) in the modebar.
Arguments
- fig
A plotly figure object.
- input
Shiny input object containing shape styling fields:
shape.fill,shape.line.color,shape.line.width,shape.linetype,shape.opacity.- isolate_fn
Function to isolate reactive values. Defaults to
shiny::isolate.