Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: cvisbal0724
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Size: 26.6 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog Contributing License Citation

README.md

cornerstone-tools

Provides a simple, extensible framework for creating tools on top of Cornerstone.js. Includes common tool implementations, and leverages DICOM metadata (when available) for advanced functionality.

[**Read The Docs**](https://tools.cornerstonejs.org/) | [Edit the docs](https://github.com/cornerstonejs/cornerstoneTools/edit/master/docs/)


Build Status Coverage Status All Contributors

NPM version NPM downloads MIT License <!-- prettier-ignore-end -->

Index

The Fun Stuff

Everything Else

The problem

Building one or two tools on top of Cornerstone.js is not that difficult. However, as the number of tools grow, you begin to encounter difficult problems:

  • Tools should behave and be configurable in a consistant way
  • Managing tools across multiple cornerstone enabled elements
  • Tools that need knowledge of a fellow tool's state
  • The ability to "drop-in" others' tools, and they "just work"
  • and many others

This library solves these problems in a highly pluggable and extensible way.

This solution

cornerstone-tools is a light-weight solution for building Tools on top of Cornerstone.js. It's only dependencies are libraries within the Cornerstone family. Instead of trying to "do everything" it aims to be extensible and pluggable to aid in the rapid development of new tools. Ideally, tools created using cornerstone-tools can be easily shared, allowing for the creation of a broader ecosystem.

Example

Below is a simplified example of creating a tool by extending cornerstone-tool's BaseTool class.

```javascript import cornerstone from 'cornerstone-core'; import { BaseTool } from 'cornerstone-tools'; import basicLevelingStrategy from '...';

export default class WwwcTool extends BaseTool { constructor(configuration = {}) { const defaultConfig = { name: 'Wwwc', strategies: { basicLevelingStrategy }, supportedInteractionTypes: ['Mouse', 'Touch'], configuration: { orientation: 0, }, }; const initialConfiguration = Object.assign(defaultConfig, configuration);

super(initialConfiguration);

}

mouseDragCallback(evt) { this.applyActiveStrategy(evt);

cornerstone.setViewport(evt.detail.element, evt.detail.viewport);

}

touchDragCallback(evt) { evt.stopImmediatePropagation(); this.applyActiveStrategy(evt);

cornerstone.setViewport(evt.detail.element, evt.detail.viewport);

} } ```

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies:

```js // To install the newest version npm install --save cornerstone-tools

// To install the legacy version (2.4.x branch) npm install --save cornerstone-tools@2 ```

This library has peerDependencies listings for:

  • hammerjs - Better touch support
  • cornerstone-core
  • cornerstone-math - Simplifies and provides shared complex tool math logic
  • Any Cornerstone "Image Loader"
    • cornerstone-web-image-loader - JPEG/PNG images
    • cornerstone-wado-image-loader - DICOM images; also parses tags for tool use

If you need to support the IE11 Browser, you will need to provide polyfills as needed. Our BrowserList target:

json "browserslist": [ "> 1%", "IE 11", "not dead", "not IE < 11", "not op_mini all" ]

Setting up and configuring cornerstone-tools's depency can be the biggest hurdle to getting started. Be sure to check out our docs for assistance.

Docs

Examples & Docs

The latest major version has just been published. We are still flushing out our examples. If you have anything you would like to see documented, or you want a specific example from version 2 ported, either create an issue or make a pull request ^_^

Tools

Annotation Tools

3rd Party Tool Plugins

A huge thanks to tool authors, like @sisobus, for sharing their work with the community!

Other Solutions

Contributors

Thanks goes to these people (emoji key):

| Chris Hafey
Chris Hafey

| Erik Ziegler
Erik Ziegler

| Danny Brown
Danny Brown

| James Petts
James Petts

| Steve Pieper
Steve Pieper

| Rodrigo Antinarelli
Rodrigo Antinarelli

| Zaid Safadi
Zaid Safadi

| | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | Gustavo Andr Lelis
Gustavo Andr Lelis

| Kofifus
Kofifus

| Alos Dreyfus
Alos Dreyfus

| Tim Leslie
Tim Leslie

| diego0020
diego0020

| Evren Ozkan
Evren Ozkan

| Salvador Daniel Pelayo
Salvador Daniel Pelayo

| | Juan Narvaez
Juan Narvaez

| Mike
Mike

| Sangkeun Kim
Sangkeun Kim

| Victor Saase
Victor Saase

| Michael Wasser
Michael Wasser

| Amandeep Singh
Amandeep Singh

| Madison Dickson
Madison Dickson

| | Kevin Lee Drum
Kevin Lee Drum

| Makarand Bauskar
Makarand Bauskar

| Biharck Araujo
Biharck Araujo

| Devon Bernard
Devon Bernard

| Karl-Heinrich
Karl-Heinrich

| counterxing
counterxing

| Jorge Lopes
Jorge Lopes

| | Gabriel Garrido
Gabriel Garrido

| ASVBPREAUBV
ASVBPREAUBV

| frolic06
frolic06

| codepage949
codepage949

| Asherah Connor
Asherah Connor

| Ikko Ashimine
Ikko Ashimine

| <!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the all-contributors specification. Contributions of any kind welcome!

Issues

Looking to contribute? Look for the Good First Issue label.

Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a . This helps maintainers prioritize what to work on.

Questions

For questions related to using the library, please visit our support community, or file an issue on GitHub.

LICENSE

MIT

Owner

  • Name: Carlos Visbal
  • Login: cvisbal0724
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Ziegler"
  given-names: "Erik"
  orcid: "https://orcid.org/0000-0003-1857-8129"
- family-names: "Urban"
  given-names: "Trinity"
- family-names: "Brown"
  given-names: "Danny"
- family-names: "Petts"
  given-names: "James"
- family-names: "Pieper"
  given-names: "Steve D"
- family-names: "Lewis"
  given-names: "Rob"
- family-names: "Hafey"
  given-names: "Chris"
- family-names: "Harris"
  given-names: "Gordon J"
title: "Open Health Imaging Foundation Viewer: An Extensible Open-Source Framework for Building Web-Based Imaging Applications to Support Cancer Research"
doi: 10.1200/CCI.19.00131
version: 1.0.0
url: "https://github.com/cornerstonejs/cornerstoneTools"

GitHub Events

Total
Last Year

Dependencies

docs/latest/package-lock.json npm
  • gitbook-plugin-edit-link 2.0.2
  • gitbook-plugin-ga 1.0.1
  • gitbook-plugin-github 2.0.0
  • gitbook-plugin-sitemap 1.2.0
  • gitbook-plugin-theme-cornerstone 1.1.1
  • gitbook-plugin-versions 2.1.4
  • sitemap 1.5.0
  • underscore 1.9.1
  • url-join 0.0.1
docs/previous/v3/package-lock.json npm
  • gitbook-plugin-edit-link 2.0.2
  • gitbook-plugin-ga 1.0.1
  • gitbook-plugin-github 2.0.0
  • gitbook-plugin-sitemap 1.2.0
  • gitbook-plugin-theme-cornerstone 1.1.1
  • gitbook-plugin-versions 2.1.4
  • sitemap 1.5.0
  • underscore 1.9.1
  • url-join 0.0.1
package-lock.json npm
  • 1708 dependencies
package.json npm
  • @babel/core ^7.7.5 development
  • @babel/plugin-transform-runtime ^7.7.5 development
  • @babel/preset-env ^7.7.5 development
  • all-contributors-cli 5.11.0 development
  • babel-jest ^25.1.0 development
  • babel-loader ^8.0.4 development
  • canvas 2.6.1 development
  • commitizen ^4.0.3 development
  • coveralls 3.0.2 development
  • cz-conventional-changelog 2.1.0 development
  • docma 3.2.2 development
  • eslint 4.19.1 development
  • eslint-config-prettier 3.3.0 development
  • eslint-loader 2.0.0 development
  • eslint-plugin-import 2.12.0 development
  • eslint-plugin-prettier 3.0.0 development
  • gitbook-plugin-edit-link 2.0.2 development
  • gitbook-plugin-ga 2.0.0 development
  • gitbook-plugin-github 3.0.0 development
  • gitbook-plugin-sitemap 1.2.0 development
  • husky 3.0.x development
  • jest ^25.1.0 development
  • jest-junit 5.1.0 development
  • lint-staged ^9.2.5 development
  • lodash ^4.17.15 development
  • nodemon ^2.0.2 development
  • prettier 1.18.x development
  • semantic-release ^15.13.24 development
  • shx ^0.3.2 development
  • terser-webpack-plugin ^1.4.1 development
  • webpack ^4.35.2 development
  • webpack-cli ^3.3.5 development
  • webpack-dev-server ^3.7.2 development
  • @babel/runtime 7.7.5
  • cornerstone-math 0.1.7
examples/Gemfile rubygems
  • jekyll-feed ~> 0.6 development
  • jekyll ~> 3.8.5
  • minima ~> 2.0
  • tzinfo-data >= 0
examples/Gemfile.lock rubygems
  • addressable 2.8.0
  • bundler 2.0.2
  • colorator 1.1.0
  • concurrent-ruby 1.1.4
  • em-websocket 0.5.1
  • eventmachine 1.2.7
  • ffi 1.10.0
  • forwardable-extended 2.6.0
  • http_parser.rb 0.6.0
  • i18n 0.9.5
  • jekyll 3.8.5
  • jekyll-feed 0.11.0
  • jekyll-sass-converter 1.5.2
  • jekyll-seo-tag 2.5.0
  • jekyll-watch 2.1.2
  • kramdown 1.17.0
  • liquid 4.0.1
  • listen 3.1.5
  • mercenary 0.3.6
  • minima 2.5.0
  • pathutil 0.16.2
  • public_suffix 4.0.6
  • rb-fsevent 0.10.3
  • rb-inotify 0.10.0
  • rouge 3.3.0
  • ruby_dep 1.5.0
  • safe_yaml 1.0.4
  • sass 3.7.3
  • sass-listen 4.0.0
  • tzinfo 2.0.0
  • tzinfo-data 1.2018.9