On 9/13/23 11:51, D. Brian Walton wrote:
> but my opinion is that for the typical use case
> several are undesirable because they open too much of the under-the-hood details
> to the user.
Right - that's how it looked to me. I think you have struck a good balance
below. Let's err on the side of not adding something, we can always add it
later. Much harder to take something away. And as you note, there are commands
that can be added ala what you did for Terri.
Reset icon: since it is going missing, let's skip it and just assume a reader
can reload the page if they want to reset the widget.
> Also, it is currently hard-coded to be a single iframe size. That
> probably also should be adjusted while I'm at it.
We never specify a height. ;-) (I think.) But that's a bit of a dodge. A
width, and when necessary an aspect ratio. As percentages, for use in *all*
conversions. Look around at other interactives and you will find
general-purpose templates which convert those into pixels, which is what I
suspect you want.
It'd be good to support @width and @aspect.
Thanks,
Rob
> Reminder: This is a use case where there are pre-made GeoGebra activities hosted
> on the GeoGebra website with a material id. The user wants to include the
> activity in their PreTeXt document to add interactivity by referencing the
> material id.
>
> In the XSL I have created and kept, I have implemented the following additional
> attributes.
>
> * @toolbar="yes": the toolbar showing various GeoGebra tools the user can
> select is visible (above the main panel). As recommended by Rob, I also use
> this to turn on toolbar help, which are pop-up floating panels when a new
> tool is selected that explains the tool and has a link to the help page.
> * @algebraInput="yes": a entry field appears (below the main panel) where a
> user can type an algebra equation or formula of a graph or type in GeoGebra
> commands to create new graphics objects.
> * @resetIcon="yes": A reset control appears in the top-right of the main panel
> that when pushed resets the state to the original loaded state.
> * @shiftDragZoom="yes": Enables ability of user to pan and zoom the field of
> view using a mouse or keyboard. (Otherwise the field of view is locked)
>
>
> There are other possible options that I tentatively decided should not be
> available, and this is where I seek advice on whether we should make them
> possible. My thought is that these extra options make it too easy for a
> reader/user to modify the interactive such that it might no longer work. If an
> author really wants to make such features available, they can implement it
> directly using the javascript interface.
>
> * @menubar="yes": This basically turns on super powers for the GeoGebra app
> and the user has access to all of the editing features.
> * @styleBar="yes": This would make it so the user can change the appearance of
> the panel (axes, grid, color, etc.) as well as access different perspectives.
> * @rightClick="yes": Turns on a pop-up menu for any right-clicked object to
> change its visibility, label visibility, rename, or delete.
> * @labelDrag="yes": Allows the user to move the location of the labels for
> objects away from their default position.
> * @clickToLaunch="yes": Shows a "play" button that means you need to click
> <mailto:
pretext-dev%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0OS5iZWV6ZXI.1694618992%40quikprotect <
https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0OS5iZWV6ZXI.1694618992%40quikprotect>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
pretext-dev...@googlegroups.com
> <mailto:
pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pretext-dev/CAH7VRoLWqZTS4YP%3DpkFH9O_An%2BwKk%2B9B%2BUjQ407%2BHbCbrYUCog%40mail.gmail.com <
https://groups.google.com/d/msgid/pretext-dev/CAH7VRoLWqZTS4YP%3DpkFH9O_An%2BwKk%2B9B%2BUjQ407%2BHbCbrYUCog%40mail.gmail.com?utm_medium=email&utm_source=footer>.