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,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 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
  */
@@ -24,7 +24,7 @@ var CartoonVisuals = {
24
24
  'nucleotide-ring': function (ctx, getParams) { return UnitsRepresentation('Nucleotide ring mesh', ctx, getParams, NucleotideRingVisual); },
25
25
  'direction-wedge': function (ctx, getParams) { return UnitsRepresentation('Polymer direction wedge', ctx, getParams, PolymerDirectionVisual); }
26
26
  };
27
- export var CartoonParams = __assign(__assign(__assign(__assign(__assign(__assign({}, PolymerTraceParams), PolymerGapParams), NucleotideBlockParams), NucleotideRingParams), PolymerDirectionParams), { sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: PD.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-block'], PD.objectToOptions(CartoonVisuals)), bumpFrequency: PD.Numeric(2, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
27
+ export var CartoonParams = __assign(__assign(__assign(__assign(__assign(__assign({}, PolymerTraceParams), PolymerGapParams), NucleotideBlockParams), NucleotideRingParams), PolymerDirectionParams), { sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: PD.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring'], PD.objectToOptions(CartoonVisuals)), bumpFrequency: PD.Numeric(2, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
28
28
  export function getCartoonParams(ctx, structure) {
29
29
  var params = PD.clone(CartoonParams);
30
30
  var hasNucleotides = false;
@@ -37,7 +37,7 @@ export function getCartoonParams(ctx, structure) {
37
37
  });
38
38
  params.visuals.defaultValue = ['polymer-trace'];
39
39
  if (hasNucleotides)
40
- params.visuals.defaultValue.push('nucleotide-block');
40
+ params.visuals.defaultValue.push('nucleotide-ring');
41
41
  if (hasGaps)
42
42
  params.visuals.defaultValue.push('polymer-gap');
43
43
  return params;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2019-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
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2019-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
  */
@@ -40,7 +40,7 @@ function createMolecularSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
40
40
  Mesh.transform(surface, transform);
41
41
  if (ctx.webgl && !ctx.webgl.isWebGL2)
42
42
  Mesh.uniformTriangleGroup(surface);
43
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.probeRadius + getUnitExtraRadius(unit));
43
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, getUnitExtraRadius(unit));
44
44
  surface.setBoundingSphere(sphere);
45
45
  surface.meta.resolution = resolution;
46
46
  return [2 /*return*/, surface];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 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
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 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
  */
@@ -206,6 +206,7 @@ export function getInterBondLoci(pickingId, structure, id) {
206
206
  }
207
207
  return EmptyLoci;
208
208
  }
209
+ var __unitMap = new Map();
209
210
  export function eachInterBond(loci, structure, apply, isMarking) {
210
211
  var changed = false;
211
212
  if (Bond.isLoci(loci)) {
@@ -225,17 +226,16 @@ export function eachInterBond(loci, structure, apply, isMarking) {
225
226
  return false;
226
227
  if (isMarking && loci.elements.length === 1)
227
228
  return false; // only a single unit
228
- var map_1 = new Map();
229
229
  for (var _b = 0, _c = loci.elements; _b < _c.length; _b++) {
230
230
  var e = _c[_b];
231
- map_1.set(e.unit.id, e.indices);
231
+ __unitMap.set(e.unit.id, e.indices);
232
232
  }
233
233
  var _loop_2 = function (e) {
234
234
  var unit = e.unit;
235
235
  if (!Unit.isAtomic(unit))
236
236
  return "continue";
237
237
  structure.interUnitBonds.getConnectedUnits(unit.id).forEach(function (b) {
238
- var otherLociIndices = map_1.get(b.unitB);
238
+ var otherLociIndices = __unitMap.get(b.unitB);
239
239
  if (!isMarking || otherLociIndices) {
240
240
  OrderedSet.forEach(e.indices, function (v) {
241
241
  if (!b.connectedIndices.includes(v))
@@ -255,6 +255,7 @@ export function eachInterBond(loci, structure, apply, isMarking) {
255
255
  var e = _e[_d];
256
256
  _loop_2(e);
257
257
  }
258
+ __unitMap.clear();
258
259
  }
259
260
  return changed;
260
261
  }
@@ -10,6 +10,7 @@ export declare namespace MolScriptBuilder {
10
10
  '@header': string;
11
11
  type: {
12
12
  '@header': string;
13
+ /** atom macromolecular property set */
13
14
  bool: MSymbol<import("./symbol").Arguments<import("./symbol").Arguments.PropTypes<{
14
15
  0: import("./symbol").Argument<import("./type").Type.AnyValue>;
15
16
  }>>, import("./type").Type.OneOf<boolean>>;
@@ -54,7 +54,12 @@ var Transform;
54
54
  if (!!s === !!t)
55
55
  continue;
56
56
  changed = true;
57
- a[k] = s;
57
+ if (s !== void 0) {
58
+ a[k] = s;
59
+ }
60
+ else {
61
+ delete a[k];
62
+ }
58
63
  }
59
64
  for (var _b = 0, _c = Object.keys(a); _b < _c.length; _b++) {
60
65
  var k = _c[_b];
@@ -62,7 +67,12 @@ var Transform;
62
67
  if (!!s === !!t)
63
68
  continue;
64
69
  changed = true;
65
- a[k] = s;
70
+ if (s !== void 0) {
71
+ a[k] = s;
72
+ }
73
+ else {
74
+ delete a[k];
75
+ }
66
76
  }
67
77
  return changed;
68
78
  }
@@ -154,7 +154,29 @@ export declare const ElementSymbolColorThemeParams: {
154
154
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
155
155
  list: any;
156
156
  }>, "colors">;
157
- }>, "operator-name">>;
157
+ }>, "operator-name"> | PD.NamedParams<PD.Normalize<{
158
+ palette: PD.NamedParams<PD.Normalize<{
159
+ maxCount: any;
160
+ hue: any;
161
+ chroma: any;
162
+ luminance: any;
163
+ clusteringStepCount: any;
164
+ minSampleCount: any;
165
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
166
+ list: any;
167
+ }>, "colors">;
168
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
169
+ palette: PD.NamedParams<PD.Normalize<{
170
+ maxCount: any;
171
+ hue: any;
172
+ chroma: any;
173
+ luminance: any;
174
+ clusteringStepCount: any;
175
+ minSampleCount: any;
176
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
177
+ list: any;
178
+ }>, "colors">;
179
+ }>, "entity-source">>;
158
180
  saturation: PD.Numeric;
159
181
  lightness: PD.Numeric;
160
182
  colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
@@ -304,7 +326,29 @@ export declare function getElementSymbolColorThemeParams(ctx: ThemeDataContext):
304
326
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
305
327
  list: any;
306
328
  }>, "colors">;
307
- }>, "operator-name">>;
329
+ }>, "operator-name"> | PD.NamedParams<PD.Normalize<{
330
+ palette: PD.NamedParams<PD.Normalize<{
331
+ maxCount: any;
332
+ hue: any;
333
+ chroma: any;
334
+ luminance: any;
335
+ clusteringStepCount: any;
336
+ minSampleCount: any;
337
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
338
+ list: any;
339
+ }>, "colors">;
340
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
341
+ palette: PD.NamedParams<PD.Normalize<{
342
+ maxCount: any;
343
+ hue: any;
344
+ chroma: any;
345
+ luminance: any;
346
+ clusteringStepCount: any;
347
+ minSampleCount: any;
348
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
349
+ list: any;
350
+ }>, "colors">;
351
+ }>, "entity-source">>;
308
352
  saturation: PD.Numeric;
309
353
  lightness: PD.Numeric;
310
354
  colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- import { __assign } from "tslib";
7
6
  import { Color, ColorMap } from '../../mol-util/color';
8
7
  import { StructureElement, Unit, Bond } from '../../mol-model/structure';
9
8
  import { ParamDefinition as PD } from '../../mol-util/param-definition';
@@ -12,18 +11,22 @@ import { getAdjustedColorMap } from '../../mol-util/color/color';
12
11
  import { getColorMapParams } from '../../mol-util/color/params';
13
12
  import { ChainIdColorTheme, ChainIdColorThemeParams } from './chain-id';
14
13
  import { OperatorNameColorThemeParams, OperatorNameColorTheme } from './operator-name';
14
+ import { EntityIdColorTheme, EntityIdColorThemeParams } from './entity-id';
15
+ import { assertUnreachable } from '../../mol-util/type-helpers';
16
+ import { EntitySourceColorTheme, EntitySourceColorThemeParams } from './entity-source';
15
17
  // from Jmol http://jmol.sourceforge.net/jscolors/ (or 0xFFFFFF)
16
18
  export var ElementSymbolColors = ColorMap({
17
19
  'H': 0xFFFFFF, 'D': 0xFFFFC0, 'T': 0xFFFFA0, 'HE': 0xD9FFFF, 'LI': 0xCC80FF, 'BE': 0xC2FF00, 'B': 0xFFB5B5, 'C': 0x909090, 'N': 0x3050F8, 'O': 0xFF0D0D, 'F': 0x90E050, 'NE': 0xB3E3F5, 'NA': 0xAB5CF2, 'MG': 0x8AFF00, 'AL': 0xBFA6A6, 'SI': 0xF0C8A0, 'P': 0xFF8000, 'S': 0xFFFF30, 'CL': 0x1FF01F, 'AR': 0x80D1E3, 'K': 0x8F40D4, 'CA': 0x3DFF00, 'SC': 0xE6E6E6, 'TI': 0xBFC2C7, 'V': 0xA6A6AB, 'CR': 0x8A99C7, 'MN': 0x9C7AC7, 'FE': 0xE06633, 'CO': 0xF090A0, 'NI': 0x50D050, 'CU': 0xC88033, 'ZN': 0x7D80B0, 'GA': 0xC28F8F, 'GE': 0x668F8F, 'AS': 0xBD80E3, 'SE': 0xFFA100, 'BR': 0xA62929, 'KR': 0x5CB8D1, 'RB': 0x702EB0, 'SR': 0x00FF00, 'Y': 0x94FFFF, 'ZR': 0x94E0E0, 'NB': 0x73C2C9, 'MO': 0x54B5B5, 'TC': 0x3B9E9E, 'RU': 0x248F8F, 'RH': 0x0A7D8C, 'PD': 0x006985, 'AG': 0xC0C0C0, 'CD': 0xFFD98F, 'IN': 0xA67573, 'SN': 0x668080, 'SB': 0x9E63B5, 'TE': 0xD47A00, 'I': 0x940094, 'XE': 0x940094, 'CS': 0x57178F, 'BA': 0x00C900, 'LA': 0x70D4FF, 'CE': 0xFFFFC7, 'PR': 0xD9FFC7, 'ND': 0xC7FFC7, 'PM': 0xA3FFC7, 'SM': 0x8FFFC7, 'EU': 0x61FFC7, 'GD': 0x45FFC7, 'TB': 0x30FFC7, 'DY': 0x1FFFC7, 'HO': 0x00FF9C, 'ER': 0x00E675, 'TM': 0x00D452, 'YB': 0x00BF38, 'LU': 0x00AB24, 'HF': 0x4DC2FF, 'TA': 0x4DA6FF, 'W': 0x2194D6, 'RE': 0x267DAB, 'OS': 0x266696, 'IR': 0x175487, 'PT': 0xD0D0E0, 'AU': 0xFFD123, 'HG': 0xB8B8D0, 'TL': 0xA6544D, 'PB': 0x575961, 'BI': 0x9E4FB5, 'PO': 0xAB5C00, 'AT': 0x754F45, 'RN': 0x428296, 'FR': 0x420066, 'RA': 0x007D00, 'AC': 0x70ABFA, 'TH': 0x00BAFF, 'PA': 0x00A1FF, 'U': 0x008FFF, 'NP': 0x0080FF, 'PU': 0x006BFF, 'AM': 0x545CF2, 'CM': 0x785CE3, 'BK': 0x8A4FE3, 'CF': 0xA136D4, 'ES': 0xB31FD4, 'FM': 0xB31FBA, 'MD': 0xB30DA6, 'NO': 0xBD0D87, 'LR': 0xC70066, 'RF': 0xCC0059, 'DB': 0xD1004F, 'SG': 0xD90045, 'BH': 0xE00038, 'HS': 0xE6002E, 'MT': 0xEB0026, 'DS': 0xFFFFFF, 'RG': 0xFFFFFF, 'CN': 0xFFFFFF, 'UUT': 0xFFFFFF, 'FL': 0xFFFFFF, 'UUP': 0xFFFFFF, 'LV': 0xFFFFFF, 'UUH': 0xFFFFFF
18
20
  });
19
21
  var DefaultElementSymbolColor = Color(0xFFFFFF);
20
22
  var Description = 'Assigns a color to every atom according to its chemical element.';
21
- // TODO generalise `carbonColor` param to all themes?
22
23
  export var ElementSymbolColorThemeParams = {
23
24
  carbonColor: PD.MappedStatic('chain-id', {
24
- 'chain-id': PD.Group(__assign({}, ChainIdColorThemeParams)),
25
- 'operator-name': PD.Group(__assign({}, OperatorNameColorThemeParams)),
26
- 'element-symbol': PD.Group({})
25
+ 'chain-id': PD.Group(ChainIdColorThemeParams),
26
+ 'entity-id': PD.Group(EntityIdColorThemeParams),
27
+ 'entity-source': PD.Group(EntitySourceColorThemeParams),
28
+ 'operator-name': PD.Group(OperatorNameColorThemeParams),
29
+ 'element-symbol': PD.EmptyGroup()
27
30
  }, { description: 'Use chain-id coloring for carbon atoms.' }),
28
31
  saturation: PD.Numeric(0, { min: -6, max: 6, step: 0.1 }),
29
32
  lightness: PD.Numeric(0.2, { min: -6, max: 6, step: 0.1 }),
@@ -41,11 +44,13 @@ export function elementSymbolColor(colorMap, element) {
41
44
  }
42
45
  export function ElementSymbolColorTheme(ctx, props) {
43
46
  var colorMap = getAdjustedColorMap(props.colors.name === 'default' ? ElementSymbolColors : props.colors.params, props.saturation, props.lightness);
44
- var carbonColor = props.carbonColor.name === 'chain-id'
45
- ? ChainIdColorTheme(ctx, props.carbonColor.params).color
46
- : props.carbonColor.name === 'operator-name'
47
- ? OperatorNameColorTheme(ctx, props.carbonColor.params).color
48
- : undefined;
47
+ var pcc = props.carbonColor;
48
+ var carbonColor = pcc.name === 'chain-id' ? ChainIdColorTheme(ctx, pcc.params).color :
49
+ pcc.name === 'entity-id' ? EntityIdColorTheme(ctx, pcc.params).color :
50
+ pcc.name === 'entity-source' ? EntitySourceColorTheme(ctx, pcc.params).color :
51
+ pcc.name === 'operator-name' ? OperatorNameColorTheme(ctx, pcc.params).color :
52
+ pcc.name === 'element-symbol' ? undefined :
53
+ assertUnreachable(pcc);
49
54
  function elementColor(element, location) {
50
55
  return (carbonColor && element === 'C')
51
56
  ? carbonColor(location, false)
@@ -28,17 +28,20 @@ function getEntityIdSerialMap(structure) {
28
28
  if (!map.has(k))
29
29
  map.set(k, map.size);
30
30
  }
31
- var spheres_entity_id = structure.models[i].coarseHierarchy.spheres.entity_id;
32
- for (var j = 0, jl = spheres_entity_id.rowCount; j < jl; ++j) {
33
- var k = key(spheres_entity_id.value(j), i);
34
- if (!map.has(k))
35
- map.set(k, map.size);
36
- }
37
- var gaussians_entity_id = structure.models[i].coarseHierarchy.gaussians.entity_id;
38
- for (var j = 0, jl = gaussians_entity_id.rowCount; j < jl; ++j) {
39
- var k = key(gaussians_entity_id.value(j), i);
40
- if (!map.has(k))
41
- map.set(k, map.size);
31
+ var coarseHierarchy = structure.models[i].coarseHierarchy;
32
+ if (coarseHierarchy.isDefined) {
33
+ var spheres_entity_id = coarseHierarchy.spheres.entity_id;
34
+ for (var j = 0, jl = spheres_entity_id.rowCount; j < jl; ++j) {
35
+ var k = key(spheres_entity_id.value(j), i);
36
+ if (!map.has(k))
37
+ map.set(k, map.size);
38
+ }
39
+ var gaussians_entity_id = coarseHierarchy.gaussians.entity_id;
40
+ for (var j = 0, jl = gaussians_entity_id.rowCount; j < jl; ++j) {
41
+ var k = key(gaussians_entity_id.value(j), i);
42
+ if (!map.has(k))
43
+ map.set(k, map.size);
44
+ }
42
45
  }
43
46
  }
44
47
  return map;
@@ -9,8 +9,6 @@ import { ParamDefinition as PD } from '../../mol-util/param-definition';
9
9
  import { ThemeDataContext } from '../theme';
10
10
  export declare const IllustrativeColorThemeParams: {
11
11
  style: PD.Mapped<PD.NamedParams<PD.Normalize<{
12
- value: Color;
13
- }>, "uniform"> | PD.NamedParams<PD.Normalize<{
14
12
  palette: PD.NamedParams<PD.Normalize<{
15
13
  maxCount: any;
16
14
  hue: any;
@@ -23,18 +21,6 @@ export declare const IllustrativeColorThemeParams: {
23
21
  }>, "colors">;
24
22
  asymId: "label" | "auth";
25
23
  }>, "chain-id"> | PD.NamedParams<PD.Normalize<{
26
- saturation: number;
27
- lightness: number;
28
- colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
29
- water: any;
30
- ion: any;
31
- protein: any;
32
- RNA: any;
33
- DNA: any;
34
- PNA: any;
35
- saccharide: any;
36
- }>, "custom">;
37
- }>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
38
24
  palette: PD.NamedParams<PD.Normalize<{
39
25
  maxCount: any;
40
26
  hue: any;
@@ -45,7 +31,7 @@ export declare const IllustrativeColorThemeParams: {
45
31
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
46
32
  list: any;
47
33
  }>, "colors">;
48
- }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
34
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
49
35
  palette: PD.NamedParams<PD.Normalize<{
50
36
  maxCount: any;
51
37
  hue: any;
@@ -56,14 +42,26 @@ export declare const IllustrativeColorThemeParams: {
56
42
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
57
43
  list: any;
58
44
  }>, "colors">;
59
- }>, "entity-id">>;
45
+ }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
46
+ value: Color;
47
+ }>, "uniform"> | PD.NamedParams<PD.Normalize<{
48
+ saturation: number;
49
+ lightness: number;
50
+ colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
51
+ water: any;
52
+ ion: any;
53
+ protein: any;
54
+ RNA: any;
55
+ DNA: any;
56
+ PNA: any;
57
+ saccharide: any;
58
+ }>, "custom">;
59
+ }>, "molecule-type">>;
60
60
  carbonLightness: PD.Numeric;
61
61
  };
62
62
  export declare type IllustrativeColorThemeParams = typeof IllustrativeColorThemeParams;
63
63
  export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext): {
64
64
  style: PD.Mapped<PD.NamedParams<PD.Normalize<{
65
- value: Color;
66
- }>, "uniform"> | PD.NamedParams<PD.Normalize<{
67
65
  palette: PD.NamedParams<PD.Normalize<{
68
66
  maxCount: any;
69
67
  hue: any;
@@ -76,18 +74,6 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
76
74
  }>, "colors">;
77
75
  asymId: "label" | "auth";
78
76
  }>, "chain-id"> | PD.NamedParams<PD.Normalize<{
79
- saturation: number;
80
- lightness: number;
81
- colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
82
- water: any;
83
- ion: any;
84
- protein: any;
85
- RNA: any;
86
- DNA: any;
87
- PNA: any;
88
- saccharide: any;
89
- }>, "custom">;
90
- }>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
91
77
  palette: PD.NamedParams<PD.Normalize<{
92
78
  maxCount: any;
93
79
  hue: any;
@@ -98,7 +84,7 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
98
84
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
99
85
  list: any;
100
86
  }>, "colors">;
101
- }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
87
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
102
88
  palette: PD.NamedParams<PD.Normalize<{
103
89
  maxCount: any;
104
90
  hue: any;
@@ -109,7 +95,21 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
109
95
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
110
96
  list: any;
111
97
  }>, "colors">;
112
- }>, "entity-id">>;
98
+ }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
99
+ value: Color;
100
+ }>, "uniform"> | PD.NamedParams<PD.Normalize<{
101
+ saturation: number;
102
+ lightness: number;
103
+ colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
104
+ water: any;
105
+ ion: any;
106
+ protein: any;
107
+ RNA: any;
108
+ DNA: any;
109
+ PNA: any;
110
+ saccharide: any;
111
+ }>, "custom">;
112
+ }>, "molecule-type">>;
113
113
  carbonLightness: PD.Numeric;
