Commit Graph
71 Commits
Author SHA1 Message Date
Kyle Geib 8d8eaf29cf ISSUE-043 - Created a decent and simple solution for spacing pairs of medium chyrons just using a flexbox div.
Also took the time to crop some overlay images.
2022-02-03 11:20:19 -05:00
Kyle Geib bf121aa032 ISSUE-018 - Added pixel size indicator for overlay images.
Added new global rule for touch-action so that I don't need to keep setting it up for elements that utilize use-gesture.
2022-02-02 17:27:54 -05:00
Kyle Geib 8144622407 ISSUE-041 - Portraits now working!
Quite happy with the results. Was far less fiddly than I was expecting.
One interesting thing I had to do was introduce a new BaseContainer div component so that I could let the portraits overflow the BaseBackground component (by being put in a parent component with no overflow rules).
2022-02-02 15:24:58 -05:00
Kyle Geib 72b6fc60ef ISSUE-041 - Added front-facing driver portraits
Covered all 2021 drivers. I mocked up portraits for Albon and Zhou in 2022. I also have 2022 Bottas (Alfa) and Russell (Merc) waiting elsewhere.
Added Mazepin portrait overlay image as well to work from.
2022-02-02 15:22:16 -05:00
Kyle Geib 8eeae7714f Adhoc - Fix case for redBull.svg. 2022-02-01 21:25:08 -05:00
Kyle Geib b39d005e23 ISSUE-035 - Styled the Team flags individually.
Went through a lot of trouble to style the team flags to be wider than the country flags. This called for a troubling amount of ternary statements in the angled flag components.
I'm content with the results.
2022-02-01 18:24:48 -05:00
Kyle Geib bd1892ab17 ISSUE-035 - Took some work but have proper type checking for AngledFlag props and have updated everything necessary.
Styling is still to come. Only have Ferrari working.
I've discovered that the team flags are wider than the country flags. So I'll be tackling that necessary change in the next commit before dealing with styling.
2022-02-01 12:57:40 -05:00
Kyle Geib 57647f6488 ISSUE-035 - Added SVG files for each team, minified to save space. 2022-02-01 11:50:49 -05:00
Kyle Geib 064d684fa8 ISSUE-035 - Added team flag overlays.
Added new workspace for team flags and adjusted custom workspace and tools to allow for work.
2022-01-31 19:03:23 -05:00
Kyle Geib 0625361a18 ISSUE-032 - Have Chyron prototyping controls configured and hooked up.
Support for double driver chyrons.
Serious refactoring of the BroadcastGraphics states.
Simplification and improvements to how the chyron states work (I was using interfaces in a way that was incompatible with reality and have fixed it).
2022-01-31 18:24:25 -05:00
Kyle Geib d5b653da9d ISSUE-032 - Making some organizational changes to how the Chyron director controls are built. Have more work to perform but making a checkpoint commit to keep track of my work so far. 2022-01-31 12:44:12 -05:00
Kyle Geib 5e7940a151 ISSUE-032 - Progress checkpoint.
Have a lot of the scaffolding in place. Next step is to make the Chyron controls actually work.
Dramatic re-thinking of the chyron state definitions.
Lots of goofy type following tricks in broadcastGraphics.ts.
2022-01-28 17:53:50 -05:00
Kyle Geib 536d81fb61 ISSUE-038 - Switched SlotSelector from using strings for onChange() to simply returning the selected index.
As well as just being a little bit better this was necessary to support specifically typed values. We were always going to be selecting between strictly strings. This should allow us to be more flexible.
Also, to avoid a minor bug with switching the Overlay tool with it being invisible SlotSelector now supports being disabled.
2022-01-28 14:36:50 -05:00
Kyle Geib d9b6f6fbfa ISSUE-039 - Simplified MEX and ESP flags, saving 130 and 50kb, respectively.
Also removed the non-angled flags as, well, I don't currently have a use for them and might never.
2022-01-28 10:58:48 -05:00
Kyle Geib ae4a7e7818 ISSUE-032 - Adjusted my ReactRouter solution to drop the need for an interim path element. I am also now using WorkspacesRoute for more things, which I think is appropriate. 2022-01-28 10:12:12 -05:00
Kyle Geib f9f7b739ee ISSUE-032 - Found a fix to the Hooks rendering error by using ReactRouter. 2022-01-28 09:16:50 -05:00
Kyle Geib e676c7a95a ISSUE-032 - Progress checkpoint. Have a working "selectedCars" modifying component named GridSelection.
Have a work-in-progress AngledFlag prototype controller that relying on a central state property in the Workspaces portion of the store. It's a bit hacky. But it made me realize that my desire to do silly things with extending interfaces won't work that way I'm going to need to rely on them in the future. I cannot demand more specific data from a state that uses a less specific interface. Rookie mistake.
I am also at the mercy of a design flaw when it comes to using React Hooks: The way I organize Workspaces makes React very angry. When I switch between workspaces that rely on hooks to render correctly the whole thing explodes.

I believe I need to use components directly to correctly unmount - instead of the very hacky switch statement I have in the form of fetchBroadcastGraphic().

