mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 08:24:10 -08:00
Add some useful properties/methods to DOM wrappers
This commit is contained in:
parent
3d95eb1a7e
commit
779b482a43
|
@ -16,6 +16,7 @@
|
|||
package org.teavm.dom.html;
|
||||
|
||||
import org.teavm.dom.canvas.CanvasImageSource;
|
||||
import org.teavm.jso.JSMethod;
|
||||
import org.teavm.jso.JSObject;
|
||||
import org.teavm.jso.JSProperty;
|
||||
|
||||
|
@ -39,4 +40,7 @@ public interface HTMLCanvasElement extends HTMLElement, CanvasImageSource {
|
|||
JSObject getContext(String contextId);
|
||||
|
||||
JSObject getContext(String contextId, JSObject attributes);
|
||||
|
||||
@JSMethod
|
||||
String toDataURL(String type);
|
||||
}
|
||||
|
|
|
@ -102,4 +102,10 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
|
|||
@JSProperty
|
||||
@Override
|
||||
HTMLDocument getOwnerDocument();
|
||||
|
||||
@JSProperty
|
||||
int getInnerHTML();
|
||||
|
||||
@JSProperty
|
||||
void setInnerHTML(String content);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user