lore-engine
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "lore-engine", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "A WebGL based 3D data visualization engine.", | ||
@@ -5,0 +5,0 @@ "main": "./app.js", |
@@ -450,2 +450,23 @@ //@ts-check | ||
/** | ||
* Adds a reselected event to multiple octrees and merges the event property e. | ||
* | ||
* @param {OctreeHelper[]} octreeHelpers An array of octree helpers to join. | ||
* @param {Function} eventListener A event listener for selectedchanged. | ||
*/ | ||
static joinReslected(octreeHelpers, eventListener) { | ||
for (let i = 0; i < octreeHelpers.length; i++) { | ||
octreeHelpers[i].addEventListener("reselected", function(e) { | ||
let result = []; | ||
for (let j = 0; j < octreeHelpers.length; j++) { | ||
result.push({ | ||
item: e.item, | ||
source: j | ||
}); | ||
} | ||
eventListener(result); | ||
}); | ||
} | ||
} | ||
/** | ||
* Draw the centers of the axis-aligned bounding boxes of this octree. | ||
@@ -452,0 +473,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42314965
21051