
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
react-flow-designer
Advanced tools
Use D3 for calculations. Redux is used as default state manager, still underlying pure component has been exposed to be used in a non-opiniated maner.
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import { DatastreamDesigner } from './datastream_designer/';
const store = configureStore();
render(
<Provider store={store}>
<DatastreamDesigner />
</Provider>,
document.getElementById('app'),
);
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import { datastreamDesignerReducer } from '../datastream_designer/';
const rootReducer = combineReducers({
routing: routerReducer,
datastream: datastreamDesignerReducer,
});
export default rootReducer;
the datastream_designer module expose its components, reducers, and action type constants.
Action type constants are exposed for the sake of listening to them and add new feature to your application arround the datastream designer.
Exemple a reducer listening for 'DATASTREAM_DESIGNER_NODE_SELECTED' could trigger a form so you can edit the node data.
the idea is to reduce the surface api of the redux action, encouraging batching multiple transformation in a transaction
each of those action are intended to be used with the apply function
Each of those action are backed by the graph API wich check graph integrity, if one action fail to apply the whole transaction is void and the original graph is returned, one or many errors are logged.
special action for movement are kept for optimisation purpose, nothing prevent the user to update position via the update
action
removeNode removeNodeData setNodeData removeNodeGraphicalAttribute setNodeGraphicalAttributes setNodeType setNodeSize moveNodeToEnd applyMovementTo moveNodeTo startMoveNodeTo
The package is automatically published on npm as soon as a pull request is merged on the master with a different version.
DISCLAIMER: We don't control the version, you have to ensure you don't have an old version compared to the master, and you need to follow semantic versioning to upgrade the version when needed.
FAQs
Flow designer for react and redux
The npm package react-flow-designer receives a total of 430 weekly downloads. As such, react-flow-designer popularity was classified as not popular.
We found that react-flow-designer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.