Skip to content

Commit

Permalink
Update to v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneypattison committed Nov 19, 2024
1 parent 89a6876 commit e556313
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.3] - 2024-11-19

### Fixed

- Allow width and height to be deleted

## [1.1.2] - 2024-10-23

### Fixed
Expand Down Expand Up @@ -134,6 +140,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Press and hold calibration corners to slow down movement

[unreleased]: https://github.com/Pattern-Projector/pattern-projector/compare/main...beta
[1.1.3]: https://github.com/Pattern-Projector/pattern-projector/releases/tag/v1.1.3
[1.1.2]: https://github.com/Pattern-Projector/pattern-projector/releases/tag/v1.1.2
[1.1.1]: https://github.com/Pattern-Projector/pattern-projector/releases/tag/v1.1.1
[1.1.0]: https://github.com/Pattern-Projector/pattern-projector/releases/tag/v1.1.0
Expand Down
20 changes: 8 additions & 12 deletions app/[locale]/calibrate/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,14 @@ export default function Page() {

function handleHeightChange(e: ChangeEvent<HTMLInputElement>) {
const h = removeNonDigits(e.target.value, height);
if (Number(h) > 0) {
setHeight(h);
updateLocalSettings({ height: h });
}
setHeight(h);
updateLocalSettings({ height: h });
}

function handleWidthChange(e: ChangeEvent<HTMLInputElement>) {
const w = removeNonDigits(e.target.value, width);
if (Number(w) > 0) {
setWidth(w);
updateLocalSettings({ width: w });
}
setWidth(w);
updateLocalSettings({ width: w });
}

function handleFileChange(e: ChangeEvent<HTMLInputElement>): void {
Expand Down Expand Up @@ -235,8 +231,8 @@ export default function Page() {
}
const m = getPerspectiveTransformFromPoints(
points,
Number(width),
Number(height),
Number(width) > 0 ? Number(width) : 1,
Number(height) > 0 ? Number(height) : 1,
getPtDensity(unitOfMeasure),
false,
);
Expand Down Expand Up @@ -283,8 +279,8 @@ export default function Page() {
if (points.length === maxPoints) {
const m = getPerspectiveTransformFromPoints(
points,
Number(width),
Number(height),
Number(width) > 0 ? Number(width) : 1,
Number(height) > 0 ? Number(height) : 1,
getPtDensity(unitOfMeasure),
false,
);
Expand Down

0 comments on commit e556313

Please sign in to comment.