Skip to content

createScriptOverlay

createScriptOverlay(options): ScriptOverlay

The script overlay: what PreviewOverlay draws in React, drawn imperatively for a page that never hydrates.

Every decision about what a pin *is* — which elements get one, in what order, what it is called and what it looks like — comes from `pins.ts`, the same module the React overlay calls. This file owns only the DOM plumbing: a container at the end of ``, one element per box, and the listeners that keep them positioned.

ScriptOverlayOptions

ScriptOverlay