I might need to try seeing if ReactRouter can provide my solution.
2022-01-27 17:47:49 -05:00
Kyle Geib 5d009a3d70 ISSUE-032 - Defined a great number of new state types for use with the race event's state, the broadcast director's controls, and the broadcast graphics states.
Taking a second to make a commit to save my progress so far.
2022-01-27 13:39:52 -05:00
Kyle Geib b6cac82042 ISSUE-031 - Almost forgot (I closed issue and merged the branch too early): Here's the important improvement that switches to using a clipped image div for the AngledFlag. There is now a carefully sized "bottom" flag that gives us a simulated parallax look. There is a simple xOffset that should allow us to animate two flags sliding over each other in the future.
Updated the use of "National" to "Country" and renamed some directories.
Added a second larger AngledFlag to the Workspace (because changes that affect the larger size might be hidden by a smaller flag).
2022-01-25 19:43:32 -05:00
Kyle Geib 1dc8e8bc15 ISSUE-031 - Improvements to the look of National Flag. Adjusted the sizing and spacing to better support larger chyron heights. 2022-01-25 13:32:31 -05:00
Kyle Geib 562667bdd7 ISSUE-031 - Finished creating DriverNumber styles.
Added missing flag for Poland (both original and 2:1 "angled" style).
Added correct 2:1 flags for Mexico and Monaco.
More overlay images (to help with driver number coloring).
2022-01-24 17:51:35 -05:00
Kyle Geib 4a9c124832 ISSUE-031 - Big update. AngledFlag component is born!
It's not 100% complete - I still need to add the second, slightly offset sub flag that goes beneath the main flag, creating a sort of refractive-glass/parallax effect.

Needed to add a new workspace. Thankfully it's pretty easy to add a new workspace. So, kinda nice.

Did a lot of work making 2:1 versions of each flag in vector. Was a bit of a pain in the ass.

Renamed a prop for ProgressSlider, "onBarColor" because prefixing a prop with "on" is special for React and it gets upset and spits out an error.
2022-01-24 16:15:43 -05:00
Kyle Geib 55e07a444e ISSUE-031 - Little fix to prevent locking overlay images to the bleedover areas when loading images that are larger than the previous image. 2022-01-21 18:39:20 -05:00
Kyle Geib dd7f49108a ISSUE-031 - Added new overlay images with some variations.
Added a great new feature: an active outline styling rule. When dragging the overlay image around there's now a red outline to help match edges that are otherwise black-on-black; making them very difficult to align.
2022-01-21 18:38:03 -05:00
Kyle Geib a7ca0aecb0 ISSUE-031 - Refactor improvements to ChyronDriver component. Relying less on absolute positioning and hard-coded values.
I realized that there are some variations of the driver chyron. Such as the one without a position flag.
2022-01-21 18:21:08 -05:00
Kyle Geib db14bf902f ISSUE-031 - Progress checkpoint.
A lot of work going on here.
* Moved WorkspaceControls component to a new sub directory
* Renamed overlay images
* Started a static ChyronDriverBasic component (using Hamilton as an example)
* Created a fancy DriverNumber rendering system
* Defined DriverNumber style for Mercedes and no one else yet
* A bunch of new states for the grid: cars, drivers, teams, etc
* Defined a bunch of data for the drivers and teams
* Created another string utility function to generate repeat strings; unit tests included
2022-01-21 14:14:45 -05:00
Kyle Geib 1c38137480 Adhoc - Cleanup.
Removed a console.log() I left behind. Whoops.
2022-01-20 13:25:23 -05:00
Kyle Geib 65a9f523d4 ISSUE-021 - Added color customization props. Nice disabled look.
Okay. I'm content with what I've made. It's not really up to the level of "oh man, package this up as a library and put it out on NPM!" but it works OK for my specific situation.
2022-01-19 17:37:05 -05:00
Kyle Geib d4f8e9bffe ISSUE-021 - Percentage indicator has been added. Slider can now be disabled.
I ran into too many issues with the percentage value being buggy when the overlay wasn't visible.
I'm still running into issues where useMeasure isn't populating fast enough and the left prop isn't being set correctly.
2022-01-19 16:55:16 -05:00
Kyle Geib daae51e06d ISSUE-021 - Simplified the ProgressSlider, dropping the container component and instead letting the entire progress bar be dragged. 2022-01-18 16:49:45 -05:00
Kyle Geib 8170ba3f86 ISSUE-021 - Discovered the animated() wrapper solution to using Styled-Components that solves some problems.
Currently working on making the draggable activation area larger.
2022-01-18 15:42:43 -05:00
Kyle Geib 9925eae4cc ISSUE-021 - Another progress commit. Have issues with combining spring animated components and Styled-Components. 2022-01-18 15:18:39 -05:00
Kyle Geib 97c5752102 ISSUE-021 - Progress commit. Have a rough version of ProgressSlider component done. Still needs some work. 2022-01-18 14:53:52 -05:00
Kyle Geib 83dec9d782 ISSUE-028 - Improved the spacing of Toggle component. Slight reorganization to the OverlayControl component. 2022-01-18 11:50:02 -05:00
Kyle Geib 3fce5d05b9 ISSUE-020 - Transitions in place and working.
Also fixed an issue with eslinter that was reporting some incorrect unused var warnings. Removed some ignore rules with it being fixed.
2022-01-17 13:26:38 -05:00
Kyle Geib 9b3ae2dae2 ISSUE-020 - Making a checkpoint in my work. SlotSelector written a little better. Animation work coming next. 2022-01-14 17:39:48 -05:00
Kyle Geib 35ca424dd6 ISSUE-020 - Plain, static SlotSelector component defined. Not too fancy looking.
To save space and reduce redundant data I created a utility function called findPrefixCount() and wrote a suite of tests for it.
2022-01-14 17:16:27 -05:00
Kyle Geib df868f1126 ISSUE-025 - Partial failure. Realized that maybe the only way to get the dimensions of the loaded images is to measure them and include them with the file name definitions. To load an image at the center of the element would require writing information at the same time we read it. It's not a race condition; it's more like the chicken and the egg.
I'm sure, if I really wanted to, I could find a two step process of loading at 0 opacity, finding the dimensions, and then moving it to the center and revealing it. But I don't have the desire.