114
114
  };
115
115
  export declare function IllustrativeColorTheme(ctx: ThemeDataContext, props: PD.Values<IllustrativeColorThemeParams>): ColorTheme<IllustrativeColorThemeParams>;
@@ -125,7 +125,29 @@ declare namespace ColorTheme {
125
125
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
126
126
  list: any;
127
127
  }>, "colors">;
128
- }>, "operator-name">>;
128
+ }>, "operator-name"> | PD.NamedParams<PD.Normalize<{
129
+ palette: PD.NamedParams<PD.Normalize<{
130
+ maxCount: any;
131
+ hue: any;
132
+ chroma: any;
133
+ luminance: any;
134
+ clusteringStepCount: any;
135
+ minSampleCount: any;
136
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
137
+ list: any;
138
+ }>, "colors">;
139
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
140
+ palette: PD.NamedParams<PD.Normalize<{
141
+ maxCount: any;
142
+ hue: any;
143
+ chroma: any;
144
+ luminance: any;
145
+ clusteringStepCount: any;
146
+ minSampleCount: any;
147
+ }>, "generate"> | PD.NamedParams<PD.Normalize<{
148
+ list: any;
149
+ }>, "colors">;
150
+ }>, "entity-source">>;
129
151
  saturation: PD.Numeric;
