Inspect DOM elements like developer tools of browser
new ElementInspector({
// target element to enable inspector
targetSelector: 'body'
});
The target element to enable inspector. document
element is used if not specified.
Callback function of mousemove event. The argument of callback is event object.
Callback function of click event of targetSelector element. The argument of callback is event object.
Background color of overlay. Default is rgba(102, 204, 255, 0.5)
(semitransparent light blue).
Show overlay.
Hide overlay.
The dom node which mouse cursor points currently.
The flag indicates the target elements are clicked or not.
For instance, if clicked
is false on onClick
event handler, this may indicate that the user selects the node.
npm test