Commit Graph
165 Commits
Author SHA1 Message Date
Kyle Geib b7d1b23dff ISSUE-053 - Added white F1 logo svg.
Minimized red F1 logo svg.
2022-03-16 17:25:12 -04:00
Kyle Geib 47ae67a5a8 ISSUE-053 - Minor improvement to clipConvertToPercent(). 2022-03-15 14:16:18 -05: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 d083df7245 ISSUE-053 - Have worked out the scaled video feed element.
Didn't have to do anything to position the element, which made me pretty happy. I assumed I'd have to do some annoying amount of finagling to get it to position correctly in the frame. It just worked. Lucky me.
2022-03-14 18:23:18 -05:00
Kyle Geib 40292620d6 Adhoc - Fix breaking issue.
Don't know why this error never appeared in the 068 branch while I was working on it. But here you go. Gotta fix this error.
2022-03-14 16:57:29 -05:00
Kyle Geib db8c1fb04c Merge pull request #74 from TiE23/ISSUE-068
ISSUE-068 - Now Styled-Components can self-label.
2022-03-14 12:10:38 -05:00
Kyle Geib f4e6d487da Adhoc - Fix two clear mistakes in README 2022-03-14 12:09:45 -05:00
Kyle Geib 3b165c42e9 ISSUE-068 - Now Styled-Components can self-label.
Updated babel-plugin-styled-components to a new version that works.
Added extra option to macros settings to not bother showing the file names.
2022-03-14 12:02:12 -05:00
Kyle Geib 9ccaa5b3d6 Merge pull request #73 from TiE23/ISSUE-069
Issue 069
2022-03-14 09:28:16 -05:00
Kyle Geib 4bf471bd99 ISSUE-069 - FL wipe working. Big refactor of how the PositionFlag components work.
I flipped the way the wipe effect works. Originally there was the complicated problem of revealing a flag instantly and then wiping it away, requiring some delicate work with mounting and unmounting components. Instead it now works by always having a colored PositionFlag component in place and temporarily disappearing the normal PositionFlag (that is on top of it) using a transition-free opacity switch that lets the WipeTransition work reliably. This makes for fewer states and conditional renders.
Added textColor and bgColor props to the PositionFlag component for flexibility.
2022-03-14 08:49:14 -05:00
Kyle Geib 0e8ef14dcd ISSUE-069 - Found and corrected alignment issue. 2022-03-14 07:18:59 -05:00
Kyle Geib de03f24b70 ISSUE-069 - Toast FL gem implemented.
Appears to be a possible alignment issue with the PosFlag component - I think a margin above the component is missing. Will look into it.
2022-03-13 15:02:39 -05:00
Kyle Geib aa0e20e8ce Merge pull request #72 from TiE23/ISSUE-062
Issue 062
2022-03-10 20:20:00 -05:00
Kyle Geib 1af134b9a4 ISSUE-062 - Lap indicator now looking good and animating well.
New scheduled lap event state.
New alternative white color that matches what's seen in reality.
New overlay for wide lap indicator.
2022-03-10 20:19:27 -05:00
Kyle Geib f1f61ed21f Adhoc - Updates to README using feedback provided by Fran Pi. 2022-03-08 17:04:10 -05:00
Kyle Geib d2e4afb975 ISSUE-062 - Expanding status indicator in place.
Moved some dimensions data to the themes object for re-use between components.
2022-03-08 17:03:09 -05:00
Kyle Geib 28e0e7f3d4 ISSUE-062 - Basic base in place with no real interactivity or anything like that.
Saving progress for the day. It's dinner time!
2022-03-07 18:28:49 -05:00
Kyle Geib c42f64f43c Merge pull request #66 from TiE23/ISSUE-063
ISSUE-063 - Wrote new README. First draft without images or video whi…
2022-03-07 16:27:29 -05:00
Kyle Geib 02ac1d3ec6 ISSUE-063 - Wrote new README. First draft without images or video which I'll add later. 2022-03-07 16:26:42 -05:00
Kyle Geib d06df184d8 Merge pull request #65 from TiE23/ISSUE-058
Issue 058
2022-03-07 13:13:53 -05:00
Kyle Geib 061a7e0a0d ISSUE-058 - Added basic TimingTower hidden setting that simply fades the whole thing in/out.
Don't think I have the desire to animate the mounting process right now.
2022-03-07 11:56:26 -05:00
Kyle Geib 9f4e564a74 ISSUE-058 - New opening/closing transition props feature added. Last name wiping added.
Now we can define separate opening and closing transition settings as well as common (both ways) transition props.
This is all pretty cool.
Timing for open/close animations and transitions are looking better and more mature.
2022-03-07 11:50:05 -05:00
Kyle Geib a38af0dec4 ISSUE-058 - First attempt at a wipe effect for the full last name display.
Discovered a limitation with WipeTransition and added a new optional prop for manual dimension definition.
Going to attempt using a mask image next instead as the animation fades the name in, not using a direct clip.
2022-03-04 18:02:45 -05:00
Kyle Geib b9e3447ff5 ISSUE-058 - Fixed glitched corner rounding transition bug.
Added fade-in/fade-out transition for interval/leader text data.
2022-03-04 16:21:14 -05:00
Kyle Geib 1cccc7d094 ISSUE-058 - Basic mode switching implemented.
Still need to fade-in/fade-out the interval numbers.
Also need to look into wipe-in fade animations for full names. Will see what I can do...
2022-03-03 18:56:07 -05:00
Kyle Geib 90c8b78a20 Merge pull request #64 from TiE23/ISSUE-057
Issue 057
2022-03-03 15:39:42 -05:00
Kyle Geib cdf8d2b332 ISSUE-057 - Added outline effect to position changes left half side.
Refactored outlineClipPath() to support outlines that have been offset to be inside.
Added animation duration configuration to the TimingBoard workspace.
2022-03-03 15:38:59 -05:00
Kyle Geib e88bd614d3 ISSUE-057 - Added color and wipe effect to position flag on timing tower.
Also adjusted timing for transitions to match what is shown on broadcast TV.
2022-03-03 10:40:03 -05:00
Kyle Geib 759e788af4 ISSUE-057 - Refactor: Separated out the Wipe functionality from VenetianBlindsTransition so I can re-use it elsewhere as WipeTransition. 2022-03-03 08:20:19 -05:00
Kyle Geib 49dd08cc13 ISSUE-057 - Refactor: Switched from buildRow() to a dedicated component named TimingTowerRow.
This is both simply a better way of going about it and will allow me to use hooks to track position changes and allow for new non-CSS animations.
2022-03-02 09:57:07 -05:00
Kyle Geib edeba37c6d ISSUE-057 - Progress on building prototyping tools.
New reducers for event slice that allow increasing of car distances, awarding fastest laps, and changing the statuses of cars.
Updating more types to enums, which are just better in most cases as far as I can tell.
2022-02-22 19:12:29 -05:00
Kyle Geib 0d41fbc59a Merge pull request #61 from TiE23/ISSUE-054
Issue 054
2022-02-22 13:58:10 -05:00
Kyle Geib 660b9e6651 ISSUE-054 - Last minute clean-up. 2022-02-22 13:57:38 -05:00
Kyle Geib 6e80ed056f ISSUE-054 - Added support for DidNotStart cars not taking up any space on the timing tower.
Fixed the bottom rounding functionality between running and retired cars in a reliable way.
Relying more on car.position in the Timing Tower, as it should be.
2022-02-22 13:37:45 -05:00
Kyle Geib c9388b86fc ISSUE-054 - Basic animating of the Timing Tower added.
Provided basic controls to switch between.
Still need to properly round the bottom rows of both the running and retired cars.
2022-02-22 11:53:14 -05:00
Kyle Geib 00d2c671cb ISSUE-054 - Added +# LAP indicators to Leader mode.
Added state for tracking the leader of the race since its something that is needed quite often.
2022-02-18 15:12:16 -05:00
Kyle Geib 35ac571d90 ISSUE-054 - Added fastest lap gem.
Made the timing tower row height into a centralized piece of data in the theme.ts file.
2022-02-18 12:22:33 -05:00
Kyle Geib 54878b8cb2 ISSUE-054 - Merged state.d.ts and state.ts for simplicity's sake.
Added new CarNotice and TyreCompound enums and data pieces.
2022-02-18 11:58:45 -05:00
Kyle Geib 2ad7fdd24c ISSUE-054 - Added Team Gems to TimingTower.
Finer calibration to row sizing (not 37px or 36px high, but 36.5px!) and position flag font size.
2022-02-17 17:25:50 -05:00
Kyle Geib 39bddc4cf1 ISSUE-054 - Added bleedover prop to workspace configurations. 2022-02-17 17:22:32 -05:00
Kyle Geib 2a92ee91cb ISSUE-054 - Minor improvements and new tests.
Added limit arg to formatTime().
Wrote unit tests for formatTime().
2022-02-16 18:58:36 -05:00
Kyle Geib 7507868dce ISSUE-054 - Have static timing display mostly figured out.
Some subtle scaling was necessary to accomplish the proper spacing.
2022-02-16 17:20:08 -05:00
Kyle Geib 22ebab1101 ISSUE-054 - Initial work of building the Timing Board. Working so far only have work for the Timing Tower.
Timing Board is the combination of all elements on the left side of the screen, including the Status Indicator component (not written yet) that is visible whenever there are cars on track.
2022-02-16 14:36:27 -05:00
Kyle Geib 8bf413ba31 Merge pull request #51 from TiE23/Chyron_Body
Chyron body
2022-02-14 14:00:42 -05:00
Kyle Geib 284b0919d6 ISSUE-045 - Chyron Body - Done!
There ain't no way in hell I'm going to be able to convincingly animate the AngledFlag without spending maybe an entire week on it.
I would honestly want to re-do the entire AngledFlag component from scratch before trying to animate it. The combination of rules and styles and all that is just too confusing to attempt right now. So, a basic slide- and fade-in I think is decent enough work.
2022-02-14 13:59:34 -05:00
Kyle Geib bab056394c ISSUE-045 - Chyron Body - Timing improvements. More comments. Small corrections. 2022-02-14 11:23:34 -05:00
Kyle Geib e6312f67e0 ISSUE-045 - Chyron Body - Added the outline to the chyron body.
It's not a perfect emulation (it fades out rather than runs out with a tail) but I'm very happy with it.
Also updated the wipe animation to take advantage of map().
2022-02-11 12:24:31 -05:00
Kyle Geib 462ea4852b ISSUE-045 - Chyron Body - Fixed and calibrated driver portrait venetian blinds transition.
Slight adjustment to the BaseBackground wipe. Added a new overlay image to help with it.
2022-02-11 09:42:04 -05:00
Kyle Geib 79b098af6c ISSUE-045 - Chyron Body - Added debugDurationMultiplier value that allows me to slow down animations in certain workspaces.
Made TeamName component more customizable with its timing. Now all animations in Chyron are configurable from outside of the styled-component definition.
New Debug option for ChyronContainer so that this animation modifier can never accidentally be active in the main broadcast view.
2022-02-10 19:12:18 -05:00