1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
slib_lang_exists_tmp=yes
slib_title=Applet GeoGebra (html5)
slib_parms=1\
,opzioni e/o comandi javascript, uno per line o separati da "punto e virgola"
slib_out=L'applet GeoGebra in formato html5
slib_comment=I parametri possono contenere \
al massimo uno dei tre metodi qui elencati:\
<div>\
<ul><li><span class="tt wims_code_words">file=</span> nome del file ggb (che deve essere messo nella directory images).</li>\
<li><span class="tt wims_code_words">ggbBase64=</span> codice corrispondente all'applet che si pu ottenere digitando Ctrl+shift+B una volta aperto il file ggb.<br> Nel caso di dati come stringa di caratteri, scrivere <span class="tt wims_code_words">ggbBase64=stringa_di_caratteri</span> senza spazi e obbligatoriamente come prima riga.</li>\
<li><span class="tt wims_code_words">material_id=</span> id di una figura pubblicata su GeoGebraTube che si pu ottenere nel momento in cui si imposta la condivisione della figura su GeogebraTube<br> (sconsigliato nel caso di utilizzo all'interno di un esercizio)</li></ul>\
Gli altri parametri accettati e qui elencati sono documentati <a target="wims_external" href="https://wiki.geogebra.org/it/Riferimenti:Parametri_delle_applet_GeoGebra">\
in questa pagina.</a>\
<ul><li><span class="tt wims_code_words">height=</span> default <span class="tt wims_code_words">300</span></li>\
<li><span class="tt wims_code_words">width=</span> default <span class="tt wims_code_words">300</span></li>\
<li><span class="tt wims_code_words">showToolBar=</span> default <span class="tt wims_code_words">false</span></li>\
<li><span class="tt wims_code_words">customToolBar=</span> default la barra completa di tutti gli strumenti GeoGebra. Attenzione: non utilizzare virgole come sepraatori.\
<br>La liste dei possibili strumenti disponibile qui: <a target="wims_external" href="https://wiki.geogebra.org/it/Riferimenti:Barra_degli_strumenti">Valori per la barra degli strumenti</a>.\
<br>Se volete raggruppare pi strumenti, utilizzare una chiocciola <span class="tt wims_code_words">@</span>. Per separare i diversi strumenti utilizzare la barra verticale <span class="tt wims_code_words">|</span>.</li>\
<li><span class="tt wims_code_words">showMenuBar=</span> default <span class="tt wims_code_words">false</span></li>\
<li><span class="tt wims_code_words">showAlgebraInput=</span> default <span class="tt wims_code_words">false</span></li>\
<li><span class="tt wims_code_words">algebraInputPosition=</span> default <span class="tt wims_code_words">vide</span>. La posizione si adatta a seconda del file.</li>\
<li> <span class="tt wims_code_words">algebra</span> posiziona la barra di input nella finestra dell'algebra.</li>\
<li><span class="tt wims_code_words">top</span> posiziona la barra in alto.</li>\
<li><span class="tt wims_code_words">bottom</span> posiziona la barra in basso.</li>\
<li><span class="tt wims_code_words">showResetIcon=</span> default <span class="tt wims_code_words">false</span> (Attenzione: questa opzione rende possibile il reavvio dell'applet, ma senza che la costruzione venga rifatta in WIMS)</li>\
<li><span class="tt wims_code_words">showToolBarHelp=</span> default <span class="tt wims_code_words">true</span></li>\
<li><span class="tt wims_code_words">enableRightClick=</span> default <span class="tt wims_code_words">true</span> (Attenzione: cliccando sul tasto destro del mouse lo studente pu modificare tutti gli oggetti della costruzione!)</li>\
<li><span class="tt wims_code_words">language=</span> default <span class="tt wims_code_words">la lingua del modulo</span></li>\
<li><span class="tt wims_code_words">enableLabelDrags=</span> default <span class="tt wims_code_words">true</span></li>\
<li><span class="tt wims_code_words">enableShiftDragZoom=</span> default <span class="tt wims_code_words">true</span></li>\
<li><span class="tt wims_code_words">init=</span> default <span class="tt wims_code_words">0</span> nessun del pulsante di ripristino.\
<br> Se il parametro <span class="tt wims_code_words">1</span>, l'initialisation fonctionne quelle que soit la figure. Par contre elle ne prend pas en compte l'initialisation du script effectu dans ggb par l'intermdiaire de ggbOnInit.\
<br> Se il parametro <span class="tt wims_code_words">2</span>, l'initialisation prend en compte uniquement les commandes tapes en mode texte dans la slib ou le anstype. L'esecuzione in questo modo pi rapida.</li>\
<li><span class="tt wims_code_words">useBrowserForJS=</span> default <span class="tt wims_code_words">true</span>\
<br>Si on met l'option false, on charge le javascript prsent dans la fonction ggbOnInit de ggb.</li>\
<li><span class="tt wims_code_words">debug=</span> default <span class="tt wims_code_words">false</span></li>\
<li><span class="tt wims_code_words">number=</span> numero dell'applet all'interno della pagina html (default <span class="tt wims_code_words">1</span>).</li>\
</ul>\
</div>\
Les mhodes javascript \
(<a target="wims_external" href="https://wiki.geogebra.org/s/it/index.php?title=Riferimenti:JavaScript">GeoGebra_JavaScript_Methods</a>)\
et les commandes (<a target="wims_external" href="https://www.geogebra.org/wiki/s/en/index.php?title=Category:Commands&pageuntil=IsInRegion+Command#mw-pages">Command</a>)\
peuvent tre utilises.\
<ul><li><span class="tt wims_code_words">SetPerspective</span> : A mettre avant tout autre paramtre pour afficher une feuille de calcul.<br> Pour plus de dtail, suivre le lien :\
<a target="wims_external" href="https://www.geogebra.org/manual/en/SetPerspective_Command">SetPerspective_Command</a> \
<br><strong>Exemples :</strong> SetPerspective["S"] feuille de calcul\
<br>SetPerspective["G"] Gomtrie pure</li>\
<li><span class="tt wims_code_words">SetValue</span> : Donner une valeur un objet.\
<br><strong>Exemple :</strong> SetValue[a,5]</li>\
<li><span class="tt wims_code_words">SetCoords</span> : Attribuer les coordonnes un point.\
<br><strong>Exemple :</strong> SetCoords[A,xA,yA]</li>\
<li><span class="tt wims_code_words">SetColor</span> : Dfinir la couleur d'un objet.\
<br><strong>Exemple :</strong> SetColor[a,red]</li>\
<li><span class="tt wims_code_words">SetVisibleInView</span> : Rgler la visibilit d'un objet dans la fentre 1 ou 2.\
<br><strong>Exemple :</strong> SetVisibleInView[A,1,false]</li>\
<li><span class="tt wims_code_words">ShowLabel</span> : Cacher ou montrer l'tiquette.\
<br><strong>Exemple :</strong> ShowLabel[f, true]</li>\
<li><span class="tt wims_code_words">SetLabelMode</span> : Rgler l'tiquette d'un objet. 0 pour le nom, 1 pour le nom et la valeur, 2 pour la valeur, 3 pour la lgende.\
<br><strong>Exemple :</strong>SetLabelMode[A,1]</li>\
<li><span class="tt wims_code_words">SetLayer</span> : Attribuer le calque n1 l'objet.\
<br><strong>Exemple :</strong> SetLayer[d,1] </li>\
<li><span class="tt wims_code_words">HideLayer ShowLayer</span> : Indiquer que le calque n2 est cach. Les objets sont default sur le calque n 0.\
<br><strong>Exemple :</strong> HideLayer[2]</li>\
<li><span class="tt wims_code_words">SetFixed</span> : Fixer l'objet.\
<br><strong>Exemple :</strong> SetFixed[A,true]</li>\
<li><span class="tt wims_code_words">SetTrace</span> : Activer la trace du point.\
<br><strong>Exemple :</strong> SetTrace[A,true]</li>\
<li><span class="tt wims_code_words">SetPointStyle</span> : Dfinir le style du point. 1 dfaut, 0 cercle plein, 1 cercle, 2 croix, 3 plus, 4 diamant plein, 5 diamant vide, 6 triangle (nord), 7 triangle (sud),\
<br> 8 triangle (est), 9 triangle (ouest).\
<br><strong>Exemple :</strong> SetPointStyle(A,1)</li>\
<li><span class="tt wims_code_words">SetPointSize</span> : Dfinir la taille d'un point entre 1 et 9. Si 0 point invisible.\
<br><strong>Exemple :</strong> SetPointSize(a,9)</li>\
<li><span class="tt wims_code_words">SetLineStyle</span> : Dfinir le style de courbe. La valeur varie de 0 4 .\
<br><strong>Exemple :</strong> SetLineStyle[d,2]</li>\
<li><span class="tt wims_code_words">SetLineThickness</span> : Dfinir l'paisseur du trait de 1 13 avec une valeur default de 1. Elle fonctionne pour les droites, fonctions et curseur.\
<br><strong>Exemple :</strong> SetLineThickness[f,13]</li>\
<li><span class="tt wims_code_words">setAxesVisible</span> : Afficher les axes du repres. Attention s minuscule.\
<br><strong>Exemple :</strong> setAxesVisible(false,false)</li>\
<li><span class="tt wims_code_words">setGridVisible</span> : Afficher la grille. Attention s minuscule.\
<br><strong>Exemple :</strong> setGridVisible(true)</li>\
<li><span class="tt wims_code_words">setCoordSystem</span> : Dfinir le repre. Attention le repre ne sera plus orthonormal. Attention s minuscule.\
<br><strong>Exemple :</strong> setCoordSystem(xmin,xmax,ymin,ymax) </li>\
<li><span class="tt wims_code_words">deleteObject</span> : Supprimer l'objet d.\
<br><strong>Exemple :</strong> Delete[d]</li>\
<li><span class="tt wims_code_words">renameObject</span> : Attribuer l'tiquette Cool l'objet A.\
<br><strong>Exemple :</strong> Rename[A,Cool]</li>\
<li><span class="tt wims_code_words">StartAnimation</span> : Dmarrer l'animation lie un objet.\
<br><strong>Exemple :</strong> StartAnimation[a]</li>\
<li><span class="tt wims_code_words">StopAnimation</span> : Arrter l'animation lie un objet.\
<br><strong>Exemple :</strong> StopAnimation[b]</li>\
<li><span class="tt wims_code_words">evalCommand</span> : valuer la chane comme si elle avait t entre dans le champ de saisie. Utiliser plusieurs commandes en les sparant par "\n" .\
<br><strong>Exemples :</strong> evalCommand("mm=mm+0.01")\
<br>evalCommand("SetTrace[Ny_C,true]")\
<br>evalCommand("SetLayer[d,2] \n HideLayer[2]")}</li>\
</ul>\
<div class="tt wims_code_words">\
evalCommand setValue setCoords setColor setVisible \
setLabelVisible setLabelStyle setFixed setTrace\
setAxesVisible setGridVisible setCoordSystem setUndoPoint\
deleteObject renameObject setLayer setLayerVisible\
setLineStyle setThickness setPointStyle setPointSize\
setFilling setAnimating setAnimationSpeed\
startAnimation stopAnimation isAnimationRunning\
</div>\
<pre>\integer{x=randint(1..3)}\
\text{appletcommand= Z=(\x,3.78)\
W=(6.2,2.8)\
Ellipse[Z,W,5]\
u=Line[W,Z]}\
\text{option=showToolBar=true\
customToolBar="0|40|||1|2|5@10"\
width=800\
height=500\
number=1}\
\text{applet=slib(geo2D/geogebra \appletcommand ; \option)}\
\statement{\applet}\
</pre>\
Il est possible de charger des figures sans la fentre AlgebraView en utilisant la commande\
<span class="tt wims_code_words">SetPerspective["G"]</span>.\
<br>\
D'autres valeurs renvoient d'autres types de fentres : voir\
<a href="https://www.geogebra.org/wiki/en/SetPerspective_Command">SetPerspective_Command</a>\
<br> Nous remercions Michael Borcherds (geogebra) de son aide.
|