Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
253 B
Plaintext
12 lines
253 B
Plaintext
import { isObject } from 'motion-utils';
|
|
|
|
/**
|
|
* Checks if an element is an SVG element in a way
|
|
* that works across iframes
|
|
*/
|
|
function isSVGElement(element) {
|
|
return isObject(element) && "ownerSVGElement" in element;
|
|
}
|
|
|
|
export { isSVGElement };
|