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

Merge pull request #390 from thewhodidthis/bf#322--slider

visual/Slider: provide fillColor aliases for markerColor
This commit is contained in:
Alain Pitiot 2021-06-11 10:19:18 +02:00 committed by GitHub
commit cad60bb964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,31 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin, WindowMixin)
/** Let `fillColor` alias `markerColor` to parallel PsychoPy */
set fillColor(color) {
this.markerColor = color;
}
setFillColor(color) {
this.setMarkerColor(color);
}
get fillColor() {
return this.markerColor;
}
getFillColor() {
return this.getMarkerColor();
}
/** /**
* Estimate the bounding box. * Estimate the bounding box.
* *