Spaces:
Runtime error
Runtime error
fix initial frame position
Browse filesFiles changed (2)
25 unmodified lines262728292930313233343545 unmodified lines818283818485868717 unmodified lines10510610710510810911011125 unmodified lines // Set a default value for presence const initialPresence: Presence = { cursor: null, frame: null, frame: { x: 1024, y: 1024 }, status: Status.dragging, currentPrompt: '' };45 unmodified lines
const datapayload = { data: [base64Crop, prompt, 0.75, 7.5, 35, 'patchmatch'] } };
const websocket = new WebSocket(PUBLIC_WS_INPAINTING); // websocket.onopen = async function (event) {17 unmodified lines break; case 'send_data': $loadingState = 'Sending Data'; websocket.send(JSON.stringify({...hashpayload, ...datapayload})); websocket.send(JSON.stringify({ ...hashpayload, ...datapayload })); break; case 'queue_full': $loadingState = 'Queue full';24 unmodified lines2526272829282930313224 unmodified lines let maskCtx: CanvasRenderingContext2D;
let position = { x: 768, y: 768 x: 1024, y: 1024 };
let frameElement: HTMLDivElement;frontend/src/lib/App.svelte+6-3
frontend/src/lib/PaintFrame.svelte+2-2