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.
21 lines
428 B
TypeScript
21 lines
428 B
TypeScript
import { WorkspaceProperties } from "../../types/state";
|
|
|
|
type WorkspaceObject = {
|
|
[id: string]: WorkspaceProperties,
|
|
};
|
|
export const workspaces: WorkspaceObject = {
|
|
chyronSimple: {
|
|
name: "Chyron Simple",
|
|
overlayIds: [
|
|
"chyron-simple-full.png",
|
|
"chyron-simple-opening-1.png",
|
|
"chyron-simple-opening-2.png",
|
|
],
|
|
previewWindowDimensions: {
|
|
width: 650,
|
|
height: 200,
|
|
},
|
|
},
|
|
};
|
|
|