summaryrefslogtreecommitdiff
path: root/scripts/rhizicore.js
AgeCommit message (Collapse)Author
2014-11-10rename rhizicore -> rz_core, move towards common rz_ prefixLV-426
2014-11-10rm unused history dependencyLV-426
2014-11-10rhizicore: remove dependency on textanalysisAlon Levy
2014-11-09id wrap entire svg canvasLV-426
2014-11-09scripts/model/graph.js merge resolutionLV-426
2014-11-09split highlight (search neighborhood of node) between graph & rhizicoreAlon Levy
multiple TODOs added in code. in general, datastructure = graph, control/view state in rhizicore.
2014-11-03fixes #79; note that hightlightNode sucksAlon Levy
It should be implemented as setting a chosen state, containing id's of chosen nodes and possibly links as well (although links are defined by their source and target ids).
2014-11-03fix whitespaceAlon Levy
2014-11-03fixes #122: show node text edit box over node regardless of position/zoomAlon Levy
2014-11-03change id to be distinct from nameAlon Levy
TODO: introduce a Node class split from the Graph. TODO: use a GUID and not just an incrementing number (trivial change).
2014-11-02getting rid of bad object names: myGraph -> GraphLV-426
2014-11-02split off model/graph.jsAlon Levy
2014-10-31rhizicore: have a default size for nodes to avoid setting circle.r to nanAlon Levy
2014-10-29small move to allow numeric id; not enoughAlon Levy
2014-10-29save/load xy positionAlon Levy
2014-10-28make debug ui click handlers only apply to the labels, remove some debug printsAlon Levy
2014-10-28history/rhizicore: record zoom events; zoom g element selector: svg g.zoomAlon Levy
2014-10-28wip/history zoomAlon Levy
2014-10-26history switch to events; using a single GRAPH_DIFF action. todo - replay; ↵Alon Levy
zoom in/out; clicks on nodes/edges
2014-10-26introduce signal, start using in history; use consts for signal nameAlon Levy
introduces two new modules: scripts/consts.js scripts/signal.js signal is a thin wrapper for jquery('window').on and jquery('window').trigger, which seems like an adaquete signal library - there are faster things around, but why introduce another dependency.
2014-10-26Fixes #96 URL property in node isn't saved to JSONAlon Levy
2014-10-21test_analyzer: better testAlon Levy
need better graph accessors to give only the 'real' nodes & links - that will fix some of the tests, leaving the real wrong ones
2014-10-21fix test_analyzer after require.jsAlon Levy
2014-10-21rhizicore: remove unused variableAlon Levy
2014-10-20introduce require.js and rewrite testsAlon Levy
Yes, I'm being lazy. The purpose of require.js is to allow writing modules, i.e. individual smaller then the whole files with clear dependencies. This is achieved by using a new api provided by require.js: define, require, requirejs Read more at [requirejs] (http://requirejs.org) Tests have been rewritten to work correctly with require.js; they still use jsdom. Test output is now stored in the repository, all tests are run via run_tests.js; This is a hack - once a good harness (with assertions, suites - unittest like) presents itself it will be used. Hidden here is also using FileSaver for history saving, so history is saved to history.json instead to a random name. Plus dropping some dead code.
2014-10-19factor out util.jsAlon Levy
2014-10-13drop empty myGraph.updateGraph functionAlon Levy
2014-10-12Fixes #85 - compare using lower caseAlon Levy
The whole lower case thing is a hack. We should separete id and name. But right now it seems to be holding.
2014-10-12myGraph.compareSubset: add verbose loggingAlon Levy
2014-10-12Fixes #83: don't register keypress multiple timesAlon Levy
2014-10-12Fixes #88: Property window doesn’t show up when a node is deleted.Anmol Agrawal
2014-10-12#63 don't move on node clickAlon Levy
2014-10-12#63 don't start force simulation when no topological change doneAlon Levy
2014-10-12rhizhicore: fix use of mixed case in changed_nodesAlon Levy
2014-10-09rhizicore: fix some indentation in editNameAlon Levy
Not required right now, triggered by reverted patch.
2014-10-08Fixes #85Alon Levy
This is more of #49 basically, just for a more complex sentence. I've kept the flow that we have, but augmented the graph change check (myGraph.compareSubset) and introduced some helper functions for sets on the way.
2014-10-07#49: forgotten start misses the whole pointAlon Levy
2014-10-07Fixes #49: forgot link changesAlon Levy
2014-10-07rhizicore: don't move graph when only changing link or node textAlon Levy
Fixes #49 Note about solution: in general we need to find out whether the graph from the new text (NewVertices, NewLinks) is homologous to the graph from the old text (OldVertices, OldLinks). The implemented solution only checks an easier case, where there is a single renamed vertex. A better solution to do later: - have textanalysis have state - have textanalysis return the difference from the last state: nodes added nodes deleted nodes changed - plus for bonus refactor all the editing functions (edit* in myGraph)
2014-10-07rhizicore: update: add no_relayout parameter, plus don't keep assigning tick ↵Alon Levy
event handler
2014-10-07rhizicore: add hasNodeAlon Levy
2014-10-07rhizicore: add debug print if NaN's introduced in translateAlon Levy
2014-10-07rhizicore: add helper debug_printAlon Levy
2014-10-07rhizicore: fix loading json's (drag n drop) without 'name'Alon Levy
2014-10-07rhizicore: merge node additionAlon Levy
2014-10-07rhizicore: don't change state of existing nodes on additionAlon Levy
changing state of existing node results in ability to delete nodes while creating a new sentence by inputting a node name and then deleting it. This was fixed for the common case in a previous commit, but not for the case of loading from storage.
2014-10-07fix broken saveAlon Levy
2014-10-02Undo of commit Merge branch '#62' into Prototypegarbash
It broke the input box
2014-10-01Merge branch '#62' into PrototypeAnmol Agrawal
Conflicts: index.html scripts/rhizicore.js
2014-09-30change #2 to issue #74Anmol Agrawal