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:
commit
cad60bb964
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user