You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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):
varcolorizer=newSpecificColorizer(newDictionary<string,Color>{["KnowledgePicker"]=Color.FromArgb(0x0f3057),["WordCloud"]=Color.FromArgb(0xe25a5a)},fallback:newRandomColorizer());// fallback argument is optional
🐛 Bug fixes
Fixed cloned graphic engine not being disposed properly.
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.