From 5744e15b14e90007c94c648e2302905fb6dbff19 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Wed, 8 Feb 2023 10:21:13 +0100 Subject: [PATCH] plotlyjs v2.14: Add editSelection option to config (https://github.com/plotly/plotly.js/pull/6285) --- src/Plotly.NET/Config/Config.fs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index a2f7d81ba..24be3528b 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -345,6 +345,7 @@ type Config() = /// When set it determines base URL for the 'Edit in Chart Studio'/`showEditInChartStudio`/`showSendToCloud` mode bar button', and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to' set both `plotlyServerURL` to \'https://chart-studio.plotly.com\' and also set `showSendToCloud` to true. /// Determines whether the graph is editable or not. Sets all pieces of `edits` unless a separate `edits` config item overrides individual parts. /// Object holding individual editable pieces of the graph. + /// Enables moving selections. /// Determines whether the graphs are plotted with respect to layout.autosize:true and infer its container size. (default: false) /// Determines whether to change the layout size when window is resized. /// Should we include a ModeBar button, labeled "Edit in Chart Studio",that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server as specified by `plotlyServerURL` for editing, export, etc? Note that this button can (depending on `plotlyServerURL` being set) send your data to an external server. However that server does not persist your data until you arrive at the Chart Studio and explicitly click "Save". @@ -359,6 +360,7 @@ type Config() = [] ?Autosizable: bool, [] ?Editable: bool, [] ?Edits: Edits, + [] ?EditSelection: bool, [] ?ShowSendToCloud: bool, [] ?ShowEditInChartStudio: bool, [] ?Responsive: bool, @@ -377,6 +379,7 @@ type Config() = ?ShowEditInChartStudio = ShowEditInChartStudio, ?Editable = Editable, ?Edits = Edits, + ?EditSelection = EditSelection, ?ModeBarButtonsToAdd = ModeBarButtonsToAdd ) @@ -388,6 +391,7 @@ type Config() = /// When set it determines base URL for the 'Edit in Chart Studio'/`showEditInChartStudio`/`showSendToCloud` mode bar button', and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to' set both `plotlyServerURL` to \'https://chart-studio.plotly.com\' and also set `showSendToCloud` to true. /// Determines whether the graph is editable or not. Sets all pieces of `edits` unless a separate `edits` config item overrides individual parts. /// Object holding individual editable pieces of the graph. + /// Enables moving selections. /// Determines whether the graphs are plotted with respect to layout.autosize:true and infer its container size. (default: false) /// Determines whether to change the layout size when window is resized. /// Should we include a ModeBar button, labeled "Edit in Chart Studio",that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server as specified by `plotlyServerURL` for editing, export, etc? Note that this button can (depending on `plotlyServerURL` being set) send your data to an external server. However that server does not persist your data until you arrive at the Chart Studio and explicitly click "Save". @@ -402,6 +406,7 @@ type Config() = [] ?Autosizable: bool, [] ?Editable: bool, [] ?Edits: Edits, + [] ?EditSelection: bool, [] ?ShowSendToCloud: bool, [] ?ShowEditInChartStudio: bool, [] ?Responsive: bool, @@ -415,6 +420,7 @@ type Config() = Autosizable |> DynObj.setValueOpt config "autosizable" Editable |> DynObj.setValueOpt config "editable" Edits |> DynObj.setValueOpt config "edits" + EditSelection |> DynObj.setValueOpt config "editSelection" ShowSendToCloud |> DynObj.setValueOpt config "showSendToCloud" ShowEditInChartStudio |> DynObj.setValueOpt config "showEditInChartStudio" Responsive |> DynObj.setValueOpt config "responsive"