Namespace JXG.Options
↳ JXG.Options
Defined in: options.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Options Namespace
These are the default options of the board and of all geometry elements.
|
Field Attributes | Field Name and Description |
---|---|
Default ordering of the layers.
|
|
Options that are used by the navigation bar.
|
|
Precision options, defining how close a pointer device (mouse, finger, pen) has to be
to an object such that the object is highlighted or can be dragged.
|
|
Abbreviations of attributes.
|
Namespace Detail
JXG.Options
Options Namespace
These are the default options of the board and of all geometry elements.
Field Detail
{Object}
layer
Default ordering of the layers.
The numbering starts from 0 and the highest layer number is numlayers-1.
The default values are
JXG.Options.layer: { numlayers: 20, // only important in SVG text: 9, point: 9, glider: 9, arc: 8, line: 7, circle: 6, curve: 5, turtle: 5, polygon: 3, sector: 3, angle: 3, integral: 3, axis: 2, ticks: 2, grid: 1, image: 0, trace: 0 }
{Object}
navbar
Options that are used by the navigation bar.
Default values are
JXG.Option.navbar: { strokeColor: '#333333', fillColor: 'transparent', highlightFillColor: '#aaaaaa', padding: '2px', position: 'absolute', fontSize: '14px', cursor: 'pointer', zIndex: '100', right: '5px', bottom: '5px' },These settings are overruled by the CSS class 'JXG_navigation'.
{Object}
precision
Precision options, defining how close a pointer device (mouse, finger, pen) has to be
to an object such that the object is highlighted or can be dragged.
These values are board-wide and can be overwritten for individual elements by
changing their precision attribute.
The default values are
JXG.Options.precision: { touch: 30, touchMax: 100, mouse: 4, pen: 4, epsilon: 0.0001, hasPoint: 4 }
{Object}
shortcuts
Abbreviations of attributes. Setting the shortcut means setting abbreviated properties
to the same value.
It is used in JXG.GeometryElement#setAttribute and in
the constructor JXG.GeometryElement.
Attention: In Options.js abbreviations are not allowed.