Skip to content

v0.5.0

Compare
Choose a tag to compare
@chanind chanind released this 04 Feb 07:13
· 122 commits to master since this release

This release contains several feature enhancements and changes:

  • The character radical can be drawn in a different color by passing a radicalColor option, for characters where radical data is available in Make me a Hanzi.
  • strokeAnimationDuration and strokeHighlightDuration options have been removed and replaced with strokeAnimationSpeed and strokeHighlightSpeed, respectively. This was changed because if all strokes take the same duration to draw, then short strokes appear to be drawn very slowly and long strokes appear to be drawn very quickly, which looks strange. Now, strokes appear to be drawn at a similar speed which looks a lot more natural. strokeAnimationDuration and strokeHighlightDuration will continue to work for backwards compatibility.
  • character data has been removed from this repo and moved into a new repo, https://github.com/chanind/hanzi-writer-data. This data is also on published on NPM under the name hanzi-writer-data. You can now load this in NPM by directly requiring character data via, for example: var wo = require('hanzi-writer-data/我');
  • Hanzi Writer will now by default load character data from https://www.jsdelivr.com/package/npm/hanzi-writer-data. This should have better performance than the github pages CDN which was used previously, especially in China. Plus using github pages as a CDN was kind of sketchy.