diff --git a/src/components/graph/TransformPane.spec.ts b/src/components/graph/TransformPane.spec.ts index 79c494a38..acfa172ee 100644 --- a/src/components/graph/TransformPane.spec.ts +++ b/src/components/graph/TransformPane.spec.ts @@ -347,25 +347,4 @@ describe('TransformPane', () => { expect(wrapper.find('[data-node-id="test"]').exists()).toBe(true) }) }) - - describe('viewport prop handling', () => { - it('should handle missing viewport prop', async () => { - wrapper = mount(TransformPane, { - props: { - canvas: mockCanvas - } - }) - - // Should not crash when viewport is undefined - expect(wrapper.exists()).toBe(true) - - expect(wrapper.text()).toContain('800x600') - - await wrapper.setProps({ - viewport: { width: 1920, height: 1080 } - }) - - expect(wrapper.text()).toContain('1920x1080') - }) - }) }) diff --git a/src/components/graph/TransformPane.vue b/src/components/graph/TransformPane.vue index 2ebed99fb..266dd0569 100644 --- a/src/components/graph/TransformPane.vue +++ b/src/components/graph/TransformPane.vue @@ -20,7 +20,6 @@ import { LGraphCanvas } from '@/lib/litegraph/src/litegraph' interface TransformPaneProps { canvas?: LGraphCanvas - viewport?: { width: number; height: number } } const props = defineProps()