Version 0.97 is a complete overhaul of JSXGraph code base. It brings a lot of changes which in some cases might break your code. The most radical changes which might affect applications are:
- Implementation of the AMD pattern to actually enforce the module pattern that only existed theoretically before. Please read this blog post for more information about these changes.
- Removal of some wrapper functions in JXG.Board. This post has more information what methods were removed and where you can find the unwrapped versions.
- Several board attributes in
JXG.Options
were moved to a subspace calledboard
includingshowCopyright, showNavigation, takeSizeFromFile, renderer, takeFirst, animationDelay, zoom, pan
.
To deactivate the navigation buttons you now have to set
JXG.Options.board.showNavigation = false;
If you created your own JSXGraph theme(s) using JXG.deepCopy()
you have to replace deepCopy()
with merge()
:
// 0.96 and before
JXG.Options = JXG.deepCopy(JXG.Options, {...});
// 0.97+
JXG.Options = JXG.merge(JXG.Options, {...});
- Many bugfixes and new features (among them: tape measure, line hashes). A complete list of changes can be found in section 0.97 of our CHANGELOG.md.
- Several CSS transformations can now be applied to the JSXGraph board without breaking the event handling. This ensure better compatiobility with EaselJS.
- Experimental support for the new Pointer API used in IE10.
- Rewrite of our make scripts. How to build JSXGraph and JSXCompressor is documented in the README.md.