File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13782,6 +13782,7 @@ module.exports = function(vectorfield, bounds) {
13782
13782
var positionVectors = [];
13783
13783
var vectorScale = Infinity;
13784
13784
var skipIt = false;
13785
+ var vectorSizemode = vectorfield.coneSizemode === 'vector';
13785
13786
for (var i = 0; i < positions.length; i++) {
13786
13787
var p = positions[i];
13787
13788
minX = Math.min(p[0], minX);
@@ -13795,7 +13796,7 @@ module.exports = function(vectorfield, bounds) {
13795
13796
if (vec3.length(u) > maxNorm) {
13796
13797
maxNorm = vec3.length(u);
13797
13798
}
13798
- if (i) {
13799
+ if (i && !vectorSizemode ) {
13799
13800
// Find vector scale [w/ units of time] using "successive" positions
13800
13801
// (not "adjacent" with would be O(n^2)),
13801
13802
//
@@ -13834,7 +13835,9 @@ module.exports = function(vectorfield, bounds) {
13834
13835
}
13835
13836
geo.vectorScale = vectorScale;
13836
13837
13837
- var coneScale = vectorfield.coneSize || 0.5;
13838
+ var coneScale = vectorfield.coneSize || (
13839
+ vectorSizemode ? 1 :0.5
13840
+ );
13838
13841
13839
13842
if (vectorfield.absoluteConeSize) {
13840
13843
coneScale = vectorfield.absoluteConeSize * invertedMaxNorm;
You can’t perform that action at this time.
0 commit comments