Skip to content

Commit

Permalink
Fix zoom dependent not working correctly with the label tool, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Dec 9, 2024
1 parent d693cf9 commit 780e149
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 243 deletions.
2 changes: 1 addition & 1 deletion app/lib/handlers/pen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class PenHandler extends Handler<PenTool> with ColoredHandler {
elements[pointer] = element.copyWith(
points: List<PathPoint>.from(element.points)
..add(PathPoint.fromPoint(
globalPos.toPoint(), (createNew ? 0 : pressure) / zoom)));
globalPos.toPoint(), (createNew ? 0 : pressure))));
if (refresh) bloc.refresh();
}

Expand Down
24 changes: 12 additions & 12 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "8660b74171fafae4aa8202100fa2e55349e078281dadc73a241eb8e758534d9d"
sha256: "2fd11229f59e23e967b0775df8d5948a519cd7e1e8b6e849729e010587b46539"
url: "https://pub.dev"
source: hosted
version: "14.6.1"
version: "14.6.2"
graphs:
dependency: transitive
description:
Expand Down Expand Up @@ -1004,10 +1004,10 @@ packages:
dependency: transitive
description:
name: path_provider_foundation
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.1"
path_provider_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -1230,10 +1230,10 @@ packages:
dependency: transitive
description:
name: sembast
sha256: b20afd98c44bfc272d57a82cb191fbb728875c95e06c973149666f27d81d6afd
sha256: f45edc5e34ed53d6e3d70df664b182e9abcf9c784f48184e5be4c079d2b865d6
url: "https://pub.dev"
source: hosted
version: "3.8.0"
version: "3.8.0+1"
share_plus:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1262,10 +1262,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_android
sha256: "3b9febd815c9ca29c9e3520d50ec32f49157711e143b7a4ca039eb87e8ade5ab"
sha256: "7f172d1b06de5da47b6264c2692ee2ead20bbbc246690427cdb4fc301cd0c549"
url: "https://pub.dev"
source: hosted
version: "2.3.3"
version: "2.3.4"
shared_preferences_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -1491,10 +1491,10 @@ packages:
dependency: transitive
description:
name: url_launcher_ios
sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
url: "https://pub.dev"
source: hosted
version: "6.3.1"
version: "6.3.2"
url_launcher_linux:
dependency: transitive
description:
Expand All @@ -1507,10 +1507,10 @@ packages:
dependency: transitive
description:
name: url_launcher_macos
sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672"
sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
url: "https://pub.dev"
source: hosted
version: "3.2.1"
version: "3.2.2"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@astrojs/react": "^3.6.3",
"@astrojs/starlight": "^0.29.2",
"@phosphor-icons/react": "^2.1.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^4.16.16",
"@types/react": "^18.3.14",
"@types/react-dom": "^18.3.2",
"astro": "^4.16.17",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark-gemoji": "^8.0.0",
Expand All @@ -26,6 +26,6 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"sass": "^1.81.0"
"sass": "^1.82.0"
}
}
Loading

0 comments on commit 780e149

Please sign in to comment.