Skip to content

Commit

Permalink
Update save plot documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Jun 19, 2024
1 parent c82ff6e commit f4445ac
Show file tree
Hide file tree
Showing 140 changed files with 519 additions and 349 deletions.
6 changes: 3 additions & 3 deletions docs/articles/BLASTP.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/articles/BLASTP_files/D3-7.8.5/geneviewerwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
3 changes: 2 additions & 1 deletion docs/articles/BLASTP_files/Themes-0.1.8/geneviewerwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
14 changes: 7 additions & 7 deletions docs/articles/Examples.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/articles/Examples_files/D3-7.8.5/geneviewerwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HTMLWidgets.widget({
}

// Save icon
createSaveIcon(widgetId, el);
createSaveIcon(widgetId, el, show = saveButton);

};

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -645,6 +646,7 @@ function createSaveIcon(widgetId, el) {
});
});
});
}
}

// Make links function
Expand Down
Loading

0 comments on commit f4445ac

Please sign in to comment.