0.1.10 • Published 5 months ago

iris-validation v0.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Iris-Validation

npm version

This repository contains the code for the published npm installable iris-validation package.

Installation

To install the published iris-validation

npm install iris-validation@latest

Usage

An example of using the component with the provided random test data is shown here:

import {Iris, IrisData, IrisAesthetics, IrisProps, generate_random_data} from "iris-validation"
import { ExampleProps } from '../interface/interface';

export function Example(props: ExampleProps) {

    const random_data = generate_random_data(5) // get 5 metric rings

    const aes: IrisAesthetics = {
        dimensions: [1000,1000],
        radius_change: 50, 
        header: 40,
        text_size: 12
    }

    const results: IrisData = {
        data: random_data,
        chain_list: ["A", "B", "C"],
        file_list: ["input1"], 
    } // results for use with generate_random_data

    const iris_props: IrisProps = { 
        results: results,
        from_wasm: false,
        aesthetics: aes, 
        callback: (residue) => { 
            console.log("RESIDUE CLICKED", residue)
        }
    }

    return (
            <Iris {...iris_props}></Iris>                        
    );
}

Development

To install this repository

  git clone https://github.com/Dialpuri/iris-validation.git
  cd iris-validation
  npm ci
  npm run build

Before any commits to this repository the following code must run and pass

  npm run prettier
  npm run lint
0.1.10

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago