Skip to content

v3.1.0 `-WordBubble` and Usability Improvements

Compare
Choose a tag to compare
@vexx32 vexx32 released this 18 Mar 05:39
· 26 commits to master since this release

New Features

-WordBubble Parameter

  • Added a -WordBubble parameter. Resolves #40. Currently available bubble shapes:
    • Square
    • Rectangle
    • Circle
    • Oval

Note: Using Square or Circle bubble shapes inflates the area each individual word takes up. If you start getting warnings about words being skipped due to this, you can set a smaller -WordScale value to shrink things down a bit. The standard -WordScale is 1, but I found I sometimes needed to scale down to 0.6 or so to keep everything fitting in nicely.

Bugfixes & Enhancements

Viewbox

  • The SkiaSharp libraries do not add their own viewbox attributes, but we have sufficient information to add this information ourselves. This modifies the method SaveSvgData() to automatically check for the attribute, and insert it if it is missing.
  • This attribute is used by browsers in order to help scale the SVG correctly and should ensure output SVGs are resizeable.

Color Contrast Adjustments

  • Added some rudimentary algorithms to try to use distinctive colors in the cloud as much as is possible.
  • These will mostly be used to ensure word colors are distinct from the background color, and from their bubble colors (if -WordBubble is being used).

Error Handling

  • Gracefully exit if there is simply no input.
  • Ignore errors that may come from calling Content.Clear() on the provided path; not all PSProviders support the API, and it is often not strictly necessary.

Commit Log

Hash Subject
bf221ed 🐛 Fix reference to viewbox
88d7775 ✨ Changes for 3.1.0 (#39)