Skip to content

Releases: knowledgepicker/word-cloud

v1.3.1

26 Apr 17:01
0dbb45b
Compare
Choose a tag to compare

💅 Improvements

  • You can get color for an item from WordCloudGenerator - it uses the configured colorizer (and returns null if the colorizer doesn't provide color - to avoid that, you can use GetColorHexStringOrDefault which returns the text color configured in WordCloudInput or black). For example, in a loop:
    var wcg = new WordCloudGenerator<SKBitmap>(...);
    foreach (var (item, fontSize) in wcg.Arrange())
    {
        var color = wcg.GetColorHexString(item);
        // ...
    }

v1.3.0

22 Dec 09:11
35dfd09
Compare
Choose a tag to compare

🚀 Features

  • Current word is passed to colorizer (#20). ⚠️ This is a breaking change if you implement IColorizer yourself.
    • There's also new SpecificColorizer. It can be used as follows (see README for details):
      var colorizer = new SpecificColorizer(
         new Dictionary<string, Color>
         {
             ["KnowledgePicker"] = Color.FromArgb(0x0f3057),
             ["WordCloud"] = Color.FromArgb(0xe25a5a)
         },
         fallback: new RandomColorizer()); // fallback argument is optional

🐛 Bug fixes

  • Fixed cloned graphic engine not being disposed properly.

v1.2.0

10 Dec 11:40
f0b9550
Compare
Choose a tag to compare

🐛 Bug fixes

  • Avoided sharing state between WordCloudGenerator invocations (#18). ⚠️ This is a breaking change if you implement IGraphicEngine or ILayout yourself; new method Clone needs to be implemented.

🧰 Maintenance

  • Updated package SkiaSharp to v2.88.3 (#13)

v1.1.2

01 Oct 16:18
83c23e6
Compare
Choose a tag to compare

🧰 Maintenance

  • Updated package SkiaSharp to v2.88.2 (#6)

v1.1.1

23 May 07:13
bd5be1c
Compare
Choose a tag to compare

💅 Improvements

🧰 Maintenance

  • Updated package SkiaSharp to v2.88.0 (#5)

v1.1.0

04 Apr 20:01
a97b2bb
Compare
Choose a tag to compare

🚀 Features

  • Random color for each word (#4)

v1.0.2

11 Aug 10:14
fd78a1f
Compare
Choose a tag to compare

🐛 Bug fixes

  • Improved wording in README.
  • Fixed code snippet in README.
  • Improved formatting of NuGet package description.

🧰 Maintenance

  • Updated package SkiaSharp to v2.80.3 (#2)

v1.0.1

20 Mar 20:58
988bcaa
Compare
Choose a tag to compare

🐛 Bug fixes

  • Fixed typos in README.
  • Fixed API usage examples.
  • Removed unused property FontPath.

v1.0.0

26 Feb 13:13
9ad5109
Compare
Choose a tag to compare

Contains basic word cloud algorithm with spiral layout and SkiaSharp-based renderer.