summaryrefslogtreecommitdiff
path: root/src/model/graph.js
AgeCommit message (Collapse)Author
2014-12-16load_from_backend(): post ajax link pointer processingLV-426
2014-12-16findNodeByName(): rm unused paramLV-426
2014-12-16_remove_node_set(): cascade_link_rm_set: collect removed linksLV-426
2014-12-16major addLink() sig refactoring: addLink(link, peer_notify)LV-426
2014-12-16addLink: drop drop_conjugator_links param, extract apply_conjugator_link_logic()LV-426
2014-12-16wip: __addNode, _remove_node_set: peer_notify support (backbone sync)LV-426
2014-12-16drop findNode, switch to find_node__by_id: avoid linear searchLV-426
2014-12-16removeNodes(): add filter paramLV-426
2014-12-16findCoordinates() - rm unused state paramLV-426
2014-12-16rename removeNodes -> _remove_node_setLV-426
2014-12-16removeNode(): rm unsued state param,LV-426
swith to find_node__by_id() use
2014-12-16getConnectedNodesAndLinks(): switch to find_node__by_id(), state never used ↵LV-426
anyway
2014-12-16__addNode(): log on type != 'bubble'LV-426
2014-12-16this hacksLV-426
2014-12-16__addNode(): assert id present on insertion,LV-426
introduce id_to_node_map
2014-12-16find_node__by_id()LV-426
2014-12-16rm create_node__with_optional_id(), use id if supplied to create_node_from_specLV-426
2014-12-16load_from_backend(): refactor, UI update callbackLV-426
2014-12-08graph: editName fix so renameing doesn't delete a node (Fixes #202)Alon Levy
2014-12-08add a new state: "related"Alon Levy
2014-12-08graph: add hasNodeByNameAndNotStateAlon Levy
2014-12-07model/graph: bug fix, s/foreach/forEach/, problem for selecting chainlinkAlon Levy
2014-12-06graph: avoid nop name renamesAlon Levy
2014-12-06graph: unite both remove node actions for easier undo/diff trackingAlon Levy
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