mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-10 23:25:52 +00:00
Move WindowMode next to the layout types to prevent cyclic import
This commit is contained in:
@@ -102,6 +102,7 @@ import {
|
|||||||
type SpotlightExpandedLayoutMedia,
|
type SpotlightExpandedLayoutMedia,
|
||||||
type SpotlightLandscapeLayoutMedia,
|
type SpotlightLandscapeLayoutMedia,
|
||||||
type SpotlightPortraitLayoutMedia,
|
type SpotlightPortraitLayoutMedia,
|
||||||
|
type WindowMode,
|
||||||
} from "../layout-types.ts";
|
} from "../layout-types.ts";
|
||||||
import { ElementCallError, UnknownCallError } from "../../utils/errors.ts";
|
import { ElementCallError, UnknownCallError } from "../../utils/errors.ts";
|
||||||
import { type Epoch, type ObservableScope } from "../ObservableScope.ts";
|
import { type Epoch, type ObservableScope } from "../ObservableScope.ts";
|
||||||
@@ -271,13 +272,6 @@ const smallMobileCallThreshold = 3;
|
|||||||
// with the interface
|
// with the interface
|
||||||
const showFooterMs = 4000;
|
const showFooterMs = 4000;
|
||||||
|
|
||||||
/**
|
|
||||||
* The general shape of the space the call is drawn in. Called a window because
|
|
||||||
* that is what it is in the standalone app; for a component it is the container
|
|
||||||
* the host gave us, which may be a small corner of a large window.
|
|
||||||
*/
|
|
||||||
export type WindowMode = "normal" | "narrow" | "flat" | "pip";
|
|
||||||
|
|
||||||
interface LayoutScanState {
|
interface LayoutScanState {
|
||||||
layout: Layout | null;
|
layout: Layout | null;
|
||||||
overflowing: boolean;
|
overflowing: boolean;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
switchAll,
|
switchAll,
|
||||||
} from "rxjs";
|
} from "rxjs";
|
||||||
|
|
||||||
import { type WindowMode } from "./CallViewModel/CallViewModel.ts";
|
import { type WindowMode } from "./layout-types.ts";
|
||||||
import { constant, type Behavior } from "./Behavior.ts";
|
import { constant, type Behavior } from "./Behavior.ts";
|
||||||
import { type ObservableScope } from "./ObservableScope.ts";
|
import { type ObservableScope } from "./ObservableScope.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ import {
|
|||||||
import { type Behavior } from "./Behavior.ts";
|
import { type Behavior } from "./Behavior.ts";
|
||||||
import { shallowEquals as arrayShallowEquals } from "../utils/array.ts";
|
import { shallowEquals as arrayShallowEquals } from "../utils/array.ts";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The general shape of the space the call is drawn in. Called a window because
|
||||||
|
* that is what it is in the standalone app; for a component it is the container
|
||||||
|
* the host gave us, which may be a small corner of a large window.
|
||||||
|
*/
|
||||||
|
export type WindowMode = "normal" | "narrow" | "flat" | "pip";
|
||||||
|
|
||||||
export interface GridLayoutMedia {
|
export interface GridLayoutMedia {
|
||||||
type: "grid";
|
type: "grid";
|
||||||
edgeToEdge: false;
|
edgeToEdge: false;
|
||||||
|
|||||||
Reference in New Issue
Block a user