Desmos is very happy to announce the release of version 1.0 of the Desmos API.
This release is part of our scheduled release cycle, and we recommend all users upgrade to this version. Benefits of upgrading include:
remaining consistent with what students see on high-stakes tests in states where Desmos is embedded in the test platform.
offering an experience for students in your product similar to the one at desmos.com.
ensuring the best interaction with the latest browsers and platforms.
We will help all of our partners upgrade to version 1.0 in a timely fashion. Please email Chris Lusto (ch...@desmos.com) or Jason Merrill (ja...@desmos.com) with any questions.
New Features:
In version 1.0 we are introducing new features to give you more flexibility in point labels and screenshots, as well as a a live view into the status of each expression.
Use calculated values in point labels. Instead of just static text, point labels can now include interpolated numerical values by enclosing a numeric variable name in curly braces. See this graph for an example. The same behavior is available via setExpression() by setting the point’s label property appropriately.
Screenshots are more powerful and flexible. There is now an asynchronous version of the GraphingCalculator.screenshot() method called asyncScreenshot(). Because asyncScreenshot() can make another call to the plotter before returning image data, it offers significantly more flexibility in creating images with different aspect ratios while still containing regions of interest, even regions not visible in the current viewport. See this example for some sample uses.
See the current status of each expression. We have added a GraphingCalculator.expressionAnalysis observable object that contains up-to-date information about the status of each expression, including whether it is graphable and whether it currently contains an error—and, if so, its associated error message.
Easily get a list of all the expressions in the graphing calculator. As a convenience for examining the current expressions, we have added a GraphingCalculator.getExpressions() method that returns an array of expression states suitable for inspection, iteration, or as an argument to setExpressions().
Manipulate calculator history. It is now possible to move through or clear the undo/redo stack programmatically.
More visual accessibility options. There is now an invertedColors constructor option and associated graph setting that allows the calculator to be displayed in an inverted color scheme for visual accessibility.
Code Update:
The previously deprecated singleVariableSolutions constructor option has been removed. The graphing calculator no longer displays solutions to single variable equations in the expressions list.
The GraphingCalculator.focusedMathQuill observable property has been deprecated and may be removed in future versions of the API.