# react-traceability

> react-traceability ========================= ## Installation ```bash npm install --save react-traceability ``` ## Usage

Latest version **2.1.3** (published 2020-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-traceability
pnpm add react-traceability
yarn add react-traceability
bun add react-traceability
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2020-05-22 |
| First published | 2020-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | jshaikh |
| Maintainers | jishan.shaikh |
| Keywords | traceability, link, map, mindmap, connect, tree, card |

## Links

- npm: https://www.npmjs.com/package/react-traceability
- Repository: https://github.com/shaikhjishan37/react-traceability
- Homepage: https://github.com/shaikhjishan37/react-traceability#readme
- Issues: https://github.com/shaikhjishan37/react-traceability/issues
- npm.io page: https://npm.io/package/react-traceability

## Dependencies (3)

- [d3](https://npm.io/package/d3.md) ^5.16.0
- [react](https://npm.io/package/react.md) ^16.13.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.13.1

## Recent versions

- 2.1.3 (latest) — 2020-05-22
- 2.1.2 — 2020-05-22
- 2.1.1 — 2020-05-22
- 2.0.9 — 2020-05-22
- 2.0.8 — 2020-05-22
- 2.0.7 — 2020-05-22
- 2.0.6 — 2020-05-22
- 2.0.5 — 2020-05-22
- 2.0.4 — 2020-05-18
- 2.0.3 — 2020-05-18
- 2.0.2 — 2020-05-18
- 2.0.1 — 2020-05-18
- 2.0.0 — 2020-05-18
- 1.0.9 — 2020-05-18
- 1.0.8 — 2020-05-18
- … 8 more at https://npm.io/package/react-traceability/versions

## README

react-traceability
=========================
## Installation
```bash
npm install --save react-traceability
```
## Usage

This is the minimal required configuration.
```javascript
import TraceView from "react-traceability"; 

class App extends Component {
  render() {
      const traceConfig = {
        data: {
            "name": "Root",
            "children": [{
                "name": "Branch 1"
            },
            {
                "name": "Branch 2"
            }]
        },
        nodeWidth: 182,
        nodeHeight: 77
    };
    return (
      <TraceView traceConfig={ traceConfig } node={ #component#" }/>
    );
  }
}
```

## Advanced Usage
```bash
# Node props can be passed by using nodeConfig
# All the props provided in nodeConfig will be passed to node
<TraceView traceConfig={ traceConfig } node={ #component#" } nodeConfig={{
	cardConfig: {},
	zoom: 3
}} />

# Config on root node
# This paddings will be applied in root node foreign object
const rootNodeConfig = {
	padding: {
		top: 4,
		bottom: 4,
		left: 4,
		right: 4
	}
}

<TraceView rootNode={ rootNodeConfig } />

```
## Tests
```bash
# Make sure that you've installed the dependencies
npm install
# Run tests
npm test
```
## sample

![Example created using this component](https://raw.githubusercontent.com/shaikhjishan37/react-traceability/master/sample.png)

---
_Source: https://npm.io/package/react-traceability · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
