Attributes
Own
distanceX
- Description
Horizontal offset in pixel of the infobox text from its anchor point.
- Type
- Number
- Default Value
- -20
- Source
- options.js, line 6441
distanceY
- Description
Vertical offset in pixel of the infobox text from its anchor point.
- Type
- Number
- Default Value
- 25
- Source
- options.js, line 6452
intl
- Description
Internationalization support for infobox text.
- Type
- object
- Default Value
{ enabled: 'inherit', options: {} }- See
- Source
- options.js, line 6463
Inherited
none
Example
const board = JXG.JSXGraph.initBoard(BOARDID, {
boundingbox: [-0.5, 0.5, 0.5, -0.5],
intl: {
enabled: false,
locale: 'de-DE'
},
keepaspectratio: true,
axis: true,
infobox: {
distanceY: 40,
intl: {
enabled: true,
options: {
minimumFractionDigits: 1,
maximumFractionDigits: 2
}
}
}
});
var p = board.create('point', [0.1, 0.1], {});
Details
- Type
- JXG.Text
- Source
- base/board.js, line 4654