-
Notifications
You must be signed in to change notification settings - Fork 21
/
gral.json
23 lines (23 loc) · 956 Bytes
/
gral.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"description": "Java library for displaying plots",
"properties": [
{ "name": "v", "value": "0.11" },
{ "name": "v-renovate-hint", "value": "update: package=de.erichseifert.gral:gral-core" }
],
"link": "https://github.com/eseifert/gral",
"dependencies": [
"de.erichseifert.gral:gral-core:$v"
],
"imports": [
"de.erichseifert.gral.data.*",
"de.erichseifert.gral.data.filters.*",
"de.erichseifert.gral.graphics.*",
"de.erichseifert.gral.plots.*",
"de.erichseifert.gral.plots.lines.*",
"de.erichseifert.gral.plots.points.*",
"de.erichseifert.gral.util.*"
],
"init": [
"fun<T: Drawable> T.show(sizeX: Double, sizeY: Double): Any {\n val writer = de.erichseifert.gral.io.plots.DrawableWriterFactory.getInstance().get(\"image/svg+xml\")\n\n val buf = java.io.ByteArrayOutputStream()\n\n writer.write(this, buf, sizeX, sizeY)\n\n return MIME(writer.mimeType to buf.toString())\n}"
]
}