Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ylzon/fiagram

[WIP] F Word React + TypeScript diagram library that uses SVG and HTML for rendering
https://github.com/ylzon/fiagram

d3 diagram react svg typescript

Last synced: about 1 month ago
JSON representation

[WIP] F Word React + TypeScript diagram library that uses SVG and HTML for rendering

Awesome Lists containing this project

README

        

![fiagram-logo.png](docs/public/fiagram-logo.png)

基于 SVG + D3.js,可快速构建出拓扑图、流程图等可视化图形组件

> WIP 项目,目前仅支持 React

### Installation

```bash
npm install @fiagram/react
```

```bash
pnpm add @fiagram/react
```

### Todo
React
* [x] 支持 i18n 多语言
* [x] 支持 CSS var
* [ ] 支持黑白主题
* [ ] 预置FlowChart、Topology等常用图形

Vue
* [ ] WIP

### React Usage

```javascript
import { Diagram } from '@fiagram/react';

const NodeShape = ({ x, y, width, height, name }) => {
return (


{name}

);
};

const App = () => {
return (

);
};

export default App;
```