MCPcopy
hub / github.com/CapSoftware/Cap / queueConfig

Function queueConfig

apps/desktop/src/routes/editor/Editor.tsx:1043–1060  ·  view source on GitHub ↗
(bounds: CropBounds | null)

Source from the content-addressed store, hash-verified

1041 };
1042
1043 const queueConfig = (bounds: CropBounds | null) => {
1044 const config = getPreviewProjectConfig(project, editorState);
1045 if (bounds) {
1046 config.background = {
1047 ...config.background,
1048 crop: {
1049 position: { x: bounds.x, y: bounds.y },
1050 size: { x: bounds.width, y: bounds.height },
1051 },
1052 };
1053 }
1054 pendingConfig = {
1055 config,
1056 frameNumber: currentFrameNumber(),
1057 resolutionBase: previewResolutionBase(),
1058 };
1059 void flushConfig();
1060 };
1061
1062 const throttledConfig = throttle(queueConfig, 1000 / FPS);
1063 const trailingConfig = debounce(queueConfig, 1000 / FPS + 16);

Callers 1

DialogsFunction · 0.85

Calls 4

getPreviewProjectConfigFunction · 0.85
currentFrameNumberFunction · 0.85
previewResolutionBaseFunction · 0.85
flushConfigFunction · 0.85

Tested by

no test coverage detected