Skip to content

Interactively visualize the structure of the static and dynamic header of an EDF file

License

Notifications You must be signed in to change notification settings

somnonetz/edf-header-visualization

Repository files navigation

edf-header-visualization npm package

Interactively visualize the structure of the static and dynamic header of an EDF file

Screenshot

Install

npm install edf-header-visualization

Usage

import React from 'react';
import { EdfHeaderVisualization } from 'edf-header-visualization';
import edfHeader from './edf-header';

const App = () => <EdfHeaderVisualization edfHeader={edfHeader} />;

export default App;

or

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>
  );
}

Development

Component

npm install
npm start    # start rollup watcher
npm publish  # publish to NPM

Example

cd example
npm install
npm start      # start dev server
npm run deploy # deploy to Github Pages

About

Interactively visualize the structure of the static and dynamic header of an EDF file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published