icn3d 3.45.1 → 3.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/icn3d.css +49 -49
- package/icn3d.js +56 -31
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +56 -31
- package/package.json +1 -1
package/css/icn3d.css
CHANGED
|
@@ -1,31 +1,64 @@
|
|
|
1
|
+
.ui-dialog { font-size: 12px;}
|
|
2
|
+
.ui-dialog .ui-dialog-title { font-size: 16px; height: 18px; }
|
|
3
|
+
.ui-dialog .ui-button { width: 12px; height:12px; margin: -5px 0px 0px 0px;}
|
|
4
|
+
.ui-dialog .ui-dialog-titlebar { padding: 0px 1em 2px 1em; }
|
|
5
|
+
|
|
6
|
+
.ui-dialog .ui-resizable-se {
|
|
7
|
+
width: 14px;
|
|
8
|
+
height: 14px;
|
|
9
|
+
right: 3px;
|
|
10
|
+
bottom: 3px;
|
|
11
|
+
background-position: -80px -224px;
|
|
12
|
+
}
|
|
13
|
+
|
|
1
14
|
/* theme: orange */
|
|
2
15
|
/*
|
|
3
|
-
.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
4
|
-
.ui-button .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_ef8c08_256x240.png");}
|
|
5
|
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #eb8f00;text-decoration: none;}
|
|
16
|
+
.icn3d-menu .ui-widget-header{border:1px solid #e78f08;background:#f6a828 url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
17
|
+
.icn3d-menu .ui-button .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_ef8c08_256x240.png");}
|
|
18
|
+
.icn3d-menu .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #eb8f00;text-decoration: none;}
|
|
6
19
|
*/
|
|
7
20
|
|
|
8
21
|
/* theme: black */
|
|
9
22
|
/*
|
|
10
|
-
.ui-widget-header{border:1px solid #333333;background:#333333 url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_25_333333_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
11
|
-
.ui-button .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_222222_256x240.png");}
|
|
12
|
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #222222;text-decoration: none;}
|
|
23
|
+
.icn3d-menu .ui-widget-header{border:1px solid #333333;background:#333333 url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_25_333333_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
24
|
+
.icn3d-menu .ui-button .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_222222_256x240.png");}
|
|
25
|
+
.icn3d-menu .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #222222;text-decoration: none;}
|
|
13
26
|
*/
|
|
14
27
|
|
|
15
28
|
/* theme: blue */
|
|
16
|
-
.ui-widget-header {border:1px solid #4297d7;background:#5c9ccc url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
29
|
+
.icn3d-menu .ui-widget-header {border:1px solid #4297d7;background:#5c9ccc url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}
|
|
17
30
|
/*.ui-button .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_228ef1_256x240.png");}*/
|
|
18
|
-
.ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_228ef1_256x240.png")!important;}
|
|
19
|
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #444;text-decoration: none;}
|
|
31
|
+
.icn3d-menu .ui-icon {background-image: url("https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/images/ui-icons_228ef1_256x240.png")!important;}
|
|
32
|
+
.icn3d-menu .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {color: #444;text-decoration: none;}
|
|
20
33
|
|
|
21
|
-
.icn3d-
|
|
34
|
+
.icn3d-menu .ui-accordion .ui-accordion-icons { padding-left: 0; text-align: center; }
|
|
22
35
|
|
|
23
|
-
.ui-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
.icn3d-menu .ui-menu-icon {
|
|
37
|
+
float: right;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icn3d-menu .ui-widget {
|
|
41
|
+
font-family: Arial,Helvetica,sans-serif;
|
|
42
|
+
font-size: 12px!important; /* 0.9em is a little too large */
|
|
43
|
+
}
|
|
44
|
+
.icn3d-menu .ui-menu-item {
|
|
45
|
+
position: relative;
|
|
46
|
+
padding: 3px 1em 3px .4em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* remove the extra bar in the menu */
|
|
50
|
+
/* background: #eee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; */
|
|
51
|
+
.icn3d-menu .ui-widget-content {
|
|
52
|
+
border: 1px solid #ddd;
|
|
53
|
+
background: #eee;
|
|
54
|
+
color: #333;
|
|
55
|
+
}
|
|
27
56
|
|
|
28
|
-
.
|
|
57
|
+
.icn3d-menu .ui-menu-icons .ui-menu-item-wrapper, .ui-menu-icons .ui-menu-item {
|
|
58
|
+
padding-left: 0.4em!important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.icn3d-text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:12px!important;}
|
|
29
62
|
|
|
30
63
|
.icn3d-menu {float:left; width:110px;}
|
|
31
64
|
.icn3d-menu-color {color:#369; font-weight:bold; font-size: 14px!important;}
|
|
@@ -70,6 +103,7 @@ button, select, input { font-size: 10px; }
|
|
|
70
103
|
|
|
71
104
|
.icn3d-dialog {font-family: Verdana, Arial, Helvetica, sans-serif; color: #666666;}
|
|
72
105
|
.icn3d-commandTitle {font-size: 12px; font-weight:bold; font-family: Verdana, Arial, Helvetica, sans-serif; color: #666666;}
|
|
106
|
+
.icn3d-title {font-size:1.2em; font-weight:normal; position:absolute; z-index:1; float:left; }
|
|
73
107
|
.icn3d-modeselection {color: #f8b84e!important;}
|
|
74
108
|
/*.icn3d-viewselection {color: #800000!important;}*/
|
|
75
109
|
.icn3d-viewselection {color: #f8b84e!important;}
|
|
@@ -98,18 +132,6 @@ button, select, input { font-size: 10px; }
|
|
|
98
132
|
.icn3d-node-text24 {font-size: 24px; font-weight: bold}
|
|
99
133
|
.icn3d-node-text32 {font-size: 32px; font-weight: bold}
|
|
100
134
|
|
|
101
|
-
.ui-dialog .ui-resizable-se {
|
|
102
|
-
width: 14px;
|
|
103
|
-
height: 14px;
|
|
104
|
-
right: 3px;
|
|
105
|
-
bottom: 3px;
|
|
106
|
-
background-position: -80px -224px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ui-menu-icon {
|
|
110
|
-
float: right;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
135
|
/* toggle button: http://www.w3schools.com/howto/howto_css_switch.asp */
|
|
114
136
|
.icn3d-switch {
|
|
115
137
|
position: relative;
|
|
@@ -178,15 +200,6 @@ input:checked + .icn3d-slider:before {
|
|
|
178
200
|
overflow:auto;
|
|
179
201
|
}
|
|
180
202
|
|
|
181
|
-
.ui-widget {
|
|
182
|
-
font-family: Arial,Helvetica,sans-serif;
|
|
183
|
-
font-size: 12px!important; /* 0.9em is a little too large */
|
|
184
|
-
}
|
|
185
|
-
.ui-menu-item {
|
|
186
|
-
position: relative;
|
|
187
|
-
padding: 3px 1em 3px .4em;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
203
|
.icn3d-clinvar {color:green; font-size:12px; font-weight:bold;}
|
|
191
204
|
.icn3d-clinvar-path {color:red; font-size:12px; font-weight:bold;}
|
|
192
205
|
|
|
@@ -213,14 +226,6 @@ input:checked + .icn3d-slider:before {
|
|
|
213
226
|
|
|
214
227
|
.icn3d-bkgd {background-color:#eee;}
|
|
215
228
|
|
|
216
|
-
/* remove the extra bar in the menu */
|
|
217
|
-
/* background: #eee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; */
|
|
218
|
-
.ui-widget-content {
|
|
219
|
-
border: 1px solid #ddd;
|
|
220
|
-
background: #eee;
|
|
221
|
-
color: #333;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
229
|
.icn3d-rad > input{ /* HIDE RADIO */
|
|
225
230
|
visibility: hidden; /* Makes input not-clickable */
|
|
226
231
|
position: absolute; /* Remove input from document flow */
|
|
@@ -240,10 +245,6 @@ input:checked + .icn3d-slider:before {
|
|
|
240
245
|
background-position: -160px 0px; /*empty */
|
|
241
246
|
}
|
|
242
247
|
|
|
243
|
-
.ui-menu-icons .ui-menu-item-wrapper, .ui-menu-icons .ui-menu-item {
|
|
244
|
-
padding-left: 0.4em!important;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
248
|
.icn3d-rad-text, .icn3d-color-rad-text {
|
|
248
249
|
padding-left: 1.2em;
|
|
249
250
|
}
|
|
@@ -288,7 +289,6 @@ input:checked + .icn3d-slider:before {
|
|
|
288
289
|
|
|
289
290
|
.ncbi-page-header {
|
|
290
291
|
background-color: #369;
|
|
291
|
-
color: #fff;
|
|
292
292
|
overflow: auto;
|
|
293
293
|
}
|
|
294
294
|
|
package/icn3d.js
CHANGED
|
@@ -58909,7 +58909,7 @@ class SetMenu {
|
|
|
58909
58909
|
html += this.setTools();
|
|
58910
58910
|
|
|
58911
58911
|
// show title at the top left corner
|
|
58912
|
-
html += me.htmlCls.divStr + "title' class='icn3d-commandTitle' style='
|
|
58912
|
+
html += me.htmlCls.divStr + "title' class='icn3d-commandTitle icn3d-title' style='display:table-row; margin: 85px 0px 0px 5px; color:" + titleColor + "; width:" + me.htmlCls.WIDTH + "px'></div>";
|
|
58913
58913
|
|
|
58914
58914
|
html += me.htmlCls.divStr + "viewer' style='position:relative; width:100%; height:100%; background-color: " + me.htmlCls.GREYD + ";'>";
|
|
58915
58915
|
|
|
@@ -59043,7 +59043,7 @@ class SetMenu {
|
|
|
59043
59043
|
//html += me.htmlCls.setMenuCls.setTools();
|
|
59044
59044
|
|
|
59045
59045
|
// show title at the top left corner
|
|
59046
|
-
html += me.htmlCls.divStr + "title' class='icn3d-commandTitle' style='
|
|
59046
|
+
html += me.htmlCls.divStr + "title' class='icn3d-commandTitle icn3d-title' style='display:block; margin: 12px 0px 0px 40px; color:" + titleColor + "; width:" +(me.htmlCls.WIDTH - 40).toString() + "px'></div>";
|
|
59047
59047
|
html += me.htmlCls.divStr + "viewer' style='position:relative; width:100%; height:100%; background-color: " + me.htmlCls.GREYD + ";'>";
|
|
59048
59048
|
// don't show legend in mobile
|
|
59049
59049
|
//html += me.htmlCls.divStr + "legend' class='icn3d-text icn3d-legend'></div>";
|
|
@@ -74243,7 +74243,7 @@ class Scene {
|
|
|
74243
74243
|
ic.shininess = shininess;
|
|
74244
74244
|
}
|
|
74245
74245
|
|
|
74246
|
-
if(!me.bNode && me.htmlCls.setHtmlCls.getCookie('light1') != '') {
|
|
74246
|
+
if(!me.bNode && me.htmlCls.setHtmlCls.getCookie('light1') != '' && !me.bNode && me.htmlCls.setHtmlCls.getCookie('light2') != '' && !me.bNode && me.htmlCls.setHtmlCls.getCookie('light3') != '') {
|
|
74247
74247
|
let light1 = parseFloat(me.htmlCls.setHtmlCls.getCookie('light1'));
|
|
74248
74248
|
let light2 = parseFloat(me.htmlCls.setHtmlCls.getCookie('light2'));
|
|
74249
74249
|
let light3 = parseFloat(me.htmlCls.setHtmlCls.getCookie('light3'));
|
|
@@ -78993,19 +78993,25 @@ class Tube {
|
|
|
78993
78993
|
//mesh = new THREE.Mesh(geo, new THREE.MeshPhongMaterial({ transparent: true, opacity: 0.5, specular: ic.frac, shininess: ic.shininess, emissive: ic.emissive, vertexColors: THREE.FaceColors, side: THREE.DoubleSide }));
|
|
78994
78994
|
mesh = new Mesh$1(geo, new MeshPhongMaterial({ transparent: true, opacity: 0.5, specular: ic.frac, shininess: ic.shininess, emissive: ic.emissive, vertexColors: true, side: DoubleSide$1 }));
|
|
78995
78995
|
|
|
78996
|
-
if(ic.mdl)
|
|
78996
|
+
if(ic.mdl) {
|
|
78997
|
+
ic.mdl.add(mesh);
|
|
78998
|
+
}
|
|
78997
78999
|
}
|
|
78998
79000
|
else if(bHighlight === 1) {
|
|
78999
79001
|
mesh = new Mesh$1(geo, ic.matShader);
|
|
79000
79002
|
mesh.renderOrder = ic.renderOrderPicking;
|
|
79001
79003
|
//ic.mdlPicking.add(mesh);
|
|
79002
|
-
if(ic.mdl)
|
|
79004
|
+
if(ic.mdl) {
|
|
79005
|
+
ic.mdl.add(mesh);
|
|
79006
|
+
}
|
|
79003
79007
|
}
|
|
79004
79008
|
else {
|
|
79005
79009
|
//mesh = new THREE.Mesh(geo, new THREE.MeshPhongMaterial({ specular: ic.frac, shininess: ic.shininess, emissive: ic.emissive, vertexColors: THREE.FaceColors, side: THREE.DoubleSide }));
|
|
79006
79010
|
mesh = new Mesh$1(geo, new MeshPhongMaterial({ specular: ic.frac, shininess: ic.shininess, emissive: ic.emissive, vertexColors: true, side: DoubleSide$1 }));
|
|
79007
79011
|
|
|
79008
|
-
if(ic.mdl)
|
|
79012
|
+
if(ic.mdl) {
|
|
79013
|
+
ic.mdl.add(mesh);
|
|
79014
|
+
}
|
|
79009
79015
|
}
|
|
79010
79016
|
|
|
79011
79017
|
if(bHighlight === 1 || bHighlight === 2) {
|
|
@@ -83403,7 +83409,11 @@ class ApplyClbonds {
|
|
|
83403
83409
|
applyClbondsOptions(options) { let ic = this.icn3d, me = ic.icn3dui;
|
|
83404
83410
|
if(options === undefined) options = ic.opts;
|
|
83405
83411
|
|
|
83406
|
-
|
|
83412
|
+
ic.lines['clbond'] = [];
|
|
83413
|
+
|
|
83414
|
+
if(options.chemicals == 'nothing') return {};
|
|
83415
|
+
|
|
83416
|
+
// if(!ic.bCalcCrossLink) {
|
|
83407
83417
|
// find all bonds to chemicals
|
|
83408
83418
|
ic.clbondpnts = {};
|
|
83409
83419
|
ic.clbondResid2serial = {};
|
|
@@ -83414,10 +83424,11 @@ class ApplyClbonds {
|
|
|
83414
83424
|
// chemical to protein/nucleotide
|
|
83415
83425
|
this.applyClbondsOptions_base('all');
|
|
83416
83426
|
|
|
83417
|
-
|
|
83418
|
-
|
|
83427
|
+
// ic.bCalcCrossLink = true;
|
|
83428
|
+
// }
|
|
83419
83429
|
|
|
83420
|
-
|
|
83430
|
+
// if (options.clbonds.toLowerCase() === 'yes' && options.chemicals !== 'nothing') {
|
|
83431
|
+
if (options.clbonds.toLowerCase() === 'yes') {
|
|
83421
83432
|
let color = '#006400';
|
|
83422
83433
|
me.parasCls.thr(0x006400);
|
|
83423
83434
|
|
|
@@ -83443,7 +83454,8 @@ class ApplyClbonds {
|
|
|
83443
83454
|
line.serial1 = ic.clbondResid2serial[resid0 + ',' + resid1];
|
|
83444
83455
|
line.serial2 = ic.clbondResid2serial[resid1 + ',' + resid0];
|
|
83445
83456
|
|
|
83446
|
-
|
|
83457
|
+
// only apply to displayed atoms
|
|
83458
|
+
// if(!ic.dAtoms.hasOwnProperty(line.serial1) || !ic.dAtoms.hasOwnProperty(line.serial2)) continue;
|
|
83447
83459
|
|
|
83448
83460
|
line.position1 = ic.atoms[line.serial1].coord;
|
|
83449
83461
|
line.position2 = ic.atoms[line.serial2].coord;
|
|
@@ -83475,9 +83487,14 @@ class ApplyClbonds {
|
|
|
83475
83487
|
return ic.residuesHashClbonds;
|
|
83476
83488
|
}
|
|
83477
83489
|
|
|
83478
|
-
applyClbondsOptions_base(type) { let ic = this.icn3d
|
|
83490
|
+
applyClbondsOptions_base(type) { let ic = this.icn3d, me = ic.icn3dui;
|
|
83491
|
+
// only apply to displayed atoms
|
|
83492
|
+
let atomHash = me.hashUtilsCls.cloneHash(ic.chemicals);
|
|
83493
|
+
atomHash = me.hashUtilsCls.intHash(atomHash, ic.dAtoms);
|
|
83494
|
+
|
|
83479
83495
|
// chemical to chemical first
|
|
83480
|
-
|
|
83496
|
+
// for (let i in ic.chemicals) {
|
|
83497
|
+
for (let i in atomHash) {
|
|
83481
83498
|
let atom0 = ic.atoms[i];
|
|
83482
83499
|
|
|
83483
83500
|
let chain0 = atom0.structure + '_' + atom0.chain;
|
|
@@ -86072,24 +86089,27 @@ class Instancing {
|
|
|
86072
86089
|
let normalArray2 = (baseGeometry.attributes.normal) ? me.hashUtilsCls.hashvalue2array(baseGeometry.attributes.normal.array) : [];
|
|
86073
86090
|
let colorArray2 = (baseGeometry.attributes.color) ? me.hashUtilsCls.hashvalue2array(baseGeometry.attributes.color.array) : [];
|
|
86074
86091
|
let indexArray2 = (baseGeometry.index) ? me.hashUtilsCls.hashvalue2array(baseGeometry.index.array) : [];
|
|
86092
|
+
|
|
86093
|
+
if(colorArray2.length > 0) { // avoid an black object in the center of of assembly, e.g., https://www.ncbi.nlm.nih.gov/Structure/icn3d/?pdbid=1qqp
|
|
86094
|
+
positionArray = positionArray.concat(positionArray2);
|
|
86095
|
+
normalArray = normalArray.concat(normalArray2);
|
|
86096
|
+
colorArray = colorArray.concat(colorArray2);
|
|
86097
|
+
indexArray = indexArray.concat(indexArray2);
|
|
86075
86098
|
|
|
86076
|
-
|
|
86077
|
-
|
|
86078
|
-
|
|
86079
|
-
|
|
86080
|
-
|
|
86081
|
-
|
|
86082
|
-
let bCylinder = (baseGeometry.type == 'CylinderGeometry') ? 1.0 : 0.0;
|
|
86083
|
-
for(let i = 0, il = positionArray.length / 3; i < il; ++i) {
|
|
86084
|
-
bCylinderArray.push(bCylinder);
|
|
86085
|
-
}
|
|
86099
|
+
let bCylinderArray = [];
|
|
86100
|
+
let bCylinder = (baseGeometry.type == 'CylinderGeometry') ? 1.0 : 0.0;
|
|
86101
|
+
// let bCylinder = (baseGeometry.geometry.type == 'CylinderGeometry') ? 1.0 : 0.0;
|
|
86102
|
+
for(let i = 0, il = positionArray.length / 3; i < il; ++i) {
|
|
86103
|
+
bCylinderArray.push(bCylinder);
|
|
86104
|
+
}
|
|
86086
86105
|
|
|
86087
|
-
|
|
86088
|
-
|
|
86089
|
-
|
|
86106
|
+
geometry.setAttribute('position', new BufferAttribute$1(new Float32Array(positionArray), 3));
|
|
86107
|
+
geometry.setAttribute('normal', new BufferAttribute$1(new Float32Array(normalArray), 3) );
|
|
86108
|
+
geometry.setAttribute('color', new BufferAttribute$1(new Float32Array(colorArray), 3) );
|
|
86090
86109
|
|
|
86091
|
-
|
|
86092
|
-
|
|
86110
|
+
geometry.setAttribute('cylinder', new BufferAttribute$1(new Float32Array(bCylinderArray), 1) );
|
|
86111
|
+
geometry.setIndex(new BufferAttribute$1(new Uint32Array(indexArray), 1));
|
|
86112
|
+
}
|
|
86093
86113
|
|
|
86094
86114
|
positionArray2 = null;
|
|
86095
86115
|
normalArray2 = null;
|
|
@@ -86151,7 +86171,7 @@ class Instancing {
|
|
|
86151
86171
|
|
|
86152
86172
|
let mesh2 = new Mesh$1(geometry, ic.instancedMaterial);
|
|
86153
86173
|
|
|
86154
|
-
mesh2.onBeforeRender = ic.impostorCls.onBeforeRender;
|
|
86174
|
+
if(ic.bImpo) mesh2.onBeforeRender = ic.impostorCls.onBeforeRender;
|
|
86155
86175
|
//mesh2.onBeforeRender = this.onBeforeRender;
|
|
86156
86176
|
|
|
86157
86177
|
// important: https://stackoverflow.com/questions/21184061/mesh-suddenly-disappears-in-three-js-clipping
|
|
@@ -86377,7 +86397,7 @@ class Alternate {
|
|
|
86377
86397
|
|
|
86378
86398
|
//ic.glycanCls.showGlycans();
|
|
86379
86399
|
|
|
86380
|
-
ic.opts['rotationcenter'] = 'highlight center';
|
|
86400
|
+
// ic.opts['rotationcenter'] = 'highlight center';
|
|
86381
86401
|
|
|
86382
86402
|
ic.drawCls.draw();
|
|
86383
86403
|
|
|
@@ -96628,9 +96648,14 @@ class Annotation {
|
|
|
96628
96648
|
$("[id^=" + ic.pre + "transmem]").hide();
|
|
96629
96649
|
if($("#" + ic.pre + "anno_transmem").length) $("#" + ic.pre + "anno_transmem")[0].checked = false;
|
|
96630
96650
|
}
|
|
96631
|
-
async setAnnoTabIg(bSelection, template) { let ic = this.icn3d
|
|
96651
|
+
async setAnnoTabIg(bSelection, template) { let ic = this.icn3d, me = ic.icn3dui;
|
|
96652
|
+
let selAtoms = me.hashUtilsCls.cloneHash(ic.hAtoms);
|
|
96653
|
+
|
|
96632
96654
|
await this.updateIg(bSelection, template);
|
|
96633
96655
|
|
|
96656
|
+
// preserve previous selection
|
|
96657
|
+
ic.hAtoms = me.hashUtilsCls.cloneHash(selAtoms);
|
|
96658
|
+
|
|
96634
96659
|
$("[id^=" + ic.pre + "ig]").show();
|
|
96635
96660
|
if($("#" + ic.pre + "anno_ig").length) $("#" + ic.pre + "anno_ig")[0].checked = true;
|
|
96636
96661
|
}
|