set canvas or canvas element properties
string; property name
The SetOption command allows you to set properties of the active canvas element and/or the entire canvas. The options set by this command only control script playback within the Maple Learn environment, and are invisible to operation within Maple.
The options that can be set are as follows:
Set angles to radians or degrees
0 .. 5000
Set delay between script commands in milliseconds
Toggle between Math and Text. In Text mode, content is not evaluated and no result or plot is displayed
Enable/disable showing the current expression on the plot preview
Enable/disable read-only setting on math container. If read-only is set, that also disables calculator results
Causes the document to be reset to the initial state
Enable/disable showing the calculator result on the currently active math content
Enable/disable showing of error messages next to math cell
Enable/disable slider on currently active (math) content. Also has effect on any subsequently created math content
The increment value is not currently used, except for deciding whether the slider is discrete (integer value) or continuous (float value)
Set the maximum endpoint of the slider for the currently active math content
Set the minimum endpoint of the slider for the currently active math content
A "canvas" is an interactive section of a Maple document created by the NewCanvas command, or a shared web-based Maple Learn document. See the Script command for a more complete description.
sc ≔ Script⁡'mode'='Learn':
cv ≔ NewCanvas⁡Unit Circle,Group⁡x2+y2=1,n &:= 360,P &:= Point⁡cos⁡n,sin⁡n,Segment⁡Point⁡0,0,P,Segment⁡Point⁡cos⁡n,0,sc:
The DocumentTools[Canvas][Script][SetOption] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document