mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
feat(dev-tools): higlight overlay
This commit is contained in:
@ -6,6 +6,10 @@ export interface InspectorCommands {
|
||||
removeNode(nodeId: number): void;
|
||||
getComputedStylesForNode(nodeId: number): string | Array<{ name: string, value: string }>;
|
||||
setAttributeAsText(nodeId: number, text: string, name: string): void;
|
||||
|
||||
highlightNode(nodeId: number, selector?: string);
|
||||
hideHighlight();
|
||||
setInspectMode(mode: "none" | "searchForNode");
|
||||
}
|
||||
|
||||
export interface InspectorEvents {
|
||||
@ -14,6 +18,9 @@ export interface InspectorEvents {
|
||||
childNodeRemoved(parentId: number, nodeId: number): void;
|
||||
attributeModified(nodeId: number, attrName: string, attrValue: string): void;
|
||||
attributeRemoved(nodeId: number, attrName: string): void;
|
||||
|
||||
nodeHighlightRequested(nodeId: number): void;
|
||||
inspectModeCanceled(): void;
|
||||
}
|
||||
|
||||
export function attachDOMInspectorEventCallbacks(inspector: InspectorEvents);
|
||||
|
Reference in New Issue
Block a user