webview-overlay

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command webview-overlay mixes a WebView page with Tango's self-drawn UI in one window (docs/specs/canvas-surface.md, step D).

go run ./examples/webview-overlay          # canvas above the page
go run ./examples/webview-overlay -below   # canvas below a transparent page

Above (default): a full-window canvas with PassThrough sits on the WebView. Only the tool card in the bottom-right corner and the round floating button (drag it around; click it to hide or show the card) are opaque; everywhere else the canvas is transparent, so clicks, wheel scrolling and text selection reach the page underneath.

Below (-below, or the switch buttons): the canvas draws the window background and the page, whose CSS background is transparent, floats over it. The canvas gets no pointer input there; the page's toggle button (a JS message) brings it back on top.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL