Skip to content

Commit 7912123

Browse files
committed
v1.6.0
1 parent f5f0b2f commit 7912123

10 files changed

+233
-1
lines changed

build/brainbrowser-1.6.0/brainbrowser.surface-viewer.min.js

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/brainbrowser-1.6.0/brainbrowser.volume-viewer.min.js

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/brainbrowser-1.6.0/workers/deindex.worker.js

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* BrainBrowser: Web-based Neurological Visualization Tools
3+
* (https://brainbrowser.cbrain.mcgill.ca)
4+
*
5+
* Copyright (C) 2011
6+
* The Royal Institution for the Advancement of Learning
7+
* McGill University
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Affero General Public License as
11+
* published by the Free Software Foundation, either version 3 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Affero General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Affero General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
*/
22+
23+
/*
24+
* BrainBrowser v1.6.0
25+
*
26+
* Author: Tarek Sherif <[email protected]> (http://tareksherif.ca/)
27+
* Author: Nicolas Kassis
28+
*/
29+
!function(){"use strict";function a(a){var b,c,d,e,f,g,h={values:[]};for(a=a.replace(/^\s+/,"").replace(/\s+$/,""),b=a.split("\n"),c=parseFloat(b[0].split(/\s+/)[4]),h.values[0]=c,f=c,g=c,d=1,e=b.length;e>d;d++)c=parseFloat(b[d].split(/\s+/)[4]),h.values[d]=c,f=Math.min(f,c),g=Math.max(g,c);return h.min=f,h.max=g,h}self.addEventListener("message",function(b){var c=b.data,d=c.data;self.postMessage(a(d))})}();
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* BrainBrowser: Web-based Neurological Visualization Tools
3+
* (https://brainbrowser.cbrain.mcgill.ca)
4+
*
5+
* Copyright (C) 2011
6+
* The Royal Institution for the Advancement of Learning
7+
* McGill University
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Affero General Public License as
11+
* published by the Free Software Foundation, either version 3 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Affero General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Affero General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
*/
22+
23+
/*
24+
* BrainBrowser v1.6.0
25+
*
26+
* Author: Tarek Sherif <[email protected]> (http://tareksherif.ca/)
27+
* Author: Nicolas Kassis
28+
*/
29+
!function(){"use strict";function a(a){var b,c,d,e,f,g,h,i=[],j={};for(a=a.split("\n"),j.shapes=[],b={name:"undefined"|a.name,faces:[],indices:[]},j.shapes.push(b),c=a[1].split(/\s+/),d=parseInt(c[0],10),e=parseInt(c[1],10),h=2;d+2>h;h++)f=a[h].split(/\s+/),i.push(parseFloat(f[0])),i.push(parseFloat(f[1])),i.push(parseFloat(f[2]));for(h=d+2;d+e+2>h;h++)f=a[h].split(/\s+/),g=[],g.push(parseInt(f[0],10)),g.push(parseInt(f[1],10)),g.push(parseInt(f[2],10)),Array.prototype.push.apply(b.indices,g),b.faces.push(g);return j.type="polygon",j.vertices=i,j.colors=[.8,.8,.8,1],j}self.addEventListener("message",function(b){self.postMessage(a(b.data.data))})}();
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* BrainBrowser: Web-based Neurological Visualization Tools
3+
* (https://brainbrowser.cbrain.mcgill.ca)
4+
*
5+
* Copyright (C) 2011
6+
* The Royal Institution for the Advancement of Learning
7+
* McGill University
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Affero General Public License as
11+
* published by the Free Software Foundation, either version 3 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Affero General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Affero General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
*/
22+
23+
/*
24+
* BrainBrowser v1.6.0
25+
*
26+
* Author: Tarek Sherif <[email protected]> (http://tareksherif.ca/)
27+
* Author: Nicolas Kassis
28+
*/
29+
!function(){"use strict";function a(a){var b,c,d,e,f={};for(a=a.replace(/^\s+/,"").replace(/\s+$/,""),f.values=a.split(/\s+/),d=f.values[0],e=f.values[0],b=0,c=f.values.length;c>b;b++)f.values[b]=parseFloat(f.values[b]),d=Math.min(d,f.values[b]),e=Math.max(e,f.values[b]);return f.min=d,f.max=e,f}self.addEventListener("message",function(b){var c=b.data,d=c.data;self.postMessage(a(d))})}();

build/brainbrowser-1.6.0/workers/mniobj.worker.js

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* BrainBrowser: Web-based Neurological Visualization Tools
3+
* (https://brainbrowser.cbrain.mcgill.ca)
4+
*
5+
* Copyright (C) 2011
6+
* The Royal Institution for the Advancement of Learning
7+
* McGill University
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Affero General Public License as
11+
* published by the Free Software Foundation, either version 3 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Affero General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Affero General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
*/
22+
23+
/*
24+
* BrainBrowser v1.6.0
25+
*
26+
* Author: Tarek Sherif <[email protected]> (http://tareksherif.ca/)
27+
* Author: Nicolas Kassis
28+
*/
29+
!function(){"use strict";function a(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o=[],p=[],q=[],r={};for(a=a.split("\n"),r.shapes=[],b={name:"undefined"|a.name,faces:[],indices:[],texture_indices:[],normal_indices:[]},r.shapes.push(b),i=0,l=a.length;l>i;i++)if(f=a[i].split(/\s+/),g=f[0],h=f.length,!g.match("#")||""===f)switch(g){case"o":case"g":b={name:f[1],faces:[],indices:[],texture_indices:[],normal_indices:[]},r.shapes.push(b);break;case"v":o.push(parseFloat(f[1])),o.push(parseFloat(f[2])),o.push(parseFloat(f[3]));break;case"vt":for(j=1;h>j;j++)p.push(parseFloat(f[j]));break;case"vn":q.push(parseFloat(f[1])),q.push(parseFloat(f[2])),q.push(parseFloat(f[3]));break;case"f":m=[],c=b.indices,d=b.texture_indices,e=b.normal_indices;var s=f[1].split("/");for(k=2;h-1>k;k++)m.push(parseInt(s[0],10)-1),c.push(parseInt(s[0],10)-1),d.push(parseInt(s[1],10)-1),s[2]&&e.push(parseInt(s[2],10)-1),n=f[k].split("/"),m.push(parseInt(n[0],10)-1),c.push(parseInt(n[0],10)-1),d.push(parseInt(n[1],10)-1),n[2]&&e.push(parseInt(n[2],10)-1),n=f[k+1].split("/"),m.push(parseInt(n[0],10)-1),c.push(parseInt(n[0],10)-1),d.push(parseInt(n[1],10)-1),n[2]&&e.push(parseInt(n[2],10)-1);b.faces.push(m)}return r.type="polygon",r.vertices=o,r.normals=q,r.colors=[.8,.8,.8,1],r.texture_coords=p,r}self.addEventListener("message",function(b){self.postMessage(a(b.data.data))})}();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brainbrowser",
3-
"version": "1.5.4",
3+
"version": "1.6.0",
44
"license": "GNU Affero GPL 3.0",
55
"devDependencies": {
66
"grunt": "~0.4.1",

release/brainbrowser-1.6.0.tar.gz

17.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)