File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 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) {
1378213782 var positionVectors = [];
1378313783 var vectorScale = Infinity;
1378413784 var skipIt = false;
13785+ var vectorSizemode = vectorfield.coneSizemode === 'vector';
1378513786 for (var i = 0; i < positions.length; i++) {
1378613787 var p = positions[i];
1378713788 minX = Math.min(p[0], minX);
@@ -13795,7 +13796,7 @@ module.exports = function(vectorfield, bounds) {
1379513796 if (vec3.length(u) > maxNorm) {
1379613797 maxNorm = vec3.length(u);
1379713798 }
13798- if (i) {
13799+ if (i && !vectorSizemode ) {
1379913800 // Find vector scale [w/ units of time] using "successive" positions
1380013801 // (not "adjacent" with would be O(n^2)),
1380113802 //
@@ -13834,7 +13835,9 @@ module.exports = function(vectorfield, bounds) {
1383413835 }
1383513836 geo.vectorScale = vectorScale;
1383613837
13837- var coneScale = vectorfield.coneSize || 0.5;
13838+ var coneScale = vectorfield.coneSize || (
13839+ vectorSizemode ? 1 :0.5
13840+ );
1383813841
1383913842 if (vectorfield.absoluteConeSize) {
1384013843 coneScale = vectorfield.absoluteConeSize * invertedMaxNorm;
You can’t perform that action at this time.
0 commit comments