@kitware/vtk.js 32.5.0 → 32.5.1
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.
|
@@ -702,6 +702,11 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
|
|
|
702
702
|
shaders.Geometry = GSSource;
|
|
703
703
|
shaders.Fragment = FSSource;
|
|
704
704
|
};
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Returns true if the normal is almost axis aligned.
|
|
708
|
+
* Has a side effect to normalize the vector.
|
|
709
|
+
*/
|
|
705
710
|
function isVectorAxisAligned(n) {
|
|
706
711
|
vtkMath.normalize(n);
|
|
707
712
|
const tmpN = [0, 0, 0];
|
|
@@ -709,7 +714,7 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
|
|
|
709
714
|
vec3.zero(tmpN);
|
|
710
715
|
tmpN[i] = 1.0;
|
|
711
716
|
const dotP = vtkMath.dot(n, tmpN);
|
|
712
|
-
if (dotP < -0.
|
|
717
|
+
if (dotP < -0.999999 || dotP > 0.999999) {
|
|
713
718
|
return [true, i];
|
|
714
719
|
}
|
|
715
720
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "32.5.
|
|
3
|
+
"version": "32.5.1",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"rollup-plugin-string": "3.0.0",
|
|
114
114
|
"rollup-plugin-svgo": "2.0.0",
|
|
115
115
|
"rollup-plugin-web-worker-loader": "1.6.1",
|
|
116
|
-
"semantic-release": "
|
|
116
|
+
"semantic-release": "24.2.0",
|
|
117
117
|
"snabbdom": "^3.5.1",
|
|
118
118
|
"string-replace-loader": "3.1.0",
|
|
119
119
|
"style-loader": "3.3.1",
|
|
@@ -223,7 +223,12 @@
|
|
|
223
223
|
"pkgRoot": "./dist/esm"
|
|
224
224
|
}
|
|
225
225
|
],
|
|
226
|
-
|
|
226
|
+
[
|
|
227
|
+
"@semantic-release/github",
|
|
228
|
+
{
|
|
229
|
+
"successCommentCondition": "<% return branch.name === 'master'; %>"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
227
232
|
]
|
|
228
233
|
},
|
|
229
234
|
"publishConfig": {
|