Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mappevurderingprog2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tam Minh Le
mappevurderingprog2
Merge requests
!42
Fixed reset view button
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed reset view button
Reset_View
into
dev
Overview
0
Commits
4
Pipelines
0
Changes
6
Merged
Tam Minh Le
requested to merge
Reset_View
into
dev
1 year ago
Overview
0
Commits
4
Pipelines
0
Changes
6
Expand
Fixed an issues where the reset view button didn't reset the view correctly
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
f3f73901
4 commits,
1 year ago
6 files
+
69
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/main/java/edu/ntnu/idatt2003/mappevurderingprog2/controllers/GameController.java
+
13
−
1
Options
@@ -125,4 +125,16 @@ public class GameController {
public
void
emptyChaosGame
()
{
ChaosGame
.
getInstance
().
setDescription
(
null
);
}
}
\ No newline at end of file
public
void
resetCanvasCoordinates
()
{
ChaosGameDescription
description
=
ChaosGame
.
getInstance
().
getDescription
();
Vector2D
initialMin
=
description
.
getInitialMinCoords
();
Vector2D
initialMax
=
description
.
getInitialMaxCoords
();
description
.
setMinCoords
(
initialMin
);
description
.
setMaxCoords
(
initialMax
);
ChaosGame
.
getInstance
().
setDescription
(
description
);
}
}
Loading