Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ylzon/fiagram
- Owner: ylzon
- License: mit
- Created: 2024-05-03T08:10:21.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-26T06:01:44.000Z (4 months ago)
- Last Synced: 2024-10-26T18:44:24.989Z (3 months ago)
- Topics: d3, diagram, react, svg, typescript
- Language: TypeScript
- Homepage: https://ylzon.github.io/fiagram/
- Size: 4.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```