Skip to content

Commit

Permalink
Fix default render options for SlimerJS
Browse files Browse the repository at this point in the history
  • Loading branch information
fralucch committed Apr 29, 2019
1 parent 52de1bc commit f9cd19d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

public class RenderOptions {
public static final RenderOptions EMPTY = new RenderOptions(null, null, null, null, null, null, null, null, null, null, null);
public static final RenderOptions DEFAULT = EMPTY.withDimensions(ViewportDimensions.VIEW_1600_1200).withRenderFormat(RenderFormat.PNG)
.withJavaScriptExecutionDetails(10000L, 10000L).withSlimerJSOptions(SlimerJSOptions.DEFAULT.withDiskCache(true))
public static final RenderOptions DEFAULT = EMPTY.withDimensions(ViewportDimensions.VIEW_1920_1080).withRenderFormat(RenderFormat.PNG)
.withJavaScriptExecutionDetails(60000L, 5000L).withSlimerJSOptions(SlimerJSOptions.DEFAULT.withDiskCache(true))
.withCustomHeaders(CustomHeaders.EMPTY).withZoomFactor(2.0);

private final SlimerJSOptions options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ViewportDimensions {

public static final ViewportDimensions VIEW_1280_1024 = new ViewportDimensions(1280, 1024);
public static final ViewportDimensions VIEW_1600_1200 = new ViewportDimensions(1600, 1200);
public static final ViewportDimensions VIEW_1920_1080 = new ViewportDimensions(1920, 1080);

public ViewportDimensions(int width, int height) {
this.width = width;
Expand Down

0 comments on commit f9cd19d

Please sign in to comment.