LearnNewsExamplesServices
Frontmatter
id8237
title[Neural Link] Implement toJSON in layout.Cube
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 31, 2025, 4:42 PM
updatedAtDec 31, 2025, 4:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/8237
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 4:44 PM

[Neural Link] Implement toJSON in layout.Cube

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 31, 2025, 4:42 PM

Implement the toJSON method in src/layout/Cube.mjs to support the Neural Link serialization protocol.

It should return an object containing:

  • Properties from super.toJSON()
  • activeFace
  • activeIndex
  • fitContainer
  • hideInactiveCardsOnDestroy
  • perspective
  • rotateX, rotateY, rotateZ
  • sideX, sideY, sideZ
tobiu added the enhancement label on Dec 31, 2025, 4:42 PM
tobiu added the ai label on Dec 31, 2025, 4:42 PM
tobiu added parent issue #8200 on Dec 31, 2025, 4:42 PM
tobiu assigned to @tobiu on Dec 31, 2025, 4:43 PM
tobiu referenced in commit c16eb25 - "feat(layout): Implement toJSON in Neo.layout.Cube for Neural Link serialization (#8237)" on Dec 31, 2025, 4:43 PM
tobiu
tobiu Dec 31, 2025, 4:44 PM

Input from Gemini:

✦ I have implemented the toJSON method in src/layout/Cube.mjs. It returns:

{
    ...super.toJSON(),
    activeFace                : this.activeFace,
    activeIndex               : this.activeIndex,
    fitContainer              : this.fitContainer,
    hideInactiveCardsOnDestroy: this.hideInactiveCardsOnDestroy,
    perspective               : this.perspective,
    rotateX                   : this.rotateX,
    rotateY                   : this.rotateY,
    rotateZ                   : this.rotateZ,
    sideX                     : this.sideX,
    sideY                     : this.sideY,
    sideZ                     : this.sideZ
}
tobiu closed this issue on Dec 31, 2025, 4:44 PM
tobiu referenced in commit 5b0234a - "docs(issue): Close ticket #8237" on Dec 31, 2025, 4:56 PM