molstar 3.0.0 → 3.2.0

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 (256) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +194 -194
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +106 -106
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/docking-viewer/viewport.d.ts +2 -0
  8. package/lib/apps/viewer/app.d.ts +1 -0
  9. package/lib/apps/viewer/app.js +6 -3
  10. package/lib/apps/viewer/embedded.html +43 -43
  11. package/lib/apps/viewer/index.html +106 -106
  12. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
  13. package/lib/commonjs/apps/viewer/app.d.ts +1 -0
  14. package/lib/commonjs/apps/viewer/app.js +8 -5
  15. package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
  16. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  17. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  18. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
  19. package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +11 -11
  20. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  21. package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +1 -1
  22. package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +1 -1
  23. package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -3
  24. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  25. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
  26. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  27. package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
  28. package/lib/commonjs/mol-gl/renderer.js +3 -3
  29. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  30. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  31. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
  32. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +2 -2
  33. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  34. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +2 -2
  35. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
  36. package/lib/commonjs/mol-gl/shader/mesh.frag.js +2 -2
  37. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
  38. package/lib/commonjs/mol-gl/shader/spheres.frag.js +2 -2
  39. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
  40. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
  41. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  42. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
  43. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +24 -2
  44. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +23 -1
  45. package/lib/commonjs/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
  46. package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +17 -4
  47. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +68 -1
  48. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
  49. package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
  50. package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
  51. package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -1
  52. package/lib/commonjs/mol-model/structure/structure/element/loci.js +4 -2
  53. package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
  54. package/lib/commonjs/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +40 -20
  55. package/lib/commonjs/mol-model/volume/volume.d.ts +7 -0
  56. package/lib/commonjs/mol-model/volume/volume.js +18 -0
  57. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -0
  58. package/lib/commonjs/mol-model-formats/structure/common/property.d.ts +5 -2
  59. package/lib/commonjs/mol-model-formats/structure/common/property.js +20 -8
  60. package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
  61. package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
  62. package/lib/commonjs/mol-model-props/computed/interactions/common.d.ts +1 -1
  63. package/lib/commonjs/mol-model-props/computed/interactions/common.js +16 -24
  64. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
  65. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
  66. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
  67. package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
  68. package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +29 -26
  69. package/lib/{mol-model-props/sequence/themes/best-database-mapping.d.ts → commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
  70. package/lib/commonjs/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +22 -22
  71. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
  72. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +11 -11
  73. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
  74. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +2 -2
  75. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
  76. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +11 -6
  77. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  78. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  79. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  80. package/lib/commonjs/mol-plugin/behavior/static/representation.js +1 -1
  81. package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
  82. package/lib/commonjs/mol-plugin-state/actions/volume.js +3 -3
  83. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  84. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  85. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
  86. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  87. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  88. package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -11
  89. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -1
  90. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +11 -8
  91. package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +2 -1
  92. package/lib/commonjs/mol-plugin-ui/controls/icons.js +8 -5
  93. package/lib/commonjs/mol-plugin-ui/controls.d.ts +1 -1
  94. package/lib/commonjs/mol-plugin-ui/controls.js +2 -1
  95. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  96. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +131 -0
  97. package/lib/commonjs/mol-plugin-ui/structure/superposition.d.ts +4 -1
  98. package/lib/commonjs/mol-plugin-ui/structure/superposition.js +66 -30
  99. package/lib/commonjs/mol-plugin-ui/structure/volume.js +4 -4
  100. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
  101. package/lib/commonjs/mol-repr/shape/loci/common.js +3 -3
  102. package/lib/commonjs/mol-repr/structure/registry.d.ts +1 -1
  103. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +4 -4
  104. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
  105. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
  106. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
  107. package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +1 -1
  108. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +5 -4
  109. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  110. package/lib/commonjs/mol-state/transform.js +12 -2
  111. package/lib/commonjs/mol-theme/color/element-symbol.d.ts +46 -2
  112. package/lib/commonjs/mol-theme/color/element-symbol.js +15 -10
  113. package/lib/commonjs/mol-theme/color/entity-id.js +14 -11
  114. package/lib/commonjs/mol-theme/color/illustrative.d.ts +32 -32
  115. package/lib/commonjs/mol-theme/color.d.ts +39 -17
  116. package/lib/commonjs/servers/volume/config.js +3 -3
  117. package/lib/commonjs/servers/volume/query.js +1 -1
  118. package/lib/examples/alpha-orbitals/index.html +61 -61
  119. package/lib/examples/basic-wrapper/index.html +137 -137
  120. package/lib/examples/lighting/index.html +88 -88
  121. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  122. package/lib/extensions/anvil/behavior.d.ts +1 -0
  123. package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  124. package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  125. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
  126. package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
  127. package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  128. package/lib/mol-canvas3d/helper/interaction-events.js +1 -1
  129. package/lib/mol-canvas3d/passes/draw.d.ts +1 -1
  130. package/lib/mol-canvas3d/passes/draw.js +3 -3
  131. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  132. package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
  133. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  134. package/lib/mol-gl/renderer.d.ts +2 -2
  135. package/lib/mol-gl/renderer.js +3 -3
  136. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  137. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  138. package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
  139. package/lib/mol-gl/shader/cylinders.frag.js +2 -2
  140. package/lib/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  141. package/lib/mol-gl/shader/direct-volume.frag.js +2 -2
  142. package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
  143. package/lib/mol-gl/shader/mesh.frag.js +2 -2
  144. package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
  145. package/lib/mol-gl/shader/spheres.frag.js +2 -2
  146. package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
  147. package/lib/mol-io/reader/cif/schema/bird.js +1 -1
  148. package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  149. package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
  150. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +24 -2
  151. package/lib/mol-io/reader/cif/schema/mmcif.js +23 -1
  152. package/lib/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
  153. package/lib/mol-math/geometry/primitives/sphere3d.js +17 -4
  154. package/lib/mol-model/structure/export/categories/atom_site.js +68 -1
  155. package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
  156. package/lib/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
  157. package/lib/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
  158. package/lib/mol-model/structure/structure/element/loci.d.ts +1 -1
  159. package/lib/mol-model/structure/structure/element/loci.js +4 -2
  160. package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
  161. package/lib/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +38 -18
  162. package/lib/mol-model/volume/volume.d.ts +7 -0
  163. package/lib/mol-model/volume/volume.js +18 -0
  164. package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -0
  165. package/lib/mol-model-formats/structure/common/property.d.ts +5 -2
  166. package/lib/mol-model-formats/structure/common/property.js +20 -8
  167. package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
  168. package/lib/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
  169. package/lib/mol-model-props/computed/interactions/common.d.ts +1 -1
  170. package/lib/mol-model-props/computed/interactions/common.js +16 -24
  171. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
  172. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
  173. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
  174. package/lib/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
  175. package/lib/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +28 -25
  176. package/lib/{commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts → mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
  177. package/lib/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +19 -19
  178. package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
  179. package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +8 -8
  180. package/lib/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
  181. package/lib/mol-plugin/behavior/dynamic/custom-props.js +1 -1
  182. package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
  183. package/lib/mol-plugin/behavior/dynamic/representation.js +11 -6
  184. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  185. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  186. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  187. package/lib/mol-plugin/behavior/static/representation.js +1 -1
  188. package/lib/mol-plugin/version.js +2 -2
  189. package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
  190. package/lib/mol-plugin-state/actions/volume.js +3 -3
  191. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  192. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  193. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
  194. package/lib/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  195. package/lib/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  196. package/lib/mol-plugin-state/formats/volume.js +1 -11
  197. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -1
  198. package/lib/mol-plugin-state/manager/structure/component.js +11 -8
  199. package/lib/mol-plugin-ui/controls/icons.d.ts +2 -1
  200. package/lib/mol-plugin-ui/controls/icons.js +5 -3
  201. package/lib/mol-plugin-ui/controls.d.ts +1 -1
  202. package/lib/mol-plugin-ui/controls.js +2 -1
  203. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  204. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  205. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  206. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  207. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  208. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  209. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
  210. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  211. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  212. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  213. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  214. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  215. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  216. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  217. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  218. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  219. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  220. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  221. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  222. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  223. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  224. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  225. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  226. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  227. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  228. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  229. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  230. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  231. package/lib/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  232. package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
  233. package/lib/mol-plugin-ui/structure/superposition.d.ts +4 -1
  234. package/lib/mol-plugin-ui/structure/superposition.js +66 -30
  235. package/lib/mol-plugin-ui/structure/volume.js +4 -4
  236. package/lib/mol-repr/shape/loci/common.d.ts +1 -1
  237. package/lib/mol-repr/shape/loci/common.js +3 -3
  238. package/lib/mol-repr/structure/registry.d.ts +1 -1
  239. package/lib/mol-repr/structure/representation/cartoon.d.ts +4 -4
  240. package/lib/mol-repr/structure/representation/cartoon.js +3 -3
  241. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
  242. package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
  243. package/lib/mol-repr/structure/visual/util/bond.d.ts +1 -1
  244. package/lib/mol-repr/structure/visual/util/bond.js +5 -4
  245. package/lib/mol-script/language/builder.d.ts +1 -0
  246. package/lib/mol-state/transform.js +12 -2
  247. package/lib/mol-theme/color/element-symbol.d.ts +46 -2
  248. package/lib/mol-theme/color/element-symbol.js +15 -10
  249. package/lib/mol-theme/color/entity-id.js +14 -11
  250. package/lib/mol-theme/color/illustrative.d.ts +32 -32
  251. package/lib/mol-theme/color.d.ts +39 -17
  252. package/lib/servers/volume/config.js +3 -3
  253. package/lib/servers/volume/query.js +1 -1
  254. package/package.json +160 -163
  255. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
  256. package/lib/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
@@ -1,127 +1,127 @@
1
- .msp-viewport {
2
- position: absolute;
3
- left: 0;
4
- top: 0;
5
- right: 0;
6
- bottom: 0;
7
- background: black;
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
- -webkit-tap-highlight-color: rgba(0,0,0,0);
28
- -webkit-touch-callout: none;
29
- touch-action: manipulation;
30
-
31
- > canvas {
32
- background-color: $default-background;
33
- background-image: linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey),
34
- linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey);
35
- background-size: 60px 60px;
36
- background-position: 0 0, 30px 30px;
37
- }
38
- }
39
-
40
- .msp-viewport-controls {
41
- position: absolute;
42
- right: $control-spacing;
43
- top: $control-spacing;
44
- width: 32px;
45
- }
46
-
47
- .msp-viewport-controls-buttons {
48
- text-align: right;
49
- position: relative;
50
- // opacity: 0.5;
51
- // &:hover { opacity: 1.0; }
52
-
53
- > div {
54
- position: relative;
55
- margin-bottom: 4px;
56
- }
57
-
58
- button {
59
- padding: 0;
60
- text-align: center;
61
- width: $row-height;
62
- position: relative;
63
- }
64
-
65
- .msp-btn-link-toggle-off {
66
- color: $msp-btn-link-toggle-off-font-color;
67
- }
68
-
69
- .msp-btn-link:hover {
70
- color: $hover-font-color;
71
- }
72
- }
73
-
74
- .msp-semi-transparent-background {
75
- background: $default-background;
76
- opacity: 0.5;
77
- position: absolute;
78
- top: 0;
79
- left: 0;
80
- width: 100%;
81
- height: 100%;
82
- }
83
-
84
- .msp-viewport-controls-panel {
85
- width: 290px;
86
- top: 0;
87
- right: $row-height + 4px;
88
- position: absolute;
89
- background: $control-background;
90
-
91
- .msp-control-group-wrapper:first-child {
92
- padding-top: 0;
93
- }
94
-
95
- .msp-viewport-controls-panel-controls {
96
- overflow-y: auto;
97
- max-height: 400px;
98
- }
99
- }
100
-
101
- /* highlight & toasts */
102
-
103
- .msp-highlight-toast-wrapper {
104
- position: absolute;
105
- right: $control-spacing;
106
- bottom: $control-spacing;
107
- max-width: 95%;
108
-
109
- z-index: 10000;
110
- }
111
-
112
- .msp-highlight-info {
113
- color: $highlight-info-font-color;
114
- padding: $info-vertical-padding $control-spacing;
115
- background: $default-background; //$highlight-info-background;
116
-
117
- // min-height: $row-height;
118
- text-align: right;
119
-
120
- @include non-selectable;
121
- }
122
-
123
- .msp-highlight-info-additional {
124
- font-size: 85%;
125
- display: inline-block;
126
- color: $highlight-info-additional-font-color;
127
- }
1
+ .msp-viewport {
2
+ position: absolute;
3
+ left: 0;
4
+ top: 0;
5
+ right: 0;
6
+ bottom: 0;
7
+ background: black;
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
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
28
+ -webkit-touch-callout: none;
29
+ touch-action: manipulation;
30
+
31
+ > canvas {
32
+ background-color: $default-background;
33
+ background-image: linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey),
34
+ linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey);
35
+ background-size: 60px 60px;
36
+ background-position: 0 0, 30px 30px;
37
+ }
38
+ }
39
+
40
+ .msp-viewport-controls {
41
+ position: absolute;
42
+ right: $control-spacing;
43
+ top: $control-spacing;
44
+ width: 32px;
45
+ }
46
+
47
+ .msp-viewport-controls-buttons {
48
+ text-align: right;
49
+ position: relative;
50
+ // opacity: 0.5;
51
+ // &:hover { opacity: 1.0; }
52
+
53
+ > div {
54
+ position: relative;
55
+ margin-bottom: 4px;
56
+ }
57
+
58
+ button {
59
+ padding: 0;
60
+ text-align: center;
61
+ width: $row-height;
62
+ position: relative;
63
+ }
64
+
65
+ .msp-btn-link-toggle-off {
66
+ color: $msp-btn-link-toggle-off-font-color;
67
+ }
68
+
69
+ .msp-btn-link:hover {
70
+ color: $hover-font-color;
71
+ }
72
+ }
73
+
74
+ .msp-semi-transparent-background {
75
+ background: $default-background;
76
+ opacity: 0.5;
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ width: 100%;
81
+ height: 100%;
82
+ }
83
+
84
+ .msp-viewport-controls-panel {
85
+ width: 290px;
86
+ top: 0;
87
+ right: $row-height + 4px;
88
+ position: absolute;
89
+ background: $control-background;
90
+
91
+ .msp-control-group-wrapper:first-child {
92
+ padding-top: 0;
93
+ }
94
+
95
+ .msp-viewport-controls-panel-controls {
96
+ overflow-y: auto;
97
+ max-height: 400px;
98
+ }
99
+ }
100
+
101
+ /* highlight & toasts */
102
+
103
+ .msp-highlight-toast-wrapper {
104
+ position: absolute;
105
+ right: $control-spacing;
106
+ bottom: $control-spacing;
107
+ max-width: 95%;
108
+
109
+ z-index: 10000;
110
+ }
111
+
112
+ .msp-highlight-info {
113
+ color: $highlight-info-font-color;
114
+ padding: $info-vertical-padding $control-spacing;
115
+ background: $default-background; //$highlight-info-background;
116
+
117
+ // min-height: $row-height;
118
+ text-align: right;
119
+
120
+ @include non-selectable;
121
+ }
122
+
123
+ .msp-highlight-info-additional {
124
+ font-size: 85%;
125
+ display: inline-block;
126
+ color: $highlight-info-additional-font-color;
127
+ }
@@ -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
  }