From b57b628107f7428d51df96b4019008c989cc5b25 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 14 May 2019 14:49:51 +0300 Subject: [PATCH] JS: add HTMLCanvasElement.toDataURL overloads --- .../main/java/org/teavm/jso/dom/html/HTMLCanvasElement.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLCanvasElement.java b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLCanvasElement.java index a4f51aeae..79cac70ed 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLCanvasElement.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLCanvasElement.java @@ -36,5 +36,9 @@ public interface HTMLCanvasElement extends HTMLElement, CanvasImageSource { JSObject getContext(String contextId, JSObject attributes); + String toDataURL(String type, double quality); + String toDataURL(String type); + + String toDataURL(); }