We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0001f48 commit c16eb25Copy full SHA for c16eb25
1 file changed
src/layout/Cube.mjs
@@ -97,6 +97,27 @@ class Cube extends Card {
97
sideZ_: 300
98
}
99
100
+ /**
101
+ * Serializes the instance into a JSON-compatible object for the Neural Link.
102
+ * @returns {Object}
103
+ */
104
+ toJSON() {
105
+ return {
106
+ ...super.toJSON(),
107
+ activeFace : this.activeFace,
108
+ activeIndex : this.activeIndex,
109
+ fitContainer : this.fitContainer,
110
+ hideInactiveCardsOnDestroy: this.hideInactiveCardsOnDestroy,
111
+ perspective : this.perspective,
112
+ rotateX : this.rotateX,
113
+ rotateY : this.rotateY,
114
+ rotateZ : this.rotateZ,
115
+ sideX : this.sideX,
116
+ sideY : this.sideY,
117
+ sideZ : this.sideZ
118
+ }
119
120
+
121
/**
122
* @member {Function|null} #cachedVdomItemsRoot=null
123
* @private
0 commit comments