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.
- package/LICENSE +20 -20
- package/README.md +187 -187
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +95 -94
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/viewport.js +2 -1
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +95 -94
- package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
- package/lib/commonjs/examples/lighting/index.js +2 -1
- package/lib/commonjs/extensions/anvil/behavior.d.ts +3 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +13 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +15 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +6 -0
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +4 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +4 -2
- package/lib/commonjs/mol-geo/geometry/base.d.ts +2 -0
- package/lib/commonjs/mol-geo/geometry/base.js +2 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -2
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -2
- package/lib/commonjs/mol-geo/geometry/substance-data.js +3 -3
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +31 -28
- package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +28 -25
- package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderable/points.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/schema.js +3 -3
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +31 -28
- package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
- package/lib/commonjs/mol-gl/renderable/text.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +3 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/commonjs/mol-model/structure/model/model.js +7 -3
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +9 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/commands.d.ts +3 -0
- package/lib/commonjs/mol-plugin/config.d.ts +1 -0
- package/lib/commonjs/mol-plugin/config.js +9 -3
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -0
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +22 -0
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -2
- package/lib/commonjs/mol-plugin-ui/controls/parameters.js +11 -6
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +8 -17
- package/lib/commonjs/mol-plugin-ui/plugin.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/plugin.js +76 -10
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +16 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +35 -1
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.js +2 -1
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +16 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -2
- package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +16 -0
- package/lib/commonjs/mol-repr/volume/isosurface.js +2 -1
- package/lib/commonjs/mol-repr/volume/registry.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -0
- package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +2 -0
- package/lib/commonjs/mol-theme/color/illustrative.js +2 -2
- package/lib/commonjs/mol-theme/color.d.ts +1 -0
- package/lib/commonjs/mol-util/material.d.ts +5 -1
- package/lib/commonjs/mol-util/material.js +9 -7
- package/lib/examples/alpha-orbitals/index.html +60 -60
- package/lib/examples/basic-wrapper/index.html +136 -136
- package/lib/examples/lighting/index.html +86 -86
- package/lib/examples/lighting/index.js +2 -1
- package/lib/examples/proteopedia-wrapper/index.html +235 -235
- package/lib/extensions/anvil/behavior.d.ts +3 -0
- package/lib/extensions/anvil/representation.d.ts +13 -0
- package/lib/extensions/cellpack/representation.d.ts +3 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +15 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +6 -0
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +3 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +3 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +4 -0
- package/lib/mol-canvas3d/passes/image.d.ts +3 -0
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/mol-canvas3d/passes/postprocessing.js +4 -2
- package/lib/mol-geo/geometry/base.d.ts +2 -0
- package/lib/mol-geo/geometry/base.js +2 -0
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -2
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/mol-geo/geometry/image/image.d.ts +1 -0
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +3 -0
- package/lib/mol-geo/geometry/mesh/mesh.js +4 -2
- package/lib/mol-geo/geometry/points/points.d.ts +2 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +3 -0
- package/lib/mol-geo/geometry/spheres/spheres.js +4 -2
- package/lib/mol-geo/geometry/substance-data.js +3 -3
- package/lib/mol-geo/geometry/text/text.d.ts +1 -0
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
- package/lib/mol-gl/renderable/cylinders.d.ts +31 -28
- package/lib/mol-gl/renderable/cylinders.js +3 -3
- package/lib/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/mol-gl/renderable/image.d.ts +1 -0
- package/lib/mol-gl/renderable/lines.d.ts +1 -0
- package/lib/mol-gl/renderable/mesh.d.ts +28 -25
- package/lib/mol-gl/renderable/mesh.js +3 -3
- package/lib/mol-gl/renderable/points.d.ts +1 -0
- package/lib/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/mol-gl/renderable/schema.js +3 -3
- package/lib/mol-gl/renderable/spheres.d.ts +31 -28
- package/lib/mol-gl/renderable/spheres.js +3 -3
- package/lib/mol-gl/renderable/text.d.ts +1 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +3 -0
- package/lib/mol-gl/renderable/texture-mesh.js +1 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
- package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
- package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/mol-model/structure/model/model.js +7 -3
- package/lib/mol-model-formats/shape/ply.d.ts +6 -0
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +9 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/commands.d.ts +3 -0
- package/lib/mol-plugin/config.d.ts +1 -0
- package/lib/mol-plugin/config.js +8 -3
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +9 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -0
- package/lib/mol-plugin-state/transforms/representation.d.ts +22 -0
- package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -2
- package/lib/mol-plugin-ui/controls/parameters.js +12 -7
- package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/mol-plugin-ui/hooks/use-behavior.js +9 -18
- package/lib/mol-plugin-ui/plugin.d.ts +1 -1
- package/lib/mol-plugin-ui/plugin.js +76 -10
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -616
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +3 -0
- package/lib/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +3 -0
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +3 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +3 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +3 -0
- package/lib/mol-repr/structure/complex-visual.d.ts +12 -0
- package/lib/mol-repr/structure/params.d.ts +16 -0
- package/lib/mol-repr/structure/registry.d.ts +35 -1
- package/lib/mol-repr/structure/representation/backbone.d.ts +9 -0
- package/lib/mol-repr/structure/representation/backbone.js +2 -1
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.js +2 -1
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
- package/lib/mol-repr/structure/representation/carbohydrate.js +2 -1
- package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -0
- package/lib/mol-repr/structure/representation/cartoon.js +2 -1
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
- package/lib/mol-repr/structure/representation/ellipsoid.js +2 -1
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.js +2 -1
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/mol-repr/structure/representation/label.d.ts +6 -3
- package/lib/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
- package/lib/mol-repr/structure/representation/molecular-surface.js +2 -1
- package/lib/mol-repr/structure/representation/orientation.d.ts +9 -0
- package/lib/mol-repr/structure/representation/orientation.js +2 -1
- package/lib/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +9 -0
- package/lib/mol-repr/structure/representation/putty.js +2 -1
- package/lib/mol-repr/structure/representation/spacefill.d.ts +9 -0
- package/lib/mol-repr/structure/representation/spacefill.js +2 -1
- package/lib/mol-repr/structure/units-visual.d.ts +16 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +6 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/label-text.d.ts +3 -2
- package/lib/mol-repr/structure/visual/label-text.js +2 -2
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
- package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/mol-repr/volume/isosurface.d.ts +16 -0
- package/lib/mol-repr/volume/isosurface.js +2 -1
- package/lib/mol-repr/volume/registry.d.ts +5 -0
- package/lib/mol-repr/volume/representation.d.ts +1 -0
- package/lib/mol-repr/volume/slice.d.ts +3 -0
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/lib/mol-theme/color/illustrative.d.ts +2 -0
- package/lib/mol-theme/color/illustrative.js +2 -2
- package/lib/mol-theme/color.d.ts +1 -0
- package/lib/mol-util/material.d.ts +5 -1
- package/lib/mol-util/material.js +9 -7
- package/package.json +162 -160
|
@@ -16,6 +16,7 @@ export declare const EllipsoidParams: {
|
|
|
16
16
|
sizeAspectRatio: PD.Numeric;
|
|
17
17
|
linkCap: PD.BooleanParam;
|
|
18
18
|
visuals: PD.MultiSelect<"intra-bond" | "inter-bond" | "ellipsoid-mesh">;
|
|
19
|
+
bumpFrequency: PD.Numeric;
|
|
19
20
|
tryUseImpostor: PD.BooleanParam;
|
|
20
21
|
includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
21
22
|
excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
@@ -35,11 +36,13 @@ export declare const EllipsoidParams: {
|
|
|
35
36
|
doubleSided: PD.BooleanParam;
|
|
36
37
|
ignoreLight: PD.BooleanParam;
|
|
37
38
|
xrayShaded: PD.BooleanParam;
|
|
39
|
+
bumpAmplitude: PD.Numeric;
|
|
38
40
|
alpha: PD.Numeric;
|
|
39
41
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
40
42
|
material: PD.Group<PD.Normalize<{
|
|
41
43
|
metalness: number;
|
|
42
44
|
roughness: number;
|
|
45
|
+
bumpiness: number;
|
|
43
46
|
}>>;
|
|
44
47
|
flipSided: PD.BooleanParam;
|
|
45
48
|
flatShaded: PD.BooleanParam;
|
|
@@ -54,6 +57,7 @@ export declare function getEllipsoidParams(ctx: ThemeRegistryContext, structure:
|
|
|
54
57
|
sizeAspectRatio: PD.Numeric;
|
|
55
58
|
linkCap: PD.BooleanParam;
|
|
56
59
|
visuals: PD.MultiSelect<"intra-bond" | "inter-bond" | "ellipsoid-mesh">;
|
|
60
|
+
bumpFrequency: PD.Numeric;
|
|
57
61
|
tryUseImpostor: PD.BooleanParam;
|
|
58
62
|
includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
59
63
|
excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
@@ -73,11 +77,13 @@ export declare function getEllipsoidParams(ctx: ThemeRegistryContext, structure:
|
|
|
73
77
|
doubleSided: PD.BooleanParam;
|
|
74
78
|
ignoreLight: PD.BooleanParam;
|
|
75
79
|
xrayShaded: PD.BooleanParam;
|
|
80
|
+
bumpAmplitude: PD.Numeric;
|
|
76
81
|
alpha: PD.Numeric;
|
|
77
82
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
78
83
|
material: PD.Group<PD.Normalize<{
|
|
79
84
|
metalness: number;
|
|
80
85
|
roughness: number;
|
|
86
|
+
bumpiness: number;
|
|
81
87
|
}>>;
|
|
82
88
|
flipSided: PD.BooleanParam;
|
|
83
89
|
flatShaded: PD.BooleanParam;
|
|
@@ -93,6 +99,7 @@ export declare const EllipsoidRepresentationProvider: StructureRepresentationPro
|
|
|
93
99
|
sizeAspectRatio: PD.Numeric;
|
|
94
100
|
linkCap: PD.BooleanParam;
|
|
95
101
|
visuals: PD.MultiSelect<"intra-bond" | "inter-bond" | "ellipsoid-mesh">;
|
|
102
|
+
bumpFrequency: PD.Numeric;
|
|
96
103
|
tryUseImpostor: PD.BooleanParam;
|
|
97
104
|
includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
98
105
|
excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">;
|
|
@@ -112,11 +119,13 @@ export declare const EllipsoidRepresentationProvider: StructureRepresentationPro
|
|
|
112
119
|
doubleSided: PD.BooleanParam;
|
|
113
120
|
ignoreLight: PD.BooleanParam;
|
|
114
121
|
xrayShaded: PD.BooleanParam;
|
|
122
|
+
bumpAmplitude: PD.Numeric;
|
|
115
123
|
alpha: PD.Numeric;
|
|
116
124
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
117
125
|
material: PD.Group<PD.Normalize<{
|
|
118
126
|
metalness: number;
|
|
119
127
|
roughness: number;
|
|
128
|
+
bumpiness: number;
|
|
120
129
|
}>>;
|
|
121
130
|
flipSided: PD.BooleanParam;
|
|
122
131
|
flatShaded: PD.BooleanParam;
|
|
@@ -12,12 +12,13 @@ import { AtomSiteAnisotrop } from '../../../mol-model-formats/structure/property
|
|
|
12
12
|
import { IntraUnitBondCylinderParams, IntraUnitBondCylinderVisual } from '../visual/bond-intra-unit-cylinder';
|
|
13
13
|
import { InterUnitBondCylinderVisual, InterUnitBondCylinderParams } from '../visual/bond-inter-unit-cylinder';
|
|
14
14
|
import { getUnitKindsParam } from '../params';
|
|
15
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
15
16
|
var EllipsoidVisuals = {
|
|
16
17
|
'ellipsoid-mesh': function (ctx, getParams) { return UnitsRepresentation('Ellipsoid Mesh', ctx, getParams, EllipsoidMeshVisual); },
|
|
17
18
|
'intra-bond': function (ctx, getParams) { return UnitsRepresentation('Intra-unit bond cylinder', ctx, getParams, IntraUnitBondCylinderVisual); },
|
|
18
19
|
'inter-bond': function (ctx, getParams) { return ComplexRepresentation('Inter-unit bond cylinder', ctx, getParams, InterUnitBondCylinderVisual); },
|
|
19
20
|
};
|
|
20
|
-
export var EllipsoidParams = __assign(__assign(__assign(__assign({}, EllipsoidMeshParams), IntraUnitBondCylinderParams), InterUnitBondCylinderParams), { includeParent: PD.Boolean(false), adjustCylinderLength: PD.Boolean(false, { isHidden: true }), unitKinds: getUnitKindsParam(['atomic']), sizeFactor: PD.Numeric(1, { min: 0.01, max: 10, step: 0.01 }), sizeAspectRatio: PD.Numeric(0.1, { min: 0.01, max: 3, step: 0.01 }), linkCap: PD.Boolean(true), visuals: PD.MultiSelect(['ellipsoid-mesh', 'intra-bond', 'inter-bond'], PD.objectToOptions(EllipsoidVisuals)) });
|
|
21
|
+
export var EllipsoidParams = __assign(__assign(__assign(__assign({}, EllipsoidMeshParams), IntraUnitBondCylinderParams), InterUnitBondCylinderParams), { includeParent: PD.Boolean(false), adjustCylinderLength: PD.Boolean(false, { isHidden: true }), unitKinds: getUnitKindsParam(['atomic']), sizeFactor: PD.Numeric(1, { min: 0.01, max: 10, step: 0.01 }), sizeAspectRatio: PD.Numeric(0.1, { min: 0.01, max: 3, step: 0.01 }), linkCap: PD.Boolean(true), visuals: PD.MultiSelect(['ellipsoid-mesh', 'intra-bond', 'inter-bond'], PD.objectToOptions(EllipsoidVisuals)), bumpFrequency: PD.Numeric(0, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
21
22
|
export function getEllipsoidParams(ctx, structure) {
|
|
22
23
|
return PD.clone(EllipsoidParams);
|
|
23
24
|
}
|
|
@@ -10,6 +10,7 @@ import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
|
10
10
|
import { Structure } from '../../../mol-model/structure';
|
|
11
11
|
export declare const GaussianSurfaceParams: {
|
|
12
12
|
visuals: PD.MultiSelect<"gaussian-surface-mesh" | "structure-gaussian-surface-mesh" | "gaussian-surface-wireframe">;
|
|
13
|
+
bumpFrequency: PD.Numeric;
|
|
13
14
|
sizeFactor: PD.Numeric;
|
|
14
15
|
lineSizeAttenuation: PD.BooleanParam;
|
|
15
16
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -24,6 +25,7 @@ export declare const GaussianSurfaceParams: {
|
|
|
24
25
|
material: PD.Group<PD.Normalize<{
|
|
25
26
|
metalness: number;
|
|
26
27
|
roughness: number;
|
|
28
|
+
bumpiness: number;
|
|
27
29
|
}>>;
|
|
28
30
|
tryUseGpu: PD.BooleanParam;
|
|
29
31
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -35,10 +37,12 @@ export declare const GaussianSurfaceParams: {
|
|
|
35
37
|
flatShaded: PD.BooleanParam;
|
|
36
38
|
ignoreLight: PD.BooleanParam;
|
|
37
39
|
xrayShaded: PD.BooleanParam;
|
|
40
|
+
bumpAmplitude: PD.Numeric;
|
|
38
41
|
};
|
|
39
42
|
export declare type GaussianSurfaceParams = typeof GaussianSurfaceParams;
|
|
40
43
|
export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
41
44
|
visuals: PD.MultiSelect<"gaussian-surface-mesh" | "structure-gaussian-surface-mesh" | "gaussian-surface-wireframe">;
|
|
45
|
+
bumpFrequency: PD.Numeric;
|
|
42
46
|
sizeFactor: PD.Numeric;
|
|
43
47
|
lineSizeAttenuation: PD.BooleanParam;
|
|
44
48
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -53,6 +57,7 @@ export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, stru
|
|
|
53
57
|
material: PD.Group<PD.Normalize<{
|
|
54
58
|
metalness: number;
|
|
55
59
|
roughness: number;
|
|
60
|
+
bumpiness: number;
|
|
56
61
|
}>>;
|
|
57
62
|
tryUseGpu: PD.BooleanParam;
|
|
58
63
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -64,11 +69,13 @@ export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, stru
|
|
|
64
69
|
flatShaded: PD.BooleanParam;
|
|
65
70
|
ignoreLight: PD.BooleanParam;
|
|
66
71
|
xrayShaded: PD.BooleanParam;
|
|
72
|
+
bumpAmplitude: PD.Numeric;
|
|
67
73
|
};
|
|
68
74
|
export declare type GaussianSurfaceRepresentation = StructureRepresentation<GaussianSurfaceParams>;
|
|
69
75
|
export declare function GaussianSurfaceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, GaussianSurfaceParams>): GaussianSurfaceRepresentation;
|
|
70
76
|
export declare const GaussianSurfaceRepresentationProvider: StructureRepresentationProvider<{
|
|
71
77
|
visuals: PD.MultiSelect<"gaussian-surface-mesh" | "structure-gaussian-surface-mesh" | "gaussian-surface-wireframe">;
|
|
78
|
+
bumpFrequency: PD.Numeric;
|
|
72
79
|
sizeFactor: PD.Numeric;
|
|
73
80
|
lineSizeAttenuation: PD.BooleanParam;
|
|
74
81
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -83,6 +90,7 @@ export declare const GaussianSurfaceRepresentationProvider: StructureRepresentat
|
|
|
83
90
|
material: PD.Group<PD.Normalize<{
|
|
84
91
|
metalness: number;
|
|
85
92
|
roughness: number;
|
|
93
|
+
bumpiness: number;
|
|
86
94
|
}>>;
|
|
87
95
|
tryUseGpu: PD.BooleanParam;
|
|
88
96
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -94,4 +102,5 @@ export declare const GaussianSurfaceRepresentationProvider: StructureRepresentat
|
|
|
94
102
|
flatShaded: PD.BooleanParam;
|
|
95
103
|
ignoreLight: PD.BooleanParam;
|
|
96
104
|
xrayShaded: PD.BooleanParam;
|
|
105
|
+
bumpAmplitude: PD.Numeric;
|
|
97
106
|
}, "gaussian-surface">;
|
|
@@ -10,12 +10,13 @@ import { GaussianWireframeVisual, GaussianWireframeParams } from '../visual/gaus
|
|
|
10
10
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
11
11
|
import { StructureRepresentationProvider, StructureRepresentationStateBuilder, ComplexRepresentation } from '../representation';
|
|
12
12
|
import { Representation } from '../../../mol-repr/representation';
|
|
13
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
13
14
|
var GaussianSurfaceVisuals = {
|
|
14
15
|
'gaussian-surface-mesh': function (ctx, getParams) { return UnitsRepresentation('Gaussian surface mesh', ctx, getParams, GaussianSurfaceVisual); },
|
|
15
16
|
'structure-gaussian-surface-mesh': function (ctx, getParams) { return ComplexRepresentation('Structure-Gaussian surface mesh', ctx, getParams, StructureGaussianSurfaceVisual); },
|
|
16
17
|
'gaussian-surface-wireframe': function (ctx, getParams) { return UnitsRepresentation('Gaussian surface wireframe', ctx, getParams, GaussianWireframeVisual); },
|
|
17
18
|
};
|
|
18
|
-
export var GaussianSurfaceParams = __assign(__assign(__assign({}, GaussianSurfaceMeshParams), GaussianWireframeParams), { visuals: PD.MultiSelect(['gaussian-surface-mesh'], PD.objectToOptions(GaussianSurfaceVisuals)) });
|
|
19
|
+
export var GaussianSurfaceParams = __assign(__assign(__assign({}, GaussianSurfaceMeshParams), GaussianWireframeParams), { visuals: PD.MultiSelect(['gaussian-surface-mesh'], PD.objectToOptions(GaussianSurfaceVisuals)), bumpFrequency: PD.Numeric(1, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
19
20
|
export function getGaussianSurfaceParams(ctx, structure) {
|
|
20
21
|
return PD.clone(GaussianSurfaceParams);
|
|
21
22
|
}
|
|
@@ -45,6 +45,7 @@ export declare const GaussianVolumeParams: {
|
|
|
45
45
|
material: PD.Group<PD.Normalize<{
|
|
46
46
|
metalness: number;
|
|
47
47
|
roughness: number;
|
|
48
|
+
bumpiness: number;
|
|
48
49
|
}>>;
|
|
49
50
|
};
|
|
50
51
|
export declare type GaussianVolumeParams = typeof GaussianVolumeParams;
|
|
@@ -85,6 +86,7 @@ export declare function getGaussianVolumeParams(ctx: ThemeRegistryContext, struc
|
|
|
85
86
|
material: PD.Group<PD.Normalize<{
|
|
86
87
|
metalness: number;
|
|
87
88
|
roughness: number;
|
|
89
|
+
bumpiness: number;
|
|
88
90
|
}>>;
|
|
89
91
|
};
|
|
90
92
|
export declare type GaussianVolumeRepresentation = StructureRepresentation<GaussianVolumeParams>;
|
|
@@ -126,5 +128,6 @@ export declare const GaussianVolumeRepresentationProvider: StructureRepresentati
|
|
|
126
128
|
material: PD.Group<PD.Normalize<{
|
|
127
129
|
metalness: number;
|
|
128
130
|
roughness: number;
|
|
131
|
+
bumpiness: number;
|
|
129
132
|
}>>;
|
|
130
133
|
}, "gaussian-volume">;
|
|
@@ -14,6 +14,7 @@ export declare const LabelParams: {
|
|
|
14
14
|
backgroundMargin: PD.Numeric;
|
|
15
15
|
backgroundColor: PD.Color;
|
|
16
16
|
backgroundOpacity: PD.Numeric;
|
|
17
|
+
borderWidth: PD.Numeric;
|
|
17
18
|
level: PD.Select<"element" | "residue" | "chain">;
|
|
18
19
|
chainScale: PD.Numeric;
|
|
19
20
|
residueScale: PD.Numeric;
|
|
@@ -21,7 +22,6 @@ export declare const LabelParams: {
|
|
|
21
22
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
22
23
|
includeParent: PD.BooleanParam;
|
|
23
24
|
sizeFactor: PD.Numeric;
|
|
24
|
-
borderWidth: PD.Numeric;
|
|
25
25
|
borderColor: PD.Color;
|
|
26
26
|
offsetX: PD.Numeric;
|
|
27
27
|
offsetY: PD.Numeric;
|
|
@@ -40,6 +40,7 @@ export declare const LabelParams: {
|
|
|
40
40
|
material: PD.Group<PD.Normalize<{
|
|
41
41
|
metalness: number;
|
|
42
42
|
roughness: number;
|
|
43
|
+
bumpiness: number;
|
|
43
44
|
}>>;
|
|
44
45
|
};
|
|
45
46
|
export declare type LabelParams = typeof LabelParams;
|
|
@@ -49,6 +50,7 @@ export declare function getLabelParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
49
50
|
backgroundMargin: PD.Numeric;
|
|
50
51
|
backgroundColor: PD.Color;
|
|
51
52
|
backgroundOpacity: PD.Numeric;
|
|
53
|
+
borderWidth: PD.Numeric;
|
|
52
54
|
level: PD.Select<"element" | "residue" | "chain">;
|
|
53
55
|
chainScale: PD.Numeric;
|
|
54
56
|
residueScale: PD.Numeric;
|
|
@@ -56,7 +58,6 @@ export declare function getLabelParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
56
58
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
57
59
|
includeParent: PD.BooleanParam;
|
|
58
60
|
sizeFactor: PD.Numeric;
|
|
59
|
-
borderWidth: PD.Numeric;
|
|
60
61
|
borderColor: PD.Color;
|
|
61
62
|
offsetX: PD.Numeric;
|
|
62
63
|
offsetY: PD.Numeric;
|
|
@@ -75,6 +76,7 @@ export declare function getLabelParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
75
76
|
material: PD.Group<PD.Normalize<{
|
|
76
77
|
metalness: number;
|
|
77
78
|
roughness: number;
|
|
79
|
+
bumpiness: number;
|
|
78
80
|
}>>;
|
|
79
81
|
};
|
|
80
82
|
export declare type LabelRepresentation = StructureRepresentation<LabelParams>;
|
|
@@ -85,6 +87,7 @@ export declare const LabelRepresentationProvider: StructureRepresentationProvide
|
|
|
85
87
|
backgroundMargin: PD.Numeric;
|
|
86
88
|
backgroundColor: PD.Color;
|
|
87
89
|
backgroundOpacity: PD.Numeric;
|
|
90
|
+
borderWidth: PD.Numeric;
|
|
88
91
|
level: PD.Select<"element" | "residue" | "chain">;
|
|
89
92
|
chainScale: PD.Numeric;
|
|
90
93
|
residueScale: PD.Numeric;
|
|
@@ -92,7 +95,6 @@ export declare const LabelRepresentationProvider: StructureRepresentationProvide
|
|
|
92
95
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
93
96
|
includeParent: PD.BooleanParam;
|
|
94
97
|
sizeFactor: PD.Numeric;
|
|
95
|
-
borderWidth: PD.Numeric;
|
|
96
98
|
borderColor: PD.Color;
|
|
97
99
|
offsetX: PD.Numeric;
|
|
98
100
|
offsetY: PD.Numeric;
|
|
@@ -111,5 +113,6 @@ export declare const LabelRepresentationProvider: StructureRepresentationProvide
|
|
|
111
113
|
material: PD.Group<PD.Normalize<{
|
|
112
114
|
metalness: number;
|
|
113
115
|
roughness: number;
|
|
116
|
+
bumpiness: number;
|
|
114
117
|
}>>;
|
|
115
118
|
}, "label">;
|
|
@@ -24,6 +24,7 @@ export declare const LineParams: {
|
|
|
24
24
|
material: PD.Group<PD.Normalize<{
|
|
25
25
|
metalness: number;
|
|
26
26
|
roughness: number;
|
|
27
|
+
bumpiness: number;
|
|
27
28
|
}>>;
|
|
28
29
|
pointSizeAttenuation: PD.BooleanParam;
|
|
29
30
|
pointStyle: PD.Select<"circle" | "square" | "fuzzy">;
|
|
@@ -52,6 +53,7 @@ export declare function getLineParams(ctx: ThemeRegistryContext, structure: Stru
|
|
|
52
53
|
material: PD.Group<PD.Normalize<{
|
|
53
54
|
metalness: number;
|
|
54
55
|
roughness: number;
|
|
56
|
+
bumpiness: number;
|
|
55
57
|
}>>;
|
|
56
58
|
pointSizeAttenuation: PD.BooleanParam;
|
|
57
59
|
pointStyle: PD.Select<"circle" | "square" | "fuzzy">;
|
|
@@ -81,6 +83,7 @@ export declare const LineRepresentationProvider: StructureRepresentationProvider
|
|
|
81
83
|
material: PD.Group<PD.Normalize<{
|
|
82
84
|
metalness: number;
|
|
83
85
|
roughness: number;
|
|
86
|
+
bumpiness: number;
|
|
84
87
|
}>>;
|
|
85
88
|
pointSizeAttenuation: PD.BooleanParam;
|
|
86
89
|
pointStyle: PD.Select<"circle" | "square" | "fuzzy">;
|
|
@@ -10,6 +10,7 @@ import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
|
10
10
|
import { Structure } from '../../../mol-model/structure';
|
|
11
11
|
export declare const MolecularSurfaceParams: {
|
|
12
12
|
visuals: PD.MultiSelect<"molecular-surface-mesh" | "molecular-surface-wireframe">;
|
|
13
|
+
bumpFrequency: PD.Numeric;
|
|
13
14
|
sizeFactor: PD.Numeric;
|
|
14
15
|
ignoreHydrogens: PD.BooleanParam;
|
|
15
16
|
traceOnly: PD.BooleanParam;
|
|
@@ -24,6 +25,7 @@ export declare const MolecularSurfaceParams: {
|
|
|
24
25
|
material: PD.Group<PD.Normalize<{
|
|
25
26
|
metalness: number;
|
|
26
27
|
roughness: number;
|
|
28
|
+
bumpiness: number;
|
|
27
29
|
}>>;
|
|
28
30
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
29
31
|
resolutionFactor: number;
|
|
@@ -34,10 +36,12 @@ export declare const MolecularSurfaceParams: {
|
|
|
34
36
|
flatShaded: PD.BooleanParam;
|
|
35
37
|
ignoreLight: PD.BooleanParam;
|
|
36
38
|
xrayShaded: PD.BooleanParam;
|
|
39
|
+
bumpAmplitude: PD.Numeric;
|
|
37
40
|
};
|
|
38
41
|
export declare type MolecularSurfaceParams = typeof MolecularSurfaceParams;
|
|
39
42
|
export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
40
43
|
visuals: PD.MultiSelect<"molecular-surface-mesh" | "molecular-surface-wireframe">;
|
|
44
|
+
bumpFrequency: PD.Numeric;
|
|
41
45
|
sizeFactor: PD.Numeric;
|
|
42
46
|
ignoreHydrogens: PD.BooleanParam;
|
|
43
47
|
traceOnly: PD.BooleanParam;
|
|
@@ -52,6 +56,7 @@ export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, str
|
|
|
52
56
|
material: PD.Group<PD.Normalize<{
|
|
53
57
|
metalness: number;
|
|
54
58
|
roughness: number;
|
|
59
|
+
bumpiness: number;
|
|
55
60
|
}>>;
|
|
56
61
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
57
62
|
resolutionFactor: number;
|
|
@@ -62,11 +67,13 @@ export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, str
|
|
|
62
67
|
flatShaded: PD.BooleanParam;
|
|
63
68
|
ignoreLight: PD.BooleanParam;
|
|
64
69
|
xrayShaded: PD.BooleanParam;
|
|
70
|
+
bumpAmplitude: PD.Numeric;
|
|
65
71
|
};
|
|
66
72
|
export declare type MolecularSurfaceRepresentation = StructureRepresentation<MolecularSurfaceParams>;
|
|
67
73
|
export declare function MolecularSurfaceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, MolecularSurfaceParams>): MolecularSurfaceRepresentation;
|
|
68
74
|
export declare const MolecularSurfaceRepresentationProvider: StructureRepresentationProvider<{
|
|
69
75
|
visuals: PD.MultiSelect<"molecular-surface-mesh" | "molecular-surface-wireframe">;
|
|
76
|
+
bumpFrequency: PD.Numeric;
|
|
70
77
|
sizeFactor: PD.Numeric;
|
|
71
78
|
ignoreHydrogens: PD.BooleanParam;
|
|
72
79
|
traceOnly: PD.BooleanParam;
|
|
@@ -81,6 +88,7 @@ export declare const MolecularSurfaceRepresentationProvider: StructureRepresenta
|
|
|
81
88
|
material: PD.Group<PD.Normalize<{
|
|
82
89
|
metalness: number;
|
|
83
90
|
roughness: number;
|
|
91
|
+
bumpiness: number;
|
|
84
92
|
}>>;
|
|
85
93
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
86
94
|
resolutionFactor: number;
|
|
@@ -91,4 +99,5 @@ export declare const MolecularSurfaceRepresentationProvider: StructureRepresenta
|
|
|
91
99
|
flatShaded: PD.BooleanParam;
|
|
92
100
|
ignoreLight: PD.BooleanParam;
|
|
93
101
|
xrayShaded: PD.BooleanParam;
|
|
102
|
+
bumpAmplitude: PD.Numeric;
|
|
94
103
|
}, "molecular-surface">;
|
|
@@ -10,11 +10,12 @@ import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
|
10
10
|
import { StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../representation';
|
|
11
11
|
import { Representation } from '../../../mol-repr/representation';
|
|
12
12
|
import { MolecularSurfaceWireframeParams, MolecularSurfaceWireframeVisual } from '../visual/molecular-surface-wireframe';
|
|
13
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
13
14
|
var MolecularSurfaceVisuals = {
|
|
14
15
|
'molecular-surface-mesh': function (ctx, getParams) { return UnitsRepresentation('Molecular surface mesh', ctx, getParams, MolecularSurfaceMeshVisual); },
|
|
15
16
|
'molecular-surface-wireframe': function (ctx, getParams) { return UnitsRepresentation('Molecular surface wireframe', ctx, getParams, MolecularSurfaceWireframeVisual); },
|
|
16
17
|
};
|
|
17
|
-
export var MolecularSurfaceParams = __assign(__assign(__assign({}, MolecularSurfaceMeshParams), MolecularSurfaceWireframeParams), { visuals: PD.MultiSelect(['molecular-surface-mesh'], PD.objectToOptions(MolecularSurfaceVisuals)) });
|
|
18
|
+
export var MolecularSurfaceParams = __assign(__assign(__assign({}, MolecularSurfaceMeshParams), MolecularSurfaceWireframeParams), { visuals: PD.MultiSelect(['molecular-surface-mesh'], PD.objectToOptions(MolecularSurfaceVisuals)), bumpFrequency: PD.Numeric(1, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
18
19
|
export function getMolecularSurfaceParams(ctx, structure) {
|
|
19
20
|
return PD.clone(MolecularSurfaceParams);
|
|
20
21
|
}
|
|
@@ -10,6 +10,7 @@ import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
|
10
10
|
import { Structure } from '../../../mol-model/structure';
|
|
11
11
|
export declare const OrientationParams: {
|
|
12
12
|
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
|
|
13
|
+
bumpFrequency: PD.Numeric;
|
|
13
14
|
sizeFactor: PD.Numeric;
|
|
14
15
|
detail: PD.Numeric;
|
|
15
16
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -19,16 +20,19 @@ export declare const OrientationParams: {
|
|
|
19
20
|
flatShaded: PD.BooleanParam;
|
|
20
21
|
ignoreLight: PD.BooleanParam;
|
|
21
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
bumpAmplitude: PD.Numeric;
|
|
22
24
|
alpha: PD.Numeric;
|
|
23
25
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
24
26
|
material: PD.Group<PD.Normalize<{
|
|
25
27
|
metalness: number;
|
|
26
28
|
roughness: number;
|
|
29
|
+
bumpiness: number;
|
|
27
30
|
}>>;
|
|
28
31
|
};
|
|
29
32
|
export declare type OrientationParams = typeof OrientationParams;
|
|
30
33
|
export declare function getOrientationParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
31
34
|
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
|
|
35
|
+
bumpFrequency: PD.Numeric;
|
|
32
36
|
sizeFactor: PD.Numeric;
|
|
33
37
|
detail: PD.Numeric;
|
|
34
38
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -38,17 +42,20 @@ export declare function getOrientationParams(ctx: ThemeRegistryContext, structur
|
|
|
38
42
|
flatShaded: PD.BooleanParam;
|
|
39
43
|
ignoreLight: PD.BooleanParam;
|
|
40
44
|
xrayShaded: PD.BooleanParam;
|
|
45
|
+
bumpAmplitude: PD.Numeric;
|
|
41
46
|
alpha: PD.Numeric;
|
|
42
47
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
43
48
|
material: PD.Group<PD.Normalize<{
|
|
44
49
|
metalness: number;
|
|
45
50
|
roughness: number;
|
|
51
|
+
bumpiness: number;
|
|
46
52
|
}>>;
|
|
47
53
|
};
|
|
48
54
|
export declare type OrientationRepresentation = StructureRepresentation<OrientationParams>;
|
|
49
55
|
export declare function OrientationRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, OrientationParams>): OrientationRepresentation;
|
|
50
56
|
export declare const OrientationRepresentationProvider: StructureRepresentationProvider<{
|
|
51
57
|
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
|
|
58
|
+
bumpFrequency: PD.Numeric;
|
|
52
59
|
sizeFactor: PD.Numeric;
|
|
53
60
|
detail: PD.Numeric;
|
|
54
61
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -58,10 +65,12 @@ export declare const OrientationRepresentationProvider: StructureRepresentationP
|
|
|
58
65
|
flatShaded: PD.BooleanParam;
|
|
59
66
|
ignoreLight: PD.BooleanParam;
|
|
60
67
|
xrayShaded: PD.BooleanParam;
|
|
68
|
+
bumpAmplitude: PD.Numeric;
|
|
61
69
|
alpha: PD.Numeric;
|
|
62
70
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
63
71
|
material: PD.Group<PD.Normalize<{
|
|
64
72
|
metalness: number;
|
|
65
73
|
roughness: number;
|
|
74
|
+
bumpiness: number;
|
|
66
75
|
}>>;
|
|
67
76
|
}, "orientation">;
|
|
@@ -9,10 +9,11 @@ import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
|
9
9
|
import { StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../representation';
|
|
10
10
|
import { Representation } from '../../../mol-repr/representation';
|
|
11
11
|
import { OrientationEllipsoidMeshParams, OrientationEllipsoidMeshVisual } from '../visual/orientation-ellipsoid-mesh';
|
|
12
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
12
13
|
var OrientationVisuals = {
|
|
13
14
|
'orientation-ellipsoid-mesh': function (ctx, getParams) { return UnitsRepresentation('Orientation ellipsoid mesh', ctx, getParams, OrientationEllipsoidMeshVisual); },
|
|
14
15
|
};
|
|
15
|
-
export var OrientationParams = __assign(__assign({}, OrientationEllipsoidMeshParams), { visuals: PD.MultiSelect(['orientation-ellipsoid-mesh'], PD.objectToOptions(OrientationVisuals)) });
|
|
16
|
+
export var OrientationParams = __assign(__assign({}, OrientationEllipsoidMeshParams), { visuals: PD.MultiSelect(['orientation-ellipsoid-mesh'], PD.objectToOptions(OrientationVisuals)), bumpFrequency: PD.Numeric(1, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
16
17
|
export function getOrientationParams(ctx, structure) {
|
|
17
18
|
return PD.clone(OrientationParams);
|
|
18
19
|
}
|
|
@@ -21,6 +21,7 @@ export declare const PointParams: {
|
|
|
21
21
|
material: PD.Group<PD.Normalize<{
|
|
22
22
|
metalness: number;
|
|
23
23
|
roughness: number;
|
|
24
|
+
bumpiness: number;
|
|
24
25
|
}>>;
|
|
25
26
|
};
|
|
26
27
|
export declare type PointParams = typeof PointParams;
|
|
@@ -37,6 +38,7 @@ export declare function getPointParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
37
38
|
material: PD.Group<PD.Normalize<{
|
|
38
39
|
metalness: number;
|
|
39
40
|
roughness: number;
|
|
41
|
+
bumpiness: number;
|
|
40
42
|
}>>;
|
|
41
43
|
};
|
|
42
44
|
export declare type PointRepresentation = StructureRepresentation<PointParams>;
|
|
@@ -54,5 +56,6 @@ export declare const PointRepresentationProvider: StructureRepresentationProvide
|
|
|
54
56
|
material: PD.Group<PD.Normalize<{
|
|
55
57
|
metalness: number;
|
|
56
58
|
roughness: number;
|
|
59
|
+
bumpiness: number;
|
|
57
60
|
}>>;
|
|
58
61
|
}, "point">;
|
|
@@ -11,6 +11,7 @@ import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
|
11
11
|
export declare const PuttyParams: {
|
|
12
12
|
sizeFactor: PD.Numeric;
|
|
13
13
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
|
|
14
|
+
bumpFrequency: PD.Numeric;
|
|
14
15
|
radialSegments: PD.Numeric;
|
|
15
16
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
16
17
|
includeParent: PD.BooleanParam;
|
|
@@ -19,11 +20,13 @@ export declare const PuttyParams: {
|
|
|
19
20
|
flatShaded: PD.BooleanParam;
|
|
20
21
|
ignoreLight: PD.BooleanParam;
|
|
21
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
bumpAmplitude: PD.Numeric;
|
|
22
24
|
alpha: PD.Numeric;
|
|
23
25
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
24
26
|
material: PD.Group<PD.Normalize<{
|
|
25
27
|
metalness: number;
|
|
26
28
|
roughness: number;
|
|
29
|
+
bumpiness: number;
|
|
27
30
|
}>>;
|
|
28
31
|
detail: PD.Numeric;
|
|
29
32
|
linearSegments: PD.Numeric;
|
|
@@ -32,6 +35,7 @@ export declare type PuttyParams = typeof PuttyParams;
|
|
|
32
35
|
export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
33
36
|
sizeFactor: PD.Numeric;
|
|
34
37
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
|
|
38
|
+
bumpFrequency: PD.Numeric;
|
|
35
39
|
radialSegments: PD.Numeric;
|
|
36
40
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
37
41
|
includeParent: PD.BooleanParam;
|
|
@@ -40,11 +44,13 @@ export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
40
44
|
flatShaded: PD.BooleanParam;
|
|
41
45
|
ignoreLight: PD.BooleanParam;
|
|
42
46
|
xrayShaded: PD.BooleanParam;
|
|
47
|
+
bumpAmplitude: PD.Numeric;
|
|
43
48
|
alpha: PD.Numeric;
|
|
44
49
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
45
50
|
material: PD.Group<PD.Normalize<{
|
|
46
51
|
metalness: number;
|
|
47
52
|
roughness: number;
|
|
53
|
+
bumpiness: number;
|
|
48
54
|
}>>;
|
|
49
55
|
detail: PD.Numeric;
|
|
50
56
|
linearSegments: PD.Numeric;
|
|
@@ -54,6 +60,7 @@ export declare function PuttyRepresentation(ctx: RepresentationContext, getParam
|
|
|
54
60
|
export declare const PuttyRepresentationProvider: StructureRepresentationProvider<{
|
|
55
61
|
sizeFactor: PD.Numeric;
|
|
56
62
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
|
|
63
|
+
bumpFrequency: PD.Numeric;
|
|
57
64
|
radialSegments: PD.Numeric;
|
|
58
65
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
59
66
|
includeParent: PD.BooleanParam;
|
|
@@ -62,11 +69,13 @@ export declare const PuttyRepresentationProvider: StructureRepresentationProvide
|
|
|
62
69
|
flatShaded: PD.BooleanParam;
|
|
63
70
|
ignoreLight: PD.BooleanParam;
|
|
64
71
|
xrayShaded: PD.BooleanParam;
|
|
72
|
+
bumpAmplitude: PD.Numeric;
|
|
65
73
|
alpha: PD.Numeric;
|
|
66
74
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
67
75
|
material: PD.Group<PD.Normalize<{
|
|
68
76
|
metalness: number;
|
|
69
77
|
roughness: number;
|
|
78
|
+
bumpiness: number;
|
|
70
79
|
}>>;
|
|
71
80
|
detail: PD.Numeric;
|
|
72
81
|
linearSegments: PD.Numeric;
|
|
@@ -11,11 +11,12 @@ import { UnitsRepresentation } from '../units-representation';
|
|
|
11
11
|
import { StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../representation';
|
|
12
12
|
import { Representation } from '../../../mol-repr/representation';
|
|
13
13
|
import { Unit } from '../../../mol-model/structure';
|
|
14
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
14
15
|
var PuttyVisuals = {
|
|
15
16
|
'polymer-tube': function (ctx, getParams) { return UnitsRepresentation('Polymer tube mesh', ctx, getParams, PolymerTubeVisual); },
|
|
16
17
|
'polymer-gap': function (ctx, getParams) { return UnitsRepresentation('Polymer gap cylinder', ctx, getParams, PolymerGapVisual); },
|
|
17
18
|
};
|
|
18
|
-
export var PuttyParams = __assign(__assign(__assign({}, PolymerTubeParams), PolymerGapParams), { sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: PD.MultiSelect(['polymer-tube', 'polymer-gap'], PD.objectToOptions(PuttyVisuals)) });
|
|
19
|
+
export var PuttyParams = __assign(__assign(__assign({}, PolymerTubeParams), PolymerGapParams), { sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: PD.MultiSelect(['polymer-tube', 'polymer-gap'], PD.objectToOptions(PuttyVisuals)), bumpFrequency: PD.Numeric(2, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
19
20
|
export function getPuttyParams(ctx, structure) {
|
|
20
21
|
var params = PD.clone(PuttyParams);
|
|
21
22
|
var hasNucleotides = false;
|
|
@@ -9,6 +9,7 @@ import { RepresentationParamsGetter, RepresentationContext } from '../../../mol-
|
|
|
9
9
|
import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
10
10
|
import { Structure } from '../../../mol-model/structure';
|
|
11
11
|
export declare const SpacefillParams: {
|
|
12
|
+
bumpFrequency: PD.Numeric;
|
|
12
13
|
sizeFactor: PD.Numeric;
|
|
13
14
|
detail: PD.Numeric;
|
|
14
15
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -19,17 +20,20 @@ export declare const SpacefillParams: {
|
|
|
19
20
|
doubleSided: PD.BooleanParam;
|
|
20
21
|
ignoreLight: PD.BooleanParam;
|
|
21
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
bumpAmplitude: PD.Numeric;
|
|
22
24
|
alpha: PD.Numeric;
|
|
23
25
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
24
26
|
material: PD.Group<PD.Normalize<{
|
|
25
27
|
metalness: number;
|
|
26
28
|
roughness: number;
|
|
29
|
+
bumpiness: number;
|
|
27
30
|
}>>;
|
|
28
31
|
flipSided: PD.BooleanParam;
|
|
29
32
|
flatShaded: PD.BooleanParam;
|
|
30
33
|
};
|
|
31
34
|
export declare type SpacefillParams = typeof SpacefillParams;
|
|
32
35
|
export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
36
|
+
bumpFrequency: PD.Numeric;
|
|
33
37
|
sizeFactor: PD.Numeric;
|
|
34
38
|
detail: PD.Numeric;
|
|
35
39
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -40,11 +44,13 @@ export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure:
|
|
|
40
44
|
doubleSided: PD.BooleanParam;
|
|
41
45
|
ignoreLight: PD.BooleanParam;
|
|
42
46
|
xrayShaded: PD.BooleanParam;
|
|
47
|
+
bumpAmplitude: PD.Numeric;
|
|
43
48
|
alpha: PD.Numeric;
|
|
44
49
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
45
50
|
material: PD.Group<PD.Normalize<{
|
|
46
51
|
metalness: number;
|
|
47
52
|
roughness: number;
|
|
53
|
+
bumpiness: number;
|
|
48
54
|
}>>;
|
|
49
55
|
flipSided: PD.BooleanParam;
|
|
50
56
|
flatShaded: PD.BooleanParam;
|
|
@@ -52,6 +58,7 @@ export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure:
|
|
|
52
58
|
export declare type SpacefillRepresentation = StructureRepresentation<SpacefillParams>;
|
|
53
59
|
export declare function SpacefillRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, SpacefillParams>): SpacefillRepresentation;
|
|
54
60
|
export declare const SpacefillRepresentationProvider: StructureRepresentationProvider<{
|
|
61
|
+
bumpFrequency: PD.Numeric;
|
|
55
62
|
sizeFactor: PD.Numeric;
|
|
56
63
|
detail: PD.Numeric;
|
|
57
64
|
ignoreHydrogens: PD.BooleanParam;
|
|
@@ -62,11 +69,13 @@ export declare const SpacefillRepresentationProvider: StructureRepresentationPro
|
|
|
62
69
|
doubleSided: PD.BooleanParam;
|
|
63
70
|
ignoreLight: PD.BooleanParam;
|
|
64
71
|
xrayShaded: PD.BooleanParam;
|
|
72
|
+
bumpAmplitude: PD.Numeric;
|
|
65
73
|
alpha: PD.Numeric;
|
|
66
74
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
67
75
|
material: PD.Group<PD.Normalize<{
|
|
68
76
|
metalness: number;
|
|
69
77
|
roughness: number;
|
|
78
|
+
bumpiness: number;
|
|
70
79
|
}>>;
|
|
71
80
|
flipSided: PD.BooleanParam;
|
|
72
81
|
flatShaded: PD.BooleanParam;
|
|
@@ -9,10 +9,11 @@ import { UnitsRepresentation } from '../units-representation';
|
|
|
9
9
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
10
10
|
import { StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../representation';
|
|
11
11
|
import { Representation } from '../../../mol-repr/representation';
|
|
12
|
+
import { BaseGeometry } from '../../../mol-geo/geometry/base';
|
|
12
13
|
var SpacefillVisuals = {
|
|
13
14
|
'element-sphere': function (ctx, getParams) { return UnitsRepresentation('Sphere mesh', ctx, getParams, ElementSphereVisual); },
|
|
14
15
|
};
|
|
15
|
-
export var SpacefillParams = __assign({}, ElementSphereParams);
|
|
16
|
+
export var SpacefillParams = __assign(__assign({}, ElementSphereParams), { bumpFrequency: PD.Numeric(1, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory) });
|
|
16
17
|
export function getSpacefillParams(ctx, structure) {
|
|
17
18
|
var params = PD.clone(SpacefillParams);
|
|
18
19
|
if (structure.isCoarseGrained) {
|