Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/blocks/deps.ts>inspectVSCode.DomInspector

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
class inspectVSCode.DomInspector
Re-export
import { inspectVSCode } from "https://deno.land/x/blocks@1.59.3/deps.ts";
const { DomInspector } = inspectVSCode;

Constructors

new
DomInspector(element: HTMLElement, options?: DomInspectorOptions)

Properties

private
active: boolean
private
element: HTMLElement
private
optional
hoveredElement: HTMLElement
private
optional
onDeactivate: () => unknown
private
options: DomInspectorOptions
activate: (onDeactivate?: () => void) => unknown
addEventListeners: () => unknown

Add event listeners for DOM-inspectorey actions

clean: (element: HTMLElement) => unknown
deactivate: () => unknown
getManifestKey: (element: HTMLElement) => string | null
handleCancelKey: (event: KeyboardEvent) => unknown
handleClick: (event: MouseEvent) => unknown
handleKeydown: (event: KeyboardEvent) => unknown
handleMouseOut: (event: MouseEvent) => unknown
handleMouseOver: (event: MouseEvent) => unknown
isActive: () => unknown
paint: (element: HTMLElement) => unknown