first commit
This commit is contained in:
14
node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
generated
vendored
Normal file
14
node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Fragment } from 'react';
|
||||
import { HTMLVisualElement } from '../html/HTMLVisualElement.mjs';
|
||||
import { SVGVisualElement } from '../svg/SVGVisualElement.mjs';
|
||||
import { isSVGComponent } from './utils/is-svg-component.mjs';
|
||||
|
||||
const createDomVisualElement = (Component, options) => {
|
||||
return isSVGComponent(Component)
|
||||
? new SVGVisualElement(options)
|
||||
: new HTMLVisualElement(options, {
|
||||
allowProjection: Component !== Fragment,
|
||||
});
|
||||
};
|
||||
|
||||
export { createDomVisualElement };
|
||||
Reference in New Issue
Block a user