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

hellfire

v0.32.4

Published

Readme

Paladin (hellfire)

云图本地渲染引擎

Usage

Example:

import DicomView from 'hellfire';
const Example = ()=> (
    <DicomView
        ref='dicomViewLocal'
        study={study}
        token={token}
        options={options}
        toolSortChange={this.toolSortChange}
        ...
    />
)

API documentation

DicomView允许传入的参数:

study

[
    {
        "name": "study-name",
        "studyDate": "20190510",
        "series": [{
            "currentImageIdIndex": 0,
            "numberOfSeriesRelatedInstances": 20,
            "seriesInstanceUID": "1.1.1",
            "description": "描述",
            "imageIds": ["wadouri://xxx",...]
        }]
    }
]

需要按此格式传入的检查相关数据集

options

{
    layout: {
        col: 2,
        row: 2
    },
    tools: [...],
    toolbarSize: 20
}

传入配置项,控制布局和工具栏等(用于早期的单列工具栏)

  • layout :传入初始化布局,不传则默认2*2
  • tools :传入初始化工具栏顺序
  • toolbarSize :传入初始化工具栏图标大小

helpLink

helpLink = {'http://www.baidu.com'}

工具栏"使用帮助"跳转的链接

aiResult

aiResult = {}

ai结果在影像上打的标记

showAIResult

showAIResult: boolean

是否在影像上显示ai结果标记

windowSetting

windowSetting = {}

初始化窗值的配置

onLoadReady

onLoadReady: ()=> void

所有序列图像加载完毕触发

changeWindowSet

changeWindowSet: (key, body, index)=> void

触发自定义窗值 key有:add update delete

operateServerToolState

operateServerToolState: (key, data) => void

触发测量工具保存 key有:save delete clear

operateCentesisPath

operateCentesisPath: (key, data) => void

触发手术路径规划数据的保存 key有:save

onRefresh

onRefresh: () => void

界面下方的重新加载触发的方法(在reload之前)

toolSortChange

toolSortChange: ()=> void

传入工具栏自定义排序的回调函数(用于早期的单列工具栏)

disableUpDownKeyAction

disableUpDownKeyAction: boolean

上下热键事件是否禁用

anonymous

anonymous: boolean

病人信息匿名

dicomSettingChange

dicomSettingChange: (data) => void

功能设置修改的回调

dicomSetting

dicomSetting = {}

传入的功能设置的初始值,目前支持的字段:leftMouseTool、rightMouseTool、middleMouseTool

language

language: string

显示语言,默认中文(zh), 可传入en

DicomView提供给父组件调用的方法:

addStudy(data)

添加序列,data格式参考study

scrollSeriesImageToIndex(SeriesInstanceUID, SOPInstanceUID)

指定某个序列跳转到某个图像上

emitImageResize()

视窗大小的改变

cornerstoneActionEmit({type:xxx,data:xxx})

模拟触发paladin内的各种操作行为(提供给同屏使用)

paladin对外暴露的对象:

用法:

import { reducers as hellfireReducer, paladinUtils} from 'hellfire'

reducers

暴露给外部hellfire的redux数据

paladinUtils

  • getMultiImageDataFromWodo:将wodo url生成base64的image数据
    paladinUtils.getMultiImageDataFromWodo({
      wodoList
    })