@kitware/vtk.js 25.7.2 → 25.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { vtkObject } from './../../interfaces';
2
2
  import vtkCanvasView from './CanvasView';
3
+ import vtkImageStream from './../../IO/Core/ImageStream';
3
4
  import vtkViewStream from './../../IO/Core/ImageStream/ViewStream';
4
5
 
5
6
  interface IRemoteViewInitialValues {
@@ -188,13 +189,18 @@ export function newInstance(
188
189
  initialValues?: IRemoteViewInitialValues
189
190
  ): vtkRemoteView;
190
191
 
191
- export function connectImageStream(session: any): any;
192
+ export function connectImageStream(session: any): void;
193
+
194
+ export function disconnectImageStream(): void;
195
+
192
196
  /**
193
197
  * vtkRemoteView provides a way to create a remote view.
194
198
  */
195
199
  export declare const vtkRemoteView: {
196
200
  newInstance: typeof newInstance;
197
201
  extend: typeof extend;
202
+ SHARED_IMAGE_STREAM: vtkImageStream;
198
203
  connectImageStream: typeof connectImageStream;
204
+ disconnectImageStream: typeof disconnectImageStream;
199
205
  };
200
206
  export default vtkRemoteView;
@@ -41,7 +41,7 @@ function createContextProxyHandler() {
41
41
 
42
42
  return {
43
43
  get: function get(gl, prop, receiver) {
44
- var value = Reflect.get(gl, prop, receiver);
44
+ var value = Reflect.get(gl, prop, gl);
45
45
 
46
46
  if (value instanceof Function) {
47
47
  // prevents Illegal Invocation errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "25.7.2",
3
+ "version": "25.7.3",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",