diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 366277b..dbcaa8a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -6,10 +6,12 @@ jobs: chrome-headless: runs-on: ubuntu-latest # https://github.com/cypress-io/cypress-docker-images - container: cypress/browsers:node12.18.3-chrome87-ff82 + container: cypress/browsers steps: - name: Checkout uses: actions/checkout@v1 + - name: Install Dependencies + run: npm install - name: Headless Chrome uses: cypress-io/github-action@v2 timeout-minutes: 10 diff --git a/README.md b/README.md index 21f863c..dfa6cc0 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ https://user-images.githubusercontent.com/8426741/151511191-82ee64b9-3709-4cef-a ## API -Adds `setActiveCueInstance` and `getActiveInstanceId` to the **cytoscape core** methods. +Adds `setActiveCueInstance` , `getActiveInstanceId`, and `pngFull` to the **cytoscape core** methods. #### `cy.setActiveCueInstance(id: number)` @@ -26,6 +26,10 @@ Adds `setActiveCueInstance` and `getActiveInstanceId` to the **cytoscape core** - Gets the active cue instace id. +#### `cy.pngFull(options: any, ignoreElementClasses: string[]): string` + +- Gets a base64 encoded PNG of the graph including the cues. + Adds `addCue`, `removeCue`, `updateCue`, `getCueData`, `showCue`, `hideCue` to the **cytoscape collection** methods. #### `ele.addCue(cueOptions: CueOptions): boolean[]` diff --git a/demo/demo.html b/demo/demo.html index 9c484c2..81c9b64 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -103,6 +103,8 @@