move from resize observer to selection toolbox bounds

This commit is contained in:
bymyself
2025-09-09 20:32:01 -07:00
parent ffede776cb
commit 5022f14265
2 changed files with 2 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ export function useSelectionToolboxPosition(
worldPosition.value = {
x: unionBounds.x + unionBounds.width / 2,
y: unionBounds.y
y: unionBounds.y - 10
}
updateTransform()

View File

@@ -10,7 +10,6 @@
*/
import { getCurrentInstance, onMounted, onUnmounted } from 'vue'
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
import type { Bounds, NodeId } from '@/renderer/core/layout/types'
@@ -82,7 +81,7 @@ const resizeObserver = new ResizeObserver((entries) => {
const bounds: Bounds = {
x: rect.left,
y: rect.top - LiteGraph.NODE_TITLE_HEIGHT,
y: rect.top,
width,
height: height
}