npm version npm downloads License Node

view-anchor: interactive 3D demo

Align an anchored view — an Electron WebContentsView, a native webview, a cross-origin iframe — to a DOM element's geometry. Resize the splitter, toggle present, or explode the 3D scene below: the green anchored view is positioned by the real view-anchor core running in this page.

Renderer DOM
<div ref={anchorRef} />
Anchored view
DOM window Placeholder div Anchored view