diff --git a/css/ueblueprint-style.css b/css/ueblueprint-style.css index 6f938d3..93c2691 100644 --- a/css/ueblueprint-style.css +++ b/css/ueblueprint-style.css @@ -272,4 +272,13 @@ u-blueprint { border-top : 0.3em solid transparent; border-bottom: 0.3em solid transparent; border-left : 0.3em solid var(--ueb-node-value-color); +} + +.ueb-selector { + position: absolute; + top : min(var(--ueb-select-from-y) * 1px, var(--ueb-select-to-y) * 1px); + left : min(var(--ueb-select-from-x) * 1px, var(--ueb-select-to-x) * 1px); + width : calc(max(var(--ueb-select-from-x) - var(--ueb-select-to-x), var(--ueb-select-to-x) - var(--ueb-select-from-x)) * 1px); + height : calc(max(var(--ueb-select-from-y) - var(--ueb-select-to-y), var(--ueb-select-to-y) - var(--ueb-select-from-y)) * 1px); + border : 2px dashed gray; } \ No newline at end of file diff --git a/js/UEBlueprint.js b/js/UEBlueprint.js index d16e78d..325e983 100644 --- a/js/UEBlueprint.js +++ b/js/UEBlueprint.js @@ -1,8 +1,9 @@ import UEBlueprintDragScroll from "./UEBlueprintDragScroll.js" +import UEBlueprintSelect from "./UEBlueprintSelect.js" export default class UEBlueprint extends HTMLElement { - header() { + headerTemplate() { return `