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

visual/Slider: provide fillColor aliases for markerColor

This commit is contained in:
Sotiri Bakagiannis 2021-06-11 08:45:05 +01:00
parent 94264e3e75
commit 0e3a23f5d0

View File

@ -380,6 +380,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.
* *