Options

Namespace

JXG.Options namespace. This namespace contains all default options of the board and all geometry elements.

Attributes

Own

layer

Description

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
}
Type
Object
Source
options.js, line 3841
Description

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'.

Type
Object
Deprecated
Yes
Source
options.js, line 1580

precision

Description

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
}
Type
Object
See
Source
options.js, line 3809

Inherited

none

Members

Own

shortcuts : Object

Description

Abbreviations of attributes. Setting the shortcut means setting abbreviated attributes 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.

Type
Object
Source
options.js, line 10956

Inherited

none

Details

Options

Source
options.js, line 41