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
@@ -13,7 +13,7 @@ export declare namespace StructureRepresentationRegistry {
13
13
  export const BuiltIn: {
14
14
  cartoon: import("./representation").StructureRepresentationProvider<{
15
15
  sizeFactor: import("../../mol-util/param-definition").ParamDefinition.Numeric;
16
- visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">;
16
+ visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
17
17
  bumpFrequency: import("../../mol-util/param-definition").ParamDefinition.Numeric;
18
18
  unitKinds: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"spheres" | "gaussians" | "atomic">;
19
19
  includeParent: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
@@ -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
  */
@@ -10,7 +10,7 @@ import { ParamDefinition as PD } from '../../../mol-util/param-definition';
10
10
  import { StructureRepresentation, StructureRepresentationProvider } from '../representation';
11
11
  export declare const CartoonParams: {
12
12
  sizeFactor: PD.Numeric;
13
- visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">;
13
+ visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
14
14
  bumpFrequency: PD.Numeric;
15
15
  unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
16
16
  includeParent: PD.BooleanParam;
@@ -48,7 +48,7 @@ export declare const CartoonParams: {
48
48
  export declare type CartoonParams = typeof CartoonParams;
49
49
  export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: Structure): {
50
50
  sizeFactor: PD.Numeric;
51
- visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">;
51
+ visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
52
52
  bumpFrequency: PD.Numeric;
53
53
  unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
54
54
  includeParent: PD.BooleanParam;
@@ -87,7 +87,7 @@ export declare type CartoonRepresentation = StructureRepresentation<CartoonParam
87
87
  export declare function CartoonRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, CartoonParams>): CartoonRepresentation;
88
88
  export declare const CartoonRepresentationProvider: StructureRepresentationProvider<{
89
89
  sizeFactor: PD.Numeric;
90
- visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">;
90
+ visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
91
91
  bumpFrequency: PD.Numeric;
92
92
  unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
93
93
  includeParent: PD.BooleanParam;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2018-2021 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
  */
@@ -27,7 +27,7 @@ var CartoonVisuals = {
27
27
  'nucleotide-ring': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Nucleotide ring mesh', ctx, getParams, nucleotide_ring_mesh_1.NucleotideRingVisual); },
28
28
  'direction-wedge': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Polymer direction wedge', ctx, getParams, polymer_direction_wedge_1.PolymerDirectionVisual); }
29
29
  };
30
- exports.CartoonParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-block'], param_definition_1.ParamDefinition.objectToOptions(CartoonVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory) });
30
+ exports.CartoonParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring'], param_definition_1.ParamDefinition.objectToOptions(CartoonVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory) });
31
31
  function getCartoonParams(ctx, structure) {
32
32
  var params = param_definition_1.ParamDefinition.clone(exports.CartoonParams);
33
33
  var hasNucleotides = false;
@@ -40,7 +40,7 @@ function getCartoonParams(ctx, structure) {
40
40
  });
41
41
  params.visuals.defaultValue = ['polymer-trace'];
42
42
  if (hasNucleotides)
43
- params.visuals.defaultValue.push('nucleotide-block');
43
+ params.visuals.defaultValue.push('nucleotide-ring');
44
44
  if (hasGaps)
45
45
  params.visuals.defaultValue.push('polymer-gap');
46
46
  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,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2019-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
  */
@@ -43,7 +43,7 @@ function createMolecularSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
43
43
  mesh_1.Mesh.transform(surface, transform);
44
44
  if (ctx.webgl && !ctx.webgl.isWebGL2)
45
45
  mesh_1.Mesh.uniformTriangleGroup(surface);
46
- sphere = geometry_1.Sphere3D.expand((0, geometry_1.Sphere3D)(), unit.boundary.sphere, props.probeRadius + (0, common_1.getUnitExtraRadius)(unit));
46
+ sphere = geometry_1.Sphere3D.expand((0, geometry_1.Sphere3D)(), unit.boundary.sphere, (0, common_1.getUnitExtraRadius)(unit));
47
47
  surface.setBoundingSphere(sphere);
48
48
  surface.meta.resolution = resolution;
49
49
  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,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2018-2021 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
  */
@@ -215,6 +215,7 @@ function getInterBondLoci(pickingId, structure, id) {
215
215
  return loci_1.EmptyLoci;
216
216
  }
217
217
  exports.getInterBondLoci = getInterBondLoci;
218
+ var __unitMap = new Map();
218
219
  function eachInterBond(loci, structure, apply, isMarking) {
219
220
  var changed = false;
220
221
  if (structure_1.Bond.isLoci(loci)) {
@@ -234,17 +235,16 @@ function eachInterBond(loci, structure, apply, isMarking) {
234
235
  return false;
235
236
  if (isMarking && loci.elements.length === 1)
236
237
  return false; // only a single unit
237
- var map_1 = new Map();
238
238
  for (var _b = 0, _c = loci.elements; _b < _c.length; _b++) {
239
239
  var e = _c[_b];
240
- map_1.set(e.unit.id, e.indices);
240
+ __unitMap.set(e.unit.id, e.indices);
241
241
  }
242
242
  var _loop_2 = function (e) {
243
243
  var unit = e.unit;
244
244
  if (!structure_1.Unit.isAtomic(unit))
245
245
  return "continue";
246
246
  structure.interUnitBonds.getConnectedUnits(unit.id).forEach(function (b) {
247
- var otherLociIndices = map_1.get(b.unitB);
247
+ var otherLociIndices = __unitMap.get(b.unitB);
248
248
  if (!isMarking || otherLociIndices) {
249
249
  int_1.OrderedSet.forEach(e.indices, function (v) {
250
250
  if (!b.connectedIndices.includes(v))
@@ -264,6 +264,7 @@ function eachInterBond(loci, structure, apply, isMarking) {
264
264
  var e = _e[_d];
265
265
  _loop_2(e);
266
266
  }
267
+ __unitMap.clear();
267
268
  }
268
269
  return changed;
269
270
  }
@@ -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>>;
@@ -56,7 +56,12 @@ var Transform;
56
56
  if (!!s === !!t)
57
57
  continue;
58
58
  changed = true;
59
- a[k] = s;
59
+ if (s !== void 0) {
60
+ a[k] = s;
61
+ }
62
+ else {
63
+ delete a[k];
64
+ }
60
65
  }
61
66
  for (var _b = 0, _c = Object.keys(a); _b < _c.length; _b++) {
62
67
  var k = _c[_b];
@@ -64,7 +69,12 @@ var Transform;
64
69
  if (!!s === !!t)
65
70
  continue;
66
71
  changed = true;
67
- a[k] = s;
72
+ if (s !== void 0) {
73
+ a[k] = s;
74
+ }
75
+ else {
76
+ delete a[k];
77
+ }
68
78
  }
69
79
  return changed;
70
80
  }
@@ -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<{
@@ -6,7 +6,6 @@
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ElementSymbolColorThemeProvider = exports.ElementSymbolColorTheme = exports.elementSymbolColor = exports.getElementSymbolColorThemeParams = exports.ElementSymbolColorThemeParams = exports.ElementSymbolColors = void 0;
9
- var tslib_1 = require("tslib");
10
9
  var color_1 = require("../../mol-util/color");
11
10
  var structure_1 = require("../../mol-model/structure");
12
11
  var param_definition_1 = require("../../mol-util/param-definition");
@@ -15,18 +14,22 @@ var color_2 = require("../../mol-util/color/color");
15
14
  var params_1 = require("../../mol-util/color/params");
16
15
  var chain_id_1 = require("./chain-id");
17
16
  var operator_name_1 = require("./operator-name");
17
+ var entity_id_1 = require("./entity-id");
18
+ var type_helpers_1 = require("../../mol-util/type-helpers");
19
+ var entity_source_1 = require("./entity-source");
18
20
  // from Jmol http://jmol.sourceforge.net/jscolors/ (or 0xFFFFFF)
19
21
  exports.ElementSymbolColors = (0, color_1.ColorMap)({
20
22
  '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
21
23
  });
22
24
  var DefaultElementSymbolColor = (0, color_1.Color)(0xFFFFFF);
23
25
  var Description = 'Assigns a color to every atom according to its chemical element.';
24
- // TODO generalise `carbonColor` param to all themes?
25
26
  exports.ElementSymbolColorThemeParams = {
26
27
  carbonColor: param_definition_1.ParamDefinition.MappedStatic('chain-id', {
27
- 'chain-id': param_definition_1.ParamDefinition.Group((0, tslib_1.__assign)({}, chain_id_1.ChainIdColorThemeParams)),
28
- 'operator-name': param_definition_1.ParamDefinition.Group((0, tslib_1.__assign)({}, operator_name_1.OperatorNameColorThemeParams)),
29
- 'element-symbol': param_definition_1.ParamDefinition.Group({})
28
+ 'chain-id': param_definition_1.ParamDefinition.Group(chain_id_1.ChainIdColorThemeParams),
29
+ 'entity-id': param_definition_1.ParamDefinition.Group(entity_id_1.EntityIdColorThemeParams),
30
+ 'entity-source': param_definition_1.ParamDefinition.Group(entity_source_1.EntitySourceColorThemeParams),
31
+ 'operator-name': param_definition_1.ParamDefinition.Group(operator_name_1.OperatorNameColorThemeParams),
32
+ 'element-symbol': param_definition_1.ParamDefinition.EmptyGroup()
30
33
  }, { description: 'Use chain-id coloring for carbon atoms.' }),
31
34
  saturation: param_definition_1.ParamDefinition.Numeric(0, { min: -6, max: 6, step: 0.1 }),
32
35
  lightness: param_definition_1.ParamDefinition.Numeric(0.2, { min: -6, max: 6, step: 0.1 }),
@@ -46,11 +49,13 @@ function elementSymbolColor(colorMap, element) {
46
49
  exports.elementSymbolColor = elementSymbolColor;
47
50
  function ElementSymbolColorTheme(ctx, props) {
48
51
  var colorMap = (0, color_2.getAdjustedColorMap)(props.colors.name === 'default' ? exports.ElementSymbolColors : props.colors.params, props.saturation, props.lightness);
49
- var carbonColor = props.carbonColor.name === 'chain-id'
50
- ? (0, chain_id_1.ChainIdColorTheme)(ctx, props.carbonColor.params).color
51
- : props.carbonColor.name === 'operator-name'
52
- ? (0, operator_name_1.OperatorNameColorTheme)(ctx, props.carbonColor.params).color
53
- : undefined;
52
+ var pcc = props.carbonColor;
53
+ var carbonColor = pcc.name === 'chain-id' ? (0, chain_id_1.ChainIdColorTheme)(ctx, pcc.params).color :
54
+ pcc.name === 'entity-id' ? (0, entity_id_1.EntityIdColorTheme)(ctx, pcc.params).color :
55
+ pcc.name === 'entity-source' ? (0, entity_source_1.EntitySourceColorTheme)(ctx, pcc.params).color :
56
+ pcc.name === 'operator-name' ? (0, operator_name_1.OperatorNameColorTheme)(ctx, pcc.params).color :
57
+ pcc.name === 'element-symbol' ? undefined :
58
+ (0, type_helpers_1.assertUnreachable)(pcc);
54
59
  function elementColor(element, location) {
55
60
  return (carbonColor && element === 'C')
56
61
  ? carbonColor(location, false)
@@ -32,17 +32,20 @@ function getEntityIdSerialMap(structure) {
32
32
  if (!map.has(k))
33
33
  map.set(k, map.size);
34
34
  }
35
- var spheres_entity_id = structure.models[i].coarseHierarchy.spheres.entity_id;
36
- for (var j = 0, jl = spheres_entity_id.rowCount; j < jl; ++j) {
37
- var k = key(spheres_entity_id.value(j), i);
38
- if (!map.has(k))
39
- map.set(k, map.size);
40
- }
41
- var gaussians_entity_id = structure.models[i].coarseHierarchy.gaussians.entity_id;
42
- for (var j = 0, jl = gaussians_entity_id.rowCount; j < jl; ++j) {
43
- var k = key(gaussians_entity_id.value(j), i);
44
- if (!map.has(k))
45
- map.set(k, map.size);
35
+ var coarseHierarchy = structure.models[i].coarseHierarchy;
36
+ if (coarseHierarchy.isDefined) {
37
+ var spheres_entity_id = coarseHierarchy.spheres.entity_id;
38
+ for (var j = 0, jl = spheres_entity_id.rowCount; j < jl; ++j) {
39
+ var k = key(spheres_entity_id.value(j), i);
40
+ if (!map.has(k))
41
+ map.set(k, map.size);
42
+ }
43
+ var gaussians_entity_id = coarseHierarchy.gaussians.entity_id;
44
+ for (var j = 0, jl = gaussians_entity_id.rowCount; j < jl; ++j) {
45
+ var k = key(gaussians_entity_id.value(j), i);
46
+ if (!map.has(k))
47
+ map.set(k, map.size);
48
+ }
46
49
  }
47
50
  }
48
51
  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<{
@@ -168,11 +168,11 @@ function configureLocal() {
168
168
  description: version_1.VOLUME_SERVER_HEADER
169
169
  });
170
170
  parser.add_argument('--jobs', { help: "Path to a JSON file with job specification.", required: false });
171
- parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false, nargs: 0 });
171
+ parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false, action: 'store_true' });
172
172
  addJsonConfigArgs(parser);
173
173
  addLimitsArgs(parser);
174
174
  var config = parser.parse_args();
175
- if (config.cfgTemplate !== null) {
175
+ if (config.cfgTemplate) {
176
176
  console.log(JSON.stringify(DefaultLimitsConfig, null, 2));
177
177
  process.exit(0);
178
178
  }
@@ -182,7 +182,7 @@ function configureLocal() {
182
182
  var cfg = JSON.parse(fs.readFileSync(config.cfg, 'utf8'));
183
183
  setLimitsConfig(cfg);
184
184
  }
185
- if (config.printCfg !== null) {
185
+ if (config.printCfg) {
186
186
  console.log(JSON.stringify(exports.LimitsConfig, null, 2));
187
187
  process.exit(0);
188
188
  }
@@ -14,7 +14,7 @@ var fs = (0, tslib_1.__importStar)(require("fs"));
14
14
  var config_1 = require("./config");
15
15
  var LocalApi = (0, tslib_1.__importStar)(require("./server/local-api"));
16
16
  var config = (0, config_1.configureLocal)();
17
- if (config.jobsTemplate !== null) {
17
+ if (config.jobsTemplate) {
18
18
  var exampleJobs = [{
19
19
  source: {
20
20
  filename: "g:/test/mdb/xray-1tqn.mdb",