这是indexloc提供的服务,不要输入任何密码
Skip to content

Vamonos v2.0.0 (the switch-to-d3-version)

Choose a tag to compare

@spaceships spaceships released this 08 Apr 21:22
· 64 commits to master since this release

API

  • Graph - change styleEdges to edgeCssAttributes - use css to style paths.
  • New Widget - ResultProperty. Provide it with a mapping from qualified variable names to a side-effecting functions that take their variable as input. It will call the functions at displayStart event, using the final frame of the visualization.
  • ArrayGuts - new constructor argument "firstCellBlank". Adds left-margin of 26px to array, for aligning 1-indexed with 0-indexed arrays.
  • ArrayGuts - new constructor argument "maxInputLength". Allows custom limit to the length of the value in each cell.
  • CallStack - new constructor argument "formatArgumentValues"
  • CallStack - new constructor argument "formatReturnValue"

DEMOS

  • Simplified Longest Increasing Subsequence
  • Karatsuba Multiplication
  • Recursive Addition
  • Dijkstra's Quiz
    GUTS
  • Reimplemented the graph widget using d3.
  • If hash-string decode fails, load Vamonos normally
  • Set titles on all demos
  • Overwrite history entry when a new querystring is appended to url
  • Added LZW compression to the querystring
  • When user pushes the "Run" button the browser location is updated to reflect the current state of the visualization inputs.
  • New event: "externalInput", sends parsed JSON object from query string. Which should be a stringified inputScope from the Visualizer. Graphs and Arrays support saved input states.
  • Vamonos.arrayToNum and .numToArray - methods for translating back and forth between 1234 and [1,2,3,4].* When user pushes the "Run" button the browser location is updated to reflect the current state of the visualization inputs.
  • New event: "externalInput", sends parsed JSON object from query string. Which should be a stringified inputScope from the Visualizer. Graphs and Arrays support saved input states.
  • Vamonos.arrayToNum and .numToArray - methods for translating back and forth between 1234 and [1,2,3,4].