Package-level declarations

Types

Link copied to clipboard
object LetsPlot

Renderer for Lets-Plot iframe documents. Wraps a Figure as a standalone HTML page that loads the Lets-Plot JS runtime from a CDN and embeds the plot spec via PlotHtmlExport.

Functions

Link copied to clipboard
context(section: SECTION)
fun DslSlide.letsPlot(dimensions: Dimensions? = null, iframeConfig: LetsPlotIframeConfig, block: () -> Figure)

Pre-built-config overload of letsPlot. Prefer the configBlock overload, which is symmetric with playground{}/diagram{}.

context(section: SECTION)
fun DslSlide.letsPlot(dimensions: Dimensions? = null, configBlock: LetsPlotIframeConfig.() -> Unit = {}, block: () -> Figure)

Embed a Lets-Plot figure inside a DslSlide content{} block. The figure is exported to self-contained HTML and served from a dedicated iframe so the Lets-Plot JS runtime does not collide with reveal.js's own scripts.