Files
test/src/domain/data/workspaces.ts
T
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

55 lines
1.6 KiB
TypeScript

import { ReactNode } from "react";
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,
};
export const workspaces: WorkspaceObject = {
chyronDriver: {
name: "Chyron Driver",
overlayIds: [
"chyron-driver-medium-full-ham.png",
"chyron-driver-medium-full-alo.png",
"chyron-driver-medium-full-lec.png",
"chyron-driver-medium-full-rai.png",
"chyron-driver-medium-full-vet.png",
"chyron-driver-medium-full-per.png",
"chyron-driver-medium-full-msc.png",
"chyron-driver-medium-full-gas-weird.png",
"chyron-driver-medium-full-nor-weird.png",
"chyron-driver-medium-full-lat-no-pos.png",
"chyron-driver-medium-op1-ham.png",
"chyron-driver-medium-op2-ham.png",
"chyron-driver-large-np-tsu.png",
"chyron-driver-large-dnf-ver.png",
],
previewWindowDimensions: {
width: 750,
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;
}
}