Javascript Console and Graph State JSON
Since the calculator is pretty much the same as its API, you can use the JavaScript console to do pretty much anything the API supports. More info at https://www.desmos.com/api/v1.13/docs/index.html
To get started, press Ctrl + Shift + I to open the JavaScript console. The following commands are really useful:
JSON.stringify(Calc.getState()); shows the JSON associated with entire state of the calculator on the console. You can bring many undocumented or legacy features by editing this JSON.
Images are stored as data URI which can be replaced with an URL. You can use an external data URI generator to load an image at its original quality.
Expression settings not documented in API documentation:
hoveredImage = <Data URI or URL>
depressedImage = <Data URI or URL>
Setting includeFunctionParametersInRandomSeed at the end of JSON to false brings the legacy behavior for "f(x)=random()".
There's a special folder in the Geometry Calculator where the geometry elements are stored. The folder has the ID **dcg_geo_folder**. If you change one of the folder's ID to it, the folder will be hidden even with ?authorFeatures.
You can insert an animated PNG without any conversion/downsizing by editing the JSON. The image preview is animated (in most browsers) but unfortunately the one on the graph is not.
To import the JSON into the calculator, use the following command: Calc.setState(<state>); The JSON can also be pasted directly into a regular line. (recommended)
Graph save packets, which includes the thumbnail, the title and the graph state, exceeding 5242880 bytes in size can't be uploaded to Desmos servers. Extract and save the JSON locally instead.
The following commands let you add an expression:
Calc.setExpression(<expression>);
Calc.setExpressions([<expressions>]);
Clear the graph with Calc.setBlank(); Set a seed for the PRNG: Calc.updateSettings({ randomSeed: "my-random-seed" });
u/Arglin's command for revealing the contents of **dcg_geo_folder**:
Calc.setState(JSON.parse(JSON.stringify(Calc.getState()).replace("**dcg_geo_folder**","revealed_folder")));
Enables beta3d features (surface transparency, resolution, clip to box) for the 3D Calculator:
Calc.controller.graphSettings.config.beta3d = true;
Brings a bunch of config options (by u/VoidBreakX):
userController.featureFlags.push("apiConfiguration");
userController.triggerEvent("userUpdated");