summaryrefslogtreecommitdiff
path: root/src/model/graph.js
AgeCommit message (Collapse)Author
2014-12-04implement graph.editStatus (small refactor)Alon Levy
2014-12-04update suggested names on json load (regression)Alon Levy
2014-12-04fix regression with too many auto completion suggestionsAlon Levy
2014-12-04avoid popping the confirm dialog for temp nodes removalAlon Levy
the change is a one liner hidden in 24 lines of refactoring :/
2014-12-04graph: getConnectedNodesAndLinks: use forEach (still sucks)Alon Levy
2014-12-04graph: getConnectedNodesAndLinks: exclude given nodes from returnAlon Levy
2014-12-03Fix TypeError: variable _ redeclares argumentAlon Levy
2014-12-03assume logged-in user, rm userBusLV-426
2014-12-01fix broken loadAlon Levy
2014-11-29enable user setting by ?user=someoneAlon Levy
2014-11-29use Bacon instead of signalAlon Levy
See https://github.com/baconjs/bacon.js Usage right now: we have rz_bus to hold global busses: - names: for autosuggest - ui busses: - ui_key - ui_input The events are objects with {where: from consts, keys/input} (could maybe just use the events and rely on the target element class/id) And graph has it's own bus: graph.diffBus (camelcase probably not the right style - will fix in later commit) To publish to a bus you use push. To insert another stream to a bus you use plug. To listen to a bus you use onValue (you can use subscribe too to get errors and end of stream event, but we don't use that yet). This allows usage of map, filter, flatMap, see github repo for cool examples.
2014-11-29model/graph: fix signal on notifyAlon Levy
2014-11-25Fixes #154: set suggested names when loading from JSONAlon Levy
2014-11-25graph/__addNode: fix to handle same node referenceAlon Levy
It now returns a node, either a new one or the existing one. This is used by addNode and further up to get the existing (regressed until this patch from the breaking patch) behavior of expanding existing nodes with new links.
2014-11-25graph/findNodeByName: use "or" initialization idiomAlon Levy
2014-11-25model/graph: __addNode: refactor to use create_node__with_optional_idAlon Levy
2014-11-25model/graph: addNode: return new node (changed in recent refactor)Alon Levy
2014-11-25graph: add missing space in error messageAlon Levy
2014-11-24add searchAlon Levy
The added input lets you select by *oring* multiple space less expressions. i.e. 'a b' will find all nodes with name containing either 'a' or 'b'. Not the specification, will be remedied later (i.e. maybe tomorrow, who knows). excuse the bulk commit, this does 3 things: splits off selection logic into src/view/selection - handles setting state explicityl on Node's, still bad. - bad at least the 'selected' state (i.e. boolean) is in one place. - common point for clicking on nodes/edges and selecting view selection input makes graph.getConnectedNodesAndLinks accept an array and not just a single node implements the search functionality outlined in the first paragraph.
2014-11-24core/graph: reduce verbose debug logs to consoleAlon Levy
2014-11-24fix removed textanalysis autoSuggestNameAlon Levy
Fix removed textanalysis autoSuggestName call using signal/slot, no additional signal added (using graph_diff) Broken in af20dd47d3cb254d4dd2638264fe79385a199832
2014-11-23disconnecting model/graph -> textanalysis dep, model should not depend on ↵LV-426
presenter
2014-11-19addLink refactoring - call create_link__set_random_id()LV-426
2014-11-19wide source/target -> __src,__dst rename, align with DB modelLV-426
2014-11-19rm id_generatorLV-426
2014-11-19replace _addNodeNoHistory() call with addNodeLV-426
2014-11-19rm unused el paramLV-426
2014-11-19__addNode improve loggingLV-426
2014-11-19findNodeByName - make state param optionalLV-426
2014-11-19addNode refactoring:LV-426
- rename, return value - add notify param - set id via create_node__set_random_id()
2014-11-18graph: make TODO more annoyingAlon Levy
2014-11-13rename scripts/ -> src/LV-426