JavaScript: set angle between 0 and 180 degrees

Stefano De Carolis shared this question 5 months ago
Answered

Hi, I'm using the GeoGebra JS API in a web page and I'm building all the objects programmatically. I can't seem to find functions to set angle properties, specifically the ones that let you change the range in which the angle should be considered (between 0 and 360 degrees, 0 and 180 degrees, etc.) or the angle size, in the JavaScript API reference sheet.

I also looked in the window.ggbApplet variable and there are no references to angle functions.

You can find the properties I'm referring to in the attached screenshot. Is there a way to change those properties programmatically? Possibly without getting the whole XML, editing it and reloading it in the applet.

Thanks in advance,

Stefano

Files: ggb.png

Comments (2)

photo
1

Sorry, that's not possible currently. What do you need it for?

photo
1

I was just experimenting with the API and I was wondering if there was a not yet publicly referenced way to get/set those properties in JS. It would be nice to have the ability to do so. I usually prefer to build projects programmatically since they are easier to manage and maintain.

I think this topic can be considered answered now, thank you.

photo
© 2020 International GeoGebra Institute