Using web components

This commit is contained in:
barsdeveloper
2021-07-25 19:52:25 +02:00
parent cd475caeda
commit 4017d6ab64
13 changed files with 689 additions and 140 deletions

View File

@@ -22,20 +22,18 @@
--ueb-grid-snap: 16px;
}
</style>
<link rel="stylesheet" href="css/ueblueprint-style.css">
<link rel="stylesheet" href="css/ueblueprint-node-value-type-color.css">
<link rel="stylesheet" href="css/ueblueprint-style.css">
</head>
<body>
<div>Hello</div>
<script type="module">
import UEBlueprintObject from "./js/UEBlueprintObject.js"
import UEBlueprint from "./js/UEBlueprint.js"
let node1 = new UEBlueprintObject()
node1.addLocation([100, 100])
import { UEBlueprint, UEBlueprintObject } from "./ueblueprint.js"
let blueprint = new UEBlueprint()
let node1 = new UEBlueprintObject()
blueprint.addNode(node1)
document.querySelector('body').appendChild(blueprint.getDOMElement())
document.querySelector('body').appendChild(blueprint)
let a = 123
</script>
<script type="module">