From f4445ac2a8eec9250d2b41afd995920260ef0346 Mon Sep 17 00:00:00 2001 From: Niels van der Velden Date: Wed, 19 Jun 2024 11:00:31 -0300 Subject: [PATCH] Update save plot documentation --- docs/articles/BLASTP.html | 6 +- .../BLASTP_files/D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/Examples.html | 14 +- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/LoadFastaFiles.html | 4 +- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/LoadGFF.html | 2 +- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/LoadGenBankFiles.html | 6 +- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/MUMMER.html | 2 +- .../MUMMER_files/D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/Transcripts.html | 4 +- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/articles/geneviewer.html | 145 +++++++++--------- .../D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/pkgdown.yml | 2 +- docs/reference/GC_align.html | 2 +- docs/reference/GC_annotation.html | 2 +- docs/reference/GC_chart.html | 9 +- docs/reference/GC_cluster.html | 2 +- docs/reference/GC_clusterFooter.html | 4 +- docs/reference/GC_clusterLabel.html | 6 +- docs/reference/GC_clusterTitle.html | 4 +- docs/reference/GC_color.html | 6 +- docs/reference/GC_coordinates.html | 4 +- docs/reference/GC_genes.html | 4 +- docs/reference/GC_grid.html | 4 +- docs/reference/GC_labels.html | 6 +- docs/reference/GC_legend.html | 2 +- docs/reference/GC_links.html | 6 +- docs/reference/GC_scale.html | 2 +- docs/reference/GC_scaleBar.html | 4 +- docs/reference/GC_sequence.html | 4 +- docs/reference/GC_title.html | 4 +- docs/reference/GC_tooltip.html | 2 +- docs/reference/GC_trackMouse.html | 2 +- docs/reference/GC_transcript.html | 4 +- .../libs/D3-7.8.5/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../FileSaver-2.0.4-2.0.4/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../libs/Themes-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../libs/geneviewer-0.1.8/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- .../html2canvas-1.4.1/geneviewerwidget.js | 3 +- .../lib/geneviewer-0.1.8/geneviewer.js | 8 +- docs/search.json | 2 +- vignettes/geneviewer.Rmd | 4 +- 140 files changed, 519 insertions(+), 349 deletions(-) diff --git a/docs/articles/BLASTP.html b/docs/articles/BLASTP.html index 5bd0305..a78819c 100644 --- a/docs/articles/BLASTP.html +++ b/docs/articles/BLASTP.html @@ -385,7 +385,7 @@

Run BlastPGC_clusterLabel() %>% GC_legend(FALSE)
- +

Color by gene function @@ -478,7 +478,7 @@

Color by gene functionGC_clusterLabel() %>% GC_legend(TRUE)

-

Alternatively, the GC_links() function allows for highlighting +

Alternatively, the GC_links() function allows for highlighting connections between specific genes by utilizing the value1 and value2 parameters. To gain insights into the cluster sizes, we can adjust the axis_type to range. For additional styling and coloring options, refer @@ -501,7 +501,7 @@

Color by gene functionGC_clusterLabel() %>% GC_legend(TRUE)
- + diff --git a/docs/articles/BLASTP_files/D3-7.8.5/geneviewerwidget.js b/docs/articles/BLASTP_files/D3-7.8.5/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/D3-7.8.5/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/BLASTP_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js b/docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/BLASTP_files/Themes-0.1.8/geneviewerwidget.js b/docs/articles/BLASTP_files/Themes-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/Themes-0.1.8/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/BLASTP_files/geneviewer-0.1.8/geneviewerwidget.js b/docs/articles/BLASTP_files/geneviewer-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/geneviewer-0.1.8/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/BLASTP_files/geneviewerwidget-0.1.8/geneviewerwidget.js b/docs/articles/BLASTP_files/geneviewerwidget-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/geneviewerwidget-0.1.8/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/BLASTP_files/html2canvas-1.4.1/geneviewerwidget.js b/docs/articles/BLASTP_files/html2canvas-1.4.1/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/BLASTP_files/html2canvas-1.4.1/geneviewerwidget.js +++ b/docs/articles/BLASTP_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/BLASTP_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/BLASTP_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/BLASTP_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/BLASTP_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/articles/Examples.html b/docs/articles/Examples.html index 1ff9dcc..ec975fa 100644 --- a/docs/articles/Examples.html +++ b/docs/articles/Examples.html @@ -141,7 +141,7 @@

) %>% GC_legend(FALSE)
- +

Omphalotin gene clusters @@ -169,7 +169,7 @@

Omphalotin gene clusters )


- +

@@ -237,7 +237,7 @@

GC_cluster(prevent_gene_overlap = TRUE, overlap_spacing=20)


- +

BRCA1 splice variants @@ -262,7 +262,7 @@

BRCA1 splice variants align = "center" )

- +

@@ -314,7 +314,7 @@

GC_color(customColors = colors)


- +

@@ -340,7 +340,7 @@

) %>% GC_clusterLabel()

-
+
Click to see the code
 library(dplyr)
@@ -359,7 +359,7 @@ 

GC_clusterLabel() %>% GC_legend(FALSE)

- + diff --git a/docs/articles/Examples_files/D3-7.8.5/geneviewerwidget.js b/docs/articles/Examples_files/D3-7.8.5/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/D3-7.8.5/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/Examples_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js b/docs/articles/Examples_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/FileSaver-2.0.4-2.0.4/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/Examples_files/Themes-0.1.8/geneviewerwidget.js b/docs/articles/Examples_files/Themes-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/Themes-0.1.8/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/Themes-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/Examples_files/geneviewer-0.1.8/geneviewerwidget.js b/docs/articles/Examples_files/geneviewer-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/geneviewer-0.1.8/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/geneviewer-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/Examples_files/geneviewerwidget-0.1.8/geneviewerwidget.js b/docs/articles/Examples_files/geneviewerwidget-0.1.8/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/geneviewerwidget-0.1.8/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/geneviewerwidget-0.1.8/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/Examples_files/html2canvas-1.4.1/geneviewerwidget.js b/docs/articles/Examples_files/html2canvas-1.4.1/geneviewerwidget.js index 8b3cb36..eb4976c 100644 --- a/docs/articles/Examples_files/html2canvas-1.4.1/geneviewerwidget.js +++ b/docs/articles/Examples_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/Examples_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js b/docs/articles/Examples_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js index a729c0c..df24e7d 100644 --- a/docs/articles/Examples_files/html2canvas-1.4.1/lib/geneviewer-0.1.8/geneviewer.js +++ b/docs/articles/Examples_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/articles/LoadFastaFiles.html b/docs/articles/LoadFastaFiles.html index a5625b6..618c0f3 100644 --- a/docs/articles/LoadFastaFiles.html +++ b/docs/articles/LoadFastaFiles.html @@ -272,7 +272,7 @@

Cluster Visualization GC_clusterLabel(unique(fasta_df$cluster)) chart
- +

Uniprot Keywords @@ -491,7 +491,7 @@

Uniprot Keywords ) chart

-

For further customization options like setting a title, altering the +

For further customization options like setting a title, altering the colors adding gene links and much more see Get Started and Examples.