A thread on pretext-support from Anna Davis pointed out that Geogebra interactives that use material ids have dimension matching challenges.
The iframe dimensions and aspect ratio to match the page width of PreTeXt is different from the internally required dimensions of the slate's generated Geogebra applet parameters specifying width/height of the slate in Geogebra's coordinate system.
My proposal is that we add attributes to the #slate object, say @slate-width and @slate-height. I think if they are given, we can directly use them to set the aspect ratio.
Separately, the #slate is required to have @xml:id because we need to match the id of the slate with the call made by the applet loader. I have for a while now wondered if we might be able to have a new attribute like @id-extension (probably a bad name) that is added as a suffix to the parent's visible-id (?). This way, author's could just copy/paste demos directly without having to worry about changing the slate's id each time in order to avoid duplicate xml:id values.
I can prepare a solution and submit a PR for the first part.
Brian