0.0.24 • Published 2 months ago

@swissprot/rhea-reaction-viz-test v0.0.24

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

rhea-reaction-visualizer

Custom HTMLELement for visualizing the reactions of Rhea, an expert curated resource of biochemical reactions.

Usage

Installation

npm i @swissprot/rhea-reaction-viz-test  

Import in app

import '@swissprot/rhea-reaction-viz-test';

Attributes

Attribute nameFunction
rheaidRhea reaction ID (integer without RHEA prefix)
styleidsstyle template to give custom styling to the webcomponent

Example

index.html file

HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <template id="styles">
        <style>
            a {
                color:black
            }
        </style>
    </template>
    <div class="webPage">
        <div class="title"> Polymer reaction</div>
        <rhea-visualizer  styleid="styles" zoom rheaid="23152"></rhea-visualizer>
        <div class="title"> General small molecule reaction</div>
        <rhea-visualizer  styleid="styles" rheaid="23240"></rhea-visualizer>
        <div class="title"> General small molecule reaction with default as reaction tab</div>
        <rhea-visualizer reactiontab styleid="styles" rheaid="23240"></rhea-visualizer>
        <div class="title"> Slightly bigger molecule</div>
        <rhea-visualizer  styleid="styles" rheaid="23248"></rhea-visualizer>
        <div class="title"> Generic with * atom</div>
        <rhea-visualizer  styleid="styles" rheaid="23172"></rhea-visualizer>
        <div class="title"> Generic with positional information</div>
        <rhea-visualizer  styleid="styles" rheaid="42396"></rhea-visualizer>
    </div>
</body>
</html>

Javascript

index.js file

import '@swissprot/rhea-reaction-visualizer';

CSS

style.css file

html, body {
    width: 100%;
    height: 99%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
}

.webPage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 10px;
}

a.participantId {
        font-size: 55%; 
        cursor: default;
}

rhea-reaction {
    border-bottom: 1px grey dotted;
    margin-top: 20px;
}
0.0.23

2 months ago

0.0.24

2 months ago

0.0.21

8 months ago

0.0.22

8 months ago

0.0.20

9 months ago

0.0.19

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago