Skip to content

Commit

Permalink
Hacks to fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Nov 10, 2023
1 parent dee1934 commit 8831e01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/VtkThreeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export default defineComponent({
const canvasRef = ref<HTMLCanvasElement | null>(null);
const interactor = computed(() => viewProxy.value.getInteractor());
onVTKEvent(interactor, 'onRenderEvent', () => {
onVTKEvent(interactor, 'onRenderEvent' as 'onModified', () => {
if (!canvasRef.value) return;
const ctx = canvasRef.value.getContext('2d');
const src = viewProxy.value.getOpenGLRenderWindow().getCanvas();
Expand Down
2 changes: 1 addition & 1 deletion src/components/VtkTwoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export default defineComponent({
const canvasRef = ref<HTMLCanvasElement | null>(null);
const interactor = computed(() => viewProxy.value.getInteractor());
onVTKEvent(interactor, 'onRenderEvent', () => {
onVTKEvent(interactor, 'onRenderEvent' as 'onModified', () => {
if (!canvasRef.value) return;
const ctx = canvasRef.value.getContext('2d');
const src = viewProxy.value.getOpenGLRenderWindow().getCanvas();
Expand Down
1 change: 1 addition & 0 deletions src/vtk/LPSView3DProxy/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface ViewProxyCustomizations {
getInteractorStyle3D(): vtkInteractorStyleManipulator;
setInteractionContainer(el: Maybe<HTMLElement>): boolean;
getInteractionContainer(): Maybe<HTMLElement>;
setSize(w: number, h: number): boolean;
}

export interface vtkLPSView3DProxy
Expand Down

0 comments on commit 8831e01

Please sign in to comment.