mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-27 08:39:00 +02:00
regenerated all images
This commit is contained in:
@@ -1,14 +1,27 @@
|
||||
import { enrich } from "./enrich.js";
|
||||
|
||||
function create(element) {
|
||||
const noop = () => {};
|
||||
|
||||
function create(tag) {
|
||||
if (typeof document !== `undefined`) {
|
||||
return enrich(document.createElement(element));
|
||||
return enrich(document.createElement(tag));
|
||||
}
|
||||
|
||||
return {
|
||||
name: element,
|
||||
tag: element.toUpperCase(),
|
||||
const element = {
|
||||
name: tag,
|
||||
tag: tag.toUpperCase(),
|
||||
append: noop,
|
||||
appendChild: noop,
|
||||
replaceChild: noop,
|
||||
removeChild: noop,
|
||||
classList: {
|
||||
add: noop,
|
||||
remove: noop,
|
||||
},
|
||||
children: [],
|
||||
};
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
export { create };
|
||||
|
Reference in New Issue
Block a user