(bounds: CropBounds | null)
| 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); |
no test coverage detected