From c1d4ed2e3c5c7a46834b368eb3786f83bd538527 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 14 May 2019 14:50:17 +0300 Subject: [PATCH] JS: get rid of float type from CanvasRenderingContext2D --- .../org/teavm/jso/canvas/CanvasRenderingContext2D.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/canvas/CanvasRenderingContext2D.java b/jso/apis/src/main/java/org/teavm/jso/canvas/CanvasRenderingContext2D.java index 5848a1229..023b6efc4 100644 --- a/jso/apis/src/main/java/org/teavm/jso/canvas/CanvasRenderingContext2D.java +++ b/jso/apis/src/main/java/org/teavm/jso/canvas/CanvasRenderingContext2D.java @@ -117,9 +117,9 @@ public interface CanvasRenderingContext2D extends JSObject { void strokeRect(double x, double y, double w, double h); - void strokeText(String text, float x, float y, float maxWidth); + void strokeText(String text, double x, double y, double maxWidth); - void strokeText(String text, float x, float y); + void strokeText(String text, double x, double y); // Transformation @@ -162,10 +162,10 @@ public interface CanvasRenderingContext2D extends JSObject { void setLineCap(String lineCap); @JSProperty - float getLineDashOffset(); + double getLineDashOffset(); @JSProperty - void setLineDashOffset(float lineDashOffset); + void setLineDashOffset(double lineDashOffset); @JSProperty String getLineJoin();