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.
This commit is contained in:
Kyle Geib committed 2022-01-24 16:15:43 -05:00
1 parent 55e07a444e
commit 4a9c124832
46 files changed
+1063 -70

No files matched your search

+12
View File
@@ -3,6 +3,7 @@ import { WorkspaceId, WorkspaceProperties } from "../../types/state";
// Broadcast Graphics
import { ChyronDriver } from "../../components/BroadcastGraphics/Chyrons/Driver";
import { AngledFlagWorkSpace } from "../../components/Workspaces/CustomWorkSpaces/AngledFlagWorkSpace";
type WorkspaceObject = {
[id: WorkspaceId]: WorkspaceProperties,
@@ -27,11 +28,22 @@ export const workspaces: WorkspaceObject = {
height: 200,
},
},
angledFlag: {
name: "Angled Flag",
overlayIds: [
"angled-flag-gbr.png",
],
previewWindowDimensions: {
width: 500,
height: 500,
},
},
};
export function fetchBroadcastGraphic(workspaceId: WorkspaceId): ReactNode {
switch(workspaceId) {
case "chyronDriver": return ChyronDriver();
case "angledFlag": return AngledFlagWorkSpace();
default: return null;
}
}