Skip to content

Add Spline tool test for drawing with PTZ applied to the canvas view #2573

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

Merged
merged 18 commits into from
Apr 24, 2025

Conversation

rahat2134
Copy link
Contributor

Closes a part of #2483

This pull request introduces new tests for the spline tool. These tests ensure that the spline tool works correctly under various transformations such as zooming, panning, and tilting the view.

@rahat2134
Copy link
Contributor Author

@0HyperCube PTAL!

@Keavon Keavon changed the title Add tests for Spline tool with PTZ Add Spline tool test for drawing with PTZ applied to the canvas view Apr 15, 2025
@Keavon Keavon mentioned this pull request Apr 15, 2025
7 tasks
@Keavon Keavon added the Testing Unit and integration tests label Apr 16, 2025
@rahat2134
Copy link
Contributor Author

@0HyperCube Resolved all the comments and applied all the feedback, Please have a look!

@rahat2134 rahat2134 requested a review from 0HyperCube April 16, 2025 15:44
@rahat2134
Copy link
Contributor Author

@0HyperCube PTAL!

@rahat2134
Copy link
Contributor Author

@0HyperCube PTAL!

editor.handle_message(NavigationMessage::CanvasPan { delta: DVec2::new(100., 50.) }).await;
editor
.handle_message(NavigationMessage::CanvasTiltSet {
angle_radians: (30. as f64).to_radians(),
Copy link
Member

Choose a reason for hiding this comment

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

You can just write 30_f64.to_radians(). However it doesn't really matter.

@0HyperCube 0HyperCube merged commit 2dee47a into GraphiteEditor:master Apr 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Unit and integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants