edf-header-visualization
Version:
Interactively visualize the structure of the static and dynamic header of an EDF file
67 lines (49 loc) • 1.53 kB
Markdown
> Interactively visualize the structure of the static and dynamic header of an EDF file
[](https://edfplus.github.io/edf-header-visualization/)
```sh
npm install edf-header-visualization
```
```jsx
import React from 'react';
import { EdfHeaderVisualization } from 'edf-header-visualization';
import edfHeader from './edf-header';
const App = () => <EdfHeaderVisualization edfHeader={edfHeader} />;
export default App;
```
or
```jsx
import React, { useState } from 'react';
import { EdfHeaderGrid, EdfHeaderLegend } from 'edf-header-visualization';
import edfHeader from './edf-header';
export default function App() {
const [hoveredItem, setHoveredItem] = useState('NONE');
const props = { edfHeader, hoveredItem, setHoveredItem };
return (
<div className="edf-header-visualization">
<h1>EDF Header Visualization</h1>
<EdfHeaderLegend {...props} />
<br />
<EdfHeaderGrid {...props} />
</div>
);
}
```
```sh
npm install
npm start
npm publish
```
```sh
cd example
npm install
npm start
npm run deploy
```
[]: https://img.shields.io/npm/v/edf-header-visualization.svg?style=flat-square
[]: https://www.npmjs.com/package/edf-header-visualization