Skip to content

Commit

Permalink
docs(RCW): Add some methods to the TS header of RCW behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret authored and finetjul committed Apr 8, 2024
1 parent ad7435e commit b03af43
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
import { Nullable } from "../../../types";
import { InteractionMethodsName, lineNames } from "./Constants";
import vtkAbstractWidget from "../../Core/AbstractWidget";

type TLineName = (typeof lineNames)[number];

type TCursorStyles = {
[key in InteractionMethodsName]?: string;
} & {
default?: string
};

export default interface vtkResliceCursorWidgetDefaultInstance extends vtkAbstractWidget {
getActiveInteraction(): Nullable<InteractionMethodsName>;

setKeepOrthogonality(keepOrthogonality: boolean): boolean;
getKeepOrthogonality(): boolean;

setCursorStyles(cursorStyles: TCursorStyles): boolean;
getCursorStyles(): TCursorStyles;

setEnableTranslation(enableTranslation: boolean): void;
setEnableRotation(enableRotation: boolean): void;

getActiveLineName(): TLineName | undefined;
}

0 comments on commit b03af43

Please sign in to comment.