Skip to content
Permalink
Browse files

Merge pull request #5203 from rstudio/bugfix/export-plots

Fix JS exception when exporting plots
  • Loading branch information...
jmcphers committed Aug 9, 2019
2 parents 91b5f2d + a74d3ba commit 042975369f4b24d89bd35ac5b48bb52650282deb
@@ -117,11 +117,11 @@ public final native boolean getIsDark() /*-{
{
protected ExportPlotOptions() {}

public final native Integer getWidth() /*-{
public final native int getWidth() /*-{
return this.width;
}-*/;

public final native Integer getHeight() /*-{
public final native int getHeight() /*-{
return this.height;
}-*/;

@@ -155,11 +155,11 @@ public final native boolean getCopyAsMetafile() /*-{
{
protected ExportViewerOptions() {}

public final native Integer getWidth() /*-{
public final native int getWidth() /*-{
return this.width;
}-*/;

public final native Integer getHeight() /*-{
public final native int getHeight() /*-{
return this.height;
}-*/;

@@ -193,11 +193,11 @@ public final native boolean getCopyAsMetafile() /*-{
{
protected SavePlotAsPdfOptions() {}

public final native Integer getWidth() /*-{
public final native int getWidth() /*-{
return this.width;
}-*/;

public final native Integer getHeight() /*-{
public final native int getHeight() /*-{
return this.height;
}-*/;

@@ -220,7 +220,7 @@ generate <- function (schemaPath, className) {
} else if (identical(proptype, "string")) {
proptype <- "String"
} else if (identical(proptype, "integer")) {
proptype <- "Integer"
proptype <- "int"
}
java <- paste0(java,
" public final native ", proptype, " get", propname, "() /*-{\n",

0 comments on commit 0429753

Please sign in to comment.
You can’t perform that action at this time.