@openfin/core 31.75.1 → 32.75.2
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.
- package/package.json +1 -1
- package/src/OpenFin.d.ts +4 -2
- package/src/api/application/Instance.d.ts +13 -1
- package/src/api/application/Instance.js +21 -7
- package/src/api/events/application.d.ts +4 -1
- package/src/api/events/webcontents.d.ts +54 -5
- package/src/api/interappbus/channel/client.d.ts +2 -2
- package/src/api/interappbus/channel/index.d.ts +4 -4
- package/src/api/interappbus/channel/index.js +94 -57
- package/src/api/interappbus/channel/provider.d.ts +2 -3
- package/src/api/me.d.ts +1 -1
- package/src/api/me.js +2 -1
- package/src/api/platform/Factory.d.ts +1 -2
- package/src/api/platform/Factory.js +2 -11
- package/src/api/platform/layout/Factory.d.ts +1 -1
- package/src/api/platform/layout/Factory.js +4 -38
- package/src/api/view/Instance.js +1 -2
- package/src/environment/browser.d.ts +4 -2
- package/src/environment/browser.js +5 -2
- package/src/environment/environment.d.ts +4 -2
- package/src/environment/mockEnvironment.d.ts +2 -2
- package/src/environment/mockEnvironment.js +2 -2
- package/src/environment/node-env.d.ts +3 -2
- package/src/environment/node-env.js +5 -2
- package/src/environment/openfin-env.d.ts +5 -3
- package/src/environment/openfin-env.js +12 -10
- package/src/shapes/protocol.d.ts +9 -9
- package/src/transport/transport.d.ts +3 -2
- package/src/transport/transport.js +2 -2
- package/src/api/platform/layout/controllers/splitter-controller.d.ts +0 -30
- package/src/api/platform/layout/controllers/splitter-controller.js +0 -83
- package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +0 -59
- package/src/api/platform/layout/controllers/tab-drag-controller.js +0 -124
- package/src/api/platform/layout/utils/bounds-observer.d.ts +0 -19
- package/src/api/platform/layout/utils/bounds-observer.js +0 -52
- package/src/api/platform/layout/utils/view-overlay.d.ts +0 -35
- package/src/api/platform/layout/utils/view-overlay.js +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViewOverlay = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Api client allowing an empty electron BrowserView to be rendered
|
|
6
|
-
* in the current window with the specified bounds.
|
|
7
|
-
*
|
|
8
|
-
* Please note, only one view based overlay can be rendered at a time per runtime.
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
class ViewOverlay {
|
|
12
|
-
// eslint-disable-next-line
|
|
13
|
-
constructor(wire) {
|
|
14
|
-
this.wire = wire;
|
|
15
|
-
/**
|
|
16
|
-
* Sets the style of the root <html> element of the view overlay webcontent.
|
|
17
|
-
* @param style A partial collection of Css style declarations to set.
|
|
18
|
-
*/
|
|
19
|
-
this.setStyle = async (style) => {
|
|
20
|
-
await this.wire.sendAction('set-overlay-style', { style });
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Renders the overlay at the specified position relative to the calling window.
|
|
24
|
-
* @param options Bounds and background color to display in the overlay.
|
|
25
|
-
*/
|
|
26
|
-
this.renderOverlay = async (bounds) => {
|
|
27
|
-
await this.wire.sendAction('render-overlay', { bounds });
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Removes the overlay from the current window.
|
|
31
|
-
*/
|
|
32
|
-
this.detachOverlay = async () => {
|
|
33
|
-
await this.wire.sendAction('detach-overlay');
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Allows setting all OpenFin views to ignore or consume mouse events.
|
|
38
|
-
*
|
|
39
|
-
* This can help with the rendering of view overlays that depend on OpenFin views not consuming mouse events.
|
|
40
|
-
*
|
|
41
|
-
* @param enabled If true, all mouse events are ignored by openfin views. If false, all OpenFin views will consume mouse events.
|
|
42
|
-
*/
|
|
43
|
-
async setIgnoreViewMouseEvents(enabled) {
|
|
44
|
-
await this.wire.sendAction('set-ignore-all-view-mouse-events', {
|
|
45
|
-
enabled
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.ViewOverlay = ViewOverlay;
|