lore-engine
Advanced tools
Comparing version 1.0.28 to 1.0.29
function hideAllButCurrent(){ | ||
//by default all submenut items are hidden | ||
//but we need to rehide them for search | ||
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) { | ||
@@ -8,7 +9,10 @@ parent.style.display = "none"; | ||
//only current page (if it exists) should be opened | ||
var file = window.location.pathname.split("/").pop(); | ||
document.querySelectorAll("nav > ul > li > a[href^='"+file+"']").forEach(function(parent) { | ||
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) { | ||
elem.style.display = "block"; | ||
}); | ||
var file = window.location.pathname.split("/").pop().replace(/\.html/, ''); | ||
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) { | ||
var href = parent.attributes.href.value.replace(/\.html/, ''); | ||
if (file === href) { | ||
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) { | ||
elem.style.display = "block"; | ||
}); | ||
} | ||
}); | ||
@@ -15,0 +19,0 @@ } |
var searchAttr = 'data-search-mode'; | ||
function contains(a,m){ | ||
return (a.textContent || a.innerText || "").toUpperCase().includes(m) | ||
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m) !== -1; | ||
}; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "lore-engine", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "A WebGL based 3D data visualization engine.", | ||
@@ -25,4 +25,4 @@ "main": "./app.js", | ||
"browserify": ">=16.2.3", | ||
"docdash": "^1.0.3", | ||
"gulp": "^4.0.0", | ||
"docdash": "^1.1.1", | ||
"gulp": "^4.0.2", | ||
"gulp-babel-minify": "^0.5.0", | ||
@@ -29,0 +29,0 @@ "gulp-concat": ">=2.6.1", |
@@ -6,3 +6,3 @@ ![Lore](https://github.com/reymond-group/lore/blob/master/logo.png?raw=true) | ||
# Lore | ||
Current Version: 1.0.17 ([Godzilla](https://youtu.be/RTzb-sduiWc)) | ||
Current Version: 1.0.27 ([Godzilla](https://youtu.be/RTzb-sduiWc)) | ||
@@ -9,0 +9,0 @@ ### Teasers |
@@ -298,3 +298,3 @@ //@ts-check | ||
setMaxFps(fps) { | ||
this.maxFps = 1000 / fps; | ||
this.maxFps = fps; | ||
} | ||
@@ -312,2 +312,2 @@ | ||
module.exports = Renderer | ||
module.exports = Renderer |
@@ -21,3 +21,3 @@ //@ts-check | ||
*/ | ||
constructor(renderer, geometryName, options = {}, shaderName = 'coordinates') { | ||
constructor(renderer, geometryName, shaderName = 'coordinates', options = {}) { | ||
super(renderer, geometryName, shaderName); | ||
@@ -172,4 +172,4 @@ this.defaults = { | ||
// From | ||
positions.push(p[0] + xTicks.offset.components[0], pos + xTicks.offset.components[1], p[2] + xTicks.offset.components[2], | ||
p[0] + xTicks.offset.components[0] + xTicks.length, pos + xTicks.offset.components[1], p[2] + xTicks.offset.components[2]); | ||
positions.push(p[0] + yTicks.offset.components[0], pos + yTicks.offset.components[1], p[2] + yTicks.offset.components[2], | ||
p[0] + yTicks.offset.components[0] + yTicks.length, pos + yTicks.offset.components[1], p[2] + yTicks.offset.components[2]); | ||
colors.push(col[0], col[1], col[2], col[0], col[1], col[2]); | ||
@@ -183,4 +183,4 @@ } | ||
// From | ||
positions.push(p[0] + xTicks.offset.components[0], pos + xTicks.offset.components[1], p[2] + xTicks.offset.components[2], | ||
p[0] + xTicks.offset.components[0], pos + xTicks.offset.components[1], p[2] + xTicks.offset.components[2] + xTicks.length); | ||
positions.push(p[0] + yTicks.offset.components[0], pos + yTicks.offset.components[1], p[2] + yTicks.offset.components[2], | ||
p[0] + yTicks.offset.components[0], pos + yTicks.offset.components[1], p[2] + yTicks.offset.components[2] + yTicks.length); | ||
colors.push(col[0], col[1], col[2], col[0], col[1], col[2]); | ||
@@ -196,4 +196,4 @@ } | ||
// From | ||
positions.push(p[0] + xTicks.offset.components[0], p[1] + xTicks.offset.components[1], pos + xTicks.offset.components[2], | ||
p[0] + xTicks.offset.components[0], p[1] + xTicks.offset.components[1] + xTicks.length, pos + xTicks.offset.components[2]); | ||
positions.push(p[0] + zTicks.offset.components[0], p[1] + zTicks.offset.components[1], pos + zTicks.offset.components[2], | ||
p[0] + zTicks.offset.components[0], p[1] + zTicks.offset.components[1] + zTicks.length, pos + zTicks.offset.components[2]); | ||
colors.push(col[0], col[1], col[2], col[0], col[1], col[2]); | ||
@@ -207,4 +207,4 @@ } | ||
// From | ||
positions.push(p[0] + xTicks.offset.components[0], p[1] + xTicks.offset.components[1], pos + xTicks.offset.components[2], | ||
p[0] + xTicks.offset.components[0] + xTicks.length, p[1] + xTicks.offset.components[1], pos + xTicks.offset.components[2]); | ||
positions.push(p[0] + zTicks.offset.components[0], p[1] + zTicks.offset.components[1], pos + zTicks.offset.components[2], | ||
p[0] + zTicks.offset.components[0] + zTicks.length, p[1] + zTicks.offset.components[1], pos + zTicks.offset.components[2]); | ||
colors.push(col[0], col[1], col[2], col[0], col[1], col[2]); | ||
@@ -242,2 +242,2 @@ } | ||
module.exports = CoordinatesHelper | ||
module.exports = CoordinatesHelper |
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
42305724
189
20716