@openfin/workspace-platform 20.2.2 → 20.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,10 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { ContextMenuType } from '../../../../common/src/utils/popup-window';
3
3
  import { InternalOpenGlobalContextMenuRequest, InternalOpenPageTabContextMenuRequest, OpenGlobalContextMenuPayload, OpenPageTabContextMenuPayload, OpenSaveButtonContextMenuPayload, OpenSaveButtonContextMenuRequest, OpenViewTabContextMenuPayload, OpenViewTabContextMenuRequest, WorkspacePlatformProvider } from '../../../../client-api-platform/src/shapes';
4
- /**
5
- * Enum representing the possible anchor behaviors for positioning context menus.
6
- * These are relative to an element/cursor position (as opposed to a corner of the context menu window).
7
- *
8
- * e.g. AnchorBehavior.BottomRight implies a context menu will expand aligned with the bottom and right edge of an element.
9
- *
10
- * @enum {number}
11
- */
12
4
  export declare enum AnchorBehavior {
13
- TopLeft = 0,
14
- TopRight = 1,
15
- BottomLeft = 2,
16
- BottomRight = 3,
17
- Center = 4
5
+ BottomLeft = 0,
6
+ BottomRight = 1,
7
+ Center = 2
18
8
  }
19
9
  type ContextMenuPayload = OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload;
20
10
  export declare const openCommonContextMenu: (payload: ContextMenuPayload, _callerIdentity: OpenFin.Identity, type?: ContextMenuType, anchorBehavior?: AnchorBehavior) => Promise<void>;
@@ -18,10 +18,3 @@ export declare const DefaultSaveMenuBounds: {
18
18
  width: number;
19
19
  height: number;
20
20
  };
21
- export declare const getBoundsBasedOnAnchorBehavior: (bounds: OpenFin.Bounds, anchorBehavior: AnchorBehavior) => OpenFin.Bounds | {
22
- bottom: number;
23
- top: number;
24
- left: number;
25
- height: number;
26
- width: number;
27
- };
@@ -18,19 +18,3 @@ export declare const getCenterOfParentWindowMonitor: (parentWindowIdentity?: Ope
18
18
  */
19
19
  export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
20
20
  export declare function getResponseModalBoundsAndCenterParentIfModalOffScreen(modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean): Promise<OpenFin.Bounds>;
21
- /**
22
- * Adjusts the given bounds to be within the closest monitor's available bounds if they are offscreen.
23
- *
24
- * @param {OpenFin.Bounds} bounds - The bounds to be adjusted.
25
- * @returns {Promise<OpenFin.Bounds>} - The adjusted bounds that are within the closest monitor's available bounds.
26
- */
27
- export declare function getClosestBoundsIfModalBoundsOffscreen(bounds: OpenFin.Bounds): Promise<OpenFin.Bounds>;
28
- /**
29
- * Adjusts the given bounds if they are offscreen to be within the closest monitor's available bounds.
30
- * Returns bounds relative to the parent window's bounds (as opposed to bounds relative to the monitor).
31
- *
32
- * @param {OpenFin.WindowBounds} parentWindowBounds - The bounds of the parent window.
33
- * @param {OpenFin.Bounds} bounds - The bounds to be adjusted.
34
- * @returns {Promise<OpenFin.Bounds>} - The adjusted bounds that are within the closest monitor's available bounds relative to the parent window's bounds.
35
- */
36
- export declare const getClosestRelativeBoundsIfModalBoundsOffscreen: (parentWindowBounds: OpenFin.WindowBounds, bounds: OpenFin.Bounds) => Promise<OpenFin.Bounds>;
@@ -174,5 +174,5 @@ export declare const getWindowBounds: (window: OpenFin.Window) => Promise<OpenFi
174
174
  * @param monitor the monitor to check against
175
175
  */
176
176
  export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
177
- export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.Bounds): Promise<OpenFin.MonitorDetails>;
177
+ export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
178
178
  export {};