Still. I went ahead and added workspace properties to the central state and read from them when it makes sense.
2022-01-14 15:17:23 -05:00
Kyle Geib 1ca2137a5b ISSUE-020 - Mocked up new slot selector and (since it'll happen later) opacity controls. 2022-01-14 14:49:19 -05:00
Kyle Geib 399b904f07 ISSUE-022 - Well. That just works. Awesome. 2022-01-14 14:14:13 -05:00
Kyle Geib f51df58d17 ISSUE-017 - Implemented image overlay solution that I'm happy with.
Shout-out to Blair Wadman for revealing a method to display an image at 1:1 pixel scale and having the div that houses it automatically match that size without any fuss. (Here: https://befused.com/css/flexbox-prevent-image-shrinking/).
2022-01-14 14:03:56 -05:00
Kyle Geib 7999f15c20 ISSUE-009 - Alternative useDimensions added.
Turns out... they're not as reliable. In testing I had the menu's height regularly fail to provide its height data.
2022-01-13 16:21:23 -05:00
Kyle Geib aba5cc20be ISSUE-017 - Implemented drag bounds that consider the dimensions of dragged element.
This is bugged as the resize observer I'm using doesn't update itself when I reveal the OverlayItem from hiding.
2022-01-13 15:00:21 -05:00
Kyle Geib 861d702a27 ISSUE-017 - Overlay state is streamlined.
Total change to workspaces. Now an object instead of a list.
Utilizing workspace overlays list - prototype currently colors the mock item.
Reset overlay on workspace change.
Improved combined dragging/transition element behavior.
2022-01-13 14:16:09 -05:00
Kyle Geib a6a5eb7751 ISSUE-017 - Figured out how to allow for Transition and Dragging on the same element.
The secret? Don't! Use another throw-away div and put it around the draggable div.
Also adopted animated.div into the Styled-Component. Really cool how it just works.
2022-01-12 14:52:38 -05:00
Kyle Geib 9541306894 ISSUE-017 - Basic drag functionality added.
I cannot combine it with transition handling any top/left transitions.
2022-01-12 14:43:04 -05:00
Kyle Geib 1ba5e99532 ISSUE-017 - Basic animated mounting added. 2022-01-12 13:07:33 -05:00
Kyle Geib 61b60b9819 ISSUE-017 - Improvements to a number of things.
* Moved FullScreenContainer in WorkspacesRoute to make scrolling much better. Seriously, 100% works better.
* Simplified dimensions state actions to a shared one.
* Abandoned the noisy and useless "AnimatedBG" type.
* Added workspace dimensions state (I'll need this later to prevent off-screen dragging).
* Placed OverlayDisplay component in PreviewWindow, where it makes more sense. I'll still allow it to roam around outside of it, though.
* Renamed "menu" dimensions to "mainMenu".
* Improved initNewOverlayItem action to support setting visible.
* Correct handling of showing the OverlayItemContainer.
* Simplified the initial position of a new OverlayItem to a simple initial value instead of setting it in the middle of provided dimensions.
* Made PreviewWindow `position: relative` to allow absolute positioning of OverlayItem from it.
* Added importHelpers to tsconfig because VSCode was complaining about it.
2022-01-11 19:12:21 -05:00
Kyle Geib 506491eed9 ISSUE-017 - Initial work on the Overlay Tool.
Have basic state management in place and a number of simple prototypes in place to practice floating a div above the interface.
2022-01-11 17:12:05 -05:00
Kyle Geib dd4df61fec ISSUE-005 - Added indicator "I" and "O", emulating an accessibility option found in iOS.
Added a subtle background color transition.
Gave up on the idea of giving the toggle circle a shadow (not worth the hassle). But if I did decide to do that, I'd be able to animate the toggle circle fairly easily, I think.
2022-01-10 18:11:54 -05:00