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
1515import org.jetbrains.letsPlot.intern.settings.createDefaultFrontendContext
1616
1717object 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+ }
1926
2027 var theme: Feature ? = null // either null or OptionsMap
2128 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
22lets_plot_kotlin_api.version =4.11.1-SNAPSHOT
You can’t perform that action at this time.
0 commit comments