You can save plots directly in the browser as PNG images using the
+save button that appears when hovering over the graph. This option can
+be disabled by setting the save_button
parameter to
+FALSE
in the GC_chart
function.
library(webshot2)
diff --git a/docs/articles/geneviewer_files/D3-7.8.5/geneviewerwidget.js b/docs/articles/geneviewer_files/D3-7.8.5/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/D3-7.8.5/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/D3-7.8.5/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js b/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/articles/geneviewer_files/Themes-0.1.8/geneviewerwidget.js b/docs/articles/geneviewer_files/Themes-0.1.8/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/Themes-0.1.8/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/Themes-0.1.8/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/articles/geneviewer_files/geneviewer-0.1.8/geneviewerwidget.js b/docs/articles/geneviewer_files/geneviewer-0.1.8/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/geneviewer-0.1.8/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/geneviewer-0.1.8/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/geneviewerwidget.js b/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/articles/geneviewer_files/html2canvas-1.4.1/geneviewerwidget.js b/docs/articles/geneviewer_files/html2canvas-1.4.1/geneviewerwidget.js
index 8b3cb36..eb4976c 100644
--- a/docs/articles/geneviewer_files/html2canvas-1.4.1/geneviewerwidget.js
+++ b/docs/articles/geneviewer_files/html2canvas-1.4.1/geneviewerwidget.js
@@ -173,7 +173,7 @@ HTMLWidgets.widget({
}
// Save icon
- createSaveIcon(widgetId, el);
+ createSaveIcon(widgetId, el, show = saveButton);
};
@@ -203,6 +203,7 @@ HTMLWidgets.widget({
data = HTMLWidgets.dataframeToD3(input.data);
links = input.links;
series = input.series;
+ saveButton = input.saveButton;
titleOptions = input.title;
legendOptions = input.legend;
draw(width, height);
diff --git a/docs/articles/geneviewer_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/geneviewer_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js
index a729c0c..df24e7d 100644
--- a/docs/articles/geneviewer_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js
+++ b/docs/articles/geneviewer_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js
@@ -583,9 +583,10 @@ function addScalePadding(startValue, endValue, padding, to) {
}
}
-function createSaveIcon(widgetId, el) {
- // Create an icon in the top right corner of the container div
- var icon = d3.select(el).append("i")
+function createSaveIcon(widgetId, el, show = true) {
+
+ if (show) {
+ var icon = d3.select(el).append("i")
.attr("class", "fa-solid fa-download")
.attr("id", `saveIcon-${widgetId}`)
.style("position", "absolute")
@@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
+ }
}
// Make links function
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index df7a894..e4c62c1 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
LoadGFF: LoadGFF.html
MUMMER: MUMMER.html
Transcripts: Transcripts.html
-last_built: 2024-06-18T20:06Z
+last_built: 2024-06-19T13:48Z
urls:
reference: https://nvelden.github.io/geneviewer/reference
article: https://nvelden.github.io/geneviewer/articles
diff --git a/docs/reference/GC_align.html b/docs/reference/GC_align.html
index a47d693..14c5a91 100644
--- a/docs/reference/GC_align.html
+++ b/docs/reference/GC_align.html
@@ -111,7 +111,7 @@