Coder Social home page Coder Social logo

xflow's Introduction

English (US) | 简体中文

React component for building interactive diagrams

Features

  • 🌱   Easy-to-use: Provides a more appropriate way to use React components.
  • 🚀   Unified state management: Service data and graph data can be managed in a unified manner.
  • 🧲   Supports multi-graph mode: Each graph component has a separate state and graph instance.
  • 💯   Out of the box features: There are a lot of diagram components out of the box.

Installation

# npm
$ npm install @antv/xflow --save

# yarn
$ yarn add @antv/xflow

# pnpm
$ pnpm add @antv/xflow

Usage

const Page = () => {
  return (
    <XFlow>
      <XFlowGraph
        zoomable
        pannable
        centerView
        fitView
        connectionEdgeOptions={{
          attrs: {
            line: {
              stroke: '#8f8f8f',
              strokeWidth: 1,
            },
          },
        }}
      />
      <Grid type="mesh" options={{ color: '#ccc', thickness: 1 }} />
      <Clipboard />
      <History />
      <Snapline sharp />
      <Transform resizing rotating />
    </XFlow>
  );
};

Documentation

The documentation for XFlow 2.0 is still being developed urgently, so if you want to know how to use it, you can refer to the code examples.

Development

$ pnpm bootstrap
$ pnpm dev

Contributing

To become a contributor, please follow our contributing guide. If you are an active contributor, you can apply to be a outside collaborator.

Contributors

License

The scripts and documentation in this project are released under the MIT License.

xflow's People

Contributors

lyn-boyu avatar xflow-bot[bot] avatar github-actions[bot] avatar newbyvector avatar lxfu1 avatar bigdadel avatar gujinyue1010 avatar draco-china avatar zxc0328 avatar danielleefu avatar wjqsummer avatar promise6512 avatar bubkoo avatar ariel-lau avatar tonywu6 avatar october-rain avatar mrmengj avatar jtsang4 avatar indigo-w avatar cliffordfajardo avatar jaylu921212 avatar yaoyuandev avatar polydevil avatar arthur657834 avatar lidad avatar iyolee avatar marcccc avatar zhou94 avatar fengsx avatar nelsonkuang 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.