init 3
This commit is contained in:
12
node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
generated
vendored
Normal file
12
node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
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 };
|
||||
//# sourceMappingURL=is-svg-element.mjs.map
|
||||
Reference in New Issue
Block a user