UNPKG

our-medical

Version:

medical image vue component

45 lines (44 loc) 1.69 kB
import type { Types as coreTypes } from '@cornerstonejs/core'; import type { Types as toolsTypes } from '@cornerstonejs/tools'; import type { EventTypes } from '../../types'; export declare function addMouseUpCallback(fn: (e: MouseEvent) => void): (e: MouseEvent) => void; type AddedCallback = (e: EventTypes.NewPointFromDragEvent) => void; type BeforeAddHook = (viewport: coreTypes.IViewport, points: toolsTypes.IPoints) => Promise<boolean>; export type MouseUpOptions = { addedCallback?: AddedCallback; beforeAddHook?: BeforeAddHook; [x: string]: any; }; /** * @description 鼠标抬起时触发MOUSE_DOWN_ACTIVATE执行DraggableTool工具中addNewAnnotation * @author jiannan.jiao * @date 28/09/2023 * @export * @param {string} componentId * @param {MouseEvent} e * @param {MouseUpOptions} options * @param {{ addType: string; listenType: string }} types */ export declare function mouseUp(componentId: string, e: MouseEvent, options: MouseUpOptions, types: { addType: string; listenType: string; }): Promise<void>; /** * @description 设置影像组件两个工具组中DraggableTool的dragAdd状态,防止拖拽时经过元素元素被高亮显示 * @author jiannan.jiao * @date 28/09/2023 * @export * @param {string} componentId * @param {boolean} [dragAdd=true] */ export declare function setToolConfiguration(componentId: string, dragAdd?: boolean): void; /** * @description 设置视口及document.body鼠标样式 * @author jiannan.jiao * @date 28/09/2023 * @export * @param {string} componentId * @param {string} cursorName */ export declare function setViewportsCursors(componentId: string, cursorName: string): void; export {};