1
0
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:
Pomax
2020-09-06 17:23:52 -07:00
parent 17c50a403b
commit 42b9818441
66 changed files with 407 additions and 328 deletions

View File

@@ -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 };