simularium / simularium-viewer

NPM package to view Simularium trajectories in 3D
Apache License 2.0
2 stars 0 forks source link

Implement ISimulator with editable state #275

Closed blairlyons closed 2 years ago

blairlyons commented 2 years ago

Use Case

As a developer, I want to see a local javascript simulation running live in the Simularium viewer with a button to change the position of an agent, in order to have a proof of concept for viewing and modifying live simulations.

Acceptance Criteria

A ISimulator simulation running locally can be visualized in a Simularium example viewer client also running locally. Can click a button to set an agent's position live. Must use an interface that can be used over the network as well, with support for play, pause, go to frame index (maybe go to time value), and updateState.

Details

implement a javascript ISimulator with editable parameters

implement updateAgentPosition(id, position)

In this case there need not be any network communication, but the parameter change must demonstrate a prototypical interface that would work across the network as well.

ISimulator needs to support: play, pause, go to frame index (maybe go to time value), and updateState in order to be demonstrated.

This will build toward implementation for click and drag object later

blairlyons commented 2 years ago

@jsavieo add issues for:

blairlyons commented 2 years ago

@toloudis do you want to merge this in order to be done? If so, we're getting close to end of sprint if you want to open a PR

toloudis commented 2 years ago

https://github.com/simularium/simularium-viewer/pull/279