ISSUE-053 - Placed TimingBoard into the video feed element. But the scaling is messing with the clip path because the clip path values do not follow the scale correctly.
The issue is, say our scale is 50%. A PositionFlag on the TimingBoard is normally 32x32px in size. That means that the size of the actual PositionFlag while scaled is 16x16. The WipeTransition component takes the effective size of its child element using the useMeasure() hook. So it sees the size is 16x16, thus, when the wipe is set to visible its clip dimensions on the opposite and adjacent points of the triangle are 16px away from origin. But because we're scaled at 50% that clip path effectively becomes 8px. The clip path is doubly scaled. As a result I'm seeing white squares in the corner of the PositionFlag component. I think I might be able to solve this by using simple division to express the values of the clip path in percentages. Or I'll find a way to avoid the double scaling issue.
This commit is contained in:
1 parent
d083df7245
commit
b48579ac54
8 files changed
+28
-27
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { MockupBlock } from "../../Common/MockupBlock.styled";
|
||||
import VideoFeed from "../VideoFeed/VideoFeed";
|
||||
import { LayoutGrid, LayoutGridItem } from "../../Common/LayoutGrid.styled";
|
||||
import { TimingTowerPrototypeControls } from "../../Workspaces/PrototypingControls/TimingTowerPrototype";
|
||||
|
||||
type LayoutProps = {
|
||||
headerHeight?: number,
|
||||
@@ -33,9 +34,7 @@ export function Layout({ headerHeight }: LayoutProps) {
|
||||
</LayoutGridItem>
|
||||
|
||||
<LayoutGridItem column={2} row={7} columnSpan={5} rowSpan={4}>
|
||||
<MockupBlock
|
||||
color="#4d828b"
|
||||
>Broadcast Director UI</MockupBlock>
|
||||
<TimingTowerPrototypeControls />
|
||||
</LayoutGridItem>
|
||||
</LayoutGrid>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user