130
152
  lightness: PD.Numeric;
131
153
  colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
@@ -286,8 +308,6 @@ declare namespace ColorTheme {
286
308
  }, "hydrophobicity">;
287
309
  illustrative: Provider<{
288
310
  style: PD.Mapped<PD.NamedParams<PD.Normalize<{
289
- value: Color;
290
- }>, "uniform"> | PD.NamedParams<PD.Normalize<{
291
311
  palette: PD.NamedParams<PD.Normalize<{
292
312
  maxCount: any;
293
313
  hue: any;
@@ -300,18 +320,6 @@ declare namespace ColorTheme {
300
320
  }>, "colors">;
301
321
  asymId: "label" | "auth";
302
322
  }>, "chain-id"> | PD.NamedParams<PD.Normalize<{
303
- saturation: number;
304
- lightness: number;
305
- colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
306
- water: any;
307
- ion: any;
308
- protein: any;
309
- RNA: any;
310
- DNA: any;
311
- PNA: any;
312
- saccharide: any;
313
- }>, "custom">;
314
- }>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
315
323
  palette: PD.NamedParams<PD.Normalize<{
316
324
  maxCount: any;
317
325
  hue: any;
@@ -322,7 +330,7 @@ declare namespace ColorTheme {
322
330
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
323
331
  list: any;
324
332
  }>, "colors">;
325
- }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
333
+ }>, "entity-id"> | PD.NamedParams<PD.Normalize<{
326
334
  palette: PD.NamedParams<PD.Normalize<{
327
335
  maxCount: any;
328
336
  hue: any;
@@ -333,7 +341,21 @@ declare namespace ColorTheme {
333
341
  }>, "generate"> | PD.NamedParams<PD.Normalize<{
334
342
  list: any;
335
343
  }>, "colors">;
336
- }>, "entity-id">>;
344
+ }>, "entity-source"> | PD.NamedParams<PD.Normalize<{
345
+ value: Color;
346
+ }>, "uniform"> | PD.NamedParams<PD.Normalize<{
347
+ saturation: number;
348
+ lightness: number;
349
+ colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
350
+ water: any;
351
+ ion: any;
352
+ protein: any;
353
+ RNA: any;
354
+ DNA: any;
355
+ PNA: any;
356
+ saccharide: any;
357
+ }>, "custom">;
358
+ }>, "molecule-type">>;
337
359
  carbonLightness: PD.Numeric;
