Skip to content

Commit 8831e01

Browse files
committed
Hacks to fix typing
1 parent dee1934 commit 8831e01

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/VtkThreeView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export default defineComponent({
438438
const canvasRef = ref<HTMLCanvasElement | null>(null);
439439
440440
const interactor = computed(() => viewProxy.value.getInteractor());
441-
onVTKEvent(interactor, 'onRenderEvent', () => {
441+
onVTKEvent(interactor, 'onRenderEvent' as 'onModified', () => {
442442
if (!canvasRef.value) return;
443443
const ctx = canvasRef.value.getContext('2d');
444444
const src = viewProxy.value.getOpenGLRenderWindow().getCanvas();

src/components/VtkTwoView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ export default defineComponent({
408408
const canvasRef = ref<HTMLCanvasElement | null>(null);
409409
410410
const interactor = computed(() => viewProxy.value.getInteractor());
411-
onVTKEvent(interactor, 'onRenderEvent', () => {
411+
onVTKEvent(interactor, 'onRenderEvent' as 'onModified', () => {
412412
if (!canvasRef.value) return;
413413
const ctx = canvasRef.value.getContext('2d');
414414
const src = viewProxy.value.getOpenGLRenderWindow().getCanvas();

src/vtk/LPSView3DProxy/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface ViewProxyCustomizations {
1010
getInteractorStyle3D(): vtkInteractorStyleManipulator;
1111
setInteractionContainer(el: Maybe<HTMLElement>): boolean;
1212
getInteractionContainer(): Maybe<HTMLElement>;
13+
setSize(w: number, h: number): boolean;
1314
}
1415

1516
export interface vtkLPSView3DProxy

0 commit comments

Comments
 (0)