More api hack for some web demo js examples. (by Natasha)
This commit is contained in:
committed by
Pavel V. Talanov
parent
1e180f550f
commit
55def7f8ff
@@ -127,4 +127,6 @@ fun getContext() : Context = Context();
|
||||
native
|
||||
fun getCanvas() : Canvas = Canvas();
|
||||
native
|
||||
fun getKotlinLogo() : HTMLImageElement = HTMLImageElement();
|
||||
fun getKotlinLogo() : HTMLImageElement = HTMLImageElement();
|
||||
native
|
||||
fun getImage(src: String) : HTMLImageElement = HTMLImageElement();
|
||||
@@ -32,18 +32,19 @@ public abstract class Config {
|
||||
|
||||
@NotNull
|
||||
protected static final List<String> LIB_FILE_NAMES = Arrays.asList(
|
||||
"/core/annotations.kt",
|
||||
"/jquery/common.kt",
|
||||
"/jquery/ui.kt",
|
||||
"/core/javautil.kt",
|
||||
"/core/javalang.kt",
|
||||
"/core/core.kt",
|
||||
"/core/math.kt",
|
||||
"/core/json.kt",
|
||||
"/raphael/raphael.kt",
|
||||
"/html5/canvas.kt",
|
||||
"/html5/files.kt",
|
||||
"/html5/image.kt"
|
||||
"/core/annotations.kt",
|
||||
"/jquery/common.kt",
|
||||
"/jquery/ui.kt",
|
||||
"/core/javautil.kt",
|
||||
"/core/javalang.kt",
|
||||
"/core/date.kt",
|
||||
"/core/core.kt",
|
||||
"/core/math.kt",
|
||||
"/core/json.kt",
|
||||
"/raphael/raphael.kt",
|
||||
"/html5/canvas.kt",
|
||||
"/html5/files.kt",
|
||||
"/html5/image.kt"
|
||||
);
|
||||
|
||||
protected static final String LIBRARIES_LOCATION = "js/js.libraries/src";
|
||||
|
||||
@@ -24,4 +24,10 @@ function getCanvas() {
|
||||
|
||||
function getKotlinLogo() {
|
||||
return document.getElementsByTagName('img')[0];
|
||||
}
|
||||
|
||||
function getImage(src) {
|
||||
var image = document.createElement("img");
|
||||
image.src = src;
|
||||
return image;
|
||||
}
|
||||
Reference in New Issue
Block a user