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:
@ -1,5 +1,8 @@
|
||||
import { InspectorEvents, InspectorCommands } from "./devtools-elements";
|
||||
import { getDocument, getComputedStylesForNode, removeNode, setAttributeAsText } from "./devtools-elements.common";
|
||||
import {
|
||||
getDocument, getComputedStylesForNode, removeNode,
|
||||
setAttributeAsText, highlightNode, hideHighlight, setInspectMode
|
||||
} from "./devtools-elements.common";
|
||||
import { registerInspectorEvents, DOMNode } from "./dom-node";
|
||||
|
||||
export function attachDOMInspectorEventCallbacks(DOMDomainFrontend: InspectorEvents) {
|
||||
@ -16,6 +19,10 @@ export function attachDOMInspectorCommandCallbacks(DOMDomainBackend: InspectorCo
|
||||
DOMDomainBackend.getDocument = getDocument;
|
||||
DOMDomainBackend.removeNode = removeNode;
|
||||
DOMDomainBackend.setAttributeAsText = setAttributeAsText;
|
||||
|
||||
DOMDomainBackend.highlightNode = highlightNode;
|
||||
DOMDomainBackend.hideHighlight = hideHighlight;
|
||||
DOMDomainBackend.setInspectMode = setInspectMode;
|
||||
}
|
||||
|
||||
export function attachCSSInspectorCommandCallbacks(CSSDomainBackend: InspectorCommands) {
|
||||
|
Reference in New Issue
Block a user