Chinese character stroke order animations and practice quizzes
MIT License
Bot releases are hidden (Show)
Published by chanind over 6 years ago
This release improves stroke matching, and adds a leniency
param which can be set to increase or decrease the leniency of the stroke matcher in quizzes.
Published by chanind over 6 years ago
Rounding points returned in drawnPath
to be max 1 decimal point of precision.
Published by chanind over 6 years ago
Fixing a bug where if a user finishes a quiz successfully, then restarts, then when a stroke is highlighted the entire character highlight becomes visible.
Published by chanind over 6 years ago
onCorrectStroke
and onMistake
callbacks during quizzesonError
is called twice in the event of a network failurePublished by chanind over 6 years ago
Published by chanind over 6 years ago
This release fixes a bug where if a character animation is looping, and a new character is loaded, the new character would either start looping as well or throw an error. Pointed out by @vaab
This release adds more robust error handling for loading character data, and adds onLoadCharDataSuccess
and onLoadCharDataError
callbacks that will be called in the event of char data loading successfully or error. More discussion at https://github.com/chanind/hanzi-writer/pull/42. Thanks again to @vaab!
Published by chanind over 6 years ago
setCharacter()
#40 thanks @vaab!Thanks again to @vaab for pointing out all these issues and contributing fixes!
Published by chanind over 6 years ago
This release contains several feature enhancements and changes:
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.hanzi-writer-data
. You can now load this in NPM by directly requiring character data via, for example: var wo = require('hanzi-writer-data/ζ');
Published by chanind over 6 years ago
loopCharacterAnimation()
method which makes it easy to animate a character over and over.animateCharacter()
, hideCharacter()
, showCharacter()
, hideOutline()
, and showOutline()
which resolves when the action completes, instead of needing to pass an onComplete
callback (but passing onComplete
will still work).stroke-linecap: round
and stroke-linejoin: round
to the user-stroke drawn during quizzing which makes it look slightly nicer.Published by chanind over 6 years ago
This release fixes a nasty bug that cause Hanzi writer to not work in Microsoft browsers (IE and Edge) due to their poor handling of SVG masks.
Published by chanind over 6 years ago
performance.now()
instead of Date.now()
for timing during animationPublished by chanind almost 7 years ago
Further reducing filesize from 97kb to 22kb minified. This is accomplished by removing svg.js and removing bloat from babel.
Published by chanind almost 7 years ago
Removing babel-polyfill
from HanziWriter
. This reduces minified filesize by half from 184kb to 97kb. This polyfill should no longer be necessary anyway as all current browsers support all JS features used in HanziWriter
. If users need to still support very old versions of IE they should include a polyfill themselves.
Published by chanind almost 7 years ago
This release makes stroke recognition in quizzes more lenient. This should make the quiz feature a lot more usable, especially for characters with a lot of small details.
Published by chanind about 7 years ago
Using https
to load character data from the github CDN