Giter Site home page Giter Site logo

decision_ui_react's Introduction

Основано на https://reactflow.dev/

Key files

node-types.json - описание доступных узлов.
Canvas.js - компонент с холстом, включает в себя описание стартового состояния диаграммы.

Demo

https://optimistic-lamport-8d4b04.netlify.app

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Возможности

  • Позволяет редактировать диаграмму, добавляя узлы из палитры и настраивая связи между ними
  • Позволяет редактировать узлы, меняя параметры узла во всплывающем окне
  • Гибкий список доступных узлов и список настраиваемых парметров узлов, определяется json объектом (в примере берется из файла https://github.com/iVintik/decision_ui_react/blob/master/src/nodeTypes.json)
  • Возможность добавлять кастомные узлы с базовым отображением на уровне конфига
  • Валидация параметров узлов в соответствии с конфигом
  • Возможность создавать кастомные React компоненты для отображения узлов (пример https://github.com/iVintik/decision_ui_react/blob/master/src/CustomNode/CustomNode.js)
  • Все узлы - Recat компонеты, встроены в DOM и поддерживают css
  • Первоначальноее состояние диграммы (в т.ч. параметры узлов) задаются json объектом https://github.com/iVintik/decision_ui_react/blob/master/src/Canvas/Canvas.js
  • Состояние диаграммы может быть получено с помощью API reactflow https://reactflow.dev/docs/api/component-props/ заданные параметры узлов вложены в состояние диаграммы в reactflow

decision_ui_react's People

Contributors

ivintik avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.