File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed
frontend/src/components/panels Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 533
533
y ={cursorTop }
534
534
/>
535
535
{/if }
536
- {#if ! $appWindow .viewportHolePunch }
537
- <div class ="viewport" on:pointerdown ={(e ) => canvasPointerDown (e )} bind:this ={viewport } data-viewport >
536
+ <div
537
+ class:viewport ={! $appWindow .viewportHolePunch }
538
+ class:viewport-transparent ={$appWindow .viewportHolePunch }
539
+ on:pointerdown ={(e ) => canvasPointerDown (e )}
540
+ bind:this ={viewport }
541
+ data-viewport
542
+ >
543
+ {#if ! $appWindow .viewportHolePunch }
538
544
<svg class ="artboards" style:width ={canvasWidthCSS } style:height ={canvasHeightCSS }>
539
545
{@html artworkSvg }
540
546
</svg >
541
- <div class ="text-input" style:width ={canvasWidthCSS } style:height ={canvasHeightCSS } style:pointer-events ={showTextInput ? " auto" : " " }>
542
- {#if showTextInput }
543
- <div bind:this ={textInput } style:transform ="matrix( {textInputMatrix })" on:scroll ={preventTextEditingScroll } />
544
- {/if }
545
- </div >
547
+ {/if }
548
+ <div class ="text-input" style:width ={canvasWidthCSS } style:height ={canvasHeightCSS } style:pointer-events ={showTextInput ? " auto" : " " }>
549
+ {#if showTextInput }
550
+ <div bind:this ={textInput } style:transform ="matrix( {textInputMatrix })" on:scroll ={preventTextEditingScroll } />
551
+ {/if }
552
+ </div >
553
+ {#if ! $appWindow .viewportHolePunch }
546
554
<canvas
547
555
class =" overlays"
548
556
width ={canvasWidthScaledRoundedToEven }
552
560
data-overlays-canvas
553
561
>
554
562
</canvas >
555
- </div >
556
- {/if }
563
+ {/if }
564
+ </div >
565
+
557
566
<div class ="graph-view" class:open ={$document .graphViewOverlayOpen } style:--fade-artwork ={` ${$document .fadeArtwork }% ` } data-graph >
558
567
<Graph />
559
568
</div >
757
766
758
767
.viewport {
759
768
background : var (--color-2-mildblack );
769
+ }
770
+
771
+ .viewport ,
772
+ .viewport-transparent {
760
773
width : 100% ;
761
774
height : 100% ;
762
775
// Allows the SVG to be placed at explicit integer values of width and height to prevent non-pixel-perfect SVG scaling
You can’t perform that action at this time.
0 commit comments