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

Add orbit-camera for remote viewport #49

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jul 28, 2023

@PaulHax PaulHax marked this pull request as ready for review August 3, 2023 14:44
@PaulHax PaulHax changed the title feat(itk-camera): add orbit-camera dependency Add orbit-camera for remote viewport Aug 3, 2023
@@ -1786,6 +1789,10 @@ packages:
assert-plus: 1.0.0
dev: true

/gl-matrix@2.8.1:
Copy link
Member

Choose a reason for hiding this comment

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

pr to upstream to update gl-matrix

and request nicely a new release :-)


const bindCamera = (
camera: OrbitCameraController,
element: HTMLElement,
Copy link
Member

Choose a reason for hiding this comment

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

element -> viewportElement

};
element.addEventListener('mousedown', onMouseDown);

const onMouseUp = (e: MouseEvent) => {
Copy link
Member

Choose a reason for hiding this comment

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

todo: check if leave and mouseup after leaving results in invalid state

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. Was a problem. Registered mouse up event on window to fix.

Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

💯

@thewtex thewtex merged commit d388696 into InsightSoftwareConsortium:main Aug 4, 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