mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-24 15:24:51 -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;
|
package org.teavm.dom.html;
|
||||||
|
|
||||||
import org.teavm.dom.canvas.CanvasImageSource;
|
import org.teavm.dom.canvas.CanvasImageSource;
|
||||||
|
import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
|
@ -39,4 +40,7 @@ public interface HTMLCanvasElement extends HTMLElement, CanvasImageSource {
|
||||||
JSObject getContext(String contextId);
|
JSObject getContext(String contextId);
|
||||||
|
|
||||||
JSObject getContext(String contextId, JSObject attributes);
|
JSObject getContext(String contextId, JSObject attributes);
|
||||||
|
|
||||||
|
@JSMethod
|
||||||
|
String toDataURL(String type);
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,4 +102,10 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
|
||||||
@JSProperty
|
@JSProperty
|
||||||
@Override
|
@Override
|
||||||
HTMLDocument getOwnerDocument();
|
HTMLDocument getOwnerDocument();
|
||||||
|
|
||||||
|
@JSProperty
|
||||||
|
int getInnerHTML();
|
||||||
|
|
||||||
|
@JSProperty
|
||||||
|
void setInnerHTML(String content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user