ISSUE-078 - Added RolexGem. Positioned and animated.
Also took some time to move a lot of timing properties from ChyronDriver and place them in the central theme.
This commit is contained in:
1 parent
3f1e3b0c54
commit
f8fd7e2147
10 files changed
+196
-50
No files matched your search
@@ -14,7 +14,7 @@ import {
|
||||
setChyronsOpenState,
|
||||
} from "../../../../features/broadcast/graphics/broadcastGraphicsSlice";
|
||||
import { flagModeList, getChyronModesList, getChyronSubModesList } from "../../../../domain/data/broadcastGraphics";
|
||||
import { BGChyronDriver, BGChyronMode, BGChyrons, BGChyronSubMode, Car, FlagMode, GridSpot } from "../../../../types/state";
|
||||
import { BGChyronDriver, BGChyronMode, BGChyrons, BGChyronSubMode, FlagMode, GridSpot } from "../../../../types/state";
|
||||
|
||||
import { SlotSelector } from "../../../Common/Inputs/SlotSelector";
|
||||
import { Button, CloseButton, OpenButton, Title } from "./styles";
|
||||
|
||||
@@ -22,6 +22,7 @@ export function ChyronContainer({ debug = false, placement = {} }: ChyronContain
|
||||
chyronData={chyrons.driver.primary}
|
||||
subMode={chyrons.subMode}
|
||||
openState={chyrons.openState}
|
||||
showRolex
|
||||
debugDurationMultiplier={debug ? debugDurationMultiplier : 1}
|
||||
/>
|
||||
);
|
||||
@@ -35,6 +36,7 @@ export function ChyronContainer({ debug = false, placement = {} }: ChyronContain
|
||||
chyronData={chyrons.driver.secondary}
|
||||
subMode={chyrons.subMode}
|
||||
openState={chyrons.openState}
|
||||
showRolex={false}
|
||||
debugDurationMultiplier={debug ? debugDurationMultiplier : 1}
|
||||
/>
|
||||
</DoubleChyronContainer>
|
||||
|
||||
@@ -30,16 +30,19 @@ import {
|
||||
} from "./styles";
|
||||
import { VenetianBlindsTransition } from "../../Common/VenetianBlindsTransition";
|
||||
import { Spacer } from "../../Common/Spacer.styled";
|
||||
import { RolexGem } from "../../Gems/RolexGem";
|
||||
|
||||
type ChyronDriverProps = DebugDurationProps & {
|
||||
chyronData: BGChyronDriver,
|
||||
subMode: BGChyronSubMode,
|
||||
openState: OpenState,
|
||||
showRolex: boolean,
|
||||
};
|
||||
export function ChyronDriver({
|
||||
chyronData,
|
||||
subMode,
|
||||
openState,
|
||||
showRolex,
|
||||
debugDurationMultiplier: DDM = 1.0,
|
||||
}: ChyronDriverProps) {
|
||||
const [baseWidth, baseHeight] = subMode === "medium" ? [582, 72]
|
||||
@@ -58,9 +61,12 @@ export function ChyronDriver({
|
||||
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const { design: { chyronDriver: cdTheme } } = theme;
|
||||
const teamColor = theme.colors.teams[car.driver.team.id];
|
||||
|
||||
const containerFadeAwaySpring = useSpring({
|
||||
opacity: openState == -1 ? 0 : 1,
|
||||
config: { duration: 300 * DDM },
|
||||
config: { duration: cdTheme.containerFadeAwayDurationMs * DDM },
|
||||
delay: 0,
|
||||
onRest: () => {
|
||||
if (openState === -1) {
|
||||
@@ -71,18 +77,19 @@ export function ChyronDriver({
|
||||
|
||||
const { outlineClipPathProgress } = useSpring({
|
||||
outlineClipPathProgress: openState !== 0 ? 1 : 0,
|
||||
config: { duration: 500 * DDM },
|
||||
config: { duration: cdTheme.outlineClipPathDurationMs * DDM },
|
||||
delay: 0,
|
||||
});
|
||||
|
||||
const teamColor = theme.colors.teams[car.driver.team.id];
|
||||
|
||||
return (
|
||||
<AnimatedBaseContainer
|
||||
width={baseWidth}
|
||||
height={baseHeight}
|
||||
style={containerFadeAwaySpring}
|
||||
>
|
||||
{showRolex && (
|
||||
<RolexGem openState={openState} debugDurationMultiplier={DDM} />
|
||||
)}
|
||||
<AnimatedBaseOutline
|
||||
open={openState !== 0}
|
||||
startThickness={5}
|
||||
@@ -91,7 +98,7 @@ export function ChyronDriver({
|
||||
endColor="#ffffff00"
|
||||
transitionProps={[{
|
||||
property: "outline",
|
||||
duration: 1167 * DDM,
|
||||
duration: cdTheme.outlineFadeDurationMs * DDM,
|
||||
}]}
|
||||
style={{
|
||||
clipPath: outlineClipPathProgress.to(progress => {
|
||||
@@ -109,11 +116,11 @@ export function ChyronDriver({
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: 800 * DDM,
|
||||
duration: cdTheme.baseBlackOpacityDurationMs * DDM,
|
||||
timing: "ease-in",
|
||||
}, {
|
||||
property: "width",
|
||||
duration: 667 * DDM,
|
||||
duration: cdTheme.baseBlackWidthDurationMs * DDM,
|
||||
timing: "ease-out",
|
||||
}]}
|
||||
/>
|
||||
@@ -121,17 +128,17 @@ export function ChyronDriver({
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "clip-path",
|
||||
duration: 400 * DDM,
|
||||
duration: cdTheme.baseWipeDurationMs * DDM,
|
||||
timing: "ease-in",
|
||||
delay: 333 * DDM,
|
||||
delay: cdTheme.baseWipeDelay * DDM,
|
||||
}]}
|
||||
>
|
||||
<BaseBackgroundColor
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: 566 * DDM,
|
||||
delay: 600 * DDM,
|
||||
duration: cdTheme.baseColorDurationMs * DDM,
|
||||
delay: cdTheme.baseColorDelayMs * DDM,
|
||||
}]}
|
||||
teamColor={teamColor}
|
||||
/>
|
||||
@@ -139,21 +146,21 @@ export function ChyronDriver({
|
||||
{showPosFlag && car.status !== CarStatus.Retired && (
|
||||
<VenetianBlindsTransition
|
||||
visible={openState !== 0}
|
||||
delay={500 * DDM}
|
||||
blindsColor="#f60d0d"
|
||||
blindsColorFadeDuration={300 * DDM}
|
||||
blindsColorFadeDelay={200 * DDM}
|
||||
blindsAngle={-45}
|
||||
blindsOpenDuration={100 * DDM}
|
||||
blindsOpenDelay={150 * DDM}
|
||||
blindsSize={{ transparent: 3, opaque: 6 }}
|
||||
wipeAngle={40}
|
||||
wipeDuration={333 * DDM}
|
||||
delay={cdTheme.posFlagBlindsDelayMs * DDM}
|
||||
blindsColor={cdTheme.posFlagBlindsColor}
|
||||
blindsColorFadeDuration={cdTheme.posFlagBlindsColorFadeDurationMs * DDM}
|
||||
blindsColorFadeDelay={cdTheme.posFlagBlindsColorFadeDelayMs * DDM}
|
||||
blindsAngle={cdTheme.posFlagBlindsAngleDeg}
|
||||
blindsOpenDuration={cdTheme.posFlagBlindsOpenDurationMs * DDM}
|
||||
blindsOpenDelay={cdTheme.posFlagBlindsOpenDelayMs * DDM}
|
||||
blindsSize={cdTheme.posFlagBlindsBlindsSize}
|
||||
wipeAngle={cdTheme.posFlagWipeAngleDeg}
|
||||
wipeDuration={cdTheme.posFlagWipeDuration * DDM}
|
||||
wipeStartingCorner="bottomRight"
|
||||
opacityStart={0.1}
|
||||
opacityDuration={200 * DDM}
|
||||
opacityDelay={100 * DDM}
|
||||
spanBlinkDuration={500 * DDM}
|
||||
opacityStart={cdTheme.posFlagOpacityStartFraction}
|
||||
opacityDuration={cdTheme.posFlagOpacityDurationMs * DDM}
|
||||
opacityDelay={cdTheme.posFlagOpacityDelayMs * DDM}
|
||||
spanBlinkDuration={cdTheme.posFlagSpanBlinkDurationMs * DDM}
|
||||
>
|
||||
<PositionFlag size={baseHeight * 0.85} number={car.position} />
|
||||
</VenetianBlindsTransition>
|
||||
@@ -163,9 +170,9 @@ export function ChyronDriver({
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "clip-path",
|
||||
duration: 667 * DDM,
|
||||
duration: cdTheme.teamColorBarDurationMs * DDM,
|
||||
timing: "ease-in-out",
|
||||
delay: 733 * DDM,
|
||||
delay: cdTheme.teamColorBarDelayMs * DDM,
|
||||
}]}
|
||||
color={teamColor}
|
||||
/>
|
||||
@@ -186,8 +193,8 @@ export function ChyronDriver({
|
||||
</NameContainer>
|
||||
<TeamName
|
||||
open={openState !== 0}
|
||||
duration={233 * DDM}
|
||||
delay={500 * DDM}
|
||||
duration={cdTheme.teamNameAnimationDurationMs * DDM}
|
||||
delay={cdTheme.teamNameAnimationDelayMs * DDM}
|
||||
>
|
||||
{car.driver.team.shortName}
|
||||
</TeamName>
|
||||
@@ -196,12 +203,12 @@ export function ChyronDriver({
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: 1200 * DDM,
|
||||
delay: 1000 * DDM,
|
||||
duration: cdTheme.flagOpacityDurationMs * DDM,
|
||||
delay: cdTheme.flagDelay * DDM,
|
||||
}, {
|
||||
property: "right",
|
||||
duration: 2000 * DDM,
|
||||
delay: 1000 * DDM,
|
||||
duration: cdTheme.flagRightDuration * DDM,
|
||||
delay: cdTheme.flagDelay * DDM,
|
||||
}]}
|
||||
height={baseHeight * 0.9}
|
||||
width={baseHeight * 3}
|
||||
@@ -220,23 +227,23 @@ export function ChyronDriver({
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: 500 * DDM,
|
||||
delay: 2000 * DDM,
|
||||
duration: cdTheme.portraitOpacityDurationMs * DDM,
|
||||
delay: cdTheme.portraitOpacityDelayMs * DDM,
|
||||
}]}
|
||||
placement={{ right: "-5px", bottom: "0" }}
|
||||
placement={cdTheme.portraitPlacement}
|
||||
>
|
||||
<VenetianBlindsTransition
|
||||
visible={openState !== 0}
|
||||
delay={1700 * DDM}
|
||||
delay={cdTheme.portraitBlindsDelayMs * DDM}
|
||||
blindsColor={teamColor}
|
||||
blindsColorFadeDuration={600 * DDM}
|
||||
blindsColorFadeDelay={0 * DDM}
|
||||
blindsAngle={-45}
|
||||
blindsOpenDuration={300 * DDM}
|
||||
blindsOpenDelay={0 * DDM}
|
||||
blindsSize={{ transparent: 2, opaque: 5 }}
|
||||
wipeAngle={45}
|
||||
wipeDuration={700 * DDM}
|
||||
blindsColorFadeDuration={cdTheme.portraitBlindsColorFadeDurationMs * DDM}
|
||||
blindsColorFadeDelay={cdTheme.portraitBlindsColorFadeDelayMs * DDM}
|
||||
blindsAngle={cdTheme.portraitBlindsAngleDeg}
|
||||
blindsOpenDuration={cdTheme.portraitBlindsOpenDurationMs * DDM}
|
||||
blindsOpenDelay={cdTheme.portraitBlindsOpenDelayMs * DDM}
|
||||
blindsSize={cdTheme.portraitBlindsSize}
|
||||
wipeAngle={cdTheme.portraitWipeAngleDeg}
|
||||
wipeDuration={cdTheme.portraitWipeDurationMs * DDM}
|
||||
wipeStartingCorner="bottomRight"
|
||||
>
|
||||
<DriverPortrait
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
import { theme } from "../../../../shared/theme";
|
||||
import { OpenState } from "../../../../types/state";
|
||||
import { DebugDurationProps } from "../../../../types/style";
|
||||
import { LogoImage, GemBackground, GemContainer } from "./styles";
|
||||
|
||||
import rolexLogo from "../../../../public/images/logos/rolex-yellow.svg";
|
||||
|
||||
type RolexGemProps = DebugDurationProps & {
|
||||
openState: OpenState,
|
||||
};
|
||||
export function RolexGem({
|
||||
openState,
|
||||
debugDurationMultiplier: DDM = 1.0,
|
||||
}: RolexGemProps) {
|
||||
return (
|
||||
<GemContainer
|
||||
open={openState > 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: theme.design.rolexGem.fadeInDurationMs * DDM,
|
||||
delay: theme.design.rolexGem.fadeInDelayMs * DDM,
|
||||
}]}
|
||||
>
|
||||
<GemBackground>
|
||||
<LogoImage
|
||||
src={rolexLogo}
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "height",
|
||||
duration: theme.design.rolexGem.fadeInDurationMs * 2 * DDM,
|
||||
delay: theme.design.rolexGem.fadeInDelayMs * DDM,
|
||||
timing: "ease-out",
|
||||
}, {
|
||||
property: "opacity",
|
||||
duration: theme.design.rolexGem.fadeInDurationMs * 2 * DDM,
|
||||
delay: theme.design.rolexGem.fadeInDelayMs * 1.2 * DDM,
|
||||
}]}
|
||||
/>
|
||||
</GemBackground>
|
||||
</GemContainer>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./RolexGem";
|
||||
@@ -0,0 +1,38 @@
|
||||
import styled from "styled-components/macro";
|
||||
|
||||
import { TransitionProps } from "../../../../types/style";
|
||||
import { commonTransition } from "../../../../utils/styling";
|
||||
|
||||
export const GemContainer = styled.div<TransitionProps>`
|
||||
position: absolute;
|
||||
top: ${p =>
|
||||
-p.theme.design.rolexGem.heightPx - p.theme.design.rolexGem.bottomMarginPx}px;
|
||||
|
||||
opacity: ${({ open }) => open ? 1 : 0};
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
|
||||
export const GemBackground = styled.div`
|
||||
position: relative;
|
||||
height: ${p => p.theme.design.rolexGem.heightPx}px;
|
||||
width: ${p => p.theme.design.rolexGem.widthPx}px;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
background-color: ${p => p.theme.colors.logos.rolexGemGreen};
|
||||
border-radius: ${p => p.theme.design.rolexGem.borderRadiusPx}px;
|
||||
`;
|
||||
|
||||
export const LogoImage = styled.img<TransitionProps>`
|
||||
height: ${({ theme: { design: { rolexGem } }, open }) =>
|
||||
rolexGem.logoHeightPx * (open ? 1 : rolexGem.logoHeightFadeStartFraction)}px;
|
||||
margin-top: ${p => p.theme.design.rolexGem.logoTopMarginPx}px;
|
||||
opacity: ${({ theme: { design: { rolexGem } }, open }) => open
|
||||
? 1 : rolexGem.logoOpacityFadeStartFraction};
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
|
||||
@@ -23,6 +23,7 @@ export const workspaces: WorkspaceObject = {
|
||||
"chyron-driver-medium-full-lat-no-pos.png",
|
||||
"chyron-driver-large-np-tsu.png",
|
||||
"chyron-driver-large-dnf-ver.png",
|
||||
"chyron-driver-medium-full-rolex.png",
|
||||
],
|
||||
previewWindowDimensions: {
|
||||
width: 750,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg stroke-miterlimit="10" viewBox="0 0 743.5 371.75" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M296.633 65.667c.919 0 1.854-.15 2.719-.352l31.185 105.977h.027c3.464 11.824 20.686 20.809 41.414 20.809 20.74 0 37.923-8.982 41.426-20.809h.015l31.158-105.908c.73.15 1.541.285 2.382.285 6.062 0 10.959-4.897 10.959-10.986 0-6.02-4.884-10.946-10.959-10.946-6.035 0-10.959 4.912-10.959 10.946 0 4.398 2.544 8.132 6.251 9.889l-36.126 77.427 5.792-104.325h.243c6.035 0 10.974-4.897 10.974-10.946 0-6.047-4.924-10.986-10.974-10.986-6.02 0-10.974 4.939-10.974 10.986 0 4.993 3.368 9.174 7.915 10.511l-24.014 101.96-11.595-112.375c5.329-.784 9.39-5.344 9.39-10.865C382.882 9.924 377.998 5 371.936 5c-6.074 0-10.974 4.912-10.974 10.959 0 5.521 4.113 10.121 9.43 10.865l-11.554 112.159-23.987-101.756c4.614-1.298 8.024-5.494 8.024-10.511 0-6.047-4.924-10.986-10.959-10.986-6.074 0-10.986 4.939-10.986 10.986 0 6.035 4.912 10.946 10.986 10.946h.15l5.804 104.268-36.205-77.51a10.933 10.933 0 005.939-9.769c0-6.02-4.884-10.946-10.974-10.946-6.047 0-10.946 4.912-10.946 10.946.002 6.116 4.887 11.016 10.949 11.016zm75.14 96.694c18.968 0 34.324 4.857 34.324 10.809 0 5.981-15.357 10.797-34.324 10.797s-34.339-4.803-34.339-10.797c.003-5.952 15.372-10.809 34.339-10.809zM250.701 236.543c-31.443 0-56.933 25.531-56.933 56.148 0 30.657 25.489 56.161 56.933 56.161 31.416 0 56.891-25.516 56.891-56.161 0-30.617-25.477-56.148-56.891-56.148zm23.648 88.592c-1.758 2.638-3.965 4.993-6.549 6.885-4.208 3.368-9.009 5.317-14.11 5.494-.961.108-1.976.216-2.989.216-1.055 0-2.043-.108-3.043-.216-5.101-.189-9.862-2.124-14.083-5.494a26.92 26.92 0 01-6.549-6.885c-5.912-8.171-9.619-19.617-9.619-32.336 0-11.959 3.301-22.81 8.564-30.779 2.962-5.302 7.603-9.499 13.287-11.959.042-.015.081-.042.135-.069.258-.108.529-.216.826-.312a25.118 25.118 0 012.301-.811 29.148 29.148 0 018.186-1.177c2.842 0 5.588.42 8.171 1.177.799.243 1.556.487 2.328.799.258.123.529.231.826.324.027.054.081.054.135.069 5.629 2.463 10.337 6.657 13.26 11.959 5.302 8.024 8.564 18.86 8.564 30.779-.022 12.717-3.714 24.177-9.641 32.336zM420.331 304.392h-7.874v15.829c-.243 9.484-7.97 17.114-17.507 17.114-.042 0-.081-.015-.108-.015v.027h-33.269v-88.938h15.248v-7.915H321.838v7.915h15.261v88.944h-15.261v7.928h98.494v-.027h.081v-25.87h-.081v-14.992h-.001zM540.582 240.52H436.958v7.928h14.951v88.956h-14.951v7.928h104.193v-37.719h-7.982v12.488c-.081 9.58-7.888 17.331-17.507 17.331H476.398v-44.158h12.572c7.09.081 12.839 5.846 12.839 12.935 0 .123 0 .216-.015.285h.015V312.285h7.21v-43.852h-7.198v5.086h-.015c0 .096.015.204.015.285 0 7.102-5.75 12.163-12.854 12.244h-12.569v-37.585h39.331c9.592.054 17.345 7.78 17.426 17.318v10.782h7.982V240.532h-.556v-.012h.001zM676.498 337.728c-7.603-.189-9.39-2.53-15.261-9.295l-34.676-43.159 22.945-27.397v.015c6.155-7.048 7.82-9.484 15.747-9.607h5.993v-7.657H628.955v7.657h9.28v.027h.027c2.003 0 3.611 1.583 3.611 3.572 0 .799-.258 1.502-.664 2.097l-20.349 24.218-15.964-19.875-3.328-4.221c-.501-.61-.838-1.394-.838-2.232 0-1.976 1.61-3.572 3.584-3.599h9.105v-7.657h-52.886v7.657h2.517c6.738.312 8.685 2.611 13.99 8.7l30.698 38.221-27.64 32.984v-.069c-6.182 7.075-7.861 9.457-15.801 9.607h-6.452v7.63h45.225v-7.63h-11.145a3.612 3.612 0 01-3.611-3.626c0-.838.312-1.61.826-2.22l24.543-29.318 20.389 25.423 3.112 3.869c.487.637.826 1.406.826 2.247a3.634 3.634 0 01-3.626 3.626h-9.808v7.63h57.026v-7.63h-5.101v.012h-.003zM175.813 337.229l-6.927-20.145c-3.26-8.943-5.548-13.002-10.607-17.616-3.341-2.989-7.997-4.398-11.46-5.398 12.893-2.043 22.716-13.233 22.716-26.679 0-14.924-12.082-27.031-27.004-27.031-.15 0-.312.027-.514.027v-.026H62.139v7.888h14.735v89.037H61.896v7.928h54.538v-7.93h-15.059v-42.781h11.689c.379.015.73.027 1.096.054h2.367c3.734.135 6.981.676 9.877 1.502 2.707.703 5.588 1.622 7.483 2.854 2.571 1.677 5.329 4.004 7.753 8.144a65.706 65.706 0 011.731 3.328c4.452 8.387 7.129 20.01 10.093 34.757h18.021v.027h16.222v-7.943h-11.895v.003h.001zm-48.854-50.681h-25.531v-38.356h25.516c10.986.42 19.752 8.09 19.752 19.172s-8.764 18.697-19.737 19.184z" fill="#faff04" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
+58
-4
@@ -48,6 +48,8 @@ export const theme = {
|
||||
dhlRed: "#d40511",
|
||||
rolexGreen: "#006039",
|
||||
rolexGold: "#a37e2c",
|
||||
rolexYellow: "#faff04",
|
||||
rolexGemGreen: "#06692f",
|
||||
emiratesRed: "#d71a21",
|
||||
pirelliRed: "#d52b1e",
|
||||
pirelliYellow: "#fed100",
|
||||
@@ -73,6 +75,50 @@ export const theme = {
|
||||
indicatorLapCount: "1.5em",
|
||||
},
|
||||
design: {
|
||||
chyronDriver: {
|
||||
containerFadeAwayDurationMs: 300,
|
||||
outlineClipPathDurationMs: 500,
|
||||
outlineFadeDurationMs: 1167,
|
||||
baseBlackOpacityDurationMs: 800,
|
||||
baseBlackWidthDurationMs: 667,
|
||||
baseWipeDurationMs: 400,
|
||||
baseWipeDelay: 333,
|
||||
baseColorDurationMs: 566,
|
||||
baseColorDelayMs: 600,
|
||||
posFlagBlindsDelayMs: 500,
|
||||
posFlagBlindsColor: "#f60d0d",
|
||||
posFlagBlindsColorFadeDurationMs: 300,
|
||||
posFlagBlindsColorFadeDelayMs: 200,
|
||||
posFlagBlindsAngleDeg: -45,
|
||||
posFlagBlindsOpenDurationMs: 100,
|
||||
posFlagBlindsOpenDelayMs: 150,
|
||||
posFlagBlindsBlindsSize: { transparent: 3, opaque: 6 },
|
||||
posFlagWipeAngleDeg: 40,
|
||||
posFlagWipeDuration: 333,
|
||||
posFlagOpacityStartFraction: 0.1,
|
||||
posFlagOpacityDurationMs: 200,
|
||||
posFlagOpacityDelayMs: 100,
|
||||
posFlagSpanBlinkDurationMs: 500,
|
||||
teamColorBarDurationMs: 667,
|
||||
teamColorBarDelayMs: 733,
|
||||
teamNameAnimationDurationMs: 233,
|
||||
teamNameAnimationDelayMs: 500,
|
||||
flagDelay: 1000,
|
||||
flagOpacityDurationMs: 1200,
|
||||
flagRightDuration: 2000,
|
||||
portraitOpacityDurationMs: 500,
|
||||
portraitOpacityDelayMs: 2000,
|
||||
portraitPlacement: { right: "-5px", bottom: "0" },
|
||||
portraitBlindsDelayMs: 1700,
|
||||
portraitBlindsColorFadeDurationMs: 600,
|
||||
portraitBlindsColorFadeDelayMs: 0,
|
||||
portraitBlindsAngleDeg: -45,
|
||||
portraitBlindsOpenDurationMs: 300,
|
||||
portraitBlindsOpenDelayMs: 0,
|
||||
portraitBlindsSize: { transparent: 2, opaque: 5 },
|
||||
portraitWipeAngleDeg: 45,
|
||||
portraitWipeDurationMs: 700,
|
||||
},
|
||||
statusIndicator: {
|
||||
heightNormalPx: 73,
|
||||
roundedCornerRadiusPx: 8,
|
||||
@@ -97,10 +143,18 @@ export const theme = {
|
||||
button: {
|
||||
borderRadius: "0.25rem",
|
||||
},
|
||||
},
|
||||
graphics: {
|
||||
medRadius: "11px",
|
||||
smRadius: "7px",
|
||||
rolexGem: {
|
||||
widthPx: 130,
|
||||
heightPx: 74,
|
||||
borderRadiusPx: 4,
|
||||
bottomMarginPx: 3,
|
||||
fadeInDurationMs: 600,
|
||||
fadeInDelayMs: 1000,
|
||||
logoHeightPx: 68,
|
||||
logoHeightFadeStartFraction: 0.7,
|
||||
logoOpacityFadeStartFraction: 0.5,
|
||||
logoTopMarginPx: 2,
|
||||
},
|
||||
},
|
||||
broadcast: {
|
||||
dimensionsWidthPx: 1920,
|
||||
|
||||
Reference in new issue
Block a user