8000 Add support for loading .json files in cytoscape.js by chronicgiardia · Pull Request #3371 · cytoscape/cytoscape.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for loading .json files in cytoscape.js #3371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

chronicgiardia
Copy link
@chronicgiardia chronicgiardia commented May 6, 2025

Add fetch calls to load style and elements from .json files in various demo files.

  • documentation/demos/edge-arrows/code.js

    • Add fetch calls to load the style from cy-style.json.
    • Add fetch calls to load the elements from data.json.
    • Update the cytoscape initialization to use the fetched style and elements.
  • documentation/demos/edge-types/code.js

    • Add fetch calls to load the style from cy-style.json.
    • Add fetch calls to load the elements from data.json.
    • Update the cytoscape initialization to use the fetched style and elements.
  • documentation/demos/initialisation/code.js

    • Add fetch call to load the elements from data.json.
    • Update the cytoscape initialization to use the fetched elements.
  • documentation/demos/visual-style/code.js

    • Add fetch calls to load the style from cy-style.json.
    • Add fetch calls to load the elements from data.json.
    • Update the cytoscape initialization to use the fetched style and elements.

For more details, open the Copilot Workspace session.

Add fetch calls to load style and elements from .json files in various demo files.

* **documentation/demos/edge-arrows/code.js**
  - Add fetch calls to load the style from `cy-style.json`.
  - Add fetch calls to load the elements from `data.json`.
  - Update the cytoscape initialization to use the fetched style and elements.

* **documentation/demos/edge-types/code.js**
  - Add fetch calls to load the style from `cy-style.json`.
  - Add fetch calls to load the elements from `data.json`.
  - Update the cytoscape initialization to use the fetched style and elements.

* **documentation/demos/initialisation/code.js**
  - Add fetch call to load the elements from `data.json`.
  - Update the cytoscape initialization to use the fetched elements.

* **documentation/demos/visual-style/code.js**
  - Add fetch calls to load the style from `cy-style.json`.
  - Add fetch calls to load the elements from `data.json`.
  - Update the cytoscape initialization to use the fetched style and elements.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/cytoscape/cytoscape.js?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0