@openfin/node-adapter 34.78.28 → 34.78.30
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/out/node-adapter-alpha.d.ts +41 -0
- package/out/node-adapter-beta.d.ts +41 -0
- package/out/node-adapter-public.d.ts +41 -0
- package/out/node-adapter.d.ts +41 -0
- package/out/node-adapter.js +43 -0
- package/package.json +1 -1
@@ -15158,6 +15158,47 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
15158
15158
|
* @experimental
|
15159
15159
|
*/
|
15160
15160
|
show: () => Promise<void>;
|
15161
|
+
/**
|
15162
|
+
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
15163
|
+
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
15164
|
+
*
|
15165
|
+
* @remarks View position is relative to the bounds of the window.
|
15166
|
+
* ({top: 0, left: 0} represents the top left corner of the window)
|
15167
|
+
*
|
15168
|
+
* @example
|
15169
|
+
* ```js
|
15170
|
+
* let view;
|
15171
|
+
* async function createView() {
|
15172
|
+
* const me = await fin.Window.getCurrent();
|
15173
|
+
* return fin.View.create({
|
15174
|
+
* name: 'viewNameSetBounds',
|
15175
|
+
* target: me.identity,
|
15176
|
+
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
15177
|
+
* });
|
15178
|
+
* }
|
15179
|
+
*
|
15180
|
+
* async function showViewAt() {
|
15181
|
+
* view = await createView();
|
15182
|
+
* console.log('View created.');
|
15183
|
+
*
|
15184
|
+
* await view.navigate('https://google.com');
|
15185
|
+
* console.log('View navigated to given url.');
|
15186
|
+
*
|
15187
|
+
* await view.showAt({
|
15188
|
+
* top: 100,
|
15189
|
+
* left: 100,
|
15190
|
+
* width: 300,
|
15191
|
+
* height: 300
|
15192
|
+
* });
|
15193
|
+
* }
|
15194
|
+
*
|
15195
|
+
* showViewAt()
|
15196
|
+
* .then(() => console.log('View set to new bounds and shown.'))
|
15197
|
+
* .catch(err => console.log(err));
|
15198
|
+
* ```
|
15199
|
+
* @experimental
|
15200
|
+
*/
|
15201
|
+
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
15161
15202
|
/**
|
15162
15203
|
* Hides the current view if it is currently visible.
|
15163
15204
|
*
|
@@ -15158,6 +15158,47 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
15158
15158
|
* @experimental
|
15159
15159
|
*/
|
15160
15160
|
show: () => Promise<void>;
|
15161
|
+
/**
|
15162
|
+
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
15163
|
+
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
15164
|
+
*
|
15165
|
+
* @remarks View position is relative to the bounds of the window.
|
15166
|
+
* ({top: 0, left: 0} represents the top left corner of the window)
|
15167
|
+
*
|
15168
|
+
* @example
|
15169
|
+
* ```js
|
15170
|
+
* let view;
|
15171
|
+
* async function createView() {
|
15172
|
+
* const me = await fin.Window.getCurrent();
|
15173
|
+
* return fin.View.create({
|
15174
|
+
* name: 'viewNameSetBounds',
|
15175
|
+
* target: me.identity,
|
15176
|
+
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
15177
|
+
* });
|
15178
|
+
* }
|
15179
|
+
*
|
15180
|
+
* async function showViewAt() {
|
15181
|
+
* view = await createView();
|
15182
|
+
* console.log('View created.');
|
15183
|
+
*
|
15184
|
+
* await view.navigate('https://google.com');
|
15185
|
+
* console.log('View navigated to given url.');
|
15186
|
+
*
|
15187
|
+
* await view.showAt({
|
15188
|
+
* top: 100,
|
15189
|
+
* left: 100,
|
15190
|
+
* width: 300,
|
15191
|
+
* height: 300
|
15192
|
+
* });
|
15193
|
+
* }
|
15194
|
+
*
|
15195
|
+
* showViewAt()
|
15196
|
+
* .then(() => console.log('View set to new bounds and shown.'))
|
15197
|
+
* .catch(err => console.log(err));
|
15198
|
+
* ```
|
15199
|
+
* @experimental
|
15200
|
+
*/
|
15201
|
+
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
15161
15202
|
/**
|
15162
15203
|
* Hides the current view if it is currently visible.
|
15163
15204
|
*
|
@@ -15158,6 +15158,47 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
15158
15158
|
* @experimental
|
15159
15159
|
*/
|
15160
15160
|
show: () => Promise<void>;
|
15161
|
+
/**
|
15162
|
+
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
15163
|
+
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
15164
|
+
*
|
15165
|
+
* @remarks View position is relative to the bounds of the window.
|
15166
|
+
* ({top: 0, left: 0} represents the top left corner of the window)
|
15167
|
+
*
|
15168
|
+
* @example
|
15169
|
+
* ```js
|
15170
|
+
* let view;
|
15171
|
+
* async function createView() {
|
15172
|
+
* const me = await fin.Window.getCurrent();
|
15173
|
+
* return fin.View.create({
|
15174
|
+
* name: 'viewNameSetBounds',
|
15175
|
+
* target: me.identity,
|
15176
|
+
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
15177
|
+
* });
|
15178
|
+
* }
|
15179
|
+
*
|
15180
|
+
* async function showViewAt() {
|
15181
|
+
* view = await createView();
|
15182
|
+
* console.log('View created.');
|
15183
|
+
*
|
15184
|
+
* await view.navigate('https://google.com');
|
15185
|
+
* console.log('View navigated to given url.');
|
15186
|
+
*
|
15187
|
+
* await view.showAt({
|
15188
|
+
* top: 100,
|
15189
|
+
* left: 100,
|
15190
|
+
* width: 300,
|
15191
|
+
* height: 300
|
15192
|
+
* });
|
15193
|
+
* }
|
15194
|
+
*
|
15195
|
+
* showViewAt()
|
15196
|
+
* .then(() => console.log('View set to new bounds and shown.'))
|
15197
|
+
* .catch(err => console.log(err));
|
15198
|
+
* ```
|
15199
|
+
* @experimental
|
15200
|
+
*/
|
15201
|
+
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
15161
15202
|
/**
|
15162
15203
|
* Hides the current view if it is currently visible.
|
15163
15204
|
*
|
package/out/node-adapter.d.ts
CHANGED
@@ -15752,6 +15752,47 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
15752
15752
|
* @experimental
|
15753
15753
|
*/
|
15754
15754
|
show: () => Promise<void>;
|
15755
|
+
/**
|
15756
|
+
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
15757
|
+
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
15758
|
+
*
|
15759
|
+
* @remarks View position is relative to the bounds of the window.
|
15760
|
+
* ({top: 0, left: 0} represents the top left corner of the window)
|
15761
|
+
*
|
15762
|
+
* @example
|
15763
|
+
* ```js
|
15764
|
+
* let view;
|
15765
|
+
* async function createView() {
|
15766
|
+
* const me = await fin.Window.getCurrent();
|
15767
|
+
* return fin.View.create({
|
15768
|
+
* name: 'viewNameSetBounds',
|
15769
|
+
* target: me.identity,
|
15770
|
+
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
15771
|
+
* });
|
15772
|
+
* }
|
15773
|
+
*
|
15774
|
+
* async function showViewAt() {
|
15775
|
+
* view = await createView();
|
15776
|
+
* console.log('View created.');
|
15777
|
+
*
|
15778
|
+
* await view.navigate('https://google.com');
|
15779
|
+
* console.log('View navigated to given url.');
|
15780
|
+
*
|
15781
|
+
* await view.showAt({
|
15782
|
+
* top: 100,
|
15783
|
+
* left: 100,
|
15784
|
+
* width: 300,
|
15785
|
+
* height: 300
|
15786
|
+
* });
|
15787
|
+
* }
|
15788
|
+
*
|
15789
|
+
* showViewAt()
|
15790
|
+
* .then(() => console.log('View set to new bounds and shown.'))
|
15791
|
+
* .catch(err => console.log(err));
|
15792
|
+
* ```
|
15793
|
+
* @experimental
|
15794
|
+
*/
|
15795
|
+
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
15755
15796
|
/**
|
15756
15797
|
* Hides the current view if it is currently visible.
|
15757
15798
|
*
|
package/out/node-adapter.js
CHANGED
@@ -2768,6 +2768,49 @@ function requireInstance$2 () {
|
|
2768
2768
|
this.show = async () => {
|
2769
2769
|
await this.wire.sendAction('show-view', { ...this.identity });
|
2770
2770
|
};
|
2771
|
+
/**
|
2772
|
+
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
2773
|
+
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
2774
|
+
*
|
2775
|
+
* @remarks View position is relative to the bounds of the window.
|
2776
|
+
* ({top: 0, left: 0} represents the top left corner of the window)
|
2777
|
+
*
|
2778
|
+
* @example
|
2779
|
+
* ```js
|
2780
|
+
* let view;
|
2781
|
+
* async function createView() {
|
2782
|
+
* const me = await fin.Window.getCurrent();
|
2783
|
+
* return fin.View.create({
|
2784
|
+
* name: 'viewNameSetBounds',
|
2785
|
+
* target: me.identity,
|
2786
|
+
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
2787
|
+
* });
|
2788
|
+
* }
|
2789
|
+
*
|
2790
|
+
* async function showViewAt() {
|
2791
|
+
* view = await createView();
|
2792
|
+
* console.log('View created.');
|
2793
|
+
*
|
2794
|
+
* await view.navigate('https://google.com');
|
2795
|
+
* console.log('View navigated to given url.');
|
2796
|
+
*
|
2797
|
+
* await view.showAt({
|
2798
|
+
* top: 100,
|
2799
|
+
* left: 100,
|
2800
|
+
* width: 300,
|
2801
|
+
* height: 300
|
2802
|
+
* });
|
2803
|
+
* }
|
2804
|
+
*
|
2805
|
+
* showViewAt()
|
2806
|
+
* .then(() => console.log('View set to new bounds and shown.'))
|
2807
|
+
* .catch(err => console.log(err));
|
2808
|
+
* ```
|
2809
|
+
* @experimental
|
2810
|
+
*/
|
2811
|
+
this.showAt = async (bounds) => {
|
2812
|
+
await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
|
2813
|
+
};
|
2771
2814
|
/**
|
2772
2815
|
* Hides the current view if it is currently visible.
|
2773
2816
|
*
|