molstar 3.7.0 → 3.8.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.
Files changed (253) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +202 -202
  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/build/viewer/molstar.js.LICENSE.txt +0 -15
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/viewer/embedded.html +43 -43
  9. package/lib/apps/viewer/index.html +106 -106
  10. package/lib/cli/chem-comp-dict/create-ions.d.ts +2 -1
  11. package/lib/cli/chem-comp-dict/create-ions.js +3 -2
  12. package/lib/cli/cifschema/index.js +1 -1
  13. package/lib/cli/cifschema/util/cif-dic.js +1 -0
  14. package/lib/commonjs/cli/chem-comp-dict/create-ions.d.ts +2 -1
  15. package/lib/commonjs/cli/chem-comp-dict/create-ions.js +3 -2
  16. package/lib/commonjs/cli/cifschema/index.js +1 -1
  17. package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
  18. package/lib/commonjs/examples/proteopedia-wrapper/coloring.d.ts +20 -5
  19. package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +284 -0
  20. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +1 -1
  21. package/lib/commonjs/mol-canvas3d/canvas3d.js +4 -4
  22. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -1
  23. package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +7 -5
  24. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  25. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +7 -5
  26. package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +4 -8
  27. package/lib/commonjs/mol-canvas3d/passes/draw.js +60 -103
  28. package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +1 -1
  29. package/lib/commonjs/mol-canvas3d/passes/pick.js +1 -3
  30. package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  31. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +17 -12
  32. package/lib/commonjs/mol-geo/geometry/color-data.d.ts +5 -2
  33. package/lib/commonjs/mol-geo/geometry/color-data.js +7 -17
  34. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  35. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
  36. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
  37. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
  38. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  39. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
  40. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  41. package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +1 -1
  42. package/lib/commonjs/mol-geo/geometry/transparency-data.js +3 -1
  43. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +1 -1
  44. package/lib/commonjs/mol-gl/renderable/cylinders.js +1 -1
  45. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +1 -1
  46. package/lib/commonjs/mol-gl/renderable/mesh.js +1 -1
  47. package/lib/commonjs/mol-gl/renderable/schema.d.ts +2 -2
  48. package/lib/commonjs/mol-gl/renderable/schema.js +2 -2
  49. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +1 -1
  50. package/lib/commonjs/mol-gl/renderable/spheres.js +1 -1
  51. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +1 -1
  52. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
  53. package/lib/commonjs/mol-gl/renderer.d.ts +5 -5
  54. package/lib/commonjs/mol-gl/renderer.js +64 -45
  55. package/lib/commonjs/mol-gl/scene.d.ts +2 -1
  56. package/lib/commonjs/mol-gl/scene.js +44 -11
  57. package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
  58. package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.js +1 -1
  59. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  60. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  61. package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.d.ts +1 -1
  62. package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.js +1 -1
  63. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  64. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  65. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  66. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
  67. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +1 -1
  68. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +1 -1
  69. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  70. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  71. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
  72. package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
  73. package/lib/commonjs/mol-gl/shader/outlines.frag.d.ts +3 -2
  74. package/lib/commonjs/mol-gl/shader/outlines.frag.js +3 -2
  75. package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  76. package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
  77. package/lib/commonjs/mol-gl/shader/ssao.frag.d.ts +2 -2
  78. package/lib/commonjs/mol-gl/shader/ssao.frag.js +2 -2
  79. package/lib/commonjs/mol-gl/webgl/program.js +10 -1
  80. package/lib/commonjs/mol-gl/webgl/render-target.d.ts +3 -1
  81. package/lib/commonjs/mol-gl/webgl/render-target.js +3 -1
  82. package/lib/commonjs/mol-gl/webgl/renderbuffer.d.ts +2 -1
  83. package/lib/commonjs/mol-gl/webgl/renderbuffer.js +8 -1
  84. package/lib/commonjs/mol-gl/webgl/state.d.ts +7 -1
  85. package/lib/commonjs/mol-gl/webgl/state.js +28 -1
  86. package/lib/commonjs/mol-gl/webgl/texture.js +3 -0
  87. package/lib/commonjs/mol-gl/webgl/uniform.d.ts +1 -0
  88. package/lib/commonjs/mol-gl/webgl/uniform.js +5 -1
  89. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
  90. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
  91. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  92. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
  93. package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
  94. package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +1 -1
  95. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
  96. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +2 -3
  97. package/lib/commonjs/mol-io/reader/dx/parser.js +1 -1
  98. package/lib/commonjs/mol-math/geometry/lookup3d/grid.d.ts +1 -1
  99. package/lib/commonjs/mol-math/geometry/lookup3d/grid.js +3 -3
  100. package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
  101. package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.js +2 -1
  102. package/lib/commonjs/mol-model/structure/model/types/ions.d.ts +2 -2
  103. package/lib/commonjs/mol-model/structure/model/types/ions.js +2 -2
  104. package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
  105. package/lib/commonjs/mol-model/structure/model/types.d.ts +1 -1
  106. package/lib/commonjs/mol-model/structure/model/types.js +43 -41
  107. package/lib/commonjs/mol-model-formats/structure/common/property.js +2 -0
  108. package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
  109. package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +2 -2
  110. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  111. package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +3 -1
  112. package/lib/commonjs/mol-repr/volume/slice.js +1 -1
  113. package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
  114. package/lib/commonjs/mol-theme/color/volume-value.d.ts +3 -2
  115. package/lib/commonjs/mol-theme/color/volume-value.js +1 -3
  116. package/lib/commonjs/mol-theme/color.d.ts +47 -38
  117. package/lib/commonjs/mol-theme/theme.d.ts +8 -7
  118. package/lib/commonjs/mol-theme/theme.js +1 -1
  119. package/lib/examples/alpha-orbitals/index.html +61 -61
  120. package/lib/examples/basic-wrapper/index.html +137 -137
  121. package/lib/examples/lighting/index.html +88 -88
  122. package/lib/examples/proteopedia-wrapper/coloring.d.ts +20 -5
  123. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  124. package/lib/extensions/rcsb/graphql/types.d.ts +284 -0
  125. package/lib/mol-canvas3d/canvas3d.d.ts +1 -1
  126. package/lib/mol-canvas3d/canvas3d.js +4 -4
  127. package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -1
  128. package/lib/mol-canvas3d/helper/camera-helper.js +8 -6
  129. package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  130. package/lib/mol-canvas3d/helper/handle-helper.js +8 -6
  131. package/lib/mol-canvas3d/passes/draw.d.ts +4 -8
  132. package/lib/mol-canvas3d/passes/draw.js +57 -100
  133. package/lib/mol-canvas3d/passes/pick.d.ts +1 -1
  134. package/lib/mol-canvas3d/passes/pick.js +1 -3
  135. package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  136. package/lib/mol-canvas3d/passes/postprocessing.js +17 -12
  137. package/lib/mol-geo/geometry/color-data.d.ts +5 -2
  138. package/lib/mol-geo/geometry/color-data.js +7 -17
  139. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  140. package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
  141. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
  142. package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
  143. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  144. package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
  145. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  146. package/lib/mol-geo/geometry/transparency-data.d.ts +1 -1
  147. package/lib/mol-geo/geometry/transparency-data.js +3 -1
  148. package/lib/mol-gl/renderable/cylinders.d.ts +1 -1
  149. package/lib/mol-gl/renderable/cylinders.js +1 -1
  150. package/lib/mol-gl/renderable/mesh.d.ts +1 -1
  151. package/lib/mol-gl/renderable/mesh.js +1 -1
  152. package/lib/mol-gl/renderable/schema.d.ts +2 -2
  153. package/lib/mol-gl/renderable/schema.js +2 -2
  154. package/lib/mol-gl/renderable/spheres.d.ts +1 -1
  155. package/lib/mol-gl/renderable/spheres.js +1 -1
  156. package/lib/mol-gl/renderable/texture-mesh.d.ts +1 -1
  157. package/lib/mol-gl/renderable/texture-mesh.js +1 -1
  158. package/lib/mol-gl/renderer.d.ts +5 -5
  159. package/lib/mol-gl/renderer.js +64 -45
  160. package/lib/mol-gl/scene.d.ts +2 -1
  161. package/lib/mol-gl/scene.js +44 -11
  162. package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
  163. package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.js +1 -1
  164. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  165. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  166. package/lib/mol-gl/shader/chunks/check-picking-alpha.glsl.d.ts +1 -1
  167. package/lib/mol-gl/shader/chunks/check-picking-alpha.glsl.js +1 -1
  168. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  169. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  170. package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  171. package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
  172. package/lib/mol-gl/shader/chunks/wboit-write.glsl.d.ts +1 -1
  173. package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +1 -1
  174. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  175. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  176. package/lib/mol-gl/shader/image.frag.d.ts +1 -1
  177. package/lib/mol-gl/shader/image.frag.js +1 -1
  178. package/lib/mol-gl/shader/outlines.frag.d.ts +3 -2
  179. package/lib/mol-gl/shader/outlines.frag.js +3 -2
  180. package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  181. package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
  182. package/lib/mol-gl/shader/ssao.frag.d.ts +2 -2
  183. package/lib/mol-gl/shader/ssao.frag.js +2 -2
  184. package/lib/mol-gl/webgl/program.js +11 -2
  185. package/lib/mol-gl/webgl/render-target.d.ts +3 -1
  186. package/lib/mol-gl/webgl/render-target.js +3 -1
  187. package/lib/mol-gl/webgl/renderbuffer.d.ts +2 -1
  188. package/lib/mol-gl/webgl/renderbuffer.js +8 -1
  189. package/lib/mol-gl/webgl/state.d.ts +7 -1
  190. package/lib/mol-gl/webgl/state.js +28 -1
  191. package/lib/mol-gl/webgl/texture.js +3 -0
  192. package/lib/mol-gl/webgl/uniform.d.ts +1 -0
  193. package/lib/mol-gl/webgl/uniform.js +3 -0
  194. package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
  195. package/lib/mol-io/reader/cif/schema/bird.js +1 -1
  196. package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  197. package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
  198. package/lib/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
  199. package/lib/mol-io/reader/cif/schema/cif-core.js +1 -1
  200. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
  201. package/lib/mol-io/reader/cif/schema/mmcif.js +2 -3
  202. package/lib/mol-io/reader/dx/parser.js +1 -1
  203. package/lib/mol-math/geometry/lookup3d/grid.d.ts +1 -1
  204. package/lib/mol-math/geometry/lookup3d/grid.js +3 -3
  205. package/lib/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
  206. package/lib/mol-model/structure/model/properties/seconday-structure.js +2 -1
  207. package/lib/mol-model/structure/model/types/ions.d.ts +2 -2
  208. package/lib/mol-model/structure/model/types/ions.js +2 -2
  209. package/lib/mol-model/structure/model/types/saccharides.js +1 -1
  210. package/lib/mol-model/structure/model/types.d.ts +1 -1
  211. package/lib/mol-model/structure/model/types.js +43 -41
  212. package/lib/mol-model-formats/structure/common/property.js +2 -0
  213. package/lib/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
  214. package/lib/mol-model-formats/structure/property/secondary-structure.js +2 -2
  215. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  216. package/lib/mol-plugin/version.js +2 -2
  217. package/lib/mol-plugin-state/helpers/root-structure.js +3 -1
  218. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  219. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  220. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  221. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  222. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  223. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  224. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
  225. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  226. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  227. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  228. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  229. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  230. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +128 -128
  231. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  232. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  233. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  234. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  235. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  236. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  237. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  238. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  239. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  240. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  241. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  242. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  243. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  244. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  245. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  246. package/lib/mol-repr/volume/slice.js +1 -1
  247. package/lib/mol-script/language/builder.d.ts +0 -1
  248. package/lib/mol-theme/color/volume-value.d.ts +3 -2
  249. package/lib/mol-theme/color/volume-value.js +2 -4
  250. package/lib/mol-theme/color.d.ts +47 -38
  251. package/lib/mol-theme/theme.d.ts +8 -7
  252. package/lib/mol-theme/theme.js +1 -1
  253. package/package.json +162 -162