338
360
  }, "illustrative">;
339
361
  'model-index': Provider<{
@@ -164,11 +164,11 @@ export function configureLocal() {
164
164
  description: VOLUME_SERVER_HEADER
165
165
  });
166
166
  parser.add_argument('--jobs', { help: "Path to a JSON file with job specification.", required: false });
167
- parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false, nargs: 0 });
167
+ parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false, action: 'store_true' });
168
168
  addJsonConfigArgs(parser);
169
169
  addLimitsArgs(parser);
170
170
  var config = parser.parse_args();
171
- if (config.cfgTemplate !== null) {
171
+ if (config.cfgTemplate) {
172
172
  console.log(JSON.stringify(DefaultLimitsConfig, null, 2));
173
173
  process.exit(0);
174
174
  }
@@ -178,7 +178,7 @@ export function configureLocal() {
178
178
  var cfg = JSON.parse(fs.readFileSync(config.cfg, 'utf8'));
179
179
  setLimitsConfig(cfg);
180
180
  }
181
- if (config.printCfg !== null) {
181
+ if (config.printCfg) {
182
182
  console.log(JSON.stringify(LimitsConfig, null, 2));
183
183
  process.exit(0);
184
184
  }
@@ -12,7 +12,7 @@ import * as fs from 'fs';
12
12
  import { configureLocal } from './config';
13
13
  import * as LocalApi from './server/local-api';
14
14
  var config = configureLocal();
15
- if (config.jobsTemplate !== null) {
15
+ if (config.jobsTemplate) {
16
16
  var exampleJobs = [{
17
17
  source: {
18
18
  filename: "g:/test/mdb/xray-1tqn.mdb",