Comments (16)
The hype. It's real.
(No but seriously I hope I'm not nagging you, I kinda hyped myself into thinking about a weekend project I have in mind :D)
from react-diagrams.
just pushed a dev branch, busy with it as we speak. Take a look at the test directory for an example of how it works after the change. Its got a full OOP model now with an event driven layer. It now supports multiple selections as well. It shouldn't be long now until it all works and is optimized to how it used to be.
from react-diagrams.
Whoop whoop :) Looking good :D
from react-diagrams.
Hi there, so yeah I wrote this little library a while ago to solve some a problem I was having, and then it kind of started picking up traction. Ive got plans to actually port the entire thing to typescript and then also vastly improve it etc.. Typescript compiles down to ECMA 5 and ECMA 6 and its much better suited for complex javascript development, which is where I think this library is going to head eventually.
I haven't used rollup before so I'm not sure how that works or what it does, but it definitely works with webpack/webpack dev server. Some guys here have forked the library and changed/updated some of the imports as well. Im interested in pull requests that add to the core, not requests that change the syntax e.g..Someone mentioned porting to JSX, which I think is a bad idea.
I also have a few architectural changes that I'm going to be making shortly to vastly improve the mechanics of the system, which will allow new things like multiple selections etc..
from react-diagrams.
Well, it just so happens your library is pretty much exactly what I was looking for, for a while :D
I almost started rolling my own, but I've decided to first post a question on reddit, and your lib came up.
I saw your thoughts on JSX and, while personally I'm not as averse to it, I see and respect your points. So would you consider changing the imports to ES6-ish an unwarranted syntax change, or adding to the core?
Or, more to the point and considering your mention of moving to Typescript: if I wanted to getthis library (hopefully) working with Rollup, should I just fork it, or submit a PR once I'm done with it?
from react-diagrams.
you more than welcome to fork it, but I think I'm going to get this all working with typescript quickly, as it shouldn't take me more than an hour. I should have something up here today or tomorrow, so it might be a good idea to just hold out till then. Ill also update the examples and such... thanks for the support by the way :)
from react-diagrams.
Good news, nearly done with the port and architectural upgrade :D I think everyone is going to dig this new build, its vastly better designed now.
from react-diagrams.
Nice! At first I thought you meant it as "it's somewhere on my backburner, will get to it at some point", didn't expect it to be this fast! :D
from react-diagrams.
@dylanvorster does that ;)
from react-diagrams.
Any chance for a "dev-obviously-unstable" branch, or do we just wait for the master to land? ;)
from react-diagrams.
nearly there :)
from react-diagrams.
from react-diagrams.
and with that, I think its done and merged to master :D let me know if you need any assistance etc..
from react-diagrams.
Hmm, looks like the issue's not 100% resolved, exactly, but I think it's mostly due to tsc doing something dumb:
In main.js it appears it's converting this:
export * from "./defaults/DefaultLinkFactory";
to this:
__export(require("./defaults/DefaultLinkFactory"));
Which is causing the browser to throw the following fit:
Uncaught ReferenceError: require is not defined
I'm guessing it's probably something to do with tsc, and there may or may not be some kind of toggle for it, but I've never used it, so it's hard to say.
On a completely unrelated note: what's the default way to remove a link (e.g. in your examples)?
from react-diagrams.
thats strange, my examples under webpack are all working properly with no issues... my tsc doesnt throw any issues either.
regarding your question: on any node/link/point etc.. just call .remove()
from react-diagrams.
I think i should open a 'gitter' so we can chat about all this
from react-diagrams.
Related Issues (20)
- custom code
- [Bug] Right angled links are diagonal if the points are added after the link is created
- 50 Errors in build HOT 2
- BezierCurve
- Tutorial not working HOT 1
- Deserialization not working HOT 2
- Demos should be refactored to be consistent with modern react standards and styles HOT 2
- I can't see the any nodes. HOT 1
- Is there a way with smart routing to ensure that the link line is never going through the node?
- Deregister Listener when links are created
- DragNewLinkState bug when pressing down with another mouse button while dragging.
- Does storm-react-diagrams support nonce attribute for CSP?
- Node EventListeners don't work when setting a state from component
- can't find createEngine export HOT 1
- Adding NodeModel to NodeLayer set itself as its parent, but NodeModel's parent must be a Diagram
- Module '"@projectstorm/react-diagrams"' has no exported member 'AbstractReactFactory'.
- Intermittent bug in dragNewLink with allowLooseLinks = false HOT 2
- Bug: running `diagrams-demo-project` error `TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'. Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.`
- Deserialization isn't working properly HOT 1
- got an error in gallary demo: diagrams-demo-gallery HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-diagrams.