molstar 3.31.2 → 3.31.4

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.
Files changed (80) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +202 -202
  3. package/build/viewer/embedded.html +52 -52
  4. package/build/viewer/index.html +115 -115
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/viewer/embedded.html +52 -52
  8. package/lib/apps/viewer/index.html +115 -115
  9. package/lib/commonjs/extensions/meshes/mesh-extension.d.ts +4 -2
  10. package/lib/commonjs/extensions/meshes/mesh-streaming/behavior.d.ts +2 -0
  11. package/lib/commonjs/mol-canvas3d/canvas3d.js +2 -1
  12. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  13. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
  14. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  15. package/lib/commonjs/mol-gl/shader/cylinders.vert.d.ts +2 -2
  16. package/lib/commonjs/mol-gl/shader/cylinders.vert.js +2 -2
  17. package/lib/commonjs/mol-gl/shader/spheres.vert.d.ts +2 -2
  18. package/lib/commonjs/mol-gl/shader/spheres.vert.js +2 -2
  19. package/lib/commonjs/mol-math/linear-algebra/matrix/principal-axes.js +1 -1
  20. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  21. package/lib/commonjs/mol-plugin/context.js +1 -0
  22. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +2 -1
  23. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -1
  24. package/lib/commonjs/mol-repr/structure/visual/util/link.d.ts +1 -0
  25. package/lib/commonjs/mol-repr/structure/visual/util/link.js +27 -9
  26. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  27. package/lib/commonjs/mol-util/data-source.js +2 -1
  28. package/lib/examples/alpha-orbitals/index.html +72 -72
  29. package/lib/examples/basic-wrapper/index.html +137 -137
  30. package/lib/examples/lighting/index.html +88 -88
  31. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  32. package/lib/extensions/meshes/mesh-extension.d.ts +4 -2
  33. package/lib/extensions/meshes/mesh-streaming/behavior.d.ts +2 -0
  34. package/lib/mol-canvas3d/canvas3d.js +2 -1
  35. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  36. package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
  37. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  38. package/lib/mol-gl/shader/cylinders.vert.d.ts +2 -2
  39. package/lib/mol-gl/shader/cylinders.vert.js +2 -2
  40. package/lib/mol-gl/shader/spheres.vert.d.ts +2 -2
  41. package/lib/mol-gl/shader/spheres.vert.js +2 -2
  42. package/lib/mol-math/linear-algebra/matrix/principal-axes.js +1 -1
  43. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  44. package/lib/mol-plugin/context.js +1 -0
  45. package/lib/mol-plugin/version.js +2 -2
  46. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  47. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  48. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  49. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  50. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  51. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  52. package/lib/mol-plugin-ui/skin/base/components/misc.scss +663 -663
  53. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  54. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  55. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  56. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  57. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  58. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +137 -137
  59. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  60. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  61. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  62. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  63. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  64. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  65. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  66. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  67. package/lib/mol-plugin-ui/skin/base/variables.scss +88 -88
  68. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  69. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  70. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  71. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  72. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  73. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  74. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +2 -1
  75. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -1
  76. package/lib/mol-repr/structure/visual/util/link.d.ts +1 -0
  77. package/lib/mol-repr/structure/visual/util/link.js +27 -9
  78. package/lib/mol-script/language/builder.d.ts +1 -0
  79. package/lib/mol-util/data-source.js +2 -1
  80. package/package.json +178 -177
