molstar 3.0.0-dev.5 → 3.0.0-dev.6
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/LICENSE +20 -20
- package/README.md +187 -187
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +102 -95
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.d.ts +2 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/index.js +87 -74
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.d.ts +36 -215
- package/lib/apps/viewer/index.html +102 -95
- package/lib/apps/viewer/index.js +139 -52
- package/lib/cli/cifschema/index.d.ts +1 -1
- package/lib/cli/cifschema/index.js +15 -35
- package/lib/commonjs/apps/docking-viewer/index.d.ts +2 -1
- package/lib/commonjs/apps/docking-viewer/index.js +86 -73
- package/lib/commonjs/apps/viewer/index.d.ts +36 -215
- package/lib/commonjs/apps/viewer/index.js +139 -52
- package/lib/commonjs/cli/cifschema/index.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/index.js +15 -35
- package/lib/commonjs/examples/alpha-orbitals/index.js +2 -3
- package/lib/commonjs/examples/basic-wrapper/index.js +23 -11
- package/lib/commonjs/examples/lighting/index.d.ts +1 -1
- package/lib/commonjs/examples/lighting/index.js +57 -41
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +26 -14
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +0 -1
- package/lib/commonjs/extensions/alpha-orbitals/transforms.js +1 -14
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.js +236 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +125 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +111 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/prop.js +130 -0
- package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/prop.js +1 -1
- package/lib/commonjs/mol-canvas3d/canvas3d.js +7 -1
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +4 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +326 -1
- package/lib/commonjs/mol-math/geometry/symmetry-operator.js +3 -2
- package/lib/commonjs/mol-model/structure/model/model.d.ts +1 -0
- package/lib/commonjs/mol-model/structure/model/model.js +8 -2
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +4 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
- package/lib/commonjs/mol-model/structure/model/types.js +9 -0
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +2 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/commonjs/mol-plugin/config.d.ts +1 -0
- package/lib/commonjs/mol-plugin/config.js +1 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +7 -1
- package/lib/commonjs/mol-plugin-state/actions/structure.js +150 -72
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +13 -8
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +33 -19
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +1 -1
- package/lib/commonjs/mol-plugin-ui/index.d.ts +4 -4
- package/lib/commonjs/mol-plugin-ui/index.js +13 -16
- package/lib/commonjs/mol-plugin-ui/plugin.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +1 -1
- package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
- package/lib/examples/alpha-orbitals/index.html +61 -60
- package/lib/examples/alpha-orbitals/index.js +3 -4
- package/lib/examples/basic-wrapper/index.html +137 -136
- package/lib/examples/basic-wrapper/index.js +24 -12
- package/lib/examples/lighting/index.d.ts +1 -1
- package/lib/examples/lighting/index.html +88 -86
- package/lib/examples/lighting/index.js +58 -42
- package/lib/examples/proteopedia-wrapper/index.html +236 -235
- package/lib/examples/proteopedia-wrapper/index.js +27 -15
- package/lib/extensions/alpha-orbitals/transforms.d.ts +0 -1
- package/lib/extensions/alpha-orbitals/transforms.js +1 -14
- package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
- package/lib/extensions/model-archive/quality-assessment/behavior.js +233 -0
- package/lib/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
- package/lib/extensions/model-archive/quality-assessment/color/plddt.js +120 -0
- package/lib/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
- package/lib/extensions/model-archive/quality-assessment/color/qmean.js +106 -0
- package/lib/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
- package/lib/extensions/model-archive/quality-assessment/prop.js +127 -0
- package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/prop.js +1 -1
- package/lib/extensions/rcsb/validation-report/prop.js +1 -1
- package/lib/mol-canvas3d/canvas3d.js +7 -1
- package/lib/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/mol-canvas3d/passes/multi-sample.js +4 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
- package/lib/mol-io/reader/cif/schema/mmcif.js +326 -1
- package/lib/mol-math/geometry/symmetry-operator.js +3 -2
- package/lib/mol-model/structure/model/model.d.ts +1 -0
- package/lib/mol-model/structure/model/model.js +8 -2
- package/lib/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
- package/lib/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-derived.js +5 -2
- package/lib/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
- package/lib/mol-model/structure/model/types.js +9 -0
- package/lib/mol-model/structure/structure/unit/rings.js +2 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/mol-plugin/config.d.ts +1 -0
- package/lib/mol-plugin/config.js +1 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +7 -1
- package/lib/mol-plugin-state/actions/structure.js +150 -72
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.js +14 -9
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +34 -20
- package/lib/mol-plugin-state/manager/structure/component.js +2 -2
- package/lib/mol-plugin-ui/index.d.ts +4 -4
- package/lib/mol-plugin-ui/index.js +11 -13
- package/lib/mol-plugin-ui/plugin.js +1 -1
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/mol-repr/structure/visual/util/bond.js +1 -1
- package/lib/mol-script/language/builder.d.ts +0 -1
- package/package.json +162 -162
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
$default-background: #2D3E50;
|
|
2
|
-
$font-color: #EDF1F2;
|
|
3
|
-
$hover-font-color: #3B9AD9;
|
|
4
|
-
$entity-current-font-color: #FFFFFF;
|
|
5
|
-
$msp-btn-remove-background: #BF3A31;
|
|
6
|
-
$msp-btn-remove-hover-font-color:#ffffff;
|
|
7
|
-
$msp-btn-commit-on-font-color: #ffffff;
|
|
8
|
-
$entity-badge-font-color: #ccd4e0;
|
|
9
|
-
|
|
10
|
-
// used in LOG
|
|
11
|
-
$log-message: #0CCA5D;
|
|
12
|
-
$log-info: #5E3673;
|
|
13
|
-
$log-warning: #FCC937;
|
|
14
|
-
$log-error: #FD354B;
|
|
15
|
-
|
|
16
|
-
$logo-background: rgba(0,0,0,0.75);
|
|
17
|
-
|
|
18
|
-
@function color-lower-contrast($color, $amount) {
|
|
19
|
-
@return darken($color, $amount);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@function color-increase-contrast($color, $amount) {
|
|
23
|
-
@return lighten($color, $amount);
|
|
1
|
+
$default-background: #2D3E50;
|
|
2
|
+
$font-color: #EDF1F2;
|
|
3
|
+
$hover-font-color: #3B9AD9;
|
|
4
|
+
$entity-current-font-color: #FFFFFF;
|
|
5
|
+
$msp-btn-remove-background: #BF3A31;
|
|
6
|
+
$msp-btn-remove-hover-font-color:#ffffff;
|
|
7
|
+
$msp-btn-commit-on-font-color: #ffffff;
|
|
8
|
+
$entity-badge-font-color: #ccd4e0;
|
|
9
|
+
|
|
10
|
+
// used in LOG
|
|
11
|
+
$log-message: #0CCA5D;
|
|
12
|
+
$log-info: #5E3673;
|
|
13
|
+
$log-warning: #FCC937;
|
|
14
|
+
$log-error: #FD354B;
|
|
15
|
+
|
|
16
|
+
$logo-background: rgba(0,0,0,0.75);
|
|
17
|
+
|
|
18
|
+
@function color-lower-contrast($color, $amount) {
|
|
19
|
+
@return darken($color, $amount);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@function color-increase-contrast($color, $amount) {
|
|
23
|
+
@return lighten($color, $amount);
|
|
24
24
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
$default-background: #111318;
|
|
2
|
-
$font-color: #ccd4e0;
|
|
3
|
-
$hover-font-color: #51A2FB;
|
|
4
|
-
$entity-current-font-color: #68BEFD;
|
|
5
|
-
$msp-btn-remove-background: #DE0A28;
|
|
6
|
-
$msp-btn-remove-hover-font-color:#F2F4F7;
|
|
7
|
-
$msp-btn-commit-on-font-color: #68BEFD;
|
|
8
|
-
$entity-badge-font-color: #ccd4e0;
|
|
9
|
-
|
|
10
|
-
// used in LOG
|
|
11
|
-
$log-message: #0CCA5D;
|
|
12
|
-
$log-info: #5E3673;
|
|
13
|
-
$log-warning: #FCC937;
|
|
14
|
-
$log-error: #FD354B;
|
|
15
|
-
|
|
16
|
-
$logo-background: rgba(0,0,0,0.75);
|
|
17
|
-
|
|
18
|
-
@function color-lower-contrast($color, $amount) {
|
|
19
|
-
@return darken($color, $amount);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@function color-increase-contrast($color, $amount) {
|
|
23
|
-
@return lighten($color, $amount);
|
|
1
|
+
$default-background: #111318;
|
|
2
|
+
$font-color: #ccd4e0;
|
|
3
|
+
$hover-font-color: #51A2FB;
|
|
4
|
+
$entity-current-font-color: #68BEFD;
|
|
5
|
+
$msp-btn-remove-background: #DE0A28;
|
|
6
|
+
$msp-btn-remove-hover-font-color:#F2F4F7;
|
|
7
|
+
$msp-btn-commit-on-font-color: #68BEFD;
|
|
8
|
+
$entity-badge-font-color: #ccd4e0;
|
|
9
|
+
|
|
10
|
+
// used in LOG
|
|
11
|
+
$log-message: #0CCA5D;
|
|
12
|
+
$log-info: #5E3673;
|
|
13
|
+
$log-warning: #FCC937;
|
|
14
|
+
$log-error: #FD354B;
|
|
15
|
+
|
|
16
|
+
$logo-background: rgba(0,0,0,0.75);
|
|
17
|
+
|
|
18
|
+
@function color-lower-contrast($color, $amount) {
|
|
19
|
+
@return darken($color, $amount);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@function color-increase-contrast($color, $amount) {
|
|
23
|
+
@return lighten($color, $amount);
|
|
24
24
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// this is complement of the dark theme
|
|
2
|
-
|
|
3
|
-
@function compl($color) {
|
|
4
|
-
@return rgb(255 - red($color), 255 - green($color), 255 - blue($color));
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
$default-background: compl(#111318);
|
|
8
|
-
$font-color: compl(#ccd4e0);
|
|
9
|
-
$hover-font-color: compl(#51A2FB);
|
|
10
|
-
$entity-current-font-color: compl(#68BEFD);
|
|
11
|
-
$msp-btn-commit-on-font-color: compl(#68BEFD);
|
|
12
|
-
$entity-badge-font-color: lighten(#ccd4e0,10%);
|
|
13
|
-
$msp-btn-remove-background: #DE0A28;
|
|
14
|
-
$msp-btn-remove-hover-font-color:#F2F4F7;
|
|
15
|
-
|
|
16
|
-
// used in LOG
|
|
17
|
-
$log-message: #0CCA5D;
|
|
18
|
-
$log-info: #5E3673;
|
|
19
|
-
$log-warning: #FCC937;
|
|
20
|
-
$log-error: #FD354B;
|
|
21
|
-
|
|
22
|
-
$logo-background: compl(#111318);
|
|
23
|
-
|
|
24
|
-
@function color-lower-contrast($color, $amount) {
|
|
25
|
-
@return lighten($color, $amount);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@function color-increase-contrast($color, $amount) {
|
|
29
|
-
@return darken($color, $amount);
|
|
1
|
+
// this is complement of the dark theme
|
|
2
|
+
|
|
3
|
+
@function compl($color) {
|
|
4
|
+
@return rgb(255 - red($color), 255 - green($color), 255 - blue($color));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
$default-background: compl(#111318);
|
|
8
|
+
$font-color: compl(#ccd4e0);
|
|
9
|
+
$hover-font-color: compl(#51A2FB);
|
|
10
|
+
$entity-current-font-color: compl(#68BEFD);
|
|
11
|
+
$msp-btn-commit-on-font-color: compl(#68BEFD);
|
|
12
|
+
$entity-badge-font-color: lighten(#ccd4e0,10%);
|
|
13
|
+
$msp-btn-remove-background: #DE0A28;
|
|
14
|
+
$msp-btn-remove-hover-font-color:#F2F4F7;
|
|
15
|
+
|
|
16
|
+
// used in LOG
|
|
17
|
+
$log-message: #0CCA5D;
|
|
18
|
+
$log-info: #5E3673;
|
|
19
|
+
$log-warning: #FCC937;
|
|
20
|
+
$log-error: #FD354B;
|
|
21
|
+
|
|
22
|
+
$logo-background: compl(#111318);
|
|
23
|
+
|
|
24
|
+
@function color-lower-contrast($color, $amount) {
|
|
25
|
+
@return lighten($color, $amount);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@function color-increase-contrast($color, $amount) {
|
|
29
|
+
@return darken($color, $amount);
|
|
30
30
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'colors/dark';
|
|
1
|
+
@import 'colors/dark';
|
|
2
2
|
@import 'base/base';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import 'colors/light';
|
|
1
|
+
@import 'colors/light';
|
|
2
2
|
@import 'base/base';
|
|
@@ -71,13 +71,13 @@ function getIntraUnitBondCylinderBuilderProps(unit, structure, theme, props) {
|
|
|
71
71
|
_a = [bI, aI], aI = _a[0], bI = _a[1];
|
|
72
72
|
if (offset[aI + 1] - offset[aI] === 1)
|
|
73
73
|
_b = [bI, aI], aI = _b[0], bI = _b[1];
|
|
74
|
-
var aR = elementRingIndices.get(aI);
|
|
74
|
+
var aR = elementAromaticRingIndices.get(aI) || elementRingIndices.get(aI);
|
|
75
75
|
var maxSize = 0;
|
|
76
76
|
for (var i = offset[aI], il = offset[aI + 1]; i < il; ++i) {
|
|
77
77
|
var _bI = b[i];
|
|
78
78
|
if (_bI !== bI && _bI !== aI) {
|
|
79
79
|
if (aR) {
|
|
80
|
-
var _bR = elementRingIndices.get(_bI);
|
|
80
|
+
var _bR = elementAromaticRingIndices.get(_bI) || elementRingIndices.get(_bI);
|
|
81
81
|
if (!_bR)
|
|
82
82
|
continue;
|
|
83
83
|
var size = arrayIntersectionSize(aR, _bR);
|
|
@@ -50,13 +50,13 @@ function createIntraUnitBondLines(ctx, unit, structure, theme, props, lines) {
|
|
|
50
50
|
_a = [bI, aI], aI = _a[0], bI = _a[1];
|
|
51
51
|
if (offset[aI + 1] - offset[aI] === 1)
|
|
52
52
|
_b = [bI, aI], aI = _b[0], bI = _b[1];
|
|
53
|
-
var aR = elementRingIndices.get(aI);
|
|
53
|
+
var aR = elementAromaticRingIndices.get(aI) || elementRingIndices.get(aI);
|
|
54
54
|
var maxSize = 0;
|
|
55
55
|
for (var i = offset[aI], il = offset[aI + 1]; i < il; ++i) {
|
|
56
56
|
var _bI = b[i];
|
|
57
57
|
if (_bI !== bI && _bI !== aI) {
|
|
58
58
|
if (aR) {
|
|
59
|
-
var _bR = elementRingIndices.get(_bI);
|
|
59
|
+
var _bR = elementAromaticRingIndices.get(_bI) || elementRingIndices.get(_bI);
|
|
60
60
|
if (!_bR)
|
|
61
61
|
continue;
|
|
62
62
|
var size = arrayIntersectionSize(aR, _bR);
|
|
@@ -178,7 +178,7 @@ export function PolymerTraceVisual(materialId) {
|
|
|
178
178
|
newProps.helixProfile !== currentProps.helixProfile);
|
|
179
179
|
var secondaryStructureHash = SecondaryStructureProvider.get(newStructureGroup.structure).version;
|
|
180
180
|
if (state.info.secondaryStructureHash !== secondaryStructureHash) {
|
|
181
|
-
state.createGeometry =
|
|
181
|
+
state.createGeometry = state.info.secondaryStructureHash !== undefined;
|
|
182
182
|
state.info.secondaryStructureHash = secondaryStructureHash;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -17,7 +17,7 @@ export var BondParams = {
|
|
|
17
17
|
includeTypes: PD.MultiSelect(ObjectKeys(BondType.Names), PD.objectToOptions(BondType.Names)),
|
|
18
18
|
excludeTypes: PD.MultiSelect([], PD.objectToOptions(BondType.Names)),
|
|
19
19
|
ignoreHydrogens: PD.Boolean(false),
|
|
20
|
-
aromaticBonds: PD.Boolean(
|
|
20
|
+
aromaticBonds: PD.Boolean(true, { description: 'Display aromatic bonds with dashes' }),
|
|
21
21
|
multipleBonds: PD.Select('symmetric', PD.arrayToOptions(['off', 'symmetric', 'offset'])),
|
|
22
22
|
};
|
|
23
23
|
export var DefaultBondProps = PD.getDefaultValues(BondParams);
|
|
@@ -10,7 +10,6 @@ export declare namespace MolScriptBuilder {
|
|
|
10
10
|
'@header': string;
|
|
11
11
|
type: {
|
|
12
12
|
'@header': string;
|
|
13
|
-
/** atom macromolecular property set */
|
|
14
13
|
bool: MSymbol<import("./symbol").Arguments<import("./symbol").Arguments.PropTypes<{
|
|
15
14
|
0: import("./symbol").Argument<import("./type").Type.AnyValue>;
|
|
16
15
|
}>>, import("./type").Type.OneOf<boolean>>;
|
package/package.json
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "molstar",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
4
|
-
"description": "A comprehensive macromolecular library.",
|
|
5
|
-
"homepage": "https://github.com/molstar/molstar#readme",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/molstar/molstar.git"
|
|
9
|
-
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/molstar/molstar/issues"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"lint": "eslint .",
|
|
15
|
-
"lint-fix": "eslint . --fix",
|
|
16
|
-
"test": "npm run lint && jest",
|
|
17
|
-
"jest": "jest",
|
|
18
|
-
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
|
|
19
|
-
"clean": "node ./scripts/clean.js",
|
|
20
|
-
"rebuild": "npm run clean && npm run build",
|
|
21
|
-
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
|
|
22
|
-
"build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
|
|
23
|
-
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
|
|
24
|
-
"build-webpack": "webpack --mode production --config ./webpack.config.production.js",
|
|
25
|
-
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
|
|
26
|
-
"watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
|
|
27
|
-
"watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
|
|
28
|
-
"watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
|
|
29
|
-
"watch-tsc": "tsc --watch --incremental",
|
|
30
|
-
"watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
|
|
31
|
-
"watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
|
|
32
|
-
"watch-webpack": "webpack -w --mode development --stats minimal",
|
|
33
|
-
"watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
|
|
34
|
-
"watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
|
|
35
|
-
"serve": "http-server -p 1338 -g",
|
|
36
|
-
"model-server": "node lib/commonjs/servers/model/server.js",
|
|
37
|
-
"model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
|
|
38
|
-
"volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
|
|
39
|
-
"plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
|
|
40
|
-
"preversion": "npm run test",
|
|
41
|
-
"version": "npm run rebuild && cpx .npmignore lib/",
|
|
42
|
-
"postversion": "git push && git push --tags"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"lib/",
|
|
46
|
-
"build/viewer/"
|
|
47
|
-
],
|
|
48
|
-
"bin": {
|
|
49
|
-
"cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
|
|
50
|
-
"cifschema": "lib/commonjs/cli/cifschema/index.js",
|
|
51
|
-
"model-server": "lib/commonjs/servers/model/server.js",
|
|
52
|
-
"model-server-query": "lib/commonjs/servers/model/query.js",
|
|
53
|
-
"model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
|
|
54
|
-
"volume-server": "lib/commonjs/servers/volume/server.js",
|
|
55
|
-
"volume-server-query": "lib/commonjs/servers/volume/query.js",
|
|
56
|
-
"volume-server-pack": "lib/commonjs/servers/volume/pack.js"
|
|
57
|
-
},
|
|
58
|
-
"nodemonConfig": {
|
|
59
|
-
"ignoreRoot": [
|
|
60
|
-
"./node_modules",
|
|
61
|
-
".git"
|
|
62
|
-
],
|
|
63
|
-
"ignore": [],
|
|
64
|
-
"delay": "2500"
|
|
65
|
-
},
|
|
66
|
-
"jest": {
|
|
67
|
-
"moduleFileExtensions": [
|
|
68
|
-
"ts",
|
|
69
|
-
"js"
|
|
70
|
-
],
|
|
71
|
-
"transform": {
|
|
72
|
-
"\\.ts$": "ts-jest"
|
|
73
|
-
},
|
|
74
|
-
"moduleDirectories": [
|
|
75
|
-
"node_modules",
|
|
76
|
-
"lib"
|
|
77
|
-
],
|
|
78
|
-
"testURL": "http://localhost/",
|
|
79
|
-
"testRegex": "\\.spec\\.ts$"
|
|
80
|
-
},
|
|
81
|
-
"author": "Mol* Contributors",
|
|
82
|
-
"contributors": [
|
|
83
|
-
"Alexander Rose <alexander.rose@weirdbyte.de>",
|
|
84
|
-
"David Sehnal <david.sehnal@gmail.com>",
|
|
85
|
-
"Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
|
|
86
|
-
"Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
|
|
87
|
-
"Ludovic Autin <autin@scripps.edu>",
|
|
88
|
-
"Michal Malý <michal.maly@ibt.cas.cz>",
|
|
89
|
-
"Jiří Černý <jiri.cerny@ibt.cas.cz>"
|
|
90
|
-
],
|
|
91
|
-
"license": "MIT",
|
|
92
|
-
"devDependencies": {
|
|
93
|
-
"@graphql-codegen/add": "^3.1.0",
|
|
94
|
-
"@graphql-codegen/cli": "^2.3.0",
|
|
95
|
-
"@graphql-codegen/time": "^3.1.0",
|
|
96
|
-
"@graphql-codegen/typescript": "^2.4.1",
|
|
97
|
-
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.0",
|
|
98
|
-
"@graphql-codegen/typescript-graphql-request": "^4.3.1",
|
|
99
|
-
"@graphql-codegen/typescript-operations": "^2.2.1",
|
|
100
|
-
"@types/cors": "^2.8.12",
|
|
101
|
-
"@types/gl": "^4.1.0",
|
|
102
|
-
"@types/jest": "^27.0.3",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
104
|
-
"@typescript-eslint/parser": "^5.5.0",
|
|
105
|
-
"benchmark": "^2.1.4",
|
|
106
|
-
"concurrently": "^6.4.0",
|
|
107
|
-
"cpx2": "^4.0.0",
|
|
108
|
-
"crypto-browserify": "^3.12.0",
|
|
109
|
-
"css-loader": "^6.5.1",
|
|
110
|
-
"eslint": "^8.3.0",
|
|
111
|
-
"extra-watch-webpack-plugin": "^1.0.3",
|
|
112
|
-
"file-loader": "^6.2.0",
|
|
113
|
-
"fs-extra": "^10.0.0",
|
|
114
|
-
"graphql": "^15.7.2",
|
|
115
|
-
"http-server": "^14.0.0",
|
|
116
|
-
"jest": "^27.3.1",
|
|
117
|
-
"mini-css-extract-plugin": "^2.4.5",
|
|
118
|
-
"path-browserify": "^1.0.1",
|
|
119
|
-
"raw-loader": "^4.0.2",
|
|
120
|
-
"sass": "^1.43.5",
|
|
121
|
-
"sass-loader": "^12.3.0",
|
|
122
|
-
"simple-git": "^2.47.0",
|
|
123
|
-
"stream-browserify": "^3.0.0",
|
|
124
|
-
"style-loader": "^3.3.1",
|
|
125
|
-
"ts-jest": "^27.0.7",
|
|
126
|
-
"typescript": "^4.5.2",
|
|
127
|
-
"webpack": "^5.64.4",
|
|
128
|
-
"webpack-cli": "^4.9.1"
|
|
129
|
-
},
|
|
130
|
-
"dependencies": {
|
|
131
|
-
"@types/argparse": "^2.0.10",
|
|
132
|
-
"@types/benchmark": "^2.1.1",
|
|
133
|
-
"@types/compression": "1.7.2",
|
|
134
|
-
"@types/express": "^4.17.13",
|
|
135
|
-
"@types/node": "^16.11.10",
|
|
136
|
-
"@types/node-fetch": "^2.5.12",
|
|
137
|
-
"@types/react": "^17.0.37",
|
|
138
|
-
"@types/react-dom": "^17.0.11",
|
|
139
|
-
"@types/swagger-ui-dist": "3.30.1",
|
|
140
|
-
"argparse": "^2.0.1",
|
|
141
|
-
"body-parser": "^1.19.0",
|
|
142
|
-
"compression": "^1.7.4",
|
|
143
|
-
"cors": "^2.8.5",
|
|
144
|
-
"express": "^4.17.1",
|
|
145
|
-
"h264-mp4-encoder": "^1.0.12",
|
|
146
|
-
"immer": "^9.0.7",
|
|
147
|
-
"immutable": "^3.8.2",
|
|
148
|
-
"node-fetch": "^2.6.2",
|
|
149
|
-
"rxjs": "^7.4.0",
|
|
150
|
-
"swagger-ui-dist": "^4.1.1",
|
|
151
|
-
"tslib": "^2.3.1",
|
|
152
|
-
"util.promisify": "^1.1.1",
|
|
153
|
-
"xhr2": "^0.2.1"
|
|
154
|
-
},
|
|
155
|
-
"peerDependencies": {
|
|
156
|
-
"react": "^17.0.2",
|
|
157
|
-
"react-dom": "^17.0.2"
|
|
158
|
-
},
|
|
159
|
-
"optionalDependencies": {
|
|
160
|
-
"gl": "^4.9.2"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "molstar",
|
|
3
|
+
"version": "3.0.0-dev.6",
|
|
4
|
+
"description": "A comprehensive macromolecular library.",
|
|
5
|
+
"homepage": "https://github.com/molstar/molstar#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/molstar/molstar.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/molstar/molstar/issues"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"lint-fix": "eslint . --fix",
|
|
16
|
+
"test": "npm run lint && jest",
|
|
17
|
+
"jest": "jest",
|
|
18
|
+
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
|
|
19
|
+
"clean": "node ./scripts/clean.js",
|
|
20
|
+
"rebuild": "npm run clean && npm run build",
|
|
21
|
+
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
|
|
22
|
+
"build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
|
|
23
|
+
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
|
|
24
|
+
"build-webpack": "webpack --mode production --config ./webpack.config.production.js",
|
|
25
|
+
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
|
|
26
|
+
"watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
|
|
27
|
+
"watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
|
|
28
|
+
"watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
|
|
29
|
+
"watch-tsc": "tsc --watch --incremental",
|
|
30
|
+
"watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
|
|
31
|
+
"watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
|
|
32
|
+
"watch-webpack": "webpack -w --mode development --stats minimal",
|
|
33
|
+
"watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
|
|
34
|
+
"watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
|
|
35
|
+
"serve": "http-server -p 1338 -g",
|
|
36
|
+
"model-server": "node lib/commonjs/servers/model/server.js",
|
|
37
|
+
"model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
|
|
38
|
+
"volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
|
|
39
|
+
"plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
|
|
40
|
+
"preversion": "npm run test",
|
|
41
|
+
"version": "npm run rebuild && cpx .npmignore lib/",
|
|
42
|
+
"postversion": "git push && git push --tags"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"lib/",
|
|
46
|
+
"build/viewer/"
|
|
47
|
+
],
|
|
48
|
+
"bin": {
|
|
49
|
+
"cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
|
|
50
|
+
"cifschema": "lib/commonjs/cli/cifschema/index.js",
|
|
51
|
+
"model-server": "lib/commonjs/servers/model/server.js",
|
|
52
|
+
"model-server-query": "lib/commonjs/servers/model/query.js",
|
|
53
|
+
"model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
|
|
54
|
+
"volume-server": "lib/commonjs/servers/volume/server.js",
|
|
55
|
+
"volume-server-query": "lib/commonjs/servers/volume/query.js",
|
|
56
|
+
"volume-server-pack": "lib/commonjs/servers/volume/pack.js"
|
|
57
|
+
},
|
|
58
|
+
"nodemonConfig": {
|
|
59
|
+
"ignoreRoot": [
|
|
60
|
+
"./node_modules",
|
|
61
|
+
".git"
|
|
62
|
+
],
|
|
63
|
+
"ignore": [],
|
|
64
|
+
"delay": "2500"
|
|
65
|
+
},
|
|
66
|
+
"jest": {
|
|
67
|
+
"moduleFileExtensions": [
|
|
68
|
+
"ts",
|
|
69
|
+
"js"
|
|
70
|
+
],
|
|
71
|
+
"transform": {
|
|
72
|
+
"\\.ts$": "ts-jest"
|
|
73
|
+
},
|
|
74
|
+
"moduleDirectories": [
|
|
75
|
+
"node_modules",
|
|
76
|
+
"lib"
|
|
77
|
+
],
|
|
78
|
+
"testURL": "http://localhost/",
|
|
79
|
+
"testRegex": "\\.spec\\.ts$"
|
|
80
|
+
},
|
|
81
|
+
"author": "Mol* Contributors",
|
|
82
|
+
"contributors": [
|
|
83
|
+
"Alexander Rose <alexander.rose@weirdbyte.de>",
|
|
84
|
+
"David Sehnal <david.sehnal@gmail.com>",
|
|
85
|
+
"Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
|
|
86
|
+
"Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
|
|
87
|
+
"Ludovic Autin <autin@scripps.edu>",
|
|
88
|
+
"Michal Malý <michal.maly@ibt.cas.cz>",
|
|
89
|
+
"Jiří Černý <jiri.cerny@ibt.cas.cz>"
|
|
90
|
+
],
|
|
91
|
+
"license": "MIT",
|
|
92
|
+
"devDependencies": {
|
|
93
|
+
"@graphql-codegen/add": "^3.1.0",
|
|
94
|
+
"@graphql-codegen/cli": "^2.3.0",
|
|
95
|
+
"@graphql-codegen/time": "^3.1.0",
|
|
96
|
+
"@graphql-codegen/typescript": "^2.4.1",
|
|
97
|
+
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.0",
|
|
98
|
+
"@graphql-codegen/typescript-graphql-request": "^4.3.1",
|
|
99
|
+
"@graphql-codegen/typescript-operations": "^2.2.1",
|
|
100
|
+
"@types/cors": "^2.8.12",
|
|
101
|
+
"@types/gl": "^4.1.0",
|
|
102
|
+
"@types/jest": "^27.0.3",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
104
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
105
|
+
"benchmark": "^2.1.4",
|
|
106
|
+
"concurrently": "^6.4.0",
|
|
107
|
+
"cpx2": "^4.0.0",
|
|
108
|
+
"crypto-browserify": "^3.12.0",
|
|
109
|
+
"css-loader": "^6.5.1",
|
|
110
|
+
"eslint": "^8.3.0",
|
|
111
|
+
"extra-watch-webpack-plugin": "^1.0.3",
|
|
112
|
+
"file-loader": "^6.2.0",
|
|
113
|
+
"fs-extra": "^10.0.0",
|
|
114
|
+
"graphql": "^15.7.2",
|
|
115
|
+
"http-server": "^14.0.0",
|
|
116
|
+
"jest": "^27.3.1",
|
|
117
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
118
|
+
"path-browserify": "^1.0.1",
|
|
119
|
+
"raw-loader": "^4.0.2",
|
|
120
|
+
"sass": "^1.43.5",
|
|
121
|
+
"sass-loader": "^12.3.0",
|
|
122
|
+
"simple-git": "^2.47.0",
|
|
123
|
+
"stream-browserify": "^3.0.0",
|
|
124
|
+
"style-loader": "^3.3.1",
|
|
125
|
+
"ts-jest": "^27.0.7",
|
|
126
|
+
"typescript": "^4.5.2",
|
|
127
|
+
"webpack": "^5.64.4",
|
|
128
|
+
"webpack-cli": "^4.9.1"
|
|
129
|
+
},
|
|
130
|
+
"dependencies": {
|
|
131
|
+
"@types/argparse": "^2.0.10",
|
|
132
|
+
"@types/benchmark": "^2.1.1",
|
|
133
|
+
"@types/compression": "1.7.2",
|
|
134
|
+
"@types/express": "^4.17.13",
|
|
135
|
+
"@types/node": "^16.11.10",
|
|
136
|
+
"@types/node-fetch": "^2.5.12",
|
|
137
|
+
"@types/react": "^17.0.37",
|
|
138
|
+
"@types/react-dom": "^17.0.11",
|
|
139
|
+
"@types/swagger-ui-dist": "3.30.1",
|
|
140
|
+
"argparse": "^2.0.1",
|
|
141
|
+
"body-parser": "^1.19.0",
|
|
142
|
+
"compression": "^1.7.4",
|
|
143
|
+
"cors": "^2.8.5",
|
|
144
|
+
"express": "^4.17.1",
|
|
145
|
+
"h264-mp4-encoder": "^1.0.12",
|
|
146
|
+
"immer": "^9.0.7",
|
|
147
|
+
"immutable": "^3.8.2",
|
|
148
|
+
"node-fetch": "^2.6.2",
|
|
149
|
+
"rxjs": "^7.4.0",
|
|
150
|
+
"swagger-ui-dist": "^4.1.1",
|
|
151
|
+
"tslib": "^2.3.1",
|
|
152
|
+
"util.promisify": "^1.1.1",
|
|
153
|
+
"xhr2": "^0.2.1"
|
|
154
|
+
},
|
|
155
|
+
"peerDependencies": {
|
|
156
|
+
"react": "^17.0.2",
|
|
157
|
+
"react-dom": "^17.0.2"
|
|
158
|
+
},
|
|
159
|
+
"optionalDependencies": {
|
|
160
|
+
"gl": "^4.9.2"
|
|
161
|
+
}
|
|
162
|
+
}
|