restructured project

This commit is contained in:
Lauchmelder 2021-11-26 15:01:20 +01:00
parent 4066c87793
commit ea4eb49670
3 changed files with 4 additions and 3 deletions

17
src/geometry.ts Normal file
View file

@ -0,0 +1,17 @@
class Geometry extends HTMLElement
{
constructor()
{
super();
this.attachShadow({mode: "open"});
console.log("Created Geomtry tag");
const text = document.createElement("p")
text.innerText = "Geometry tag";
this.shadowRoot.append(text);
}
}
customElements.define("custom-geometry", Geometry);