Difference between revisions of "Options"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Below are the default values for many parameters of a JSXGraph construction. These values have to be overwritten before the initialization of the JSXGraph board via | Below are the default values for many parameters of a JSXGraph construction. These values have to be overwritten before the initialization of the JSXGraph board via | ||
<source lang="javascript"> | <source lang="javascript"> | ||
− | JXG.Options.fontSize = 14; | + | JXG.Options.text.fontSize = 14; |
JXG.Options.text.useASCIIMathML = true; | JXG.Options.text.useASCIIMathML = true; | ||
</source> | </source> | ||
− | + | or more compact | |
+ | |||
<source lang="javascript"> | <source lang="javascript"> | ||
− | JXG.Options = | + | JXG.Options = JXG.merge(JXG.Options, { |
− | + | showNavigation: false, | |
− | + | point: { | |
− | + | face: 'x' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | point : { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | }); | ||
+ | </source> | ||
− | + | If you have some more options you want to use for more than just one construction you can save them in an extra .js file and include them right after loading JSXGraph. | |
− | + | The complete list of default can be seen in the latest version of Options.js which available at | |
+ | [https://github.com/jsxgraph/jsxgraph/blob/master/src/options.js]. |
Latest revision as of 13:50, 19 May 2014
Below are the default values for many parameters of a JSXGraph construction. These values have to be overwritten before the initialization of the JSXGraph board via
JXG.Options.text.fontSize = 14;
JXG.Options.text.useASCIIMathML = true;
or more compact
JXG.Options = JXG.merge(JXG.Options, {
showNavigation: false,
point: {
face: 'x'
}
});
If you have some more options you want to use for more than just one construction you can save them in an extra .js file and include them right after loading JSXGraph.
The complete list of default can be seen in the latest version of Options.js which available at [1].