File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
commonMain/kotlin/org/jetbrains/letsPlot
jvmMain/resources/letsPlotKotlinAPI Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,14 @@ import org.jetbrains.letsPlot.intern.settings.GlobalSettings
15
15
import org.jetbrains.letsPlot.intern.settings.createDefaultFrontendContext
16
16
17
17
object LetsPlot {
18
- var frontendContext: FrontendContext = createDefaultFrontendContext()
18
+ private var customFrontendContext: FrontendContext ? = null
19
+ private val defaultFrontendContext by lazy { createDefaultFrontendContext() }
20
+
21
+ var frontendContext: FrontendContext
22
+ get() = customFrontendContext ? : defaultFrontendContext
23
+ set(value) {
24
+ customFrontendContext = value
25
+ }
19
26
20
27
var theme: Feature ? = null // either null or OptionsMap
21
28
set(value) {
Original file line number Diff line number Diff line change 1
- lets_plot.version =4.7.1
1
+ lets_plot.version =4.7.2
2
2
lets_plot_kotlin_api.version =4.11.1-SNAPSHOT
You can’t perform that action at this time.
0 commit comments