fix-goview-canvas-size
This commit is contained in:
parent
d6732597ab
commit
06b0b88258
@ -791,19 +791,29 @@ export function convertGoViewProjectToScreen(input: GoViewProjectLike | GoViewSt
|
||||
project?.editCanvasConfig as GoViewEditCanvasConfigLike | undefined,
|
||||
);
|
||||
|
||||
const width =
|
||||
const width = Math.max(
|
||||
1,
|
||||
toNumber(
|
||||
editCanvasConfig?.width ??
|
||||
(input as GoViewProjectLike).canvas?.width ??
|
||||
(input as GoViewProjectLike).width ??
|
||||
(data?.width as number | undefined) ??
|
||||
1920;
|
||||
(data?.width as number | string | undefined) ??
|
||||
1920,
|
||||
1920,
|
||||
),
|
||||
);
|
||||
|
||||
const height =
|
||||
const height = Math.max(
|
||||
1,
|
||||
toNumber(
|
||||
editCanvasConfig?.height ??
|
||||
(input as GoViewProjectLike).canvas?.height ??
|
||||
(input as GoViewProjectLike).height ??
|
||||
(data?.height as number | undefined) ??
|
||||
1080;
|
||||
(data?.height as number | string | undefined) ??
|
||||
1080,
|
||||
1080,
|
||||
),
|
||||
);
|
||||
|
||||
const name = editCanvasConfig?.projectName ?? 'Imported Project';
|
||||
const background = editCanvasConfig?.background;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user