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 🙏

© 2024 – Pkg Stats / Ryan Hefner

biojs-human-tissues

v0.2.3

Published

Visualisation of human tissues

Downloads

33

Readme

biojs-human-tissues

NPM version

Visualisation of human tissues

Getting Started

Install the module with: npm install biojs-human-tissues

var HumanTissues = require('biojs-human-tissues');
var Tissues = new HumanTissues({el: <div>, [colors: <object>], gender: string, width: string, tissuesShown: StringArray})

Documentation

Light-weight visualisation for human tissues. Right now the list of supported tissues includes

  • skin
  • brain
  • lungs
  • liver
  • pancreas
  • stomach
  • small_intestine
  • large_intestine
  • neck
  • kidney
  • prostate
  • bladder
  • breast
  • cervix
  • ovary
  • uterus
  • retina
  • lymph

Please notice that it is now possible to make either a female or a male silhouette.

Please notice it is now possible to scale the silhouette.

Please notice it is now possible to decide, which tissues should be shown.

Please notice it is possible to use the old silhouette with the old tissues. But there are no possibilities to change the size and the displayed tissues.

Please refer to the example for more detailed instructions on how to initialize and use the visualisation.

.render()

Method responsible to render the visualisation

How to use this method

Tissues.render()

.addMouseoverEvent(tissue, func)

Parameter: tissue Type: String Example: colon

Parameter: func Type: Function Example: function(evt){ console.log(evt.srcTarget.id); }

Method responsible to set mouseover events for tissues.

How to use this method

Tissues.addMouseoverEvent('pancreas', function(evt){
  console.log('Mousing over ' + evt.srcElement.id;);
});

.addMouseoverEvent(tissue, func)

Parameter: tissue Type: String Example: colon

Parameter: func Type: Function Example: function(evt){ console.log(evt.srcTarget.id); }

Method responsible to set click events for tissues.

How to use this method

Tissues.addClickEvent('pancreas', function(evt){
  console.log('Clicked on ' + evt.srcElement.id;);
});

.setColor(tissue, color)

Parameter: tissue Type: String Example: colon

Parameter: color Type: String Example: #444

Method responsible to say set colors for tissues.

How to use this method

Tissues.setColor('colon', '#444');

.hide(tissue)

Parameter: tissue Type: String Example: colon

Method responsible to hide a tissue.

How to use this method

Tissues.hide('colon');

.show(tissue)

Parameter: tissue Type: String Example: colon

Method responsible to show a tissue.

How to use this method

Tissues.show('colon');

.addTooltip(tissue, ttcontent)

Parameter: tissue Type: String Example: colon

Parameter: ttcontent Type: String Example: <h1>Colon tooltip!</h1>

Method responsible for adding Tooltips to tissues. The tooltip content is specified by the ttcontent parameter which can be a HTML string.

How to use this method

Tissues.addTooltip('pancreas', '<h1>Pancreas!</h1>');

.tooltipCss(key, value)

Parameter: key Type: String Example: backgroundColor

Parameter: value Type: String Example: steelblue

Method that allows to change the CSS for tooltips.

How to use this method

Tissues.tooltipCss('backgroundColor', 'steelblue');

Contributing

All contributions are welcome.

Support

If you have any problem or suggestion please open an issue here.

License

The MIT License

Copyright (c) 2016, Benedikt Rauscher

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.