fix: respect clip frame during exports

This commit is contained in:
Arnošt Pleskot
2023-09-18 14:10:09 +02:00
parent 0c4d6fbe95
commit c8180308c2
3 changed files with 25 additions and 3 deletions

View File

@@ -366,6 +366,10 @@ const frameClip = (
renderConfig: StaticCanvasRenderConfig,
appState: StaticCanvasAppState,
) => {
if (!appState.frameRendering.clip) {
return;
}
context.translate(frame.x + appState.scrollX, frame.y + appState.scrollY);
context.beginPath();
if (context.roundRect && !renderConfig.isExporting) {