-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation.
- Loading branch information
Showing
80 changed files
with
260 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
"description": "OpenFin Workspace Starter Automation Tests", | ||
"scripts": { | ||
"build": "echo Nothing to build", | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --reporter ./mocha.reporter.json --testFailCount 1 --workspace 16.1.5", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.5", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --reporter ./jasmine.reporter.json --testFailCount 1 --workspace 16.1.5", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.5", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --framework jest --reporter ./jest.reporter.json --testFailCount 1 --workspace 16.1.5", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.5", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --offline --storageFolder=./offline-storage --workspace 16.1.5", | ||
"test-remote-mocha-selenium": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --driver=selenium --workspace 16.1.5", | ||
"test-local-mocha-selenium": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --driver=selenium --workspace 16.1.5" | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --reporter ./mocha.reporter.json --testFailCount 1 --workspace 16.1.6", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.6", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --reporter ./jasmine.reporter.json --testFailCount 1 --workspace 16.1.6", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.6", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --framework jest --reporter ./jest.reporter.json --testFailCount 1 --workspace 16.1.6", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.6", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --offline --storageFolder=./offline-storage --workspace 16.1.6", | ||
"test-remote-mocha-selenium": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.js --driver=selenium --workspace 16.1.6", | ||
"test-local-mocha-selenium": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --driver=selenium --workspace 16.1.6" | ||
}, | ||
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
"description": "OpenFin Workspace Starter Automation Tests", | ||
"scripts": { | ||
"build": "echo Nothing to build", | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --workspace 16.1.5 --testFailCount 1", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --workspace 16.1.5 --testFailCount 1", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --framework jasmine --workspace 16.1.5 --testFailCount 1", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --framework jasmine --workspace 16.1.5 --testFailCount 1", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --framework jest --workspace 16.1.5 --testFailCount 1", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --framework jest --workspace 16.1.5 --testFailCount 1", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --offline --storageFolder=./offline-storage --workspace 16.1.5 --testFailCount 1", | ||
"test-remote-mocha-selenium": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --driver=selenium --workspace 16.1.5 --testFailCount 1", | ||
"test-local-mocha-selenium": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --driver=selenium --workspace 16.1.5 --testFailCount 1" | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --workspace 16.1.6 --testFailCount 1", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --workspace 16.1.6 --testFailCount 1", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --framework jasmine --workspace 16.1.6 --testFailCount 1", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --framework jasmine --workspace 16.1.6 --testFailCount 1", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --framework jest --workspace 16.1.6 --testFailCount 1", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --framework jest --workspace 16.1.6 --testFailCount 1", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --offline --storageFolder=./offline-storage --workspace 16.1.6 --testFailCount 1", | ||
"test-remote-mocha-selenium": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-home/manifest.fin.json ./tests/**/*.spec.ts --driver=selenium --workspace 16.1.6 --testFailCount 1", | ||
"test-local-mocha-selenium": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.ts --driver=selenium --workspace 16.1.6 --testFailCount 1" | ||
}, | ||
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
"description": "OpenFin Workspace Starter Automation Tests", | ||
"scripts": { | ||
"build": "echo Nothing to build", | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.5", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.5", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.5", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.5", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.5", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.5", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --offline --storageFolder=./offline-storage --workspace 16.1.5" | ||
"test-remote-mocha": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.6", | ||
"test-local-mocha": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --workspace 16.1.6", | ||
"test-remote-jasmine": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.6", | ||
"test-local-jasmine": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jasmine --workspace 16.1.6", | ||
"test-remote-jest": "of-automation https://built-on-openfin.github.io/workspace-starter/workspace/v16.1.0/register-with-store/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.6", | ||
"test-local-jest": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --framework jest --workspace 16.1.6", | ||
"test-offline": "of-automation http://localhost:8080/manifest.fin.json ./tests/**/*.spec.js --offline --storageFolder=./offline-storage --workspace 16.1.6" | ||
}, | ||
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
how-to/hints-and-tips/docs/appassets-and-launch-external-process.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
> **_:information_source: OpenFin Workspace:_** [OpenFin Workspace](https://www.openfin.co/workspace/) is a commercial product and this repo is for evaluation purposes (See [LICENSE.MD](../../../LICENSE.MD)). Use of the OpenFin Container and OpenFin Workspace components is only granted pursuant to a license from OpenFin. Please [**contact us**](https://www.openfin.co/workspace/poc/) if you would like to request a developer evaluation key or to discuss a production license. | ||
[<- Back to Table Of Contents](../README.md) | ||
|
||
# Resize Event | ||
|
||
If you are building content for Workspace Browsers or a Platform API Window and you wish to resize an event when the view is resized then there is a JavaScript event you can listen for. This will notify you when: | ||
|
||
- The window is resized and that triggers a change in a view. | ||
- The splitter in our layout system is used to resize content and that impacts your view. | ||
- The view is dragged and dropped within the layout. | ||
- The view is hidden by another tab and then the view's tab is selected. | ||
- The view is dragged out of or into a window. | ||
|
||
A window resize can trigger a lot of events so our example below includes some basic throttling logic. | ||
|
||
## Example code | ||
|
||
This is an example. Please take this into consideration when reading and using this snippet: | ||
|
||
```js | ||
let throttleResizeTimer; | ||
|
||
function onViewResize() { | ||
// Your event handling code goes here | ||
console.log("View Resized"); | ||
} | ||
|
||
function throttleResizeEventHandler() { | ||
if (throttleResizeTimer) { | ||
clearTimeout(throttleResizeTimer); | ||
} | ||
|
||
throttleResizeTimer = setTimeout(onViewResize, 200); // Adjust this to suit your thresholds | ||
} | ||
|
||
// Attach the resize event handler this way. | ||
addEventListener('resize', throttleResizeEventHandler); | ||
|
||
// or you can assign the eventHandler this way: | ||
visualViewport.onresize = throttleResizeEventHandler; | ||
``` | ||
|
||
Additional information about this event can be found here: [https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/resize_event](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/resize_event). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.