molstar 3.0.0-dev.3 → 3.0.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +187 -187
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +95 -94
  5. package/build/viewer/molstar.css +1 -1
  6. package/build/viewer/molstar.js +1 -1
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/docking-viewer/viewport.js +2 -1
  9. package/lib/apps/viewer/embedded.html +43 -43
  10. package/lib/apps/viewer/index.html +95 -94
  11. package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
  12. package/lib/commonjs/examples/lighting/index.js +2 -1
  13. package/lib/commonjs/extensions/anvil/behavior.d.ts +3 -0
  14. package/lib/commonjs/extensions/anvil/representation.d.ts +13 -0
  15. package/lib/commonjs/extensions/cellpack/representation.d.ts +3 -0
  16. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
  17. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
  18. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
  19. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +15 -0
  20. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +6 -0
  21. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -0
  22. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +3 -0
  23. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +4 -0
  24. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +3 -0
  25. package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  26. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +4 -2
  27. package/lib/commonjs/mol-geo/geometry/base.d.ts +2 -0
  28. package/lib/commonjs/mol-geo/geometry/base.js +2 -0
  29. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
  30. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -2
  31. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
  32. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +1 -0
  33. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
  34. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  35. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +3 -0
  36. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -2
  37. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +2 -1
  38. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +3 -0
  39. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -2
  40. package/lib/commonjs/mol-geo/geometry/substance-data.js +3 -3
  41. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -0
  42. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  43. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
  44. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
  45. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +31 -28
  46. package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
  47. package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +1 -0
  48. package/lib/commonjs/mol-gl/renderable/image.d.ts +1 -0
  49. package/lib/commonjs/mol-gl/renderable/lines.d.ts +1 -0
  50. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +28 -25
  51. package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
  52. package/lib/commonjs/mol-gl/renderable/points.d.ts +1 -0
  53. package/lib/commonjs/mol-gl/renderable/schema.d.ts +1 -0
  54. package/lib/commonjs/mol-gl/renderable/schema.js +3 -3
  55. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +31 -28
  56. package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
  57. package/lib/commonjs/mol-gl/renderable/text.d.ts +1 -0
  58. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +3 -0
  59. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
  60. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  61. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  62. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  63. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  64. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  65. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  66. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  67. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  68. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  69. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  70. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  71. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  72. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  73. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
  74. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  75. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  76. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
  77. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
  78. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
  79. package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
  80. package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  81. package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
  82. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
  83. package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
  84. package/lib/commonjs/mol-model/structure/model/model.js +7 -3
  85. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -0
  86. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
  87. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
  88. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +9 -0
  89. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
  90. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
  91. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  92. package/lib/commonjs/mol-plugin/commands.d.ts +3 -0
  93. package/lib/commonjs/mol-plugin/config.d.ts +1 -0
  94. package/lib/commonjs/mol-plugin/config.js +9 -3
  95. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -0
  96. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -0
  97. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +22 -0
  98. package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -2
  99. package/lib/commonjs/mol-plugin-ui/controls/parameters.js +11 -6
  100. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  101. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +8 -17
  102. package/lib/commonjs/mol-plugin-ui/plugin.d.ts +1 -1
  103. package/lib/commonjs/mol-plugin-ui/plugin.js +76 -10
  104. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +3 -0
  105. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
  106. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +3 -0
  107. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
  108. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
  109. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +3 -0
  110. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +3 -0
  111. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +3 -0
  112. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -0
  113. package/lib/commonjs/mol-repr/structure/params.d.ts +16 -0
  114. package/lib/commonjs/mol-repr/structure/registry.d.ts +35 -1
  115. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +9 -0
  116. package/lib/commonjs/mol-repr/structure/representation/backbone.js +2 -1
  117. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
  118. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +2 -1
  119. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
  120. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +2 -1
  121. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -0
  122. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +2 -1
  123. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
  124. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +2 -1
  125. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
  126. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +2 -1
  127. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
  128. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +6 -3
  129. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
  130. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
  131. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +2 -1
  132. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +9 -0
  133. package/lib/commonjs/mol-repr/structure/representation/orientation.js +2 -1
  134. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
  135. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +9 -0
  136. package/lib/commonjs/mol-repr/structure/representation/putty.js +2 -1
  137. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +9 -0
  138. package/lib/commonjs/mol-repr/structure/representation/spacefill.js +2 -1
  139. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +16 -0
  140. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
  141. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
  142. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
  143. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
  144. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
  145. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
  146. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
  147. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
  148. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
  149. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +6 -0
  150. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
  151. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
  152. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
  153. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
  154. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -2
  155. package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
  156. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
  157. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
  158. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
  159. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
  160. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
  161. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
  162. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
  163. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
  164. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
  165. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
  166. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
  167. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
  168. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +16 -0
  169. package/lib/commonjs/mol-repr/volume/isosurface.js +2 -1
  170. package/lib/commonjs/mol-repr/volume/registry.d.ts +5 -0
  171. package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -0
  172. package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
  173. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  174. package/lib/commonjs/mol-theme/color/illustrative.d.ts +2 -0
  175. package/lib/commonjs/mol-theme/color/illustrative.js +2 -2
  176. package/lib/commonjs/mol-theme/color.d.ts +1 -0
  177. package/lib/commonjs/mol-util/material.d.ts +5 -1
  178. package/lib/commonjs/mol-util/material.js +9 -7
  179. package/lib/examples/alpha-orbitals/index.html +60 -60
  180. package/lib/examples/basic-wrapper/index.html +136 -136
  181. package/lib/examples/lighting/index.html +86 -86
  182. package/lib/examples/lighting/index.js +2 -1
  183. package/lib/examples/proteopedia-wrapper/index.html +235 -235
  184. package/lib/extensions/anvil/behavior.d.ts +3 -0
  185. package/lib/extensions/anvil/representation.d.ts +13 -0
  186. package/lib/extensions/cellpack/representation.d.ts +3 -0
  187. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
  188. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
  189. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
  190. package/lib/extensions/rcsb/validation-report/representation.d.ts +15 -0
  191. package/lib/mol-canvas3d/canvas3d.d.ts +6 -0
  192. package/lib/mol-canvas3d/helper/camera-helper.d.ts +3 -0
  193. package/lib/mol-canvas3d/helper/handle-helper.d.ts +3 -0
  194. package/lib/mol-canvas3d/helper/helper.d.ts +4 -0
  195. package/lib/mol-canvas3d/passes/image.d.ts +3 -0
  196. package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  197. package/lib/mol-canvas3d/passes/postprocessing.js +4 -2
  198. package/lib/mol-geo/geometry/base.d.ts +2 -0
  199. package/lib/mol-geo/geometry/base.js +2 -0
  200. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
  201. package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -2
  202. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
  203. package/lib/mol-geo/geometry/image/image.d.ts +1 -0
  204. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
  205. package/lib/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  206. package/lib/mol-geo/geometry/mesh/mesh.d.ts +3 -0
  207. package/lib/mol-geo/geometry/mesh/mesh.js +4 -2
  208. package/lib/mol-geo/geometry/points/points.d.ts +2 -1
  209. package/lib/mol-geo/geometry/spheres/spheres.d.ts +3 -0
  210. package/lib/mol-geo/geometry/spheres/spheres.js +4 -2
  211. package/lib/mol-geo/geometry/substance-data.js +3 -3
  212. package/lib/mol-geo/geometry/text/text.d.ts +1 -0
  213. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  214. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
  215. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
  216. package/lib/mol-gl/renderable/cylinders.d.ts +31 -28
  217. package/lib/mol-gl/renderable/cylinders.js +3 -3
  218. package/lib/mol-gl/renderable/direct-volume.d.ts +1 -0
  219. package/lib/mol-gl/renderable/image.d.ts +1 -0
  220. package/lib/mol-gl/renderable/lines.d.ts +1 -0
  221. package/lib/mol-gl/renderable/mesh.d.ts +28 -25
  222. package/lib/mol-gl/renderable/mesh.js +3 -3
  223. package/lib/mol-gl/renderable/points.d.ts +1 -0
  224. package/lib/mol-gl/renderable/schema.d.ts +1 -0
  225. package/lib/mol-gl/renderable/schema.js +3 -3
  226. package/lib/mol-gl/renderable/spheres.d.ts +31 -28
  227. package/lib/mol-gl/renderable/spheres.js +3 -3
  228. package/lib/mol-gl/renderable/text.d.ts +1 -0
  229. package/lib/mol-gl/renderable/texture-mesh.d.ts +3 -0
  230. package/lib/mol-gl/renderable/texture-mesh.js +1 -1
  231. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  232. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  233. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  234. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  235. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  236. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  237. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  238. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  239. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  240. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  241. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  242. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  243. package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  244. package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
  245. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  246. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  247. package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
  248. package/lib/mol-gl/shader/cylinders.frag.js +1 -1
  249. package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
  250. package/lib/mol-gl/shader/mesh.frag.js +1 -1
  251. package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  252. package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
  253. package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
  254. package/lib/mol-gl/shader/spheres.frag.js +1 -1
  255. package/lib/mol-model/structure/model/model.js +7 -3
  256. package/lib/mol-model-formats/shape/ply.d.ts +6 -0
  257. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
  258. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
  259. package/lib/mol-model-props/computed/representations/interactions.d.ts +9 -0
  260. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
  261. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
  262. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  263. package/lib/mol-plugin/commands.d.ts +3 -0
  264. package/lib/mol-plugin/config.d.ts +1 -0
  265. package/lib/mol-plugin/config.js +8 -3
  266. package/lib/mol-plugin/util/viewport-screenshot.d.ts +9 -0
  267. package/lib/mol-plugin/version.js +2 -2
  268. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -0
  269. package/lib/mol-plugin-state/transforms/representation.d.ts +22 -0
  270. package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -2
  271. package/lib/mol-plugin-ui/controls/parameters.js +12 -7
  272. package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  273. package/lib/mol-plugin-ui/hooks/use-behavior.js +9 -18
  274. package/lib/mol-plugin-ui/plugin.d.ts +1 -1
  275. package/lib/mol-plugin-ui/plugin.js +76 -10
  276. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  277. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  278. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  279. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  280. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  281. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  282. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -616
  283. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  284. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  285. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  286. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  287. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  288. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  289. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  290. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  291. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  292. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  293. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  294. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  295. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  296. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  297. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  298. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  299. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  300. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  301. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  302. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  303. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  304. package/lib/mol-repr/shape/loci/angle.d.ts +3 -0
  305. package/lib/mol-repr/shape/loci/common.d.ts +1 -0
  306. package/lib/mol-repr/shape/loci/dihedral.d.ts +3 -0
  307. package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
  308. package/lib/mol-repr/shape/loci/label.d.ts +1 -0
  309. package/lib/mol-repr/shape/loci/orientation.d.ts +3 -0
  310. package/lib/mol-repr/shape/loci/plane.d.ts +3 -0
  311. package/lib/mol-repr/shape/model/unitcell.d.ts +3 -0
  312. package/lib/mol-repr/structure/complex-visual.d.ts +12 -0
  313. package/lib/mol-repr/structure/params.d.ts +16 -0
  314. package/lib/mol-repr/structure/registry.d.ts +35 -1
  315. package/lib/mol-repr/structure/representation/backbone.d.ts +9 -0
  316. package/lib/mol-repr/structure/representation/backbone.js +2 -1
  317. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
  318. package/lib/mol-repr/structure/representation/ball-and-stick.js +2 -1
  319. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
  320. package/lib/mol-repr/structure/representation/carbohydrate.js +2 -1
  321. package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -0
  322. package/lib/mol-repr/structure/representation/cartoon.js +2 -1
  323. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
  324. package/lib/mol-repr/structure/representation/ellipsoid.js +2 -1
  325. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
  326. package/lib/mol-repr/structure/representation/gaussian-surface.js +2 -1
  327. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
  328. package/lib/mol-repr/structure/representation/label.d.ts +6 -3
  329. package/lib/mol-repr/structure/representation/line.d.ts +3 -0
  330. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
  331. package/lib/mol-repr/structure/representation/molecular-surface.js +2 -1
  332. package/lib/mol-repr/structure/representation/orientation.d.ts +9 -0
  333. package/lib/mol-repr/structure/representation/orientation.js +2 -1
  334. package/lib/mol-repr/structure/representation/point.d.ts +3 -0
  335. package/lib/mol-repr/structure/representation/putty.d.ts +9 -0
  336. package/lib/mol-repr/structure/representation/putty.js +2 -1
  337. package/lib/mol-repr/structure/representation/spacefill.d.ts +9 -0
  338. package/lib/mol-repr/structure/representation/spacefill.js +2 -1
  339. package/lib/mol-repr/structure/units-visual.d.ts +16 -0
  340. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
  341. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
  342. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
  343. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
  344. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
  345. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
  346. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
  347. package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
  348. package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
  349. package/lib/mol-repr/structure/visual/element-sphere.d.ts +6 -0
  350. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
  351. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
  352. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
  353. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
  354. package/lib/mol-repr/structure/visual/label-text.d.ts +3 -2
  355. package/lib/mol-repr/structure/visual/label-text.js +2 -2
  356. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
  357. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
  358. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
  359. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
  360. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
  361. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
  362. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
  363. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
  364. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
  365. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
  366. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
  367. package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
  368. package/lib/mol-repr/volume/isosurface.d.ts +16 -0
  369. package/lib/mol-repr/volume/isosurface.js +2 -1
  370. package/lib/mol-repr/volume/registry.d.ts +5 -0
  371. package/lib/mol-repr/volume/representation.d.ts +1 -0
  372. package/lib/mol-repr/volume/slice.d.ts +3 -0
  373. package/lib/mol-script/language/builder.d.ts +1 -0
  374. package/lib/mol-theme/color/illustrative.d.ts +2 -0
  375. package/lib/mol-theme/color/illustrative.js +2 -2
  376. package/lib/mol-theme/color.d.ts +1 -0
  377. package/lib/mol-util/material.d.ts +5 -1
  378. package/lib/mol-util/material.js +9 -7
  379. package/package.json +162 -160
