Rev 4158 | Rev 4903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4158 | Rev 4895 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | slib_lang_exists_tmp=yes |
1 | slib_lang_exists_tmp=yes |
2 | 2 | ||
3 | slib_title=Geogebra Applet |
3 | slib_title=Geogebra Applet |
4 | slib_parms=1\ |
4 | slib_parms=1\ |
5 | ,option or applet command for javascript, one by line or joined by a semicolon |
5 | ,option or applet command for javascript, one by line or joined by a semicolon |
6 | - | ||
- | 6 | slib_out=Applet GeoGebra |
|
7 | slib_comment=the available applet commands are either the definition of an object\ |
7 | slib_comment=the available applet commands are either the definition of an object\ |
8 | <br>or javascript methods. For syntax details on how to create objects, you can report to the GeoGebra help page : \ |
8 | <br>or javascript methods. For syntax details on how to create objects, you can report to the GeoGebra help page : \ |
9 | <a target="wims_external" href="http://www.geogebra.org/help/docufr/"> www.geogebra.org/help/docufr |
9 | <a target="wims_external" href="http://www.geogebra.org/help/docufr/"> www.geogebra.org/help/docufr</a>\ |
10 | There are a lot of available javascript methods |
10 | There are a lot of available javascript methods: for example, \ |
11 | <tt>evalCommand setValue setColor setVisible \ |
11 | <tt class="wims_code_words">evalCommand setValue setColor setVisible \ |
12 | setLabelVisible setFixed setTrace\ |
12 | setLabelVisible setFixed setTrace\ |
13 | setAxesVisible setGridVisible setCoordSystem\ |
13 | setAxesVisible setGridVisible setCoordSystem\ |
14 | deleteObject renameObject setLayerVisible\ |
14 | deleteObject renameObject setLayerVisible\ |
15 | setLineStyle setAnimationSpeed startAnimation</tt>\ |
15 | setLineStyle setAnimationSpeed startAnimation</tt>\ |
16 | The complete list <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_JavaScript_Methods"> is here.</a>\ |
16 | The complete list <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_JavaScript_Methods"> is here.</a>\ |
17 | <br><br>Allowed options are the followings |
17 | <br><br>Allowed options are the followings (see <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_Applet_Parameters"> \ |
18 |
|
18 | here</a> for details).\ |
- | 19 | <br><tt class="wims_code_words">height</tt> default <tt class="wims_code_words">300</tt>\ |
|
19 | <br><tt>width</tt> |
20 | <br><tt class="wims_code_words">width</tt> default <tt class="wims_code_words">300</tt>\ |
20 | <br><tt>file</tt> |
21 | <br><tt class="wims_code_words">file</tt> default <tt class="wims_code_words">none</tt>. Be careful : the .ggb file must be in the "image" \ |
21 | directory if you use the slib in an OEF exercise, \ |
22 | directory if you use the slib in an OEF exercise, \ |
22 | <br>in the "files" directory if you use the slib in a document ;\ |
23 | <br>in the "files" directory if you use the slib in a document ;\ |
23 | <br>otherwise you have to use relative adress from module directory.\ |
24 | <br>otherwise you have to use relative adress from module directory.\ |
24 | <br><tt>showToolBar</tt> |
25 | <br><tt class="wims_code_words">showToolBar</tt> default <tt class="wims_code_words">false</tt>\ |
25 | <br><tt>customToolBar</tt> |
26 | <br><tt class="wims_code_words">customToolBar</tt> default <tt class="wims_code_words">none</tt>. Be careful : no comma is allowed and if you want \ |
26 | <br>to separate two integers by a space-character, type a " |
27 | <br>to separate two integers by a space-character, type a <tt class="wims_code_words">@</tt> instead of this space-character ! \ |
27 | The list of the icones <a target="wims_external" href="http://www.geogebra.org/source/program/doc/geogebra_modes.html">is here</a>\ |
28 | The list of the icones <a target="wims_external" href="http://www.geogebra.org/source/program/doc/geogebra_modes.html">is here</a>\ |
28 | <br><tt>showMenuBar</tt> |
29 | <br><tt class="wims_code_words">showMenuBar</tt> default <tt class="wims_code_words">false</tt>\ |
29 | <br><tt>showAlgebraInput</tt> |
30 | <br><tt class="wims_code_words">showAlgebraInput</tt> default <tt class="wims_code_words">false</tt>\ |
- | 31 | <br><tt class="wims_code_words">showAlgebraView</tt> default <tt class="wims_code_words">false</tt>\ |
|
30 | <br><tt>showResetIcon</tt> |
32 | <br><tt class="wims_code_words">showResetIcon</tt> default <tt class="wims_code_words">false</tt> (Be careful : this option enable to \ |
31 | reset the applet, but without the construction done from wims)\ |
33 | reset the applet, but without the construction done from wims)\ |
32 | <br><tt>showToolBarHelp</tt> |
34 | <br><tt class="wims_code_words">showToolBarHelp</tt> default <tt class="wims_code_words">true</tt>\ |
33 | <br><tt>enableRightClick</tt> |
35 | <br><tt class="wims_code_words">enableRightClick</tt> default <tt class="wims_code_words">true</tt> (Be careful : by right-clicking \ |
34 | on an object, the student can modify all the objects in the construction !)\ |
36 | on an object, the student can modify all the objects in the construction !)\ |
35 | <br><tt>language</tt> |
37 | <br><tt class="wims_code_words">language</tt> default <tt class="wims_code_words">fr</tt>\ |
36 | <br><tt>enableLabelDrags</tt> |
38 | <br><tt class="wims_code_words">enableLabelDrags</tt> default <tt class="wims_code_words">true</tt>\ |
37 | <br><tt>enableShiftDragZoom</tt> |
39 | <br><tt class="wims_code_words">enableShiftDragZoom</tt> default <tt class="wims_code_words">true</tt>\ |
38 | <br><tt>errorDialogsActive</tt> |
40 | <br><tt class="wims_code_words">errorDialogsActive</tt> default <tt class="wims_code_words">true</tt>\ |
39 | <br><tt>debug</tt> |
41 | <br><tt class="wims_code_words">debug</tt> default <tt class="wims_code_words">false</tt>\ |
40 | <br><tt |
42 | <br><tt class="wims_code_words">number</tt> number of the applet in the html page (default <tt class="wims_code_words">1</tt>)\ |
- | 43 | <br> In case of filestring, write <tt class="wims_code_words">ggbBase64=the_filestring</tt>\ |
|
- | 44 | without space and on the first line.\ |
|
41 | < |
45 | <p>EXAMPLE\ |
42 | < |
46 | <pre>\integer{x=random(3)}\ |
43 |
|
47 | \text{appletcommand= Z=(\x,3.78)\\ |
44 |
|
48 | W=(6.2,2.8)\\ |
45 |
|
49 | Ellipse[Z,W,5]\\ |
46 |
|
50 | u=Line[W,Z]}\ |
47 |
|
51 | #the language can be setted in the options\ |
48 |
|
52 | \text{option= showToolBar=true\ |
49 |
|
53 | language=en\ |
50 |
|
54 | customToolBar="0|5@40 10||1|2"\ |
51 |
|
55 | width=600\ |
52 |
|
56 | height=500\ |
53 |
|
57 | number=1</tt>\ |
54 | <br><tt>#to hide the algebra window (on the left), use a ".ggb" file in the options\ |
- | |
55 |
|
58 | \text{applet=slib(geo2D/geogebra3 \appletcommand ; \option)}\ |
56 |
|
59 | \statement{\applet}\ |
- | 60 | </pre> |