From 144aa68332aa3df993c2e54d991b64f947cb4176 Mon Sep 17 00:00:00 2001 From: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com> Date: Wed, 29 Jul 2026 16:46:53 +0000 Subject: [PATCH] chore: release v5.2.0 --- .changeset/ask-box-is-a-band.md | 9 ------- .changeset/ask-box-javadoc-position.md | 6 ----- .changeset/text-default-align.md | 18 -------------- CHANGELOG.md | 33 +++++++++++++++++++++++++- pom.xml | 2 +- 5 files changed, 33 insertions(+), 35 deletions(-) delete mode 100644 .changeset/ask-box-is-a-band.md delete mode 100644 .changeset/ask-box-javadoc-position.md delete mode 100644 .changeset/text-default-align.md diff --git a/.changeset/ask-box-is-a-band.md b/.changeset/ask-box-is-a-band.md deleted file mode 100644 index 27a5fd5c..00000000 --- a/.changeset/ask-box-is-a-band.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -type: patch ---- - -The box `Stage.ask()` puts the question in now reaches from one side of the -stage to the other and squares off the two corners sitting on the bottom edge, -the way the band `display()` writes into already did. It used to be only as wide -as the longest line it happened to hold, and it curved away at the bottom where -the stage ends. diff --git a/.changeset/ask-box-javadoc-position.md b/.changeset/ask-box-javadoc-position.md deleted file mode 100644 index f5d89788..00000000 --- a/.changeset/ask-box-javadoc-position.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -type: patch ---- - -Fix the `Stage.ask()` Javadoc, which said the question box appears at the top of -the stage. It appears at the bottom, where Scratch puts it too. diff --git a/.changeset/text-default-align.md b/.changeset/text-default-align.md deleted file mode 100644 index 55a4c7c5..00000000 --- a/.changeset/text-default-align.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -type: minor ---- - -Every `Text` is now centred on its position, whichever constructor built it and -whichever style it is in — the way a sprite put at the same place is, and the way -everything in a Scratch project is placed. Only `new Text()` used to be centred: -`new Text(words, x, y, width)` and the framed styles sat to the left of their -position instead, so the same words moved sideways depending on how they had been -created, and the browser port drew them somewhere else again. - -The texts the library builds for itself keep the edge they are anchored by and -now say so where they are built: the stage's `display()` and `ask()` bands reach -from side to side, and a sprite's speech bubble hangs off the tail in its bottom -left corner. - -Add `setAlign(TextAlign.LEFT)` to text that was relying on starting at its -position rather than being centred on it. diff --git a/CHANGELOG.md b/CHANGELOG.md index 92eeb72f..f15aa370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,40 @@ --- name: Changelog -index: 65 +index: 66 lang: en --- +## 5.2.0 + + + +Every `Text` is now centred on its position, whichever constructor built it and +whichever style it is in — the way a sprite put at the same place is, and the way +everything in a Scratch project is placed. Only `new Text()` used to be centred: +`new Text(words, x, y, width)` and the framed styles sat to the left of their +position instead, so the same words moved sideways depending on how they had been +created, and the browser port drew them somewhere else again. + +The texts the library builds for itself keep the edge they are anchored by and +now say so where they are built: the stage's `display()` and `ask()` bands reach +from side to side, and a sprite's speech bubble hangs off the tail in its bottom +left corner. + +Add `setAlign(TextAlign.LEFT)` to text that was relying on starting at its +position rather than being centred on it. + + +The box `Stage.ask()` puts the question in now reaches from one side of the +stage to the other and squares off the two corners sitting on the bottom edge, +the way the band `display()` writes into already did. It used to be only as wide +as the longest line it happened to hold, and it curved away at the bottom where +the stage ends. + + +Fix the `Stage.ask()` Javadoc, which said the question box appears at the top of +the stage. It appears at the bottom, where Scratch puts it too. + + ## 5.1.0 diff --git a/pom.xml b/pom.xml index 74fda48f..bd1dd60b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.openpatch scratch - 5.1.0 + 5.2.0 jar Scratch for Java