Skip to content

Commit

Permalink
feat: update suggested backend proto for devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Sep 19, 2024
1 parent 55edd9d commit 577a547
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions glass-easel/src/backend/suggested_backend_protocol.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Element as GlassEaselElement } from '../element'
import { type EventBubbleStatus, type EventOptions } from '../event'
import {
type BoundingClientRect,
type GetAllComputedStylesResponses,
Expand Down Expand Up @@ -50,6 +51,23 @@ export interface Context<Ctx, Elem> {
cb: (ContextWrapper: GetWrapper<Partial<Context<Ctx, Elem> & Ctx>>) => void,
): void

addPriorEventListener(
listener: (
target: GlassEaselElement,
type: string,
detail: unknown,
options: EventOptions,
) => EventBubbleStatus | void,
): void
removePriorEventListener(
listener: (
target: GlassEaselElement,
type: string,
detail: unknown,
options: EventOptions,
) => EventBubbleStatus | void,
): void

setFocusedNode(target: Elem): void
getFocusedNode(cb: (node: Elem | null) => void): void

Expand Down

0 comments on commit 577a547

Please sign in to comment.