Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs 297 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
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