@@ -1,137 +1,137 @@
1
- .msp-viewport {
2
- position: absolute;
3
- left: 0;
4
- top: 0;
5
- right: 0;
6
- bottom: 0;
7
- background: $default-background;
8
-
9
- .msp-btn-link {
10
- background: rgba(0,0,0,0.2);
11
- }
12
-
13
- }
14
-
15
- .msp-viewport-expanded {
16
- position: fixed;
17
- z-index: 1000;
18
- }
19
-
20
- .msp-viewport-host3d {
21
- position: absolute;
22
- left: 0;
23
- top: 0;
24
- right: 0;
25
- bottom: 0;
26
- -webkit-user-select: none;
27
- user-select: none;
28
- -webkit-tap-highlight-color: rgba(0,0,0,0);
29
- -webkit-touch-callout: none;
30
- touch-action: manipulation;
31
-
32
- > canvas {
33
- background-color: $default-background;
34
- background-image: linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey),
35
- linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey);
36
- background-size: 60px 60px;
37
- background-position: 0 0, 30px 30px;
38
- }
39
- }
40
-
41
- .msp-viewport-controls {
42
- position: absolute;
43
- right: $control-spacing;
44
- top: $control-spacing;
45
- width: 32px;
46
- }
47
-
48
- .msp-viewport-controls-buttons {
49
- text-align: right;
50
- position: relative;
51
- // opacity: 0.5;
52
- // &:hover { opacity: 1.0; }
53
-
54
- > div {
55
- position: relative;
56
- margin-bottom: 4px;
57
- }
58
-
59
- button {
60
- padding: 0;
61
- text-align: center;
62
- width: $row-height;
63
- position: relative;
64
- }
65
-
66
- .msp-btn-link-toggle-off {
67
- color: $msp-btn-link-toggle-off-font-color;
68
- }
69
-
70
- .msp-btn-link:hover {
71
- color: $hover-font-color;
72
- }
73
- }
74
-
75
- .msp-semi-transparent-background {
76
- background: $default-background;
77
- opacity: 0.5;
78
- position: absolute;
79
- top: 0;
80
- left: 0;
81
- width: 100%;
82
- height: 100%;
83
- }
84
-
85
- .msp-viewport-controls-panel {
86
- width: 290px;
87
- top: 0;
88
- right: $row-height + 4px;
89
- position: absolute;
90
- background: $control-background;
91
-
92
- .msp-control-group-wrapper:first-child {
93
- padding-top: 0;
94
- }
95
-
96
- .msp-viewport-controls-panel-controls {
97
- overflow-y: auto;
98
- max-height: 400px;
99
- }
100
- }
101
-
102
- /* highlight & toasts */
103
-
104
- .msp-highlight-toast-wrapper {
105
- position: absolute;
106
- right: $control-spacing;
107
- bottom: $control-spacing;
108
- max-width: 95%;
109
-
110
- z-index: 10000;
111
- }
112
-
113
- .msp-highlight-info {
114
- color: $highlight-info-font-color;
115
- padding: $info-vertical-padding $control-spacing;
116
- background: $default-background; //$highlight-info-background;
117
- opacity: 90%;
118
-
119
- // min-height: $row-height;
120
- text-align: right;
121
-
122
- @include non-selectable;
123
- }
124
-
125
- .msp-highlight-info-hr {
126
- margin-inline: 0px;
127
- margin-block: 3px;
128
- border: none;
129
- height: 1px;
130
- background-color: $highlight-info-font-color;
131
- }
132
-
133
- .msp-highlight-info-additional {
134
- font-size: 85%;
135
- display: inline-block;
136
- color: $highlight-info-additional-font-color;
137
- }
1
+ .msp-viewport {
2
+ position: absolute;
3
+ left: 0;
4
+ top: 0;
5
+ right: 0;
6
+ bottom: 0;
7
+ background: $default-background;
8
+
9
+ .msp-btn-link {
10
+ background: rgba(0,0,0,0.2);
11
+ }
12
+
13
+ }
14
+
15
+ .msp-viewport-expanded {
16
+ position: fixed;
17
+ z-index: 1000;
18
+ }
19
+
20
+ .msp-viewport-host3d {
21
+ position: absolute;
22
+ left: 0;
23
+ top: 0;
24
+ right: 0;
25
+ bottom: 0;
26
+ -webkit-user-select: none;
27
+ user-select: none;
28
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
29
+ -webkit-touch-callout: none;
30
+ touch-action: manipulation;
31
+
32
+ > canvas {
33
+ background-color: $default-background;
34
+ background-image: linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey),
35
+ linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey);
36
+ background-size: 60px 60px;
37
+ background-position: 0 0, 30px 30px;
38
+ }
39
+ }
40
+
41
+ .msp-viewport-controls {
42
+ position: absolute;
43
+ right: $control-spacing;
44
+ top: $control-spacing;
45
+ width: 32px;
46
+ }
47
+
48
+ .msp-viewport-controls-buttons {
49
+ text-align: right;
50
+ position: relative;
51
+ // opacity: 0.5;
52
+ // &:hover { opacity: 1.0; }
53
+
54
+ > div {
55
+ position: relative;
56
+ margin-bottom: 4px;
57
+ }
58
+
59
+ button {
60
+ padding: 0;
61
+ text-align: center;
62
+ width: $row-height;
63
+ position: relative;
64
+ }
65
+
66
+ .msp-btn-link-toggle-off {
67
+ color: $msp-btn-link-toggle-off-font-color;
68
+ }
69
+
70
+ .msp-btn-link:hover {
71
+ color: $hover-font-color;
72
+ }
73
+ }
74
+
75
+ .msp-semi-transparent-background {
76
+ background: $default-background;
77
+ opacity: 0.5;
78
+ position: absolute;
79
+ top: 0;
80
+ left: 0;
81
+ width: 100%;
82
+ height: 100%;
83
+ }
84
+
85
+ .msp-viewport-controls-panel {
86
+ width: 290px;
87
+ top: 0;
88
+ right: $row-height + 4px;
89
+ position: absolute;
90
+ background: $control-background;
91
+
92
+ .msp-control-group-wrapper:first-child {
93
+ padding-top: 0;
94
+ }
95
+
96
+ .msp-viewport-controls-panel-controls {
97
+ overflow-y: auto;
98
+ max-height: 400px;
99
+ }
100
+ }
101
+
102
+ /* highlight & toasts */
103
+
104
+ .msp-highlight-toast-wrapper {
105
+ position: absolute;
106
+ right: $control-spacing;
107
+ bottom: $control-spacing;
108
+ max-width: 95%;
109
+
110
+ z-index: 10000;
111
+ }
112
+
113
+ .msp-highlight-info {
114
+ color: $highlight-info-font-color;
115
+ padding: $info-vertical-padding $control-spacing;
116
+ background: $default-background; //$highlight-info-background;
117
+ opacity: 90%;
118
+
119
+ // min-height: $row-height;
120
+ text-align: right;
121
+
122
+ @include non-selectable;
123
+ }
124
+
125
+ .msp-highlight-info-hr {
126
+ margin-inline: 0px;
127
+ margin-block: 3px;
128
+ border: none;
129
+ height: 1px;
130
+ background-color: $highlight-info-font-color;
131
+ }
132
+
133
+ .msp-highlight-info-additional {
134
+ font-size: 85%;
135
+ display: inline-block;
136
+ color: $highlight-info-additional-font-color;
137
+ }
@@ -1,72 +1,72 @@
1
-
2
-
3
- .msp-layout-expanded, .msp-layout-standard {
4
- left: 0;
5
- right: 0;
6
- top: 0;
7
- bottom: 0;
8
- }
9
-
10
- .msp-layout-standard {
11
- border: 1px solid $border-color;
12
- }
13
-
14
- .msp-layout-region {
15
- overflow: hidden;
16
- }
17
-
18
- .msp-layout-static, .msp-layout-scrollable {
19
- position: absolute;
20
- }
21
-
22
- .msp-scrollable {
23
- overflow-y: auto;
24
- }
25
-
26
- .msp-scrollable-container {
27
- position: absolute;
28
- left: 0;
29
- right: 0;
30
- top: 0;
31
- bottom: 0;
32
- overflow-y: auto;
33
- }
34
-
35
- .msp-layout-static {
36
- overflow: hidden;
37
- }
38
-
39
- .msp-layout-top, .msp-layout-main, .msp-layout-bottom {
40
- .msp-layout-static {
41
- left: 0;
42
- right: 0;
43
- top: 0;
44
- bottom: 0;
45
- }
46
- }
47
-
48
- .msp-layout-right {
49
- .msp-layout-static {
50
- left: 0;
51
- right: 0;
52
- top: 0;
53
- bottom: 0; // height: $row-height + $control-spacing;
54
- }
55
-
56
- .msp-layout-scrollable {
57
- left: 0;
58
- right: 0;
59
- top: $row-height + $control-spacing + 1;
60
- bottom: 0;
61
- }
62
-
63
- }
64
-
65
- .msp-layout-left {
66
- .msp-layout-static {
67
- left: 0;
68
- right: 0;
69
- bottom: 0;
70
- top: 0;
71
- }
1
+
2
+
3
+ .msp-layout-expanded, .msp-layout-standard {
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ }
9
+
10
+ .msp-layout-standard {
11
+ border: 1px solid $border-color;
12
+ }
13
+
14
+ .msp-layout-region {
15
+ overflow: hidden;
16
+ }
17
+
18
+ .msp-layout-static, .msp-layout-scrollable {
19
+ position: absolute;
20
+ }
21
+
22
+ .msp-scrollable {
23
+ overflow-y: auto;
24
+ }
25
+
26
+ .msp-scrollable-container {
27
+ position: absolute;
28
+ left: 0;
29
+ right: 0;
30
+ top: 0;
31
+ bottom: 0;
32
+ overflow-y: auto;
33
+ }
34
+
35
+ .msp-layout-static {
36
+ overflow: hidden;
37
+ }
38
+
39
+ .msp-layout-top, .msp-layout-main, .msp-layout-bottom {
40
+ .msp-layout-static {
41
+ left: 0;
42
+ right: 0;
43
+ top: 0;
44
+ bottom: 0;
45
+ }
46
+ }
47
+
48
+ .msp-layout-right {
49
+ .msp-layout-static {
50
+ left: 0;
51
+ right: 0;
52
+ top: 0;
53
+ bottom: 0; // height: $row-height + $control-spacing;
54
+ }
55
+
56
+ .msp-layout-scrollable {
57
+ left: 0;
58
+ right: 0;
59
+ top: $row-height + $control-spacing + 1;
60
+ bottom: 0;
61
+ }
62
+
63
+ }
64
+
65
+ .msp-layout-left {
66
+ .msp-layout-static {
67
+ left: 0;
68
+ right: 0;
69
+ bottom: 0;
70
+ top: 0;
71
+ }
72
72
  }
@@ -1,90 +1,90 @@
1
- 
2
- .msp-layout-main {
3
- position: absolute;
4
- left: $expanded-left-width;
5
- right: $expanded-right-width;
6
- bottom: $expanded-bottom-height;
7
- top: $expanded-top-height;
8
- }
9
-
10
- .msp-layout-top {
11
- position: absolute;
12
- left: $expanded-left-width;
13
- right: $expanded-right-width;
14
- height: $expanded-top-height;
15
- top: 0;
16
- border-bottom: 1px solid $border-color;
17
- }
18
-
19
- .msp-layout-bottom {
20
- position: absolute;
21
- left: $expanded-left-width;
22
- right: $expanded-right-width;
23
- height: $expanded-bottom-height;
24
- bottom: 0;
25
- border-top: 1px solid $border-color;
26
- }
27
-
28
- .msp-layout-right {
29
- position: absolute;
30
- width: $expanded-right-width;
31
- right: 0;
32
- bottom: 0;
33
- top: 0;
34
- border-left: 1px solid $border-color;
35
- }
36
-
37
- .msp-layout-left {
38
- position: absolute;
39
- width: $expanded-left-width;
40
- left: 0;
41
- bottom: 0;
42
- top: 0;
43
- border-right: 1px solid $border-color;
44
- }
45
-
46
- .msp-layout-hide-right {
47
- .msp-layout-right {
48
- display: none;
49
- }
50
- .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
51
- right: 0;
52
- }
53
- }
54
-
55
-
56
- .msp-layout-hide-left {
57
- .msp-layout-left {
58
- display: none;
59
- }
60
- .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
61
- left: 0;
62
- }
63
- }
64
-
65
- .msp-layout-collapse-left {
66
- .msp-layout-left {
67
- width: $collapsed-left-width;
68
- }
69
- .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
70
- left: $collapsed-left-width;
71
- }
72
- }
73
-
74
- .msp-layout-hide-bottom {
75
- .msp-layout-bottom {
76
- display: none;
77
- }
78
- .msp-layout-main {
79
- bottom: 0;
80
- }
81
- }
82
-
83
- .msp-layout-hide-top {
84
- .msp-layout-top {
85
- display: none;
86
- }
87
- .msp-layout-main {
88
- top: 0;
89
- }
1
+ 
2
+ .msp-layout-main {
3
+ position: absolute;
4
+ left: $expanded-left-width;
5
+ right: $expanded-right-width;
6
+ bottom: $expanded-bottom-height;
7
+ top: $expanded-top-height;
8
+ }
9
+
10
+ .msp-layout-top {
11
+ position: absolute;
12
+ left: $expanded-left-width;
13
+ right: $expanded-right-width;
14
+ height: $expanded-top-height;
15
+ top: 0;
16
+ border-bottom: 1px solid $border-color;
17
+ }
18
+
19
+ .msp-layout-bottom {
20
+ position: absolute;
21
+ left: $expanded-left-width;
22
+ right: $expanded-right-width;
23
+ height: $expanded-bottom-height;
24
+ bottom: 0;
25
+ border-top: 1px solid $border-color;
26
+ }
27
+
28
+ .msp-layout-right {
29
+ position: absolute;
30
+ width: $expanded-right-width;
31
+ right: 0;
32
+ bottom: 0;
33
+ top: 0;
34
+ border-left: 1px solid $border-color;
35
+ }
36
+
37
+ .msp-layout-left {
38
+ position: absolute;
39
+ width: $expanded-left-width;
40
+ left: 0;
41
+ bottom: 0;
42
+ top: 0;
43
+ border-right: 1px solid $border-color;
44
+ }
45
+
46
+ .msp-layout-hide-right {
47
+ .msp-layout-right {
48
+ display: none;
49
+ }
50
+ .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
51
+ right: 0;
52
+ }
53
+ }
54
+
55
+
56
+ .msp-layout-hide-left {
57
+ .msp-layout-left {
58
+ display: none;
59
+ }
60
+ .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
61
+ left: 0;
62
+ }
63
+ }
64
+
65
+ .msp-layout-collapse-left {
66
+ .msp-layout-left {
67
+ width: $collapsed-left-width;
68
+ }
69
+ .msp-layout-main, .msp-layout-top, .msp-layout-bottom {
70
+ left: $collapsed-left-width;
71
+ }
72
+ }
73
+
74
+ .msp-layout-hide-bottom {
75
+ .msp-layout-bottom {
76
+ display: none;
77
+ }
78
+ .msp-layout-main {
79
+ bottom: 0;
80
+ }
81
+ }
82
+
83
+ .msp-layout-hide-top {
84
+ .msp-layout-top {
85
+ display: none;
86
+ }
87
+ .msp-layout-main {
88
+ top: 0;
89
+ }
90
90
  }