mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-17 11:44:44 +08:00
Blueprint focusable
This commit is contained in:
@@ -55,10 +55,14 @@ u-blueprint {
|
||||
position : relative;
|
||||
height : var(--ueb-viewport-height);
|
||||
width : var(--ueb-viewport-width);
|
||||
overflow : scroll;
|
||||
overflow : hidden;
|
||||
scrollbar-width: 0;
|
||||
}
|
||||
|
||||
u-blueprint[data-focused="true"] .ueb-viewport-body {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.ueb-grid {
|
||||
--ueb-grid-line-actual-width: calc(var(--ueb-grid-line-width) / var(--ueb-scale));
|
||||
position : absolute;
|
||||
@@ -297,10 +301,10 @@ u-blueprint {
|
||||
display : block;
|
||||
position : absolute;
|
||||
visibility: hidden;
|
||||
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);
|
||||
top : 0;
|
||||
left : 0;
|
||||
width : 0;
|
||||
height : 0;
|
||||
background-image:
|
||||
/* Top */
|
||||
repeating-linear-gradient(90deg,
|
||||
@@ -389,4 +393,8 @@ u-blueprint {
|
||||
|
||||
.ueb-selector[data-selecting="true"] {
|
||||
visibility: visible;
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user