Add info about minimized state to comment xml.

This commit is contained in:
Karishma Chadha 2018-05-24 16:23:08 -04:00
parent 1639444a4d
commit b0aa288916

View file

@ -26,8 +26,9 @@ class Comment {
}
toXML () {
return `<comment id="${this.id}" x="${this.x}" y="${
this.y}" w="${this.width}" h="${this.height}" pinned="${this.blockId !== null}">${this.text}</comment>`;
return `<comment type="scratch" id="${this.id}" x="${this.x}" y="${
this.y}" w="${this.width}" h="${this.height}" pinned="${
this.blockId !== null}" minimized="${this.minimized}">${this.text}</comment>`;
}
// TODO choose min and defaults for width and height