Skip to content

v3.2.1 - Fixes for `-AllowOverflow` and placement algorithm

Compare
Choose a tag to compare
@vexx32 vexx32 released this 23 Mar 16:11
· 17 commits to master since this release

Notable Changes

  • Internal maxRadius value used for word placement takes the actual distance from the centre to the corner of the image by default instead of using janky/questionable math to approximate that.
  • -AllowOverflow now functions correctly, and -WordSize properly allows you to exceed the bounds of the image with the overflow switch enabled.
  • Increased the overflow permitted area multiplier from 1.2 to 1.5.
  • Retry the placement search on failure to find a draw location with a different angle.
    • When using well-defined angle sets like EitherDiagonal (which is the default) it will retry each possible angle in the set before giving up.
    • When using All / AllUpright / AllInverted a random selection of 4-12 possible draw angles are pre-selected per word, and each word can retry its draw operations until it runs out of angles to attempt.

Updates to Dependencies

  • Updated SkiaSharp dependencies.

Commit Log

Hash Name Subject
f1cd496 @vexx32 🔧 Use distance to corner for maxRadius (#46)
47ee65c @dependabot-preview ⬆️ Bump coverlet.msbuild in /PSWordCloud.Tests (#45)
55baa08 @dependabot-preview ⬆️ Bump SkiaSharp.NativeAssets.Linux in /Module (#44)
14da443 @dependabot-preview ⬆️ Bump SkiaSharp from 1.68.0 to 1.68.1.1 in /Module (#43)
8a092c2 @vexx32 🐛 🔧 Overflow Fixes & Retry if a given rotation is unsuitable (#42)