feat(editor): Overhaul handle rendering to allow dragging of plus button (no-changelog) (#10512)

This commit is contained in:
Alex Grozav
2024-08-26 10:32:39 +03:00
committed by GitHub
parent cd0c6d9b55
commit 351d8413e9
28 changed files with 623 additions and 170 deletions

View File

@@ -12,13 +12,15 @@ export function useCanvasNodeHandle() {
const handle = inject(CanvasNodeHandleKey);
const label = computed(() => handle?.label.value ?? '');
const connected = computed(() => handle?.connected.value ?? false);
const isConnected = computed(() => handle?.isConnected.value ?? false);
const isConnecting = computed(() => handle?.isConnecting.value ?? false);
const type = computed(() => handle?.type.value ?? NodeConnectionType.Main);
const mode = computed(() => handle?.mode.value ?? CanvasConnectionMode.Input);
return {
label,
connected,
isConnected,
isConnecting,
type,
mode,
};