npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@xulab-research/vue-anatomogram

v1.1.7

Published

Interactive anatomical diagrams for Vue.js applications - A Vue-compatible rewrite of EBI anatomogram

Readme

Vue Anatomogram

🔬 Vue.js compatible anatomical structure viewer - A rewrite of @ebi-gene-expression-group/anatomogram for modern Vue applications.

This project is a Vue.js compatible rewrite of the original EBI Gene Expression Group anatomogram package, enabling interactive display and highlighting of anatomical structures across different species in Vue applications.

You need to move the src/svg, src/img, and src/png folders to the public directory.

Features

  • 🎯 Interactive organ highlighting and selection
  • 🐭 Multi-species support (human, mouse, etc.)
  • 🖱️ Mouse events (hover, click)
  • 🎨 Customizable colors and opacity
  • 📱 Responsive SVG rendering
  • 🔄 Dynamic view switching
  • ⚡ Vue.js compatibility with plugin support
  • NEW: One-line rendering with the simple render function

Quick Start

npm install @xulab-research/vue-anatomogram

Traditional Usage

import Main from '@xulab-research/vue-anatomogram';

const anatomogram = new Main({
    species: 'homo_sapiens',
    showIds: ['UBERON_0000955'], // brain
    highlightIds: ['UBERON_0000948'], // heart
    selectIds: ['UBERON_0002048'], // lungs
    onClick: (ids) => console.log('Clicked:', ids)
});

anatomogram.mount(document.getElementById('container'));

Configuration Options

Basic Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | species | string | 'homo_sapiens' | Target species identifier | | atlasUrl | string | 'https://www.ebi.ac.uk/gxa/' | Base URL for atlas resources |

Organ Display Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | showIds | array | [] | Array of organ UBERON IDs to display with basic styling | | highlightIds | array | [] | Array of organ UBERON IDs to highlight (emphasis styling) | | selectIds | array | [] | Array of organ UBERON IDs to mark as selected (active styling) |

Color Customization

| Option | Type | Default | Description | |--------|------|---------|-------------| | showColour | string | 'grey' | Fill color for organs in showIds | | highlightColour | string | 'red' | Fill color for organs in highlightIds | | selectColour | string | 'purple' | Fill color for organs in selectIds |

Opacity Settings

| Option | Type | Default | Range | Description | |--------|------|---------|-------|-------------| | showOpacity | number | 0.4 | 0.0-1.0 | Opacity level for shown organs | | highlightOpacity | number | 0.6 | 0.0-1.0 | Opacity level for highlighted organs | | selectOpacity | number | 0.8 | 0.0-1.0 | Opacity level for selected organs |

Event Callbacks

| Option | Type | Default | Parameters | Description | |--------|------|---------|------------|-------------| | onMouseOver | function | console.log | (ids: string[]) | Triggered when mouse enters organ area | | onMouseOut | function | console.log | (ids: string[]) | Triggered when mouse leaves organ area | | onClick | function | console.log | (ids: string[]) | Triggered when organ is clicked | | onViewChanged | function | console.log | (view: string) | Triggered when anatomical view changes |

Original Package

This is a Vue.js compatible rewrite of the original @ebi-gene-expression-group/anatomogram package. The original package provides similar functionality but was not optimized for modern Vue.js applications.

License

MIT