Skip to content

Commit c66c1ba

Browse files
actions-userDrJKL
authored andcommitted
[automated] Apply ESLint and Oxfmt fixes
1 parent 4eb56db commit c66c1ba

3 files changed

Lines changed: 37 additions & 26 deletions

File tree

src/renderer/core/canvas/litegraph/notifyLayoutChanges.test.ts

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ describe('notifyLayoutChanges', () => {
6363
height: 200
6464
})
6565
} else {
66-
layoutStore.batchUpdateNodeBounds(graph.rootGraph.id, [
67-
{
68-
nodeId: node.id,
69-
bounds: { x: 0, y: 0, width: 300, height: 200 }
70-
}
71-
], { source: LayoutSource.Vue })
66+
layoutStore.batchUpdateNodeBounds(
67+
graph.rootGraph.id,
68+
[
69+
{
70+
nodeId: node.id,
71+
bounds: { x: 0, y: 0, width: 300, height: 200 }
72+
}
73+
],
74+
{ source: LayoutSource.Vue }
75+
)
7276
}
7377
await vi.waitFor(() => expect(onResize).toHaveBeenCalled())
7478
}
@@ -86,17 +90,21 @@ describe('notifyLayoutChanges', () => {
8690
).value
8791
if (!layout) throw new Error('Expected registered node layout')
8892

89-
layoutStore.batchUpdateNodeBounds(graph.rootGraph.id, [
90-
{
91-
nodeId: node.id,
92-
bounds: {
93-
x: 50,
94-
y: 60,
95-
width: layout.size.width,
96-
height: layout.size.height
93+
layoutStore.batchUpdateNodeBounds(
94+
graph.rootGraph.id,
95+
[
96+
{
97+
nodeId: node.id,
98+
bounds: {
99+
x: 50,
100+
y: 60,
101+
width: layout.size.width,
102+
height: layout.size.height
103+
}
97104
}
98-
}
99-
], { source: LayoutSource.Vue })
105+
],
106+
{ source: LayoutSource.Vue }
107+
)
100108
await vi.waitFor(() => expect(setDirtyCalled()).toBe(true))
101109

102110
expect(onResize).not.toHaveBeenCalled()

src/renderer/core/layout/operations/layoutMutations.test.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,22 @@ describe('missing node mutations', () => {
109109
{
110110
name: 'moveNode',
111111
mutate: () =>
112-
useLayoutMutations(LayoutSource.Canvas).moveNode(
113-
GRAPH,
114-
MISSING_NODE,
115-
{ x: 1, y: 2 }
116-
)
112+
useLayoutMutations(LayoutSource.Canvas).moveNode(GRAPH, MISSING_NODE, {
113+
x: 1,
114+
y: 2
115+
})
117116
},
118117
{
119118
name: 'resizeNode',
120119
mutate: () =>
121-
useLayoutMutations(LayoutSource.Canvas).resizeNode(GRAPH, MISSING_NODE, {
122-
width: 3,
123-
height: 4
124-
})
120+
useLayoutMutations(LayoutSource.Canvas).resizeNode(
121+
GRAPH,
122+
MISSING_NODE,
123+
{
124+
width: 3,
125+
height: 4
126+
}
127+
)
125128
},
126129
{
127130
name: 'setNodeZIndex',

src/renderer/core/layout/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ interface OperationMeta {
111111
/** Timestamp for ordering operations */
112112
timestamp: number
113113
/** Actor who performed the operation (for CRDT) */
114-
actor?: string /** Source system that initiated the operation */
114+
actor?: string /** Source system that initiated the operation */
115115
source: LayoutSource
116116
graphId: UUID
117117
/** Operation type discriminator */

0 commit comments

Comments
 (0)