aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-chart/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-10-25 20:46:42 +0200
committerRobert Jaros <rjaros@finn.pl>2019-10-25 20:46:42 +0200
commitc78775aa2aaf76f9fa1404ff32a10fb8227f380e (patch)
treea6991e1f520e1ce54679b2194a756203a645f99e /kvision-modules/kvision-chart/src/main/kotlin/pl
parenta990385dd3f2dbac4807b7a9498271efb3519c0d (diff)
downloadkvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.tar.gz
kvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.tar.bz2
kvision-c78775aa2aaf76f9fa1404ff32a10fb8227f380e.zip
Style fixes
Diffstat (limited to 'kvision-modules/kvision-chart/src/main/kotlin/pl')
-rw-r--r--kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Chart.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Chart.kt b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Chart.kt
index 29cc80c2..55718918 100644
--- a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Chart.kt
+++ b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Chart.kt
@@ -23,6 +23,7 @@ package pl.treksoft.kvision.chart
import com.github.snabbdom.VNode
import pl.treksoft.kvision.chart.js.Chart.ChartConfiguration
+import pl.treksoft.kvision.chart.js.PluginServiceGlobalRegistration
import pl.treksoft.kvision.chart.js.Chart as JsChart
import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.Widget
@@ -112,11 +113,13 @@ open class Chart(
companion object {
fun registerPlugin(plugin: dynamic) {
- JsChart.plugins.register(plugin)
+ @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE")
+ JsChart.plugins.register(plugin as PluginServiceGlobalRegistration)
}
fun unregisterPlugin(plugin: dynamic) {
- JsChart.plugins.unregister(plugin)
+ @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE")
+ JsChart.plugins.unregister(plugin as PluginServiceGlobalRegistration)
}
}
}