• James Long's avatar
    Add filtering to Chrome Android dependency visualization · 00ce0f79
    James Long authored
    Somewhat glitchy filtering has been added.
    * Type in a package name (exact match) and click "Add" to add to filter.
    * Click on any filter in the list to remove it.
    Known issues:
    * Locked nodes no longer appear locked when a filter is added/removed.
    * Zoom/pan is reset when a new filter is added/removed.
    
    These issues are mostly because of the way we interact with the d3
    graph. A big upcoming TODO is to rework `renderGraph` into an API of
    sorts which will give us finer control over what parts of the graph to
    rerender, if nodes should keep their metadata (position, lock) upon
    rerendering, etc.
    
    This commit also pulls in and uses Vue.js via a CDN for the current
    prototyping work. We will likely install via npm in the future.
    
    Bug: 1093962
    Change-Id: Ide0b6a649424deac56e2f4d8121b0029d9286e7f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252378
    Commit-Queue: James Long <yjlong@google.com>
    Reviewed-by: default avatarHenrique Nakashima <hnakashima@chromium.org>
    Reviewed-by: default avatarSamuel Huang <huangs@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#780428}
    00ce0f79
process_graph_json.js 1.46 KB