Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[refactor] rename moveTo to moveNodeTo in useNodeLayout - addresses r…
…eview feedback

Co-authored-by: DrJKL <[email protected]>
  • Loading branch information
christian-byrne and DrJKL committed Oct 23, 2025
commit b3fcf8adddc08dee97a9d854884ad1b20a8c2fb1
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,7 @@ onErrorCaptured((error) => {
return false // Prevent error propagation
})

const {
position,
size,
zIndex,
moveTo: moveNodeTo
} = useNodeLayout(() => nodeData.id)
const { position, size, zIndex, moveNodeTo } = useNodeLayout(() => nodeData.id)
const { pointerHandlers, isDragging, dragStyle } = useNodePointerInteractions(
() => nodeData,
handleNodeSelect
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/extensions/vueNodes/layout/useNodeLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export function useNodeLayout(nodeIdMaybe: MaybeRefOrGetter<string>) {
/**
* Update node position directly (without drag)
*/
function moveTo(position: Point) {
function moveNodeTo(position: Point) {
mutations.setSource(LayoutSource.Vue)
mutations.moveNode(nodeId, position)
}
Expand All @@ -269,7 +269,7 @@ export function useNodeLayout(nodeIdMaybe: MaybeRefOrGetter<string>) {
isDragging,

// Mutations
moveTo,
moveNodeTo,

// Drag handlers
startDrag,
Expand Down