@kitware/vtk.js 32.1.2 → 32.3.0
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.
|
@@ -135,6 +135,18 @@ export interface vtkImageSlice extends vtkProp3D {
|
|
|
135
135
|
* @param {vtkImageProperty} property The vtkImageProperty instance.
|
|
136
136
|
*/
|
|
137
137
|
setProperty(property: vtkImageProperty): boolean;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @param {boolean} forceOpaque If true, render during opaque pass even if opacity value is below 1.0.
|
|
142
|
+
*/
|
|
143
|
+
setForceOpaque(forceOpaque: boolean): boolean;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @param {boolean} forceTranslucent If true, render during translucent pass even if opacity value is 1.0.
|
|
148
|
+
*/
|
|
149
|
+
setForceTranslucent(forceTranslucent: boolean): boolean;
|
|
138
150
|
}
|
|
139
151
|
|
|
140
152
|
/**
|
|
@@ -157,6 +157,8 @@ function vtkImageSlice(publicAPI, model) {
|
|
|
157
157
|
const DEFAULT_VALUES = {
|
|
158
158
|
mapper: null,
|
|
159
159
|
property: null,
|
|
160
|
+
forceOpaque: false,
|
|
161
|
+
forceTranslucent: false,
|
|
160
162
|
bounds: [...vtkBoundingBox.INIT_BOUNDS]
|
|
161
163
|
};
|
|
162
164
|
|
|
@@ -175,7 +177,7 @@ function extend(publicAPI, model) {
|
|
|
175
177
|
|
|
176
178
|
// Build VTK API
|
|
177
179
|
macro.set(publicAPI, model, ['property']);
|
|
178
|
-
macro.setGet(publicAPI, model, ['mapper']);
|
|
180
|
+
macro.setGet(publicAPI, model, ['mapper', 'forceOpaque', 'forceTranslucent']);
|
|
179
181
|
macro.getArray(publicAPI, model, ['bounds'], 6);
|
|
180
182
|
|
|
181
183
|
// Object methods
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as macro } from '../../macros2.js';
|
|
2
2
|
import Constants from './RenderWindowHelper/Constants.js';
|
|
3
|
-
import vtkActor from '
|
|
4
|
-
import vtkLineSource from '
|
|
5
|
-
import vtkMapper from '
|
|
3
|
+
import vtkActor from '../Core/Actor.js';
|
|
4
|
+
import vtkLineSource from '../../Filters/Sources/LineSource.js';
|
|
5
|
+
import vtkMapper from '../Core/Mapper.js';
|
|
6
6
|
import { GET_UNDERLYING_CONTEXT } from '../OpenGL/RenderWindow/ContextProxy.js';
|
|
7
7
|
import { vec3 } from 'gl-matrix';
|
|
8
8
|
|
|
@@ -289,9 +289,10 @@ const newInstance = macro.newInstance(extend, 'vtkWebXRRenderWindowHelper');
|
|
|
289
289
|
|
|
290
290
|
// ----------------------------------------------------------------------------
|
|
291
291
|
|
|
292
|
-
var
|
|
292
|
+
var vtkRenderWindowHelper = {
|
|
293
293
|
newInstance,
|
|
294
|
-
extend
|
|
294
|
+
extend,
|
|
295
|
+
...Constants
|
|
295
296
|
};
|
|
296
297
|
|
|
297
|
-
export {
|
|
298
|
+
export { vtkRenderWindowHelper as default, extend, newInstance };
|
package/Rendering/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import Misc from './Misc.js';
|
|
|
3
3
|
import OpenGL from './OpenGL.js';
|
|
4
4
|
import SceneGraph from './SceneGraph.js';
|
|
5
5
|
import WebGPU from './WebGPU.js';
|
|
6
|
+
import WebXR from './WebXR.js';
|
|
6
7
|
|
|
7
8
|
var Rendering = {
|
|
8
9
|
Core,
|
|
9
10
|
Misc,
|
|
10
11
|
OpenGL,
|
|
11
12
|
SceneGraph,
|
|
12
|
-
WebGPU
|
|
13
|
+
WebGPU,
|
|
14
|
+
WebXR
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export { Rendering as default };
|