@@ -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>>;
@@ -1,11 +1,12 @@
1
1
  /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2021-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
6
  import { ColorTheme } from '../color';
7
7
  import { ParamDefinition as PD } from '../../mol-util/param-definition';
8
8
  import { ThemeDataContext } from '../theme';
9
+ import { ColorTypeDirect } from '../../mol-geo/geometry/color-data';
9
10
  export declare const VolumeValueColorThemeParams: {
10
11
  colorList: PD.ColorList;
11
12
  };
@@ -13,5 +14,5 @@ export declare type VolumeValueColorThemeParams = typeof VolumeValueColorThemePa
13
14
  export declare function getVolumeValueColorThemeParams(ctx: ThemeDataContext): {
14
15
  colorList: PD.ColorList;
15
16
  };
16
- export declare function VolumeValueColorTheme(ctx: ThemeDataContext, props: PD.Values<VolumeValueColorThemeParams>): ColorTheme<VolumeValueColorThemeParams>;
17
+ export declare function VolumeValueColorTheme(ctx: ThemeDataContext, props: PD.Values<VolumeValueColorThemeParams>): ColorTheme<VolumeValueColorThemeParams, ColorTypeDirect>;
17
18
  export declare const VolumeValueColorThemeProvider: ColorTheme.Provider<VolumeValueColorThemeParams, 'volume-value'>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2021-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */
@@ -9,7 +9,6 @@ exports.VolumeValueColorThemeProvider = exports.VolumeValueColorTheme = exports.
9
9
  var color_1 = require("../../mol-util/color");
10
10
  var param_definition_1 = require("../../mol-util/param-definition");
11
11
  var names_1 = require("../../mol-util/color/names");
12
- var DefaultColor = (0, color_1.Color)(0xCCCCCC);
13
12
  var Description = 'Assign color based on the given value of a volume cell.';
14
13
  exports.VolumeValueColorThemeParams = {
15
14
  colorList: param_definition_1.ParamDefinition.ColorList({
@@ -37,7 +36,6 @@ function VolumeValueColorTheme(ctx, props) {
37
36
  return {
38
37
  factory: VolumeValueColorTheme,
39
38
  granularity: 'direct',
40
- color: function () { return DefaultColor; },
41
39
  props: props,
42
40
  description: Description,
43
41
  legend: scale.legend,
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { Color } from '../mol-util/color';
7
7
  import { Location } from '../mol-model/location';
8
- import { ColorType } from '../mol-geo/geometry/color-data';
8
+ import { ColorType, ColorTypeDirect, ColorTypeGrid, ColorTypeLocation } from '../mol-geo/geometry/color-data';
9
9
  import { ParamDefinition as PD } from '../mol-util/param-definition';
10
10
  import { ThemeDataContext, ThemeRegistry, ThemeProvider } from './theme';
11
11
  import { ScaleLegend, TableLegend } from '../mol-util/legend';
@@ -18,12 +18,9 @@ export interface ColorVolume {
18
18
  transform: Vec4;
19
19
  }
20
20
  export { ColorTheme };
21
- interface ColorTheme<P extends PD.Params> {
22
- readonly factory: ColorTheme.Factory<P>;
23
- readonly granularity: ColorType;
24
- readonly color: LocationColor;
21
+ declare type ColorThemeShared<P extends PD.Params, G extends ColorType> = {
22
+ readonly factory: ColorTheme.Factory<P, G>;
25
23
  readonly props: Readonly<PD.Values<P>>;
26
- readonly grid?: ColorVolume;
27
24
  /**
28
25
  * if palette is defined, 24bit RGB color value normalized to interval [0, 1]
29
26
  * is used as index to the colors
@@ -33,7 +30,19 @@ interface ColorTheme<P extends PD.Params> {
33
30
  readonly contextHash?: number;
34
31
  readonly description?: string;
35
32
  readonly legend?: Readonly<ScaleLegend | TableLegend>;
36
- }
33
+ };
34
+ declare type ColorThemeLocation<P extends PD.Params> = {
35
+ readonly granularity: ColorTypeLocation;
36
+ readonly color: LocationColor;
37
+ } & ColorThemeShared<P, ColorTypeLocation>;
38
+ declare type ColorThemeGrid<P extends PD.Params> = {
39
+ readonly granularity: ColorTypeGrid;
40
+ readonly grid: ColorVolume;
41
+ } & ColorThemeShared<P, ColorTypeGrid>;
42
+ declare type ColorThemeDirect<P extends PD.Params> = {
43
+ readonly granularity: ColorTypeDirect;
44
+ } & ColorThemeShared<P, ColorTypeDirect>;
45
+ declare type ColorTheme<P extends PD.Params, G extends ColorType = ColorTypeLocation> = G extends ColorTypeLocation ? ColorThemeLocation<P> : G extends ColorTypeGrid ? ColorThemeGrid<P> : G extends ColorTypeDirect ? ColorThemeDirect<P> : never;
37
46
  declare namespace ColorTheme {
38
47
  export const enum Category {
39
48
  Atom = "Atom Property",
@@ -51,15 +60,15 @@ declare namespace ColorTheme {
51
60
  export type Props = {
52
61
  [k: string]: any;
53
62
  };
54
- export type Factory<P extends PD.Params> = (ctx: ThemeDataContext, props: PD.Values<P>) => ColorTheme<P>;
55
- export const EmptyFactory: () => ColorTheme<{}>;
63
+ export type Factory<P extends PD.Params, G extends ColorType> = (ctx: ThemeDataContext, props: PD.Values<P>) => ColorTheme<P, G>;
64
+ export const EmptyFactory: () => ColorThemeLocation<{}>;
56
65
  export const Empty: ColorTheme<{}>;
57
- export function areEqual(themeA: ColorTheme<any>, themeB: ColorTheme<any>): boolean;
58
- export interface Provider<P extends PD.Params = any, Id extends string = string> extends ThemeProvider<ColorTheme<P>, P, Id> {
66
+ export function areEqual(themeA: ColorTheme<any, any>, themeB: ColorTheme<any, any>): boolean;
67
+ export interface Provider<P extends PD.Params = any, Id extends string = string, G extends ColorType = ColorType> extends ThemeProvider<ColorTheme<P, G>, P, Id, G> {
59
68
  }
60
69
  export const EmptyProvider: Provider<{}>;
61
- export type Registry = ThemeRegistry<ColorTheme<any>>;
62
- export function createRegistry(): ThemeRegistry<ColorTheme<{}>>;
70
+ export type Registry = ThemeRegistry<ColorTheme<any, any>>;
71
+ export function createRegistry(): ThemeRegistry<ColorThemeLocation<{}> | ColorThemeDirect<{}> | ColorThemeGrid<{}>>;
63
72
  export const BuiltIn: {
64
73
  'atom-id': Provider<{
65
74
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
@@ -75,8 +84,8 @@ declare namespace ColorTheme {
75
84
  colors: import("../mol-util/color/color").ColorListEntry[];
76
85
  };
77
86
  }>, "colors">>;
78
- }, "atom-id">;
79
- 'carbohydrate-symbol': Provider<{}, "carbohydrate-symbol">;
87
+ }, "atom-id", ColorType>;
88
+ 'carbohydrate-symbol': Provider<{}, "carbohydrate-symbol", ColorType>;
80
89
  'chain-id': Provider<{
81
90
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
82
91
  maxCount: number;
@@ -92,7 +101,7 @@ declare namespace ColorTheme {
92
101
  };
93
102
  }>, "colors">>;
94
103
  asymId: PD.Select<"label" | "auth">;
95
- }, "chain-id">;
104
+ }, "chain-id", ColorType>;
96
105
  'element-index': Provider<{
97
106
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
98
107
  maxCount: number;
@@ -107,7 +116,7 @@ declare namespace ColorTheme {
107
116
  colors: import("../mol-util/color/color").ColorListEntry[];
108
117
  };
109
118
  }>, "colors">>;
110
- }, "element-index">;
119
+ }, "element-index", ColorType>;
111
120
  'element-symbol': Provider<{
112
121
  carbonColor: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "element-symbol"> | PD.NamedParams<PD.Normalize<{
113
122
  palette: PD.NamedParams<PD.Normalize<{
@@ -278,7 +287,7 @@ declare namespace ColorTheme {
278
287
  LV: Color;
279
288
  UUH: Color;
280
289
  }>, "custom">>;
281
- }, "element-symbol">;
290
+ }, "element-symbol", ColorType>;
282
291
  'entity-id': Provider<{
283
292
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
284
293
  maxCount: number;
@@ -293,7 +302,7 @@ declare namespace ColorTheme {
293
302
  colors: import("../mol-util/color/color").ColorListEntry[];
294
303
  };
295
304
  }>, "colors">>;
296
- }, "entity-id">;
305
+ }, "entity-id", ColorType>;
297
306
  'entity-source': Provider<{
298
307
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
299
308
  maxCount: number;
@@ -308,11 +317,11 @@ declare namespace ColorTheme {
308
317
  colors: import("../mol-util/color/color").ColorListEntry[];
309
318
  };
310
319
  }>, "colors">>;
311
- }, "entity-source">;
320
+ }, "entity-source", ColorType>;
312
321
  hydrophobicity: Provider<{
313
322
  list: PD.ColorList;
314
323
  scale: PD.Select<"DGwif" | "DGwoct" | "Oct-IF">;
315
- }, "hydrophobicity">;
324
+ }, "hydrophobicity", ColorType>;
316
325
  illustrative: Provider<{
317
326
  style: PD.Mapped<PD.NamedParams<PD.Normalize<{
318
327
  palette: PD.NamedParams<PD.Normalize<{
@@ -364,7 +373,7 @@ declare namespace ColorTheme {
364
373
  }>, "custom">;
365
374
  }>, "molecule-type">>;
366
375
  carbonLightness: PD.Numeric;
367
- }, "illustrative">;
376
+ }, "illustrative", ColorType>;
368
377
  'model-index': Provider<{
369
378
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
370
379
  maxCount: number;
@@ -379,7 +388,7 @@ declare namespace ColorTheme {
379
388
  colors: import("../mol-util/color/color").ColorListEntry[];
380
389
  };
381
390
  }>, "colors">>;
382
- }, "model-index">;
391
+ }, "model-index", ColorType>;
383
392
  'molecule-type': Provider<{
384
393
  saturation: PD.Numeric;
385
394
  lightness: PD.Numeric;
@@ -392,11 +401,11 @@ declare namespace ColorTheme {
392
401
  PNA: Color;
393
402
  saccharide: Color;
394
403
  }>, "custom">>;
395
- }, "molecule-type">;
404
+ }, "molecule-type", ColorType>;
396
405
  occupancy: Provider<{
397
406
  domain: PD.Interval;
398
407
  list: PD.ColorList;
399
- }, "occupancy">;
408
+ }, "occupancy", ColorType>;
400
409
  'operator-hkl': Provider<{
401
410
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
402
411
  maxCount: number;
@@ -411,7 +420,7 @@ declare namespace ColorTheme {
411
420
  colors: import("../mol-util/color/color").ColorListEntry[];
412
421
  };
413
422
  }>, "colors">>;
414
- }, "operator-hkl">;
423
+ }, "operator-hkl", ColorType>;
415
424
  'operator-name': Provider<{
416
425
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
417
426
  maxCount: number;
@@ -426,11 +435,11 @@ declare namespace ColorTheme {
426
435
  colors: import("../mol-util/color/color").ColorListEntry[];
427
436
  };
428
437
  }>, "colors">>;
429
- }, "operator-name">;
438
+ }, "operator-name", ColorType>;
430
439
  'partial-charge': Provider<{
431
440
  domain: PD.Interval;
432
441
  list: PD.ColorList;
433
- }, "partial-charge">;
442
+ }, "partial-charge", ColorType>;
434
443
  'polymer-id': Provider<{
435
444
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
436
445
  maxCount: number;
@@ -445,7 +454,7 @@ declare namespace ColorTheme {
445
454
  colors: import("../mol-util/color/color").ColorListEntry[];
446
455
  };
447
456
  }>, "colors">>;
448
- }, "polymer-id">;
457
+ }, "polymer-id", ColorType>;
449
458
  'polymer-index': Provider<{
450
459
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
451
460
  maxCount: number;
@@ -460,7 +469,7 @@ declare namespace ColorTheme {
460
469
  colors: import("../mol-util/color/color").ColorListEntry[];
461
470
  };
462
471
  }>, "colors">>;
463
- }, "polymer-index">;
472
+ }, "polymer-index", ColorType>;
464
473
  'residue-name': Provider<{
465
474
  saturation: PD.Numeric;
466
475
  lightness: PD.Numeric;
@@ -502,7 +511,7 @@ declare namespace ColorTheme {
502
511
  CPN: Color;
503
512
  TPN: Color;
504
513
  }>, "custom">>;
505
- }, "residue-name">;
514
+ }, "residue-name", ColorType>;
506
515
  'secondary-structure': Provider<{
507
516
  saturation: PD.Numeric;
508
517
  lightness: PD.Numeric;
@@ -519,15 +528,15 @@ declare namespace ColorTheme {
519
528
  rna: Color;
520
529
  carbohydrate: Color;
521
530
  }>, "custom">>;
522
- }, "secondary-structure">;
531
+ }, "secondary-structure", ColorType>;
523
532
  'sequence-id': Provider<{
524
533
  list: PD.ColorList;
525
- }, "sequence-id">;
526
- 'shape-group': Provider<{}, "shape-group">;
534
+ }, "sequence-id", ColorType>;
535
+ 'shape-group': Provider<{}, "shape-group", ColorType>;
527
536
  uncertainty: Provider<{
528
537
  domain: PD.Interval;
529
538
  list: PD.ColorList;
530
- }, "uncertainty">;
539
+ }, "uncertainty", ColorType>;
531
540
  'unit-index': Provider<{
532
541
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
533
542
  maxCount: number;
@@ -542,13 +551,13 @@ declare namespace ColorTheme {
542
551
  colors: import("../mol-util/color/color").ColorListEntry[];
543
552
  };
544
553
  }>, "colors">>;
545
- }, "unit-index">;
554
+ }, "unit-index", ColorType>;
546
555
  uniform: Provider<{
547
556
  value: PD.Color;
548
- }, "uniform">;
557
+ }, "uniform", ColorType>;
549
558
  'volume-value': Provider<{
550
559
  colorList: PD.ColorList;
551
- }, "volume-value">;
560
+ }, "volume-value", ColorType>;
552
561
  };
553
562
  type _BuiltIn = typeof BuiltIn;
554
563
  export type BuiltIn = keyof _BuiltIn;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -10,6 +10,7 @@ import { Volume } from '../mol-model/volume';
10
10
  import { ParamDefinition as PD } from '../mol-util/param-definition';
11
11
  import { Shape } from '../mol-model/shape';
12
12
  import { CustomProperty } from '../mol-model-props/common/custom-property';
13
+ import { ColorType } from '../mol-geo/geometry/color-data';
13
14
  export interface ThemeRegistryContext {
14
15
  colorThemeRegistry: ColorTheme.Registry;
15
16
  sizeThemeRegistry: SizeTheme.Registry;
@@ -22,7 +23,7 @@ export interface ThemeDataContext {
22
23
  }
23
24
  export { Theme };
24
25
  interface Theme {
25
- color: ColorTheme<any>;
26
+ color: ColorTheme<any, any>;
26
27
  size: SizeTheme<any>;
27
28
  }
28
29
  declare namespace Theme {
@@ -35,7 +36,7 @@ declare namespace Theme {
35
36
  export function releaseDependencies(theme: ThemeRegistryContext, data: ThemeDataContext, props: Props): void;
36
37
  export {};
37
38
  }
38
- export interface ThemeProvider<T extends ColorTheme<P> | SizeTheme<P>, P extends PD.Params, Id extends string = string> {
39
+ export interface ThemeProvider<T extends ColorTheme<P, G> | SizeTheme<P>, P extends PD.Params, Id extends string = string, G extends ColorType = ColorType> {
39
40
  readonly name: Id;
40
41
  readonly label: string;
41
42
  readonly category: string;
@@ -48,18 +49,18 @@ export interface ThemeProvider<T extends ColorTheme<P> | SizeTheme<P>, P extends
48
49
  detach: (data: ThemeDataContext) => void;
49
50
  };
50
51
  }
51
- export declare class ThemeRegistry<T extends ColorTheme<any> | SizeTheme<any>> {
52
+ export declare class ThemeRegistry<T extends ColorTheme<any, any> | SizeTheme<any>> {
52
53
  private emptyProvider;
53
54
  private _list;
54
55
  private _map;
55
56
  private _name;
56
57
  get default(): {
57
58
  name: string;
58
- provider: ThemeProvider<T, any, string>;
59
+ provider: ThemeProvider<T, any, string, ColorType>;
59
60
  };
60
61
  get list(): {
61
62
  name: string;
62
- provider: ThemeProvider<T, any, string>;
63
+ provider: ThemeProvider<T, any, string, ColorType>;
63
64
  }[];
64
65
  get types(): [string, string, string][];
65
66
  constructor(builtInThemes: {
@@ -74,7 +75,7 @@ export declare class ThemeRegistry<T extends ColorTheme<any> | SizeTheme<any>> {
74
75
  create(name: string, ctx: ThemeDataContext, props?: {}): T;
75
76
  getApplicableList(ctx: ThemeDataContext): {
76
77
  name: string;
77
- provider: ThemeProvider<T, any, string>;
78
+ provider: ThemeProvider<T, any, string, ColorType>;
78
79
  }[];
79
80
  getApplicableTypes(ctx: ThemeDataContext): [string, string, string][];
80
81
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */
@@ -1,62 +1,62 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
6
- <title>Mol* Alpha Orbitals Example</title>
7
- <style>
8
- * {
9
- margin: 0;
10
- padding: 0;
11
- box-sizing: border-box;
12
- }
13
- #app {
14
- position: absolute;
15
- left: 0;
16
- top: 0;
17
- bottom: 0;
18
- right: 0;
19
- }
20
- #controls {
21
- position: absolute;
22
- left: 8px;
23
- top: 8px;
24
- width: 300px;
25
- }
26
- #sponsor {
27
- position: absolute;
28
- left: 8px;
29
- bottom: 8px;
30
- font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
31
- font-size: 12px;
32
- text-align: center;
33
- }
34
- #sponsor svg {
35
- fill: #128EA4;
36
- width: 100px;
37
- }
38
- #sponsor a {
39
- text-decoration: none;
40
- color: #128EA4;
41
- }
42
- </style>
43
- <link rel="stylesheet" type="text/css" href="molstar.css" />
44
- <script type="text/javascript" src="./index.js"></script>
45
- </head>
46
- <body>
47
- <div id="app"></div>
48
- <div id='controls'></div>
49
- <div id='sponsor'>
50
- <a href='https://www.entos.ai/envision' target="_blank" rel="noopener">
51
- <svg class="makeStyles-root-46" viewBox="0 0 190 36" xmlns="http://www.w3.org/2000/svg"><path d="M32.2591 28.6707C32.2591 32.3914 29.2421 35.407 25.5214 35.407C22.0752 35.407 19.2338 32.8206 18.8325 29.4831V29.4775C18.8143 29.3312 18.8018 29.1835 18.7934 29.0344C18.7934 29.0316 18.7921 29.0274 18.7921 29.0246V29.0177C18.7865 28.902 18.7837 28.7864 18.7837 28.6707C18.7837 26.2557 20.0532 24.1389 21.9609 22.9503C21.9623 22.9489 21.9651 22.9489 21.9665 22.9475C22.0933 22.8666 22.2243 22.7914 22.3581 22.7203C22.3581 22.7203 22.3595 22.7203 22.3595 22.7189C23.3029 22.2173 24.3787 21.933 25.5214 21.933C29.2421 21.933 32.2591 24.9486 32.2591 28.6707Z"></path><path d="M25.5214 14.0692C29.2421 14.0692 32.2591 11.0522 32.2591 7.33146C32.2591 3.61074 29.2421 0.59375 25.5214 0.59375C22.0529 0.59375 19.1962 3.21637 18.8255 6.58592C18.8185 6.67092 18.8116 6.75454 18.8018 6.83815C18.7893 7.00119 18.7837 7.16563 18.7837 7.33146C18.7837 9.73669 20.0434 11.8465 21.94 13.038C22.0891 13.116 22.2355 13.201 22.3776 13.2916C22.3783 13.2923 22.379 13.2926 22.3797 13.293C22.3804 13.2933 22.3811 13.2937 22.3818 13.2944C23.3196 13.7891 24.3871 14.0692 25.5214 14.0692Z"></path><path d="M19.3645 12.4113C20.2926 12.4113 21.1694 12.638 21.94 13.038C20.0434 11.8465 18.7837 9.73669 18.7837 7.33146C18.7837 7.16563 18.7893 7.00119 18.8018 6.83815C18.4688 9.76455 16.1385 12.0866 13.2065 12.4044C13.8545 13.1193 14.3785 13.9484 14.745 14.857C15.7497 13.3798 17.4443 12.4113 19.3645 12.4113Z"></path><path d="M14.7312 21.1249V21.1236C14.1279 20.2331 13.7767 19.1587 13.7767 18.0007V17.9728C13.7767 15.3084 12.2285 13.0035 9.9835 11.911C9.98141 11.9103 9.97967 11.9096 9.97793 11.9089C9.97619 11.9082 9.97444 11.9075 9.97235 11.9068C9.96817 11.904 9.96538 11.9026 9.9612 11.9012C9.95981 11.9012 9.95981 11.8998 9.95981 11.8998C9.9417 11.8915 9.92394 11.8831 9.90618 11.8747C9.8884 11.8664 9.87063 11.858 9.85251 11.8497C9.82046 11.8343 9.78701 11.819 9.75357 11.8051L9.74521 11.8009C8.91745 11.4372 8.0019 11.2351 7.03898 11.2351C3.31826 11.2351 0.30127 14.2521 0.30127 17.9728C0.30127 21.6935 3.31826 24.7105 7.03898 24.7105C7.98797 24.7105 8.89098 24.514 9.71037 24.1601C9.71246 24.1594 9.7142 24.1583 9.71594 24.1573C9.71768 24.1562 9.71943 24.1552 9.72152 24.1545C9.8107 24.1169 9.8985 24.0765 9.9849 24.0333L9.98629 24.0319C10.7625 23.6919 11.6181 23.5037 12.5197 23.5037C12.7524 23.5037 12.9824 23.5163 13.2081 23.54C13.2082 23.5399 13.2081 23.54 13.2081 23.54C15.0168 23.7365 16.5971 24.695 17.6185 26.0885C17.9195 25.1688 18.3752 24.3201 18.9563 23.5732C17.1964 23.4464 15.6635 22.5058 14.7312 21.1249Z"></path><g clip-path="url(#clip0)"><path d="M106.391 18.0021C106.391 11.3724 101.039 6 94.4389 6H88.4585C81.8581 6 76.5061 11.3724 76.5061 18.0021V30.0042H81.2845V18.0021C81.2845 14.0268 84.4941 10.8008 88.4585 10.8008H94.4347C98.395 10.8008 101.609 14.0226 101.609 18.0021V30.0042H106.391V18.0021Z"></path><path d="M149.432 6H142.258C135.653 6 130.301 11.3724 130.301 18.0021C130.301 24.6319 135.653 30.0042 142.258 30.0042H149.432C156.036 30.0042 161.388 24.6319 161.388 18.0021C161.388 11.3724 156.032 6 149.432 6ZM149.432 25.1992H142.258C138.297 25.1992 135.084 21.9774 135.084 17.9979C135.084 14.0183 138.293 10.7966 142.258 10.7966H149.432C153.392 10.7966 156.606 14.0183 156.606 17.9979C156.606 21.9774 153.392 25.1992 149.432 25.1992Z"></path><path d="M74.1151 25.1992H58.5736C55.4526 25.1992 52.804 23.1924 51.8171 20.3983H74.1151V17.9979C74.1151 17.1808 74.1868 16.3807 74.3175 15.5975H51.8171C52.804 12.8033 55.4526 10.7966 58.5736 10.7966H76.0383C77.1475 8.87458 78.6911 7.22773 80.5299 6H58.5736C51.969 6 46.6169 11.3724 46.6169 18.0021C46.6169 24.6276 51.969 30 58.5736 30H74.1151V25.1992Z"></path><path d="M120.74 6H115.958H102.369C104.212 7.22773 105.751 8.87458 106.861 10.8008H115.958V30H120.74V10.8008H129.838C130.947 8.87458 132.486 7.22773 134.329 6H120.74Z"></path><path d="M182.906 15.6017H169.756C168.436 15.6017 167.365 14.5264 167.365 13.2013C167.365 11.8762 168.436 10.8008 169.756 10.8008H188.882V6H169.756C165.796 6 162.582 9.22173 162.582 13.2013C162.582 17.1808 165.791 20.4025 169.756 20.4025H182.906C184.226 20.4025 185.297 21.4779 185.297 22.803C185.297 24.1281 184.226 25.2034 182.906 25.2034H161.852C160.743 27.1297 159.199 28.7765 157.361 30.0042H182.906C186.866 30.0042 190.08 26.7825 190.08 22.803C190.08 18.8234 186.866 15.6017 182.906 15.6017Z"></path></g><defs><clipPath id="clip0"><rect width="190" height="24" fill="white" transform="translate(0 6)"></rect></clipPath></defs></svg>
52
- <div>
53
- Entos Envision
54
- </div>
55
- </a>
56
- </div>
57
- <script>
58
- AlphaOrbitalsExample.init('app')
59
- </script>
60
- <!-- __MOLSTAR_ANALYTICS__ -->
61
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
6
+ <title>Mol* Alpha Orbitals Example</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+ #app {
14
+ position: absolute;
15
+ left: 0;
16
+ top: 0;
17
+ bottom: 0;
18
+ right: 0;
19
+ }
20
+ #controls {
21
+ position: absolute;
22
+ left: 8px;
23
+ top: 8px;
24
+ width: 300px;
25
+ }
26
+ #sponsor {
27
+ position: absolute;
28
+ left: 8px;
29
+ bottom: 8px;
30
+ font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
31
+ font-size: 12px;
32
+ text-align: center;
33
+ }
34
+ #sponsor svg {
35
+ fill: #128EA4;
36
+ width: 100px;
37
+ }
38
+ #sponsor a {
39
+ text-decoration: none;
40
+ color: #128EA4;
41
+ }
42
+ </style>
43
+ <link rel="stylesheet" type="text/css" href="molstar.css" />
44
+ <script type="text/javascript" src="./index.js"></script>
45
+ </head>
46
+ <body>
47
+ <div id="app"></div>
48
+ <div id='controls'></div>
49
+ <div id='sponsor'>
50
+ <a href='https://www.entos.ai/envision' target="_blank" rel="noopener">
51
+ <svg class="makeStyles-root-46" viewBox="0 0 190 36" xmlns="http://www.w3.org/2000/svg"><path d="M32.2591 28.6707C32.2591 32.3914 29.2421 35.407 25.5214 35.407C22.0752 35.407 19.2338 32.8206 18.8325 29.4831V29.4775C18.8143 29.3312 18.8018 29.1835 18.7934 29.0344C18.7934 29.0316 18.7921 29.0274 18.7921 29.0246V29.0177C18.7865 28.902 18.7837 28.7864 18.7837 28.6707C18.7837 26.2557 20.0532 24.1389 21.9609 22.9503C21.9623 22.9489 21.9651 22.9489 21.9665 22.9475C22.0933 22.8666 22.2243 22.7914 22.3581 22.7203C22.3581 22.7203 22.3595 22.7203 22.3595 22.7189C23.3029 22.2173 24.3787 21.933 25.5214 21.933C29.2421 21.933 32.2591 24.9486 32.2591 28.6707Z"></path><path d="M25.5214 14.0692C29.2421 14.0692 32.2591 11.0522 32.2591 7.33146C32.2591 3.61074 29.2421 0.59375 25.5214 0.59375C22.0529 0.59375 19.1962 3.21637 18.8255 6.58592C18.8185 6.67092 18.8116 6.75454 18.8018 6.83815C18.7893 7.00119 18.7837 7.16563 18.7837 7.33146C18.7837 9.73669 20.0434 11.8465 21.94 13.038C22.0891 13.116 22.2355 13.201 22.3776 13.2916C22.3783 13.2923 22.379 13.2926 22.3797 13.293C22.3804 13.2933 22.3811 13.2937 22.3818 13.2944C23.3196 13.7891 24.3871 14.0692 25.5214 14.0692Z"></path><path d="M19.3645 12.4113C20.2926 12.4113 21.1694 12.638 21.94 13.038C20.0434 11.8465 18.7837 9.73669 18.7837 7.33146C18.7837 7.16563 18.7893 7.00119 18.8018 6.83815C18.4688 9.76455 16.1385 12.0866 13.2065 12.4044C13.8545 13.1193 14.3785 13.9484 14.745 14.857C15.7497 13.3798 17.4443 12.4113 19.3645 12.4113Z"></path><path d="M14.7312 21.1249V21.1236C14.1279 20.2331 13.7767 19.1587 13.7767 18.0007V17.9728C13.7767 15.3084 12.2285 13.0035 9.9835 11.911C9.98141 11.9103 9.97967 11.9096 9.97793 11.9089C9.97619 11.9082 9.97444 11.9075 9.97235 11.9068C9.96817 11.904 9.96538 11.9026 9.9612 11.9012C9.95981 11.9012 9.95981 11.8998 9.95981 11.8998C9.9417 11.8915 9.92394 11.8831 9.90618 11.8747C9.8884 11.8664 9.87063 11.858 9.85251 11.8497C9.82046 11.8343 9.78701 11.819 9.75357 11.8051L9.74521 11.8009C8.91745 11.4372 8.0019 11.2351 7.03898 11.2351C3.31826 11.2351 0.30127 14.2521 0.30127 17.9728C0.30127 21.6935 3.31826 24.7105 7.03898 24.7105C7.98797 24.7105 8.89098 24.514 9.71037 24.1601C9.71246 24.1594 9.7142 24.1583 9.71594 24.1573C9.71768 24.1562 9.71943 24.1552 9.72152 24.1545C9.8107 24.1169 9.8985 24.0765 9.9849 24.0333L9.98629 24.0319C10.7625 23.6919 11.6181 23.5037 12.5197 23.5037C12.7524 23.5037 12.9824 23.5163 13.2081 23.54C13.2082 23.5399 13.2081 23.54 13.2081 23.54C15.0168 23.7365 16.5971 24.695 17.6185 26.0885C17.9195 25.1688 18.3752 24.3201 18.9563 23.5732C17.1964 23.4464 15.6635 22.5058 14.7312 21.1249Z"></path><g clip-path="url(#clip0)"><path d="M106.391 18.0021C106.391 11.3724 101.039 6 94.4389 6H88.4585C81.8581 6 76.5061 11.3724 76.5061 18.0021V30.0042H81.2845V18.0021C81.2845 14.0268 84.4941 10.8008 88.4585 10.8008H94.4347C98.395 10.8008 101.609 14.0226 101.609 18.0021V30.0042H106.391V18.0021Z"></path><path d="M149.432 6H142.258C135.653 6 130.301 11.3724 130.301 18.0021C130.301 24.6319 135.653 30.0042 142.258 30.0042H149.432C156.036 30.0042 161.388 24.6319 161.388 18.0021C161.388 11.3724 156.032 6 149.432 6ZM149.432 25.1992H142.258C138.297 25.1992 135.084 21.9774 135.084 17.9979C135.084 14.0183 138.293 10.7966 142.258 10.7966H149.432C153.392 10.7966 156.606 14.0183 156.606 17.9979C156.606 21.9774 153.392 25.1992 149.432 25.1992Z"></path><path d="M74.1151 25.1992H58.5736C55.4526 25.1992 52.804 23.1924 51.8171 20.3983H74.1151V17.9979C74.1151 17.1808 74.1868 16.3807 74.3175 15.5975H51.8171C52.804 12.8033 55.4526 10.7966 58.5736 10.7966H76.0383C77.1475 8.87458 78.6911 7.22773 80.5299 6H58.5736C51.969 6 46.6169 11.3724 46.6169 18.0021C46.6169 24.6276 51.969 30 58.5736 30H74.1151V25.1992Z"></path><path d="M120.74 6H115.958H102.369C104.212 7.22773 105.751 8.87458 106.861 10.8008H115.958V30H120.74V10.8008H129.838C130.947 8.87458 132.486 7.22773 134.329 6H120.74Z"></path><path d="M182.906 15.6017H169.756C168.436 15.6017 167.365 14.5264 167.365 13.2013C167.365 11.8762 168.436 10.8008 169.756 10.8008H188.882V6H169.756C165.796 6 162.582 9.22173 162.582 13.2013C162.582 17.1808 165.791 20.4025 169.756 20.4025H182.906C184.226 20.4025 185.297 21.4779 185.297 22.803C185.297 24.1281 184.226 25.2034 182.906 25.2034H161.852C160.743 27.1297 159.199 28.7765 157.361 30.0042H182.906C186.866 30.0042 190.08 26.7825 190.08 22.803C190.08 18.8234 186.866 15.6017 182.906 15.6017Z"></path></g><defs><clipPath id="clip0"><rect width="190" height="24" fill="white" transform="translate(0 6)"></rect></clipPath></defs></svg>
52
+ <div>
53
+ Entos Envision
54
+ </div>
55
+ </a>
56
+ </div>
57
+ <script>
58
+ AlphaOrbitalsExample.init('app')
59
+ </script>
60
+ <!-- __MOLSTAR_ANALYTICS__ -->
61
+ </body>
62
62
  </html>