New Mathbox^2 Release on NPM, development resumes

87 views
Skip to first unread message

Sam Ritchie

unread,
Feb 18, 2022, 3:49:14 PM2/18/22
to MathBox
Hey all,

Just wanted to send out a low key announcement of some work I've been doing on the Mathbox codebase (along with the Threestrap and Shadergraph dependencies).

Mathbox
... is now ported to modular ES6 javascript, away from Coffeescript 1. It's fully compatible with the latest three.js version (r137), and I've had it working with every version from r73 onward, so let me know if you need to use it with code before r118.

- The code lives here: https://gitgud.io/unconed/mathbox
- Version 2.1.0 is released on NPM: https://www.npmjs.com/package/mathbox
- For an example of how easy it was to switch the new modular version of this library, see my PR upgrading math3d-react to r137 three.js and the latest mathbox: https://github.com/ChristopherChudzicki/math3d-react/pull/330

Threestrap
The main change in Threestrap (also ES6 javascript now) is that it no longer attaches anything to the "THREE" global. Instead the library exports all classes that were previously attached.

- Version 0.4.0 is released on NPM: https://www.npmjs.com/package/@sicmutils/threestrap (under the @sicmutils org until I can get the bare handle back)

Shadergraph

- Version 2.1.2 is released on NPM: https://www.npmjs.com/package/shadergraph

What prompted this / what's next?
My goal is to get a mathbox-react library published, hopefully using Christopher's wonderful work in math3d-react, and then publish a bunch of react components we can use to build beautiful mathematical visualizations.

This is part of my larger quest to build an executable textbook. https://github.com/sicmutils/sicmutils is another piece of the puzzle, etc, etc.

Anyhow, if anyone's still reading this list, please give the new library a try and file tickets with any issues you find!

Cheers,
Sam

Abhimanyu Jha

unread,
Dec 28, 2022, 3:27:15 AM12/28/22
to MathBox
Hey Sam, is there a way now to use Mathbox in React? Thanks!

Sam Ritchie

unread,
Dec 28, 2022, 6:42:07 AM12/28/22
to mat...@googlegroups.com
Yes! There is a wonderful react wrapper by Chris Chudzicki here: https://github.com/ChristopherChudzicki/mathbox-react

You can see it in action over at https://www.math3d.org/


It’s light on documentation now but works very well for manipulating Mathbox scenes declaratively. I’d recommend looking at the storybook stories for an example of how to get started. Please ask questions here as well, and we’ll get the docs into a good state sometime soon here.
--
You received this message because you are subscribed to a topic in the Google Groups "MathBox" group.
To unsubscribe from this group and all its topics, send an email to mathbox+u...@googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages