@phun-ky/speccer / removeSpeccerElement
Function: removeSpeccerElement()
ts
function removeSpeccerElement(el: HTMLElement): void;
Defined in: utils/remove-speccer-element.ts:18
Remove a speccer element by removing associated elements and SVG paths.
This function removes any speccer elements linked to the specified element and also removes any SVG paths that might be associated with it.
Parameters
el
The HTML element to unpin.
Returns
void
This function does not return a value.
Example
ts
const element = document.getElementById('my-element');
if (element) {
removeSpeccerElement(element);
}