-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desired cleanups #314
Comments
An open question is how to do gestures without Polymer. |
noflo-ui does use the-graph-thumb: https://github.com/noflo/noflo-ui/blob/1ddb399017ecb2da99c4033f9ecfc1e4deedc9b5/elements/noflo-main.html#L199 |
the-graph-editor / the-graph was supposed to be like the-graph-nav / the-graph-thumb, with navigation separated from rendering. Good idea to make those separate (React) components. |
Fair points. Keeping interactivity away from rendering is good. Updated description. |
Reason for including noflo originally was to listen to changes from elsewhere (p2p) -- the-graph/the-graph/the-graph-graph.js Lines 102 to 116 in c3b6a15
|
Yes, and that is still legit. Its just that this functionality should move outside of NoFlo so it can be shared more nicely. |
the-graph 0.5.x no longer depends on NoFlo, using new fbp-graph library instead #316 |
#320 has a lot of cleanups that reduces dependency on Polymer elements a lot. |
Things that still are a bit unclear:
|
Right now the code has a couple of warts
Also, we need to get rid of Polymer, see #222
TODO
Concrete things
General cleanups
the-graph-nav
oneditor
elementregisterComponent()
andgetComponent()
, in favor plainlibrary
propertyUse CommonJS modules instead of communicating via
TheGraph
global.mixins
to module, require() where used.arcs
to module, require() where usedTheGraph.find...
out ofthe-graph.js
the-graph.js
factories
to be local to module, required when needed. Expose asTheGraph.$module.factories
for overriding, probably with legacy mappping in placeReact modernizaton
React.createFactory()
usage, in favor of exposing the class and using React.createElement()Polymer-removal
the-graph-editor
the-graph-thumb
usable without Polymer wrappingthe-graph-nav
usable without Polymer wrappingPolymerGestures
in favor of HammerJSthe-graph-editor
usable without any Polymer wrappingthe-graph
Polymer element, use React directly inthe-graph-editor
Later
setState
use forsetSelectedEdges
etc, just use propsLoose guidelines
Generally how to approach things
-nav
and-editor
(not -thumb and the-graph)Pan/zoom/scroll, selection
The text was updated successfully, but these errors were encountered: