Commit Graph
7 Commits
Author SHA1 Message Date
Kyle Geib 58da0e4895 ISSUE-053 - Placed Chyrons on video feed.
Adjusted the method that placement is determined. It didn't make much sense to define Placement in state, so I've moved it to the central theme object instead.
I also took the time to support +10 laps and minutes with a special xScale setting for the TimingTowerRows.
2022-03-17 08:56:55 -04:00
Kyle Geib a11f5b8eb6 ISSUE-053 - To avoid messing with code that already works I dropped in a function-function that will convert pixel values to percent values. This fix adds a little bit of overhead, I guess, but it works without munging up any clean looking code. 2022-03-15 14:13:29 -05:00
Kyle Geib b48579ac54 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.
2022-03-15 13:14:20 -05:00
Kyle Geib 02132bdbe2 ISSUE-005 - Initial work commit. Have some basic routing done and some mocked-up design of how the pay may look.
Made improvements to the LayoutGrid component, supporting richer definition of grid columns and rows.
2022-01-06 18:40:59 -05:00
Kyle Geib b4ea27e8c6 ISSUE-004 - Saving progress. Have two options for image display.
BackgroundImage uses <img> and can be centered with VideoFeedFrame, but cannot be shrunk when the window becomes narrow.
BackgroundImageDiv uses div and a background image property, but cannot be centered with VideoFeedFrame.
2021-12-21 21:17:38 -05:00
Kyle Geib 4d35b57a77 ISSUE-001 - Have tool page constructed with grid and added some basic scrolling rules for minimum UI size requirements. 2021-12-20 16:49:49 -05:00
Kyle Geib c3b268da61 ISSUE-001 - Playing around quite a bit. Not sure I've figured out a method of constructing the tool page I'm happy with here. Want to take a different path and see what I can do. 2021-12-20 15:45:53 -05:00