diff --git a/CHANGELOG.md b/CHANGELOG.md index eb630597..a1f5a82e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,29 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -#### [v3.8.1](https://github.com/simularium/simularium-viewer/compare/v3.7.4...v3.8.1) +#### [v3.8.3](https://github.com/simularium/simularium-viewer/compare/v3.8.2...v3.8.3) + +- Fix/null agent function [`#396`](https://github.com/simularium/simularium-viewer/pull/396) +- spread null agent object when parsing frames [`#395`](https://github.com/simularium/simularium-viewer/pull/395) +- send selected agent data to front end [`#392`](https://github.com/simularium/simularium-viewer/pull/392) + +#### [v3.8.2](https://github.com/simularium/simularium-viewer/compare/v3.8.1...v3.8.2) + +> 10 June 2024 + +- Fix/remove simularium engine specific code [`#391`](https://github.com/simularium/simularium-viewer/pull/391) + +#### [v3.8.1](https://github.com/simularium/simularium-viewer/compare/v3.8.0...v3.8.1) + +> 3 June 2024 - With octopus, we can assume frame per message [`#390`](https://github.com/simularium/simularium-viewer/pull/390) - update cache setting [`#388`](https://github.com/simularium/simularium-viewer/pull/388) + +#### [v3.8.0](https://github.com/simularium/simularium-viewer/compare/v3.7.4...v3.8.0) + +> 23 May 2024 + - Fix/plotdata [`#386`](https://github.com/simularium/simularium-viewer/pull/386) - Feature/trim cache head [`#381`](https://github.com/simularium/simularium-viewer/pull/381) diff --git a/README.md b/README.md index adad8088..79ce22f4 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ This will run the example in `/examples/src/`, demonstrating the viewer's functi | transpileES | run babel on `src` directory; _do not_ transpile `import/export` statements for an ES module compatible build (used by bundlers for tree-shaking) | | test | run `jest`; searches for any files matching the pattern "src/\*_/_.test.js" | | typeCheck | run `tsc` in type-check only mode | -| start | runs an example app from `examples` for testing. Runs at `localhost:8080/public/`. Use `--octopus` to connect to octopus backend and/or `--localserver` to run backend locally. With no flags, this script will default to using remote simularium-engine as backend | +| start | runs an example app from `examples` for testing. Runs at `localhost:8080/public/`. Use `--localserver` to run backend locally. With no flags, this script will default to using the staging octopus server as backend | --- diff --git a/examples/package-lock.json b/examples/package-lock.json index b5cc848b..6b8432d9 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -828,12 +828,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -1767,9 +1767,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -4914,9 +4914,9 @@ } }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, "engines": { "node": ">=10.0.0" diff --git a/examples/src/AgentMetadata.tsx b/examples/src/AgentMetadata.tsx new file mode 100644 index 00000000..bfc15bf3 --- /dev/null +++ b/examples/src/AgentMetadata.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { AgentData } from "../../type-declarations/simularium/types"; + +interface AgentMetadataProps { + agentData: AgentData; +} + +const AgentMetadata = ({ agentData }: AgentMetadataProps): JSX.Element => { + + const getContents = () => { + if (agentData.instanceId === -1) { + return