mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-26 16:19:03 +02:00
splines + slider refinement
This commit is contained in:
14
docs/js/custom-element/lib/create.js
Normal file
14
docs/js/custom-element/lib/create.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { enrich } from "./enrich.js";
|
||||
|
||||
function create(element) {
|
||||
if (typeof document !== `undefined`) {
|
||||
return enrich(document.createElement(element));
|
||||
}
|
||||
|
||||
return {
|
||||
name: element,
|
||||
tag: element.toUpperCase(),
|
||||
};
|
||||
}
|
||||
|
||||
export { create };
|
Reference in New Issue
Block a user