Replies: 3 comments 1 reply
-
|
Thanks for sharing! Do you have any corresponding feature request for DesModder or is this just a discussion/fyi? Btw this can also be achieved through an const stream = await fetch("https://www.desmos.com/calculator/qfzqejspct", {
headers: {
Accept: "application/json",
},
});
const data = await stream.json();The {
"hash": "qfzqejspct",
"parent_hash": null,
"thumbUrl": "https://saved-work.desmos.com/calc_thumbs/production/qfzqejspct.png",
"stateUrl": "https://saved-work.desmos.com/calc-states/production/qfzqejspct",
"title": null,
"access": "link",
"created": "Wed, 27 Jul 2022 18:15:16 GMT",
"state": {
"version": 9,
"randomSeed": "feec3866eba2d1fb44f38db220329d1b",
"graph": {
"viewport": {
"xmin": -9.998391734489985,
"ymin": -6.276256152833961,
"xmax": 10.001608265510018,
"ymax": 6.273039621813929
}
},
"expressions": {
"list": [ (etc. same as your original post) ]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Oh, even cooler! I created the issue just as and FYI. There ARE two desmos features on my Wishlist, but I believe they're out of reach for a tool like DesModder.
Thanks Jared, |
Beta Was this translation helpful? Give feedback.
-
|
To encourage more discussion, I've enabled the discussions feature on Github. Going to migrate this issue to a discussion post. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe this is common knowledge, but it might be helpful to know that desmos hosts a native text-representation of every graph.
It is fetchable via a URL.
Take the graph with the ID
qfzqejspctas an example:https://www.desmos.com/calculator/qfzqejspct
Accessing this URL: https://saved-work.desmos.com/calc-states/production/qfzqejspct
returns:
{ "version":9, "randomSeed":"feec3866eba2d1fb44f38db220329d1b", "graph":{ "viewport":{ "xmin":-9.998391734489985, "ymin":-6.276256152833961, "xmax":10.001608265510018, "ymax":6.273039621813929 } }, "expressions":{ "list":[ { "type":"text", "id":"3", "text":"URL Test" }, { "type":"expression", "id":"1", "color":"#c74440", "latex":"y=2x^{2}", "labelSize":"medium" }, { "type":"folder", "id":"4", "title":"Test Folder" }, { "type":"text", "id":"10", "folderId":"4", "text":"Folder Test" }, { "type":"expression", "id":"11", "folderId":"4", "color":"#2d70b3", "latex":"y=\\frac{1}{e^{x}}" }, { "id":"7", "type":"table", "folderId":"4", "columns":[ { "values":["0","1"], "hidden":true, "id":"5", "color":"#388c46", "latex":"x_{1}" }, { "values":["1","2"], "id":"6", "color":"#6042a6", "latex":"y_{1}" } ] } ] } }Note: I added whitespace for readability. The raw output has no whitespace.
You can similarly fetch a thumbnail of the graph from here:
https://saved-work.desmos.com/calc_thumbs/production/qfzqejspct.png
URL Syntax:
https://saved-work.desmos.com/calc-states/production/<graph_ID>https://saved-work.desmos.com/calc_thumbs/production/<graph_ID>.pngBeta Was this translation helpful? Give feedback.
All reactions