@@ -93,10 +93,13 @@ export declare function IsosurfaceVisual(materialId: number, volume: Volume, pro
93
93
  flatShaded: PD.BooleanParam;
94
94
  ignoreLight: PD.BooleanParam;
95
95
  xrayShaded: PD.BooleanParam;
96
+ bumpFrequency: PD.Numeric;
97
+ bumpAmplitude: PD.Numeric;
96
98
  alpha: PD.Numeric;
97
99
  material: PD.Group<PD.Normalize<{
98
100
  metalness: number;
99
101
  roughness: number;
102
+ bumpiness: number;
100
103
  }>>;
101
104
  }>;
102
105
  export declare function eachIsosurface(loci: Loci, volume: Volume, props: VolumeIsosurfaceProps, apply: (interval: Interval) => boolean): boolean;
@@ -153,10 +156,13 @@ export declare const IsosurfaceMeshParams: {
153
156
  flatShaded: PD.BooleanParam;
154
157
  ignoreLight: PD.BooleanParam;
155
158
  xrayShaded: PD.BooleanParam;
159
+ bumpFrequency: PD.Numeric;
160
+ bumpAmplitude: PD.Numeric;
156
161
  alpha: PD.Numeric;
157
162
  material: PD.Group<PD.Normalize<{
158
163
  metalness: number;
159
164
  roughness: number;
165
+ bumpiness: number;
160
166
  }>>;
161
167
  };
162
168
  export declare type IsosurfaceMeshParams = typeof IsosurfaceMeshParams;
@@ -215,12 +221,14 @@ export declare const IsosurfaceWireframeParams: {
215
221
  material: PD.Group<PD.Normalize<{
216
222
  metalness: number;
217
223
  roughness: number;
224
+ bumpiness: number;
218
225
  }>>;
219
226
  };
220
227
  export declare type IsosurfaceWireframeParams = typeof IsosurfaceWireframeParams;
221
228
  export declare function IsosurfaceWireframeVisual(materialId: number): VolumeVisual<IsosurfaceWireframeParams>;
222
229
  export declare const IsosurfaceParams: {
223
230
  visuals: PD.MultiSelect<"solid" | "wireframe">;
231
+ bumpFrequency: PD.Numeric;
224
232
  quality: {
225
233
  isEssential: boolean;
226
234
  type: "select";
@@ -272,6 +280,7 @@ export declare const IsosurfaceParams: {
272
280
  material: PD.Group<PD.Normalize<{
273
281
  metalness: number;
274
282
  roughness: number;
283
+ bumpiness: number;
275
284
  }>>;
276
285
  tryUseGpu: PD.BooleanParam;
277
286
  doubleSided: PD.BooleanParam;
@@ -279,10 +288,12 @@ export declare const IsosurfaceParams: {
279
288
  flatShaded: PD.BooleanParam;
280
289
  ignoreLight: PD.BooleanParam;
281
290
  xrayShaded: PD.BooleanParam;
291
+ bumpAmplitude: PD.Numeric;
282
292
  };
283
293
  export declare type IsosurfaceParams = typeof IsosurfaceParams;
284
294
  export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: Volume): {
285
295
  visuals: PD.MultiSelect<"solid" | "wireframe">;
296
+ bumpFrequency: PD.Numeric;
286
297
  quality: {
287
298
  isEssential: boolean;
288
299
  type: "select";
@@ -334,6 +345,7 @@ export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: V
334
345
  material: PD.Group<PD.Normalize<{
335
346
  metalness: number;
336
347
  roughness: number;
348
+ bumpiness: number;
337
349
  }>>;
338
350
  tryUseGpu: PD.BooleanParam;
339
351
  doubleSided: PD.BooleanParam;
@@ -341,11 +353,13 @@ export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: V
341
353
  flatShaded: PD.BooleanParam;
342
354
  ignoreLight: PD.BooleanParam;
343
355
  xrayShaded: PD.BooleanParam;
356
+ bumpAmplitude: PD.Numeric;
344
357
  };
345
358
  export declare type IsosurfaceRepresentation = VolumeRepresentation<IsosurfaceParams>;
346
359
  export declare function IsosurfaceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Volume, IsosurfaceParams>): IsosurfaceRepresentation;
347
360
  export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvider<{
348
361
  visuals: PD.MultiSelect<"solid" | "wireframe">;
362
+ bumpFrequency: PD.Numeric;
349
363
  quality: {
350
364
  isEssential: boolean;
351
365
  type: "select";
@@ -397,6 +411,7 @@ export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvi
397
411
  material: PD.Group<PD.Normalize<{
398
412
  metalness: number;
399
413
  roughness: number;
414
+ bumpiness: number;
400
415
  }>>;
401
416
  tryUseGpu: PD.BooleanParam;
402
417
  doubleSided: PD.BooleanParam;
@@ -404,4 +419,5 @@ export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvi
404
419
  flatShaded: PD.BooleanParam;
405
420
  ignoreLight: PD.BooleanParam;
406
421
  xrayShaded: PD.BooleanParam;
422
+ bumpAmplitude: PD.Numeric;
407
423
  }, "isosurface">;
@@ -22,6 +22,7 @@ import { createVolumeTexture2d, eachVolumeLoci, getVolumeTexture2dLayout } from
22
22
  import { TextureMesh } from '../../mol-geo/geometry/texture-mesh/texture-mesh';
23
23
  import { extractIsosurface } from '../../mol-gl/compute/marching-cubes/isosurface';
24
24
  import { CustomPropertyDescriptor } from '../../mol-model/custom-property';
25
+ import { BaseGeometry } from '../../mol-geo/geometry/base';
25
26
  export var VolumeIsosurfaceParams = {
26
27
  isoValue: Volume.IsoValueParam
27
28
  };
@@ -222,7 +223,7 @@ var IsosurfaceVisuals = {
222
223
  'solid': function (ctx, getParams) { return VolumeRepresentation('Isosurface mesh', ctx, getParams, IsosurfaceVisual, getLoci); },
223
224
  'wireframe': function (ctx, getParams) { return VolumeRepresentation('Isosurface wireframe', ctx, getParams, IsosurfaceWireframeVisual, getLoci); },
224
225
  };
225
- export var IsosurfaceParams = __assign(__assign(__assign({}, IsosurfaceMeshParams), IsosurfaceWireframeParams), { visuals: PD.MultiSelect(['solid'], PD.objectToOptions(IsosurfaceVisuals)) });
226
+ export var IsosurfaceParams = __assign(__assign(__assign({}, IsosurfaceMeshParams), IsosurfaceWireframeParams), { visuals: PD.MultiSelect(['solid'], PD.objectToOptions(IsosurfaceVisuals)), bumpFrequency: PD.Numeric(1, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
226
227
  export function getIsosurfaceParams(ctx, volume) {
227
228
  var p = PD.clone(IsosurfaceParams);
228
229
  p.isoValue = Volume.createIsoValueParam(Volume.IsoValue.relative(2), volume.grid.stats);
@@ -12,6 +12,7 @@ export declare namespace VolumeRepresentationRegistry {
12
12
  export const BuiltIn: {
13
13
  isosurface: import("./representation").VolumeRepresentationProvider<{
14
14
  visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"solid" | "wireframe">;
15
+ bumpFrequency: import("../../mol-util/param-definition").ParamDefinition.Numeric;
15
16
  quality: {
16
17
  isEssential: boolean;
17
18
  type: "select";
@@ -63,6 +64,7 @@ export declare namespace VolumeRepresentationRegistry {
63
64
  material: import("../../mol-util/param-definition").ParamDefinition.Group<import("../../mol-util/param-definition").ParamDefinition.Normalize<{
64
65
  metalness: number;
65
66
  roughness: number;
67
+ bumpiness: number;
66
68
  }>>;
67
69
  tryUseGpu: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
68
70
  doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
@@ -70,6 +72,7 @@ export declare namespace VolumeRepresentationRegistry {
70
72
  flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
71
73
  ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
72
74
  xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
75
+ bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
73
76
  }, "isosurface">;
74
77
  slice: import("./representation").VolumeRepresentationProvider<{
75
78
  quality: {
@@ -123,6 +126,7 @@ export declare namespace VolumeRepresentationRegistry {
123
126
  material: import("../../mol-util/param-definition").ParamDefinition.Group<import("../../mol-util/param-definition").ParamDefinition.Normalize<{
124
127
  metalness: number;
125
128
  roughness: number;
129
+ bumpiness: number;
126
130
  }>>;
127
131
  }, "slice">;
128
132
  'direct-volume': import("./representation").VolumeRepresentationProvider<{
@@ -176,6 +180,7 @@ export declare namespace VolumeRepresentationRegistry {
176
180
  material: import("../../mol-util/param-definition").ParamDefinition.Group<import("../../mol-util/param-definition").ParamDefinition.Normalize<{
177
181
  metalness: number;
178
182
  roughness: number;
183
+ bumpiness: number;
179
184
  }>>;
180
185
  }, "direct-volume">;
181
186
  };
@@ -41,6 +41,7 @@ export declare const VolumeParams: {
41
41
  material: PD.Group<PD.Normalize<{
42
42
  metalness: number;
43
43
  roughness: number;
44
+ bumpiness: number;
44
45
  }>>;
45
46
  };
46
47
  export declare type VolumeParams = typeof VolumeParams;
@@ -63,6 +63,7 @@ export declare const SliceParams: {
63
63
  material: PD.Group<PD.Normalize<{
64
64
  metalness: number;
65
65
  roughness: number;
66
+ bumpiness: number;
66
67
  }>>;
67
68
  };
68
69
  export declare type SliceParams = typeof SliceParams;
@@ -118,6 +119,7 @@ export declare function getSliceParams(ctx: ThemeRegistryContext, volume: Volume
118
119
  material: PD.Group<PD.Normalize<{
119
120
  metalness: number;
120
121
  roughness: number;
122
+ bumpiness: number;
121
123
  }>>;
122
124
  };
123
125
  export declare function SliceVisual(materialId: number): VolumeVisual<SliceParams>;
@@ -174,5 +176,6 @@ export declare const SliceRepresentationProvider: VolumeRepresentationProvider<{
174
176
  material: PD.Group<PD.Normalize<{
175
177
  metalness: number;
176
178
  roughness: number;
179
+ bumpiness: number;
177
180
  }>>;
178
181
  }, "slice">;
@@ -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>>;
@@ -7,6 +7,7 @@ import { ColorTheme } from '../color';
7
7
  import { ParamDefinition as PD } from '../../mol-util/param-definition';
8
8
  import { ThemeDataContext } from '../theme';
9
9
  export declare const IllustrativeColorThemeParams: {
10
+ carbonLightness: PD.Numeric;
10
11
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
11
12
  maxCount: number;
12
13
  hue: [number, number];
@@ -24,6 +25,7 @@ export declare const IllustrativeColorThemeParams: {
24
25
  };
25
26
  export declare type IllustrativeColorThemeParams = typeof IllustrativeColorThemeParams;
26
27
  export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext): {
28
+ carbonLightness: PD.Numeric;
27
29
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
28
30
  maxCount: number;
29
31
  hue: [number, number];
@@ -10,7 +10,7 @@ import { ParamDefinition as PD } from '../../mol-util/param-definition';
10
10
  import { ChainIdColorTheme, ChainIdColorThemeParams } from './chain-id';
11
11
  var DefaultIllustrativeColor = Color(0xEEEEEE);
12
12
  var Description = "Assigns an illustrative color that gives every chain a unique color with lighter carbons (inspired by David Goodsell's Molecule of the Month style).";
13
- export var IllustrativeColorThemeParams = __assign({}, ChainIdColorThemeParams);
13
+ export var IllustrativeColorThemeParams = __assign(__assign({}, ChainIdColorThemeParams), { carbonLightness: PD.Numeric(0.8, { min: -6, max: 6, step: 0.1 }) });
14
14
  export function getIllustrativeColorThemeParams(ctx) {
15
15
  return IllustrativeColorThemeParams; // TODO return copy
16
16
  }
@@ -18,7 +18,7 @@ export function IllustrativeColorTheme(ctx, props) {
18
18
  var _a = ChainIdColorTheme(ctx, props), chainIdColor = _a.color, legend = _a.legend;
19
19
  function illustrativeColor(location, typeSymbol) {
20
20
  var baseColor = chainIdColor(location, false);
21
- return typeSymbol === 'C' ? Color.lighten(baseColor, 0.8) : baseColor;
21
+ return typeSymbol === 'C' ? Color.lighten(baseColor, props.carbonLightness) : baseColor;
22
22
  }
23
23
  function color(location) {
24
24
  if (StructureElement.Location.is(location) && Unit.isAtomic(location.unit)) {
@@ -164,6 +164,7 @@ declare namespace ColorTheme {
164
164
  scale: PD.Select<"DGwif" | "DGwoct" | "Oct-IF">;
165
165
  }, "hydrophobicity">;
166
166
  illustrative: Provider<{
167
+ carbonLightness: PD.Numeric;
167
168
  palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
168
169
  maxCount: number;
169
170
  hue: [number, number];
@@ -10,20 +10,24 @@ export interface Material {
10
10
  metalness: number;
11
11
  /** Normalized to [0, 1] range */
12
12
  roughness: number;
13
+ /** Normalized to [0, 1] range */
14
+ bumpiness: number;
13
15
  }
14
16
  export declare function Material(values?: Partial<Material>): {
15
17
  metalness: number;
16
18
  roughness: number;
19
+ bumpiness: number;
17
20
  };
18
21
  export declare namespace Material {
19
22
  const Zero: Material;
20
23
  function toArray(material: Material, array: NumberArray, offset: number): NumberArray;
21
- function toString({ metalness, roughness }: Material): string;
24
+ function toString({ metalness, roughness, bumpiness }: Material): string;
22
25
  function getParam(info?: {
23
26
  isExpanded?: boolean;
24
27
  isFlat?: boolean;
25
28
  }): PD.Group<PD.Normalize<{
26
29
  metalness: number;
27
30
  roughness: number;
31
+ bumpiness: number;
28
32
  }>>;
29
33
  }
@@ -9,27 +9,29 @@ export function Material(values) {
9
9
  return __assign(__assign({}, Material.Zero), values);
10
10
  }
11
11
  (function (Material) {
12
- Material.Zero = { metalness: 0, roughness: 0 };
12
+ Material.Zero = { metalness: 0, roughness: 0, bumpiness: 0 };
13
13
  function toArray(material, array, offset) {
14
14
  array[offset] = material.metalness * 255;
15
15
  array[offset + 1] = material.roughness * 255;
16
+ array[offset + 2] = material.bumpiness * 255;
16
17
  return array;
17
18
  }
18
19
  Material.toArray = toArray;
19
20
  function toString(_a) {
20
- var metalness = _a.metalness, roughness = _a.roughness;
21
- return "M ".concat(metalness.toFixed(2), " | R ").concat(roughness.toFixed(2));
21
+ var metalness = _a.metalness, roughness = _a.roughness, bumpiness = _a.bumpiness;
22
+ return "M ".concat(metalness.toFixed(2), " | R ").concat(roughness.toFixed(2), " | B ").concat(bumpiness.toFixed(2));
22
23
  }
23
24
  Material.toString = toString;
24
25
  function getParam(info) {
25
26
  return PD.Group({
26
27
  metalness: PD.Numeric(0, { min: 0, max: 1, step: 0.01 }),
27
28
  roughness: PD.Numeric(1, { min: 0, max: 1, step: 0.01 }),
29
+ bumpiness: PD.Numeric(0, { min: 0, max: 1, step: 0.01 }),
28
30
  }, __assign(__assign({}, info), { presets: [
29
- [{ metalness: 0, roughness: 1 }, 'Matte'],
30
- [{ metalness: 0, roughness: 0.2 }, 'Plastic'],
31
- [{ metalness: 0, roughness: 0.6 }, 'Glossy'],
32
- [{ metalness: 1.0, roughness: 0.6 }, 'Metallic'],
31
+ [{ metalness: 0, roughness: 1, bumpiness: 0 }, 'Matte'],
32
+ [{ metalness: 0, roughness: 0.2, bumpiness: 0 }, 'Plastic'],
33
+ [{ metalness: 0, roughness: 0.6, bumpiness: 0 }, 'Glossy'],
34
+ [{ metalness: 1.0, roughness: 0.6, bumpiness: 0 }, 'Metallic'],
33
35
  ] }));
34
36
  }
35
37
  Material.getParam = getParam;
package/package.json CHANGED
@@ -1,160 +1,162 @@
1
- {
2
- "name": "molstar",
3
- "version": "3.0.0-dev.3",
4
- "description": "A comprehensive macromolecular library.",
5
- "homepage": "https://github.com/molstar/molstar#readme",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/molstar/molstar.git"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/molstar/molstar/issues"
12
- },
13
- "scripts": {
14
- "lint": "eslint .",
15
- "lint-fix": "eslint . --fix",
16
- "test": "npm run lint && jest",
17
- "jest": "jest",
18
- "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
- "clean": "node ./scripts/clean.js",
20
- "rebuild": "npm run clean && npm run build",
21
- "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
- "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
- "build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
24
- "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
- "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
- "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
- "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
- "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
- "watch-tsc": "tsc --watch --incremental",
30
- "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
- "watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
32
- "watch-webpack": "webpack -w --mode development --stats minimal",
33
- "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
- "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
- "serve": "http-server -p 1338 -g",
36
- "model-server": "node lib/commonjs/servers/model/server.js",
37
- "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
- "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
- "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
- "preversion": "npm run test",
41
- "version": "npm run rebuild && cpx .npmignore lib/",
42
- "postversion": "git push && git push --tags"
43
- },
44
- "files": [
45
- "lib/",
46
- "build/viewer/"
47
- ],
48
- "bin": {
49
- "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
- "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
- "model-server": "lib/commonjs/servers/model/server.js",
52
- "model-server-query": "lib/commonjs/servers/model/query.js",
53
- "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
- "volume-server": "lib/commonjs/servers/volume/server.js",
55
- "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
- "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
- },
58
- "nodemonConfig": {
59
- "ignoreRoot": [
60
- "./node_modules",
61
- ".git"
62
- ],
63
- "ignore": [],
64
- "delay": "2500"
65
- },
66
- "jest": {
67
- "moduleFileExtensions": [
68
- "ts",
69
- "js"
70
- ],
71
- "transform": {
72
- "\\.ts$": "ts-jest"
73
- },
74
- "moduleDirectories": [
75
- "node_modules",
76
- "lib"
77
- ],
78
- "testURL": "http://localhost/",
79
- "testRegex": "\\.spec\\.ts$"
80
- },
81
- "author": "Mol* Contributors",
82
- "contributors": [
83
- "Alexander Rose <alexander.rose@weirdbyte.de>",
84
- "David Sehnal <david.sehnal@gmail.com>",
85
- "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
86
- "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
87
- "Ludovic Autin <autin@scripps.edu>",
88
- "Michal Malý <michal.maly@ibt.cas.cz>",
89
- "Jiří Černý <jiri.cerny@ibt.cas.cz>"
90
- ],
91
- "license": "MIT",
92
- "devDependencies": {
93
- "@graphql-codegen/add": "^3.1.0",
94
- "@graphql-codegen/cli": "^2.3.0",
95
- "@graphql-codegen/time": "^3.1.0",
96
- "@graphql-codegen/typescript": "^2.4.1",
97
- "@graphql-codegen/typescript-graphql-files-modules": "^2.1.0",
98
- "@graphql-codegen/typescript-graphql-request": "^4.3.1",
99
- "@graphql-codegen/typescript-operations": "^2.2.1",
100
- "@types/cors": "^2.8.12",
101
- "@types/gl": "^4.1.0",
102
- "@types/jest": "^27.0.3",
103
- "@typescript-eslint/eslint-plugin": "^5.5.0",
104
- "@typescript-eslint/parser": "^5.5.0",
105
- "benchmark": "^2.1.4",
106
- "concurrently": "^6.4.0",
107
- "cpx2": "^4.0.0",
108
- "crypto-browserify": "^3.12.0",
109
- "css-loader": "^6.5.1",
110
- "eslint": "^8.3.0",
111
- "extra-watch-webpack-plugin": "^1.0.3",
112
- "file-loader": "^6.2.0",
113
- "fs-extra": "^10.0.0",
114
- "graphql": "^15.7.2",
115
- "http-server": "^14.0.0",
116
- "jest": "^27.3.1",
117
- "mini-css-extract-plugin": "^2.4.5",
118
- "path-browserify": "^1.0.1",
119
- "raw-loader": "^4.0.2",
120
- "sass": "^1.43.5",
121
- "sass-loader": "^12.3.0",
122
- "simple-git": "^2.47.0",
123
- "stream-browserify": "^3.0.0",
124
- "style-loader": "^3.3.1",
125
- "ts-jest": "^27.0.7",
126
- "typescript": "^4.5.2",
127
- "webpack": "^5.64.4",
128
- "webpack-cli": "^4.9.1"
129
- },
130
- "dependencies": {
131
- "@types/argparse": "^2.0.10",
132
- "@types/benchmark": "^2.1.1",
133
- "@types/compression": "1.7.2",
134
- "@types/express": "^4.17.13",
135
- "@types/node": "^16.11.10",
136
- "@types/node-fetch": "^2.5.12",
137
- "@types/react": "^17.0.37",
138
- "@types/react-dom": "^17.0.11",
139
- "@types/swagger-ui-dist": "3.30.1",
140
- "argparse": "^2.0.1",
141
- "body-parser": "^1.19.0",
142
- "compression": "^1.7.4",
143
- "cors": "^2.8.5",
144
- "express": "^4.17.1",
145
- "h264-mp4-encoder": "^1.0.12",
146
- "immer": "^9.0.7",
147
- "immutable": "^3.8.2",
148
- "node-fetch": "^2.6.2",
149
- "react": "^17.0.2",
150
- "react-dom": "^17.0.2",
151
- "rxjs": "^7.4.0",
152
- "swagger-ui-dist": "^4.1.1",
153
- "tslib": "^2.3.1",
154
- "util.promisify": "^1.1.1",
155
- "xhr2": "^0.2.1"
156
- },
157
- "optionalDependencies": {
158
- "gl": "^4.9.2"
159
- }
160
- }
1
+ {
2
+ "name": "molstar",
3
+ "version": "3.0.0-dev.4",
4
+ "description": "A comprehensive macromolecular library.",
5
+ "homepage": "https://github.com/molstar/molstar#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/molstar/molstar.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/molstar/molstar/issues"
12
+ },
13
+ "scripts": {
14
+ "lint": "eslint .",
15
+ "lint-fix": "eslint . --fix",
16
+ "test": "npm run lint && jest",
17
+ "jest": "jest",
18
+ "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
+ "clean": "node ./scripts/clean.js",
20
+ "rebuild": "npm run clean && npm run build",
21
+ "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
+ "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
+ "build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
24
+ "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
+ "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
+ "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
+ "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
+ "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
+ "watch-tsc": "tsc --watch --incremental",
30
+ "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
+ "watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
32
+ "watch-webpack": "webpack -w --mode development --stats minimal",
33
+ "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
+ "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
+ "serve": "http-server -p 1338 -g",
36
+ "model-server": "node lib/commonjs/servers/model/server.js",
37
+ "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
+ "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
+ "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
+ "preversion": "npm run test",
41
+ "version": "npm run rebuild && cpx .npmignore lib/",
42
+ "postversion": "git push && git push --tags"
43
+ },
44
+ "files": [
45
+ "lib/",
46
+ "build/viewer/"
47
+ ],
48
+ "bin": {
49
+ "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
+ "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
+ "model-server": "lib/commonjs/servers/model/server.js",
52
+ "model-server-query": "lib/commonjs/servers/model/query.js",
53
+ "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
+ "volume-server": "lib/commonjs/servers/volume/server.js",
55
+ "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
+ "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
+ },
58
+ "nodemonConfig": {
59
+ "ignoreRoot": [
60
+ "./node_modules",
61
+ ".git"
62
+ ],
63
+ "ignore": [],
64
+ "delay": "2500"
65
+ },
66
+ "jest": {
67
+ "moduleFileExtensions": [
68
+ "ts",
69
+ "js"
70
+ ],
71
+ "transform": {
72
+ "\\.ts$": "ts-jest"
73
+ },
74
+ "moduleDirectories": [
75
+ "node_modules",
76
+ "lib"
77
+ ],
78
+ "testURL": "http://localhost/",
79
+ "testRegex": "\\.spec\\.ts$"
80
+ },
81
+ "author": "Mol* Contributors",
82
+ "contributors": [
83
+ "Alexander Rose <alexander.rose@weirdbyte.de>",
84
+ "David Sehnal <david.sehnal@gmail.com>",
85
+ "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
86
+ "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
87
+ "Ludovic Autin <autin@scripps.edu>",
88
+ "Michal Malý <michal.maly@ibt.cas.cz>",
89
+ "Jiří Černý <jiri.cerny@ibt.cas.cz>"
90
+ ],
91
+ "license": "MIT",
92
+ "devDependencies": {
93
+ "@graphql-codegen/add": "^3.1.0",
94
+ "@graphql-codegen/cli": "^2.3.0",
95
+ "@graphql-codegen/time": "^3.1.0",
96
+ "@graphql-codegen/typescript": "^2.4.1",
97
+ "@graphql-codegen/typescript-graphql-files-modules": "^2.1.0",
98
+ "@graphql-codegen/typescript-graphql-request": "^4.3.1",
99
+ "@graphql-codegen/typescript-operations": "^2.2.1",
100
+ "@types/cors": "^2.8.12",
101
+ "@types/gl": "^4.1.0",
102
+ "@types/jest": "^27.0.3",
103
+ "@typescript-eslint/eslint-plugin": "^5.5.0",
104
+ "@typescript-eslint/parser": "^5.5.0",
105
+ "benchmark": "^2.1.4",
106
+ "concurrently": "^6.4.0",
107
+ "cpx2": "^4.0.0",
108
+ "crypto-browserify": "^3.12.0",
109
+ "css-loader": "^6.5.1",
110
+ "eslint": "^8.3.0",
111
+ "extra-watch-webpack-plugin": "^1.0.3",
112
+ "file-loader": "^6.2.0",
113
+ "fs-extra": "^10.0.0",
114
+ "graphql": "^15.7.2",
115
+ "http-server": "^14.0.0",
116
+ "jest": "^27.3.1",
117
+ "mini-css-extract-plugin": "^2.4.5",
118
+ "path-browserify": "^1.0.1",
119
+ "raw-loader": "^4.0.2",
120
+ "sass": "^1.43.5",
121
+ "sass-loader": "^12.3.0",
122
+ "simple-git": "^2.47.0",
123
+ "stream-browserify": "^3.0.0",
124
+ "style-loader": "^3.3.1",
125
+ "ts-jest": "^27.0.7",
126
+ "typescript": "^4.5.2",
127
+ "webpack": "^5.64.4",
128
+ "webpack-cli": "^4.9.1"
129
+ },
130
+ "dependencies": {
131
+ "@types/argparse": "^2.0.10",
132
+ "@types/benchmark": "^2.1.1",
133
+ "@types/compression": "1.7.2",
134
+ "@types/express": "^4.17.13",
135
+ "@types/node": "^16.11.10",
136
+ "@types/node-fetch": "^2.5.12",
137
+ "@types/react": "^17.0.37",
138
+ "@types/react-dom": "^17.0.11",
139
+ "@types/swagger-ui-dist": "3.30.1",
140
+ "argparse": "^2.0.1",
141
+ "body-parser": "^1.19.0",
142
+ "compression": "^1.7.4",
143
+ "cors": "^2.8.5",
144
+ "express": "^4.17.1",
145
+ "h264-mp4-encoder": "^1.0.12",
146
+ "immer": "^9.0.7",
147
+ "immutable": "^3.8.2",
148
+ "node-fetch": "^2.6.2",
149
+ "rxjs": "^7.4.0",
150
+ "swagger-ui-dist": "^4.1.1",
151
+ "tslib": "^2.3.1",
152
+ "util.promisify": "^1.1.1",
153
+ "xhr2": "^0.2.1"
154
+ },
155
+ "peerDependencies": {
156
+ "react": "^17.0.2",
157
+ "react-dom": "^17.0.2"
158
+ },
159
+ "optionalDependencies": {
160
+ "gl": "^4.9.2"
161
+ }
162
+ }