Comment with source of default values for AnimatedLayer (#947)

This commit is contained in:
jberg 2019-10-11 20:10:33 -07:00 committed by GitHub
parent 8881332f1b
commit d7c55e486d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,7 @@ class AnimatedLayer extends Layer {
this._typedAttributes = this.attributes;
const { autoplay, autoreplay, start, speed } = this._typedAttributes;
// Default values from http://wiki.winamp.com/wiki/XML_GUI_Objects#.3Canimatedlayer.2F.3E
this._playing = getBoolean(autoplay, false);
this._autoReplay = getBoolean(autoreplay, true);
this._frameNum = getNumber(start, 0);