restructured project
This commit is contained in:
parent
4066c87793
commit
ea4eb49670
3 changed files with 4 additions and 3 deletions
17
src/geometry.ts
Normal file
17
src/geometry.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue