Add info about minimized state to comment xml.
This commit is contained in:
1 parent
1639444a4d
commit
b0aa288916
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user