mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 17:52:16 +00:00
remove all unused (knip pass)
This commit is contained in:
@@ -1,31 +1,3 @@
|
||||
// Simple mock objects for testing Vue node components
|
||||
export function createMockWidget(overrides: any = {}) {
|
||||
return {
|
||||
name: 'test_widget',
|
||||
type: 'number',
|
||||
value: 0,
|
||||
options: {},
|
||||
callback: null,
|
||||
...overrides
|
||||
}
|
||||
}
|
||||
|
||||
// Create mock VueNodeData for testing
|
||||
export function createMockVueNodeData(overrides: any = {}) {
|
||||
return {
|
||||
id: 'node-1',
|
||||
type: 'TestNode',
|
||||
title: 'Test Node',
|
||||
mode: 0,
|
||||
selected: false,
|
||||
executing: false,
|
||||
widgets: [],
|
||||
inputs: [],
|
||||
outputs: [],
|
||||
...overrides
|
||||
}
|
||||
}
|
||||
|
||||
// Create a mock canvas context for transform testing
|
||||
export function createMockCanvasContext() {
|
||||
return {
|
||||
@@ -64,13 +36,3 @@ export function createBounds(
|
||||
height
|
||||
}
|
||||
}
|
||||
|
||||
// Helper to create a position
|
||||
export function createPosition(x: number, y: number) {
|
||||
return { x, y }
|
||||
}
|
||||
|
||||
// Helper to create a size
|
||||
export function createSize(width: number, height: number) {
|
||||
return { width, height }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user