1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00

visual/Slider: clean up JSDoc for font, use Arial by default

This commit is contained in:
Sotiri Bakagiannis 2021-05-17 14:26:06 +01:00
parent 4cc9630610
commit 864eab588a

View File

@ -44,7 +44,7 @@ import {PsychoJS} from "../core/PsychoJS";
* and labels with respect to the central bar * and labels with respect to the central bar
* @param {boolean} [options.readOnly= false] - whether or not the slider is read only * @param {boolean} [options.readOnly= false] - whether or not the slider is read only
* *
* @param {string} [options.fontFamily= 'Helvetica'] - the text font * @param {string} [options.font= 'Arial'] - the text font
* @param {boolean} [options.bold= true] - whether or not the font of the labels is bold * @param {boolean} [options.bold= true] - whether or not the font of the labels is bold
* @param {boolean} [options.italic= false] - whether or not the font of the labels is italic * @param {boolean} [options.italic= false] - whether or not the font of the labels is italic
* @param {number} [options.fontSize] - the font size of the labels (in pixels), the default fontSize depends on the * @param {number} [options.fontSize] - the font size of the labels (in pixels), the default fontSize depends on the
@ -130,7 +130,7 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin, WindowMixin)
this._addAttribute( this._addAttribute(
'font', 'font',
font, font,
'Helvetica', 'Arial',
this._onChange(true, true) this._onChange(true, true)
); );
this._addAttribute( this._addAttribute(