Skip to content

Commit 015feb6

Browse files
committed
Renamed asString to exportAsString
1 parent 03d644f commit 015feb6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tensorboard/components/tf_line_chart_data_loader/tf-line-chart-data-loader.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@
201201
cancelAnimationFrame(this._redrawRaf);
202202
},
203203

204-
exportAsSvg() {
204+
exportAsSvgString() {
205205
const exporter = this.$.chart.getExporter();
206-
return exporter.asString();
206+
return exporter.exportAsString();
207207
},
208208

209209
resetDomain() {

tensorboard/components/vz_line_chart2/line-chart-exporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class PlottableExporter {
2929
this.root = rootEl;
3030
}
3131

32-
public asString(): string {
32+
public exportAsString(): string {
3333
const convertedNodes = this.convert(this.root);
3434
if (!convertedNodes) return '';
3535
const svg = this.createRootSvg();

tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
}
301301
},
302302
_updateDownloadLink() {
303-
const svgStr = this.$$('tf-line-chart-data-loader').exportAsSvg();
303+
const svgStr = this.$$('tf-line-chart-data-loader').exportAsSvgString();
304304
this.$.svgLink.href = `data:image/svg+xml,${svgStr}`;
305305
},
306306
_csvUrl(tag, run) {

0 commit comments

Comments
 (0)