mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:41:34 +08:00
New nodes types added
This commit is contained in:
28
index.html
28
index.html
@@ -44,32 +44,6 @@
|
||||
document.querySelector('body').appendChild(blueprint)
|
||||
blueprint.addGraphElement(node1)
|
||||
</script>
|
||||
<script type="module">
|
||||
/*
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
let leftmost = Number.MAX_SAFE_INTEGER;
|
||||
let topmost = Number.MAX_SAFE_INTEGER;
|
||||
let draggableElements = document.querySelectorAll('.ueb-node').forEach(function (node) {
|
||||
new UEBlueprintDrag(node)
|
||||
leftmost = Math.min(leftmost, node.offsetLeft)
|
||||
topmost = Math.min(leftmost, node.offsetTop)
|
||||
})
|
||||
document.querySelectorAll('.ueb-grid').forEach(function (grid) {
|
||||
let obj = new UEBlueprintDragScrollGrid(grid, {
|
||||
'clickButton': 2,
|
||||
'exitGrabSameButtonOnly': true,
|
||||
'expandGridSize': 200
|
||||
})
|
||||
obj.stepSize = 1
|
||||
let viewportWidth = grid.parentElement.clientWidth
|
||||
let viewportHeight = grid.parentElement.clientHeight
|
||||
grid.style.setProperty('--ueb-translateX', Math.round(viewportWidth / 2))
|
||||
grid.style.setProperty('--ueb-translateY', Math.round(viewportHeight / 2))
|
||||
grid.style.setProperty('--ueb-additionalX', 0)
|
||||
grid.style.setProperty('--ueb-additionalY', 0)
|
||||
})
|
||||
});*/
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user