Frontmatter
| id | 8234 |
| title | [Neural Link] Implement toJSON in layout.Flexbox |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 31, 2025, 4:18 PM |
| updatedAt | Dec 31, 2025, 4:20 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8234 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 31, 2025, 4:20 PM |
[Neural Link] Implement toJSON in layout.Flexbox
tobiu added parent issue #8200 on Dec 31, 2025, 4:18 PM
tobiu assigned to @tobiu on Dec 31, 2025, 4:19 PM

tobiu
Dec 31, 2025, 4:19 PM
Input from Gemini:
✦ I have implemented the
toJSONmethod insrc/layout/Flexbox.mjs. It returns:{ ...super.toJSON(), align : this.align, direction: this.direction, gap : this.gap, pack : this.pack, prefix : this.prefix, wrap : this.wrap }This serialization is also inherited by
Neo.layout.HBoxandNeo.layout.VBox.
tobiu closed this issue on Dec 31, 2025, 4:20 PM
Implement the
toJSONmethod insrc/layout/Flexbox.mjsto support the Neural Link serialization protocol.It should return an object containing:
super.toJSON()aligndirectiongappackprefixwrapNote:
Neo.layout.HBoxandNeo.layout.VBoxextendFlexbox, so they will automatically inherit this serialization.