You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fulfil Aalto-LeTech#6
`package.json`: add `fracturedjsonjs` package as dependency
`dijkstraPE-research.html`: Remove unused checkbox + button scaffolding.
`player.js`: adapt the JAAL modal popup to directly display the JAAL dump.
Give the modal a z-index higher than the edge labels (700).
JSON.stringify to replace the svg dumps with data size.
Use `fracturedjsonjs`'s `formatter` to give the condensed JSON print.
maxInLineLength restricts how objcets/arrays are serialised. max of 40
gives in-line arrays, but objects still expanded. Max of 50 gives
inline arrays and `node` list in `dataStructures` as single-line.
Default of 80 gives inconsistent `edge` list in `dataStructures`, as the
single-character id number, node numbers and tag is 80 long.
It needs to be set either longer or shorter.
Meratyn
added a commit
to Meratyn/jsav-exercise-player
that referenced
this issue
Jun 23, 2022
Fulfil Aalto-LeTech#6
`package.json`: add `fracturedjsonjs` package as dependency
`dijkstraPE-research.html`: Remove unused checkbox + button scaffolding.
`player.js`: adapt the JAAL modal popup to directly display the JAAL dump.
Give the modal a z-index higher than the edge labels (700).
JSON.stringify to replace the svg dumps with data size.
Use `fracturedjsonjs`'s `formatter` to give the condensed JSON print.
maxInLineLength restricts how objcets/arrays are serialised. max of 40
gives in-line arrays, but objects still expanded. Max of 50 gives
inline arrays and `node` list in `dataStructures` as single-line.
Default of 80 gives inconsistent `edge` list in `dataStructures`, as the
single-character id number, node numbers and tag is 80 long.
It needs to be set either longer or shorter.
Extra: implement a functionality which pretty-prints JAAL data.
Purpose: the developer can see the JAAL data structure more easily. The complexity of the actual, machine-generated JAAL data can be inspected.
What we want: an output similar to the manually-written JAAL test datas, such as jaal-dijkstra-student.json.
Requirements:
SVG (%d bytes)
, where%d
is the length of the SVG code in bytes.Note: there might be JSON pretty-printing libraries already. Also see JSON.stringify.
This could be just logged into the browser console.
Nice to have, not required:
Example:
The
node
entry is on a single line.The text was updated successfully, but these errors were encountered: