Skip to content
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

Hypha #45

Merged
merged 6 commits into from
Jul 21, 2023
Merged

Hypha #45

merged 6 commits into from
Jul 21, 2023

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jul 18, 2023

No description provided.

@PaulHax PaulHax marked this pull request as ready for review July 19, 2023 01:55
@PaulHax PaulHax force-pushed the hypha branch 2 times, most recently from ad0e04b to 67815b4 Compare July 19, 2023 14:10
@thewtex
Copy link
Member

thewtex commented Jul 19, 2023

👍

Comment on lines 36 to 39
const p = new Promise((resolve) => setTimeout(resolve, 5000));
p.then(() => {
this.remote.send({ type: 'render' });
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove wait

@@ -0,0 +1,9 @@
declare namespace hyphaWebsocketClient {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use npm package

@@ -54,7 +58,7 @@ export const viewportMachine = createMachine({
context.cameraSubscription.unsubscribe();
context.cameraSubscription = context.camera?.subscribe(
(state) => {
self.send({
(self as ActorRef<SetCameraEvent | SetCameraPoseEvent>).send({
Copy link
Member

@thewtex thewtex Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove SetCameraPoseEvent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember now what SetCameraPoseEvent does and added this comment:

Let observers of Viewport know that camera has updated

@thewtex thewtex merged commit cbd0b7f into InsightSoftwareConsortium:main Jul 21, 2023
2 checks passed
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.

2 participants