Skip to content

Code-first video & image, rendered natively on WebGPU.

519 B
Raw Blame
import { defineMeta } from "../core/meta.js";

export default defineMeta({
	name: "Selection",
	summary:
		"A text selection or a marquee driven by a MousePointer drag: it follows the pointer glyph by glyph, and lights up covered items.",
	tags: [
		"selection",
		"highlight",
		"marquee",
		"drag",
		"editor",
		"ui",
		"pointer",
	],
	parts: ["line-<n>", "marquee", "item-<n>"],
	cues: ["selected", "items"],
	example: `Selection({ target: { text: paragraph, match: "the key line" }, pointer })`,
	since: "M8",
});