molstar 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +202 -202
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +0 -15
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/cli/chem-comp-dict/create-ions.d.ts +2 -1
- package/lib/cli/chem-comp-dict/create-ions.js +3 -2
- package/lib/cli/cifschema/index.js +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/cli/chem-comp-dict/create-ions.d.ts +2 -1
- package/lib/commonjs/cli/chem-comp-dict/create-ions.js +3 -2
- package/lib/commonjs/cli/cifschema/index.js +1 -1
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/examples/alpha-orbitals/index.js +20 -15
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.d.ts +20 -5
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -4
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +284 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +0 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.js +35 -70
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/pick.js +1 -1
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +16 -11
- package/lib/commonjs/mol-geo/geometry/color-data.d.ts +7 -10
- package/lib/commonjs/mol-geo/geometry/color-data.js +7 -4
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +3 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +3 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +3 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +15 -4
- package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/transparency-data.js +3 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +2 -2
- package/lib/commonjs/mol-gl/renderable/schema.js +2 -2
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderer.d.ts +5 -5
- package/lib/commonjs/mol-gl/renderer.js +114 -64
- package/lib/commonjs/mol-gl/scene.d.ts +1 -0
- package/lib/commonjs/mol-gl/scene.js +26 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.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/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.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/wboit-write.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/outlines.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/outlines.frag.js +3 -2
- 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/ssao.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/ssao.frag.js +2 -2
- package/lib/commonjs/mol-gl/webgl/render-target.d.ts +3 -1
- package/lib/commonjs/mol-gl/webgl/render-target.js +3 -1
- package/lib/commonjs/mol-gl/webgl/renderbuffer.d.ts +2 -1
- package/lib/commonjs/mol-gl/webgl/renderbuffer.js +8 -1
- package/lib/commonjs/mol-gl/webgl/state.d.ts +7 -1
- package/lib/commonjs/mol-gl/webgl/state.js +28 -1
- package/lib/commonjs/mol-gl/webgl/texture.js +3 -0
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +2 -3
- package/lib/commonjs/mol-io/reader/dx/parser.js +1 -1
- package/lib/commonjs/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/commonjs/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/commonjs/mol-io/writer/mol/encoder.js +16 -4
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.js +3 -3
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.js +2 -1
- package/lib/commonjs/mol-model/structure/model/types/ions.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/model/types/ions.js +2 -2
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/types.js +43 -41
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/property.js +2 -0
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -1
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +3 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -6
- package/lib/commonjs/mol-plugin-ui/base.d.ts +3 -1
- package/lib/commonjs/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +21 -7
- package/lib/commonjs/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/plugin.js +2 -2
- package/lib/commonjs/mol-plugin-ui/spec.d.ts +1 -0
- package/lib/commonjs/mol-plugin-ui/state/common.js +6 -7
- package/lib/commonjs/mol-plugin-ui/task.d.ts +2 -21
- package/lib/commonjs/mol-plugin-ui/task.js +39 -43
- package/lib/commonjs/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/params.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/util.d.ts +1 -1
- package/lib/commonjs/mol-repr/util.js +1 -1
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/slice.js +1 -1
- package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
- package/lib/commonjs/mol-theme/color/volume-value.d.ts +3 -2
- package/lib/commonjs/mol-theme/color/volume-value.js +1 -3
- package/lib/commonjs/mol-theme/color.d.ts +55 -39
- package/lib/commonjs/mol-theme/color.js +1 -1
- package/lib/commonjs/mol-theme/theme.d.ts +8 -7
- package/lib/commonjs/mol-theme/theme.js +1 -1
- package/lib/commonjs/servers/model/server/query.js +1 -3
- package/lib/commonjs/servers/model/version.d.ts +1 -1
- package/lib/commonjs/servers/model/version.js +1 -1
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/alpha-orbitals/index.js +20 -15
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/coloring.d.ts +20 -5
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/anvil/behavior.d.ts +1 -1
- package/lib/extensions/anvil/representation.d.ts +4 -4
- package/lib/extensions/cellpack/representation.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/extensions/rcsb/graphql/types.d.ts +284 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/mol-canvas3d/canvas3d.d.ts +2 -2
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -1
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -2
- package/lib/mol-canvas3d/passes/draw.d.ts +0 -2
- package/lib/mol-canvas3d/passes/draw.js +32 -67
- package/lib/mol-canvas3d/passes/image.d.ts +1 -1
- package/lib/mol-canvas3d/passes/pick.d.ts +1 -1
- package/lib/mol-canvas3d/passes/pick.js +1 -1
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/mol-canvas3d/passes/postprocessing.js +16 -11
- package/lib/mol-geo/geometry/color-data.d.ts +7 -10
- package/lib/mol-geo/geometry/color-data.js +7 -4
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +3 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +3 -2
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +3 -2
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +15 -4
- package/lib/mol-geo/geometry/transparency-data.d.ts +1 -1
- package/lib/mol-geo/geometry/transparency-data.js +3 -1
- package/lib/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/mol-gl/renderable/cylinders.js +2 -2
- package/lib/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/mesh.js +2 -2
- package/lib/mol-gl/renderable/schema.d.ts +2 -2
- package/lib/mol-gl/renderable/schema.js +2 -2
- package/lib/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/mol-gl/renderable/spheres.js +2 -2
- package/lib/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/mol-gl/renderer.d.ts +5 -5
- package/lib/mol-gl/renderer.js +114 -64
- package/lib/mol-gl/scene.d.ts +1 -0
- package/lib/mol-gl/scene.js +26 -1
- package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/apply-interior-color.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/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/check-picking-alpha.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/wboit-write.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/mol-gl/shader/image.frag.js +1 -1
- package/lib/mol-gl/shader/outlines.frag.d.ts +3 -2
- package/lib/mol-gl/shader/outlines.frag.js +3 -2
- 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/ssao.frag.d.ts +2 -2
- package/lib/mol-gl/shader/ssao.frag.js +2 -2
- package/lib/mol-gl/webgl/render-target.d.ts +3 -1
- package/lib/mol-gl/webgl/render-target.js +3 -1
- package/lib/mol-gl/webgl/renderbuffer.d.ts +2 -1
- package/lib/mol-gl/webgl/renderbuffer.js +8 -1
- package/lib/mol-gl/webgl/state.d.ts +7 -1
- package/lib/mol-gl/webgl/state.js +28 -1
- package/lib/mol-gl/webgl/texture.js +3 -0
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/cif-core.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
- package/lib/mol-io/reader/cif/schema/mmcif.js +2 -3
- package/lib/mol-io/reader/dx/parser.js +1 -1
- package/lib/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/mol-io/writer/mol/encoder.js +16 -4
- package/lib/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/mol-math/geometry/lookup3d/grid.d.ts +1 -1
- package/lib/mol-math/geometry/lookup3d/grid.js +3 -3
- package/lib/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
- package/lib/mol-model/structure/model/properties/seconday-structure.js +2 -1
- package/lib/mol-model/structure/model/types/ions.d.ts +2 -2
- package/lib/mol-model/structure/model/types/ions.js +2 -2
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +1 -1
- package/lib/mol-model/structure/model/types.js +43 -41
- package/lib/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/mol-model-formats/structure/common/property.js +2 -0
- package/lib/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
- package/lib/mol-model-formats/structure/property/secondary-structure.js +2 -2
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/mol-plugin/commands.d.ts +1 -1
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/helpers/root-structure.js +3 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -6
- package/lib/mol-plugin-ui/base.d.ts +3 -1
- package/lib/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/mol-plugin-ui/hooks/use-behavior.js +20 -7
- package/lib/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/mol-plugin-ui/plugin.js +2 -2
- 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 -643
- 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 +128 -128
- 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-plugin-ui/spec.d.ts +1 -0
- package/lib/mol-plugin-ui/state/common.js +7 -8
- package/lib/mol-plugin-ui/task.d.ts +2 -21
- package/lib/mol-plugin-ui/task.js +40 -46
- package/lib/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +3 -3
- package/lib/mol-repr/structure/params.d.ts +4 -4
- package/lib/mol-repr/structure/registry.d.ts +10 -10
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -3
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -3
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -3
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/mol-repr/structure/units-visual.d.ts +4 -4
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/mol-repr/util.d.ts +1 -1
- package/lib/mol-repr/util.js +1 -1
- package/lib/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/mol-repr/volume/registry.d.ts +1 -1
- package/lib/mol-repr/volume/slice.js +1 -1
- package/lib/mol-script/language/builder.d.ts +0 -1
- package/lib/mol-theme/color/volume-value.d.ts +3 -2
- package/lib/mol-theme/color/volume-value.js +2 -4
- package/lib/mol-theme/color.d.ts +55 -39
- package/lib/mol-theme/color.js +1 -1
- package/lib/mol-theme/theme.d.ts +8 -7
- package/lib/mol-theme/theme.js +1 -1
- package/lib/servers/model/server/query.js +1 -3
- package/lib/servers/model/version.d.ts +1 -1
- package/lib/servers/model/version.js +1 -1
- package/package.json +162 -162
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
* @author Áron Samuel Kovács <aron.kovacs@mail.muni.cz>
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ssao_frag = void 0;
|
|
10
|
-
exports.ssao_frag = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n\nuniform sampler2D tDepth;\nuniform vec2 uTexSize;\nuniform vec4 uBounds;\n\nuniform vec3 uSamples[dNSamples];\n\nuniform mat4 uProjection;\nuniform mat4 uInvProjection;\n\nuniform float uRadius;\nuniform float uBias;\n\nfloat smootherstep(float edge0, float edge1, float x) {\n x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n return x * x * x * (x * (x * 6.0 - 15.0) + 10.0);\n}\n\nfloat noise(const in vec2 coords) {\n float a = 12.9898;\n float b = 78.233;\n float c = 43758.5453;\n float dt = dot(coords, vec2(a,b));\n float sn = mod(dt, PI);\n return abs(fract(sin(sn) * c)); // is abs necessary?\n}\n\nvec2 getNoiseVec2(const in vec2 coords) {\n return vec2(noise(coords), noise(coords + vec2(PI, 2.71828)));\n}\n\nbool isBackground(const in float depth) {\n return depth == 1.0;\n}\n\nbool outsideBounds(const in vec2 p) {\n return p.x < uBounds.x || p.y < uBounds.y || p.x > uBounds.z || p.y > uBounds.w;\n}\n\nfloat getDepth(const in vec2 coords) {\n
|
|
10
|
+
exports.ssao_frag = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n\nuniform sampler2D tDepth;\nuniform vec2 uTexSize;\nuniform vec4 uBounds;\n\nuniform vec3 uSamples[dNSamples];\n\nuniform mat4 uProjection;\nuniform mat4 uInvProjection;\n\nuniform float uRadius;\nuniform float uBias;\n\nfloat smootherstep(float edge0, float edge1, float x) {\n x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n return x * x * x * (x * (x * 6.0 - 15.0) + 10.0);\n}\n\nfloat noise(const in vec2 coords) {\n float a = 12.9898;\n float b = 78.233;\n float c = 43758.5453;\n float dt = dot(coords, vec2(a,b));\n float sn = mod(dt, PI);\n return abs(fract(sin(sn) * c)); // is abs necessary?\n}\n\nvec2 getNoiseVec2(const in vec2 coords) {\n return vec2(noise(coords), noise(coords + vec2(PI, 2.71828)));\n}\n\nbool isBackground(const in float depth) {\n return depth == 1.0;\n}\n\nbool outsideBounds(const in vec2 p) {\n return p.x < uBounds.x || p.y < uBounds.y || p.x > uBounds.z || p.y > uBounds.w;\n}\n\nfloat getDepth(const in vec2 coords) {\n if (outsideBounds(coords)) {\n return 1.0;\n } else {\n #ifdef depthTextureSupport\n return texture2D(tDepth, coords).r;\n #else\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n #endif\n }\n}\n\nvec3 normalFromDepth(const in float depth, const in float depth1, const in float depth2, vec2 offset1, vec2 offset2) {\n vec3 p1 = vec3(offset1, depth1 - depth);\n vec3 p2 = vec3(offset2, depth2 - depth);\n\n vec3 normal = cross(p1, p2);\n normal.z = -normal.z;\n\n return normalize(normal);\n}\n\n// StarCraft II Ambient Occlusion by [Filion and McNaughton 2008]\nvoid main(void) {\n vec2 invTexSize = 1.0 / uTexSize;\n vec2 selfCoords = gl_FragCoord.xy * invTexSize;\n\n float selfDepth = getDepth(selfCoords);\n vec2 selfPackedDepth = packUnitIntervalToRG(selfDepth);\n\n if (isBackground(selfDepth)) {\n gl_FragColor = vec4(packUnitIntervalToRG(0.0), selfPackedDepth);\n return;\n }\n\n vec2 offset1 = vec2(0.0, invTexSize.y);\n vec2 offset2 = vec2(invTexSize.x, 0.0);\n\n float selfDepth1 = getDepth(selfCoords + offset1);\n float selfDepth2 = getDepth(selfCoords + offset2);\n\n vec3 selfViewNormal = normalFromDepth(selfDepth, selfDepth1, selfDepth2, offset1, offset2);\n vec3 selfViewPos = screenSpaceToViewSpace(vec3(selfCoords, selfDepth), uInvProjection);\n\n vec3 randomVec = normalize(vec3(getNoiseVec2(selfCoords) * 2.0 - 1.0, 0.0));\n\n vec3 tangent = normalize(randomVec - selfViewNormal * dot(randomVec, selfViewNormal));\n vec3 bitangent = cross(selfViewNormal, tangent);\n mat3 TBN = mat3(tangent, bitangent, selfViewNormal);\n\n float occlusion = 0.0;\n for(int i = 0; i < dNSamples; i++){\n vec3 sampleViewPos = TBN * uSamples[i];\n sampleViewPos = selfViewPos + sampleViewPos * uRadius;\n\n vec4 offset = vec4(sampleViewPos, 1.0);\n offset = uProjection * offset;\n offset.xyz = (offset.xyz / offset.w) * 0.5 + 0.5;\n\n float sampleViewZ = screenSpaceToViewSpace(vec3(offset.xy, getDepth(offset.xy)), uInvProjection).z;\n\n occlusion += step(sampleViewPos.z + 0.025, sampleViewZ) * smootherstep(0.0, 1.0, uRadius / abs(selfViewPos.z - sampleViewZ));\n }\n occlusion = 1.0 - (uBias * occlusion / float(dNSamples));\n\n vec2 packedOcclusion = packUnitIntervalToRG(occlusion);\n\n gl_FragColor = vec4(packedOcclusion, selfPackedDepth);\n}\n";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -7,10 +7,12 @@ import { Texture, TextureFilter } from './texture';
|
|
|
7
7
|
import { Framebuffer } from './framebuffer';
|
|
8
8
|
import { WebGLResources } from './resources';
|
|
9
9
|
import { GLRenderingContext } from './compat';
|
|
10
|
+
import { Renderbuffer } from './renderbuffer';
|
|
10
11
|
export interface RenderTarget {
|
|
11
12
|
readonly id: number;
|
|
12
13
|
readonly texture: Texture;
|
|
13
14
|
readonly framebuffer: Framebuffer;
|
|
15
|
+
readonly depthRenderbuffer: Renderbuffer | null;
|
|
14
16
|
getWidth: () => number;
|
|
15
17
|
getHeight: () => number;
|
|
16
18
|
/** binds framebuffer */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -39,6 +39,7 @@ function createRenderTarget(gl, resources, _width, _height, depth, type, filter)
|
|
|
39
39
|
id: getNextRenderTargetId(),
|
|
40
40
|
texture: targetTexture,
|
|
41
41
|
framebuffer: framebuffer,
|
|
42
|
+
depthRenderbuffer: depthRenderbuffer,
|
|
42
43
|
getWidth: function () { return _width; },
|
|
43
44
|
getHeight: function () { return _height; },
|
|
44
45
|
bind: function () {
|
|
@@ -75,6 +76,7 @@ function createNullRenderTarget(gl) {
|
|
|
75
76
|
id: getNextRenderTargetId(),
|
|
76
77
|
texture: (0, texture_1.createNullTexture)(gl),
|
|
77
78
|
framebuffer: (0, framebuffer_1.createNullFramebuffer)(),
|
|
79
|
+
depthRenderbuffer: null,
|
|
78
80
|
getWidth: function () { return 0; },
|
|
79
81
|
getHeight: function () { return 0; },
|
|
80
82
|
bind: function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -13,6 +13,7 @@ export interface Renderbuffer {
|
|
|
13
13
|
readonly id: number;
|
|
14
14
|
bind: () => void;
|
|
15
15
|
attachFramebuffer: (framebuffer: Framebuffer) => void;
|
|
16
|
+
detachFramebuffer: (framebuffer: Framebuffer) => void;
|
|
16
17
|
setSize: (width: number, height: number) => void;
|
|
17
18
|
reset: () => void;
|
|
18
19
|
destroy: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -62,6 +62,13 @@ function createRenderbuffer(gl, format, attachment, _width, _height) {
|
|
|
62
62
|
if (debug_1.isDebugMode)
|
|
63
63
|
(0, framebuffer_1.checkFramebufferStatus)(gl);
|
|
64
64
|
},
|
|
65
|
+
detachFramebuffer: function (framebuffer) {
|
|
66
|
+
framebuffer.bind();
|
|
67
|
+
bind();
|
|
68
|
+
gl.framebufferRenderbuffer(gl.FRAMEBUFFER, _attachment, gl.RENDERBUFFER, null);
|
|
69
|
+
if (debug_1.isDebugMode)
|
|
70
|
+
(0, framebuffer_1.checkFramebufferStatus)(gl);
|
|
71
|
+
},
|
|
65
72
|
setSize: function (width, height) {
|
|
66
73
|
_width = width;
|
|
67
74
|
_height = height;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -40,6 +40,10 @@ export declare type WebGLState = {
|
|
|
40
40
|
cullFace: (mode: number) => void;
|
|
41
41
|
/** sets whether writing into the depth buffer is enabled or disabled */
|
|
42
42
|
depthMask: (flag: boolean) => void;
|
|
43
|
+
/** specifies the depth value used when clearing depth buffer, used when calling `gl.clear` */
|
|
44
|
+
clearDepth: (depth: number) => void;
|
|
45
|
+
/** sets the depth comparison function */
|
|
46
|
+
depthFunc: (func: number) => void;
|
|
43
47
|
/** sets which color components to enable or to disable */
|
|
44
48
|
colorMask: (red: boolean, green: boolean, blue: boolean, alpha: boolean) => void;
|
|
45
49
|
/** specifies the color values used when clearing color buffers, used when calling `gl.clear`, clamped to [0, 1] */
|
|
@@ -52,6 +56,8 @@ export declare type WebGLState = {
|
|
|
52
56
|
blendEquation: (mode: number) => void;
|
|
53
57
|
/** set the RGB blend equation and alpha blend equation separately, determines how a new pixel is combined with an existing */
|
|
54
58
|
blendEquationSeparate: (modeRGB: number, modeAlpha: number) => void;
|
|
59
|
+
/** specifies the source and destination blending factors, clamped to [0, 1] */
|
|
60
|
+
blendColor: (red: number, green: number, blue: number, alpha: number) => void;
|
|
55
61
|
enableVertexAttrib: (index: number) => void;
|
|
56
62
|
clearVertexAttribsState: () => void;
|
|
57
63
|
disableUnusedVertexAttribs: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -11,12 +11,15 @@ function createState(gl) {
|
|
|
11
11
|
var currentFrontFace = gl.getParameter(gl.FRONT_FACE);
|
|
12
12
|
var currentCullFace = gl.getParameter(gl.CULL_FACE_MODE);
|
|
13
13
|
var currentDepthMask = gl.getParameter(gl.DEPTH_WRITEMASK);
|
|
14
|
+
var currentClearDepth = gl.getParameter(gl.DEPTH_CLEAR_VALUE);
|
|
15
|
+
var currentDepthFunc = gl.getParameter(gl.DEPTH_FUNC);
|
|
14
16
|
var currentColorMask = gl.getParameter(gl.COLOR_WRITEMASK);
|
|
15
17
|
var currentClearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE);
|
|
16
18
|
var currentBlendSrcRGB = gl.getParameter(gl.BLEND_SRC_RGB);
|
|
17
19
|
var currentBlendDstRGB = gl.getParameter(gl.BLEND_DST_RGB);
|
|
18
20
|
var currentBlendSrcAlpha = gl.getParameter(gl.BLEND_SRC_ALPHA);
|
|
19
21
|
var currentBlendDstAlpha = gl.getParameter(gl.BLEND_DST_ALPHA);
|
|
22
|
+
var currentBlendColor = gl.getParameter(gl.BLEND_COLOR);
|
|
20
23
|
var currentBlendEqRGB = gl.getParameter(gl.BLEND_EQUATION_RGB);
|
|
21
24
|
var currentBlendEqAlpha = gl.getParameter(gl.BLEND_EQUATION_ALPHA);
|
|
22
25
|
var maxVertexAttribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS);
|
|
@@ -61,6 +64,18 @@ function createState(gl) {
|
|
|
61
64
|
currentDepthMask = flag;
|
|
62
65
|
}
|
|
63
66
|
},
|
|
67
|
+
clearDepth: function (depth) {
|
|
68
|
+
if (depth !== currentClearDepth) {
|
|
69
|
+
gl.clearDepth(depth);
|
|
70
|
+
currentClearDepth = depth;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
depthFunc: function (func) {
|
|
74
|
+
if (func !== currentDepthFunc) {
|
|
75
|
+
gl.depthFunc(func);
|
|
76
|
+
currentDepthFunc = func;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
64
79
|
colorMask: function (red, green, blue, alpha) {
|
|
65
80
|
if (red !== currentColorMask[0] || green !== currentColorMask[1] || blue !== currentColorMask[2] || alpha !== currentColorMask[3]) {
|
|
66
81
|
gl.colorMask(red, green, blue, alpha);
|
|
@@ -111,6 +126,15 @@ function createState(gl) {
|
|
|
111
126
|
currentBlendEqAlpha = modeAlpha;
|
|
112
127
|
}
|
|
113
128
|
},
|
|
129
|
+
blendColor: function (red, green, blue, alpha) {
|
|
130
|
+
if (red !== currentBlendColor[0] || green !== currentBlendColor[1] || blue !== currentBlendColor[2] || alpha !== currentBlendColor[3]) {
|
|
131
|
+
gl.blendColor(red, green, blue, alpha);
|
|
132
|
+
currentBlendColor[0] = red;
|
|
133
|
+
currentBlendColor[1] = green;
|
|
134
|
+
currentBlendColor[2] = blue;
|
|
135
|
+
currentBlendColor[3] = alpha;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
114
138
|
enableVertexAttrib: function (index) {
|
|
115
139
|
gl.enableVertexAttribArray(index);
|
|
116
140
|
vertexAttribsState[index] = 1;
|
|
@@ -127,12 +151,15 @@ function createState(gl) {
|
|
|
127
151
|
currentFrontFace = gl.getParameter(gl.FRONT_FACE);
|
|
128
152
|
currentCullFace = gl.getParameter(gl.CULL_FACE_MODE);
|
|
129
153
|
currentDepthMask = gl.getParameter(gl.DEPTH_WRITEMASK);
|
|
154
|
+
currentClearDepth = gl.getParameter(gl.DEPTH_CLEAR_VALUE);
|
|
155
|
+
currentDepthFunc = gl.getParameter(gl.DEPTH_FUNC);
|
|
130
156
|
currentColorMask = gl.getParameter(gl.COLOR_WRITEMASK);
|
|
131
157
|
currentClearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE);
|
|
132
158
|
currentBlendSrcRGB = gl.getParameter(gl.BLEND_SRC_RGB);
|
|
133
159
|
currentBlendDstRGB = gl.getParameter(gl.BLEND_DST_RGB);
|
|
134
160
|
currentBlendSrcAlpha = gl.getParameter(gl.BLEND_SRC_ALPHA);
|
|
135
161
|
currentBlendDstAlpha = gl.getParameter(gl.BLEND_DST_ALPHA);
|
|
162
|
+
currentBlendColor = gl.getParameter(gl.BLEND_COLOR);
|
|
136
163
|
currentBlendEqRGB = gl.getParameter(gl.BLEND_EQUATION_RGB);
|
|
137
164
|
currentBlendEqAlpha = gl.getParameter(gl.BLEND_EQUATION_ALPHA);
|
|
138
165
|
maxVertexAttribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS);
|
|
@@ -184,6 +184,9 @@ function createTexture(gl, extensions, kind, _format, _type, _filter) {
|
|
|
184
184
|
(kind.endsWith('depth') && _type !== 'ushort' && _type !== 'float')) {
|
|
185
185
|
throw new Error("texture kind '".concat(kind, "' and type '").concat(_type, "' are incompatible"));
|
|
186
186
|
}
|
|
187
|
+
if (!extensions.depthTexture && _format === 'depth') {
|
|
188
|
+
throw new Error("extension 'WEBGL_depth_texture' needed for 'depth' texture format");
|
|
189
|
+
}
|
|
187
190
|
var target = getTarget(gl, kind);
|
|
188
191
|
var filter = getFilter(gl, _filter);
|
|
189
192
|
var format = getFormat(gl, _format, _type);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
|
-
* Code-generated 'BIRD' schema file. Dictionary versions: mmCIF 5.
|
|
4
|
+
* Code-generated 'BIRD' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
5
5
|
*
|
|
6
6
|
* @author molstar/ciftools package
|
|
7
7
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
|
-
* Code-generated 'BIRD' schema file. Dictionary versions: mmCIF 5.
|
|
5
|
+
* Code-generated 'BIRD' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
6
6
|
*
|
|
7
7
|
* @author molstar/ciftools package
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
|
-
* Code-generated 'CCD' schema file. Dictionary versions: mmCIF 5.
|
|
4
|
+
* Code-generated 'CCD' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
5
5
|
*
|
|
6
6
|
* @author molstar/ciftools package
|
|
7
7
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
|
-
* Code-generated 'CCD' schema file. Dictionary versions: mmCIF 5.
|
|
5
|
+
* Code-generated 'CCD' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
6
6
|
*
|
|
7
7
|
* @author molstar/ciftools package
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2017-
|
|
2
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* Code-generated 'CifCore' schema file. Dictionary versions: CifCore 3.1.0.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2017-
|
|
3
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* Code-generated 'CifCore' schema file. Dictionary versions: CifCore 3.1.0.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
|
-
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.
|
|
4
|
+
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
5
5
|
*
|
|
6
6
|
* @author molstar/ciftools package
|
|
7
7
|
*/
|
|
@@ -903,8 +903,7 @@ export declare const mmCIF_Schema: {
|
|
|
903
903
|
*/
|
|
904
904
|
entity_poly_seq: {
|
|
905
905
|
/**
|
|
906
|
-
* This data item is a pointer to
|
|
907
|
-
* ENTITY_POLY category.
|
|
906
|
+
* This data item is a pointer to _entity.id in the ENTITY category.
|
|
908
907
|
*/
|
|
909
908
|
entity_id: Schema.Str;
|
|
910
909
|
/**
|
|
@@ -4926,7 +4925,7 @@ export declare const mmCIF_Schema: {
|
|
|
4926
4925
|
/**
|
|
4927
4926
|
* The type of data held in the dataset.
|
|
4928
4927
|
*/
|
|
4929
|
-
content_type: Schema.Aliased<"target" | "other" | "template structure" | "polymeric template library" | "spatial restraints" | "target-template alignment" | "coevolution MSA" | "model coordinates">;
|
|
4928
|
+
content_type: Schema.Aliased<"target" | "other" | "reference database" | "template structure" | "polymeric template library" | "spatial restraints" | "target-template alignment" | "coevolution MSA" | "model coordinates" | "input structure">;
|
|
4930
4929
|
/**
|
|
4931
4930
|
* Details for other content types.
|
|
4932
4931
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
|
-
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.
|
|
5
|
+
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.358, IHM 1.17, MA 1.4.0.
|
|
6
6
|
*
|
|
7
7
|
* @author molstar/ciftools package
|
|
8
8
|
*/
|
|
@@ -915,8 +915,7 @@ exports.mmCIF_Schema = {
|
|
|
915
915
|
*/
|
|
916
916
|
entity_poly_seq: {
|
|
917
917
|
/**
|
|
918
|
-
* This data item is a pointer to
|
|
919
|
-
* ENTITY_POLY category.
|
|
918
|
+
* This data item is a pointer to _entity.id in the ENTITY category.
|
|
920
919
|
*/
|
|
921
920
|
entity_id: str,
|
|
922
921
|
/**
|
|
@@ -119,7 +119,7 @@ function parseBinary(taskCtx, data, name) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function parseDx(data, name) {
|
|
122
|
-
return mol_task_1.Task.create('Parse
|
|
122
|
+
return mol_task_1.Task.create('Parse DX', function (taskCtx) {
|
|
123
123
|
if (typeof data === 'string')
|
|
124
124
|
return parseText(taskCtx, data, name);
|
|
125
125
|
return parseBinary(taskCtx, data, name);
|
|
@@ -8,11 +8,12 @@ import { Writer } from './writer';
|
|
|
8
8
|
import { Encoder, Category } from './cif/encoder';
|
|
9
9
|
import { ComponentAtom } from '../../mol-model-formats/structure/property/atoms/chem_comp';
|
|
10
10
|
import { ComponentBond } from '../../mol-model-formats/structure/property/bonds/chem_comp';
|
|
11
|
+
import { ElementSymbol } from '../../mol-model/structure/model/types';
|
|
11
12
|
interface Atom {
|
|
12
13
|
Cartn_x: number;
|
|
13
14
|
Cartn_y: number;
|
|
14
15
|
Cartn_z: number;
|
|
15
|
-
type_symbol:
|
|
16
|
+
type_symbol: ElementSymbol;
|
|
16
17
|
index: number;
|
|
17
18
|
}
|
|
18
19
|
declare function Atom(partial: any): Atom;
|
|
@@ -39,7 +40,8 @@ export declare abstract class LigandEncoder implements Encoder<string> {
|
|
|
39
40
|
getData(): string;
|
|
40
41
|
protected getAtoms<Ctx>(instance: Category.Instance<Ctx>, source: any): Map<string, Atom>;
|
|
41
42
|
private _getAtoms;
|
|
42
|
-
protected skipHydrogen(type_symbol:
|
|
43
|
+
protected skipHydrogen(type_symbol: ElementSymbol): boolean;
|
|
44
|
+
protected isHydrogen(type_symbol: ElementSymbol): boolean;
|
|
43
45
|
private getSortedFields;
|
|
44
46
|
private getField;
|
|
45
47
|
protected getName<Ctx>(instance: Category.Instance<Ctx>, source: any): string;
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.LigandEncoder = void 0;
|
|
9
9
|
var tslib_1 = require("tslib");
|
|
10
10
|
var mol_util_1 = require("../../mol-util");
|
|
11
|
+
var common_1 = require("../../mol-model/structure/structure/unit/bonds/common");
|
|
11
12
|
function Atom(partial) {
|
|
12
13
|
return tslib_1.__assign({}, partial);
|
|
13
14
|
}
|
|
@@ -80,11 +81,12 @@ var LigandEncoder = /** @class */ (function () {
|
|
|
80
81
|
while (it_1.hasNext) {
|
|
81
82
|
var key = it_1.move();
|
|
82
83
|
var lai = label_atom_id.value(key, data, index);
|
|
84
|
+
// ignore all alternate locations after the first
|
|
85
|
+
if (atoms.has(lai))
|
|
86
|
+
continue;
|
|
83
87
|
var ts = type_symbol.value(key, data, index);
|
|
84
|
-
if (this.skipHydrogen(ts))
|
|
85
|
-
index++;
|
|
88
|
+
if (this.skipHydrogen(ts))
|
|
86
89
|
continue;
|
|
87
|
-
}
|
|
88
90
|
var a = {};
|
|
89
91
|
for (var _f = 0, _fl = fields.length; _f < _fl; _f++) {
|
|
90
92
|
var f = fields[_f];
|
|
@@ -102,7 +104,10 @@ var LigandEncoder = /** @class */ (function () {
|
|
|
102
104
|
if (this.hydrogens) {
|
|
103
105
|
return false;
|
|
104
106
|
}
|
|
105
|
-
return type_symbol
|
|
107
|
+
return this.isHydrogen(type_symbol);
|
|
108
|
+
};
|
|
109
|
+
LigandEncoder.prototype.isHydrogen = function (type_symbol) {
|
|
110
|
+
return (0, common_1.isHydrogen)((0, common_1.getElementIdx)(type_symbol));
|
|
106
111
|
};
|
|
107
112
|
LigandEncoder.prototype.getSortedFields = function (instance, names) {
|
|
108
113
|
var _this = this;
|
|
@@ -36,13 +36,25 @@ var MolEncoder = /** @class */ (function (_super) {
|
|
|
36
36
|
mol_util_1.StringBuilder.writeSafe(this.builder, "".concat(name, "\n ").concat(this.encoder, "\n\n"));
|
|
37
37
|
var atomMap = this.componentAtomData.entries.get(name);
|
|
38
38
|
var bondMap = this.componentBondData.entries.get(name);
|
|
39
|
+
// happens for the unknown ligands (UNL)
|
|
40
|
+
if (!atomMap)
|
|
41
|
+
throw Error("The Chemical Component Dictionary doesn't hold any atom data for ".concat(name));
|
|
39
42
|
var bondCount = 0;
|
|
40
43
|
var chiral = false;
|
|
41
44
|
// traverse once to determine all actually present atoms
|
|
42
45
|
var atoms = this.getAtoms(instance, source);
|
|
43
46
|
atoms.forEach(function (atom1, label_atom_id1) {
|
|
44
|
-
var i1 = atom1.index;
|
|
45
|
-
var
|
|
47
|
+
var i1 = atom1.index, type_symbol1 = atom1.type_symbol;
|
|
48
|
+
var atomMapData1 = atomMap.map.get(label_atom_id1);
|
|
49
|
+
if (!atomMapData1) {
|
|
50
|
+
if (_this.isHydrogen(type_symbol1)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
throw Error("Unknown atom ".concat(label_atom_id1, " for component ").concat(name));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var charge = atomMapData1.charge, stereo_config = atomMapData1.stereo_config;
|
|
46
58
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_x.toFixed(4), 10);
|
|
47
59
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_y.toFixed(4), 10);
|
|
48
60
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_z.toFixed(4), 10);
|
|
@@ -60,8 +72,8 @@ var MolEncoder = /** @class */ (function (_super) {
|
|
|
60
72
|
var atom2 = atoms.get(label_atom_id2);
|
|
61
73
|
if (!atom2)
|
|
62
74
|
return;
|
|
63
|
-
var i2 = atom2.index
|
|
64
|
-
if (i1 < i2
|
|
75
|
+
var i2 = atom2.index;
|
|
76
|
+
if (i1 < i2) {
|
|
65
77
|
var order = bond.order;
|
|
66
78
|
mol_util_1.StringBuilder.writeIntegerPadLeft(bonds, i1 + 1, 3);
|
|
67
79
|
mol_util_1.StringBuilder.writeIntegerPadLeft(bonds, i2 + 1, 3);
|
|
@@ -30,20 +30,33 @@ var Mol2Encoder = /** @class */ (function (_super) {
|
|
|
30
30
|
// write header
|
|
31
31
|
var name = this.getName(instance, source);
|
|
32
32
|
mol_util_1.StringBuilder.writeSafe(this.builder, "# Name: ".concat(name, "\n# Created by ").concat(this.encoder, "\n\n"));
|
|
33
|
+
var atomMap = this.componentAtomData.entries.get(name);
|
|
33
34
|
var bondMap = this.componentBondData.entries.get(name);
|
|
35
|
+
// happens for the unknown ligands (UNL)
|
|
36
|
+
if (!atomMap)
|
|
37
|
+
throw Error("The Chemical Component Dictionary doesn't hold any atom data for ".concat(name));
|
|
34
38
|
var bondCount = 0;
|
|
35
39
|
var atoms = this.getAtoms(instance, source);
|
|
36
40
|
mol_util_1.StringBuilder.writeSafe(a, '@<TRIPOS>ATOM\n');
|
|
37
41
|
mol_util_1.StringBuilder.writeSafe(b, '@<TRIPOS>BOND\n');
|
|
38
42
|
atoms.forEach(function (atom1, label_atom_id1) {
|
|
39
|
-
var i1 = atom1.index;
|
|
43
|
+
var i1 = atom1.index, type_symbol1 = atom1.type_symbol;
|
|
44
|
+
var atomMapData1 = atomMap.map.get(label_atom_id1);
|
|
45
|
+
if (!atomMapData1) {
|
|
46
|
+
if (_this.isHydrogen(type_symbol1)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw Error("Unknown atom ".concat(label_atom_id1, " for component ").concat(name));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
40
53
|
if (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) {
|
|
41
54
|
bondMap.map.get(label_atom_id1).forEach(function (bond, label_atom_id2) {
|
|
42
55
|
var atom2 = atoms.get(label_atom_id2);
|
|
43
56
|
if (!atom2)
|
|
44
57
|
return;
|
|
45
|
-
var i2 = atom2.index
|
|
46
|
-
if (i1 < i2
|
|
58
|
+
var i2 = atom2.index;
|
|
59
|
+
if (i1 < i2) {
|
|
47
60
|
var order = bond.order, flags = bond.flags;
|
|
48
61
|
var ar = types_1.BondType.is(16 /* Aromatic */, flags);
|
|
49
62
|
mol_util_1.StringBuilder.writeSafe(b, "".concat(++bondCount, " ").concat(i1 + 1, " ").concat(i2 + 1, " ").concat(ar ? 'ar' : order));
|
|
@@ -51,7 +64,7 @@ var Mol2Encoder = /** @class */ (function (_super) {
|
|
|
51
64
|
}
|
|
52
65
|
});
|
|
53
66
|
}
|
|
54
|
-
var sybyl = (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) ? _this.mapToSybyl(label_atom_id1,
|
|
67
|
+
var sybyl = (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) ? _this.mapToSybyl(label_atom_id1, type_symbol1, bondMap) : type_symbol1;
|
|
55
68
|
mol_util_1.StringBuilder.writeSafe(a, "".concat(i1 + 1, " ").concat(label_atom_id1, " ").concat(atom1.Cartn_x.toFixed(3), " ").concat(atom1.Cartn_y.toFixed(3), " ").concat(atom1.Cartn_z.toFixed(3), " ").concat(sybyl, " 1 ").concat(name, " 0.000\n"));
|
|
56
69
|
});
|
|
57
70
|
// could write something like 'SMALL\nNO_CHARGES', for now let's write **** indicating non-optional, yet missing, string values
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -111,12 +111,12 @@ function build(data, boundary, cellSizeOrCount) {
|
|
|
111
111
|
// need to expand the grid bounds to avoid rounding errors
|
|
112
112
|
var expandedBox = box3d_1.Box3D.expand((0, box3d_1.Box3D)(), boundary.box, linear_algebra_1.Vec3.create(0.5, 0.5, 0.5));
|
|
113
113
|
var indices = data.indices;
|
|
114
|
-
var S = box3d_1.Box3D.size(linear_algebra_1.Vec3
|
|
114
|
+
var S = box3d_1.Box3D.size((0, linear_algebra_1.Vec3)(), expandedBox);
|
|
115
115
|
var delta, size;
|
|
116
116
|
var elementCount = int_1.OrderedSet.size(indices);
|
|
117
117
|
var cellCount = typeof cellSizeOrCount === 'number' ? cellSizeOrCount : 32;
|
|
118
118
|
var cellSize = Array.isArray(cellSizeOrCount) && cellSizeOrCount;
|
|
119
|
-
if (cellSize) {
|
|
119
|
+
if (cellSize && !linear_algebra_1.Vec3.isZero(cellSize)) {
|
|
120
120
|
size = [Math.ceil(S[0] / cellSize[0]), Math.ceil(S[1] / cellSize[1]), Math.ceil(S[2] / cellSize[2])];
|
|
121
121
|
delta = cellSize;
|
|
122
122
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2017-
|
|
2
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { SecondaryStructureType } from '../types';
|
|
7
8
|
import { ResidueIndex } from '../indexing';
|
|
9
|
+
import { mmCIF_Schema } from '../../../../mol-io/reader/cif/schema/mmcif';
|
|
8
10
|
/** Secondary structure "indexed" by residues. */
|
|
9
11
|
interface SecondaryStructure {
|
|
10
12
|
readonly type: ArrayLike<SecondaryStructureType>;
|
|
@@ -33,7 +35,7 @@ declare namespace SecondaryStructure {
|
|
|
33
35
|
interface Helix {
|
|
34
36
|
kind: 'helix';
|
|
35
37
|
flags: SecondaryStructureType;
|
|
36
|
-
type_id:
|
|
38
|
+
type_id: mmCIF_Schema['struct_conf']['conf_type_id']['T'];
|
|
37
39
|
helix_class: string;
|
|
38
40
|
details?: string;
|
|
39
41
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2017-
|
|
3
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
7
|
*/
|
|
7
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
9
|
exports.SecondaryStructure = void 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* Code-generated ion names params file. Names extracted from CCD components.
|
|
5
5
|
*
|
|
6
|
-
* @author molstar/chem-comp-dict/create-
|
|
6
|
+
* @author molstar/chem-comp-dict/create-ions cli
|
|
7
7
|
*/
|
|
8
8
|
export declare const IonNames: Set<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* Code-generated ion names params file. Names extracted from CCD components.
|
|
6
6
|
*
|
|
7
|
-
* @author molstar/chem-comp-dict/create-
|
|
7
|
+
* @author molstar/chem-comp-dict/create-ions cli
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.IonNames = void 0;
|