molstar 3.4.0 → 3.6.1
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 -197
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +12 -14
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/index.js +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/cli/cif2bcif/converter.js +1 -1
- package/lib/cli/cif2bcif/index.js +4 -4
- package/lib/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/cli/cifschema/util/generate.js +12 -3
- package/lib/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/apps/docking-viewer/index.js +2 -2
- package/lib/commonjs/apps/viewer/app.js +2 -2
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/commonjs/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/cli/cif2bcif/index.js +4 -4
- package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/commonjs/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/generate.js +12 -3
- package/lib/commonjs/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.js +2 -2
- package/lib/commonjs/examples/basic-wrapper/index.js +2 -2
- package/lib/commonjs/examples/lighting/index.js +2 -2
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.d.ts +397 -2
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +223 -131
- package/lib/commonjs/extensions/dnatco/confal-pyramids/property.js +1 -3
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +18 -19
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/commonjs/mol-data/db/column.d.ts +10 -3
- package/lib/commonjs/mol-data/db/column.js +39 -17
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +5 -3
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/commonjs/mol-gl/shader/image.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.js +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.js +12 -12
- package/lib/commonjs/mol-gl/webgl/context.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/context.js +2 -2
- package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/program.js +10 -4
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/commonjs/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema.js +22 -2
- package/lib/commonjs/mol-io/writer/mol/encoder.js +1 -1
- package/lib/commonjs/mol-math/geometry/common.d.ts +2 -1
- package/lib/commonjs/mol-math/geometry/common.js +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.js +2 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +7 -7
- package/lib/commonjs/mol-math/geometry/gaussian-density.d.ts +2 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density.js +1 -1
- package/lib/commonjs/mol-math/geometry/molecular-surface.d.ts +2 -1
- package/lib/commonjs/mol-math/geometry/molecular-surface.js +2 -2
- package/lib/commonjs/mol-math/geometry/primitives/box3d.js +2 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +12 -6
- package/lib/commonjs/mol-model/structure/model/model.js +14 -6
- package/lib/commonjs/mol-model/structure/model/properties/common.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +19 -17
- package/lib/commonjs/mol-model/structure/model/types.js +30 -31
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/commonjs/mol-model-formats/structure/common/component.js +46 -46
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -0
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/commonjs/mol-plugin-ui/react18.d.ts +11 -0
- package/lib/commonjs/mol-plugin-ui/react18.js +38 -0
- package/lib/commonjs/mol-plugin-ui/state/common.js +6 -7
- package/lib/commonjs/mol-plugin-ui/structure/focus.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
- 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-repr/shape/loci/angle.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.js +2 -3
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -9
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +1 -3
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +2 -27
- package/lib/commonjs/mol-repr/util.d.ts +2 -1
- package/lib/commonjs/mol-repr/util.js +2 -2
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -0
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/alpha-orbitals/index.js +1 -1
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/basic-wrapper/index.js +1 -1
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/lighting/index.js +1 -1
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/examples/proteopedia-wrapper/index.js +1 -1
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/anvil/representation.d.ts +4 -0
- package/lib/extensions/cellpack/representation.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/color.d.ts +397 -2
- package/lib/extensions/dnatco/confal-pyramids/color.js +224 -132
- package/lib/extensions/dnatco/confal-pyramids/property.js +1 -3
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/dnatco/confal-pyramids/util.js +19 -20
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/mol-data/db/column.d.ts +10 -3
- package/lib/mol-data/db/column.js +39 -18
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +5 -3
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/mol-gl/shader/image.frag.js +2 -2
- package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/mol-gl/shader/lines.frag.js +2 -2
- package/lib/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/mol-gl/shader/points.frag.js +2 -2
- package/lib/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/mol-gl/shader/text.frag.js +2 -2
- package/lib/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/mol-gl/webgl/buffer.js +12 -12
- package/lib/mol-gl/webgl/context.d.ts +1 -1
- package/lib/mol-gl/webgl/context.js +2 -2
- package/lib/mol-gl/webgl/program.d.ts +1 -1
- package/lib/mol-gl/webgl/program.js +10 -4
- package/lib/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema.js +22 -2
- package/lib/mol-io/writer/mol/encoder.js +1 -1
- package/lib/mol-math/geometry/common.d.ts +2 -1
- package/lib/mol-math/geometry/common.js +1 -1
- package/lib/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
- package/lib/mol-math/geometry/gaussian-density/cpu.js +2 -2
- package/lib/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
- package/lib/mol-math/geometry/gaussian-density/gpu.js +7 -7
- package/lib/mol-math/geometry/gaussian-density.d.ts +2 -2
- package/lib/mol-math/geometry/gaussian-density.js +1 -1
- package/lib/mol-math/geometry/molecular-surface.d.ts +2 -1
- package/lib/mol-math/geometry/molecular-surface.js +2 -2
- package/lib/mol-math/geometry/primitives/box3d.js +2 -1
- package/lib/mol-math/geometry/primitives/sphere3d.js +12 -6
- package/lib/mol-model/structure/model/model.js +14 -6
- package/lib/mol-model/structure/model/properties/common.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +19 -17
- package/lib/mol-model/structure/model/types.js +30 -31
- package/lib/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/mol-model-formats/structure/common/component.js +46 -46
- package/lib/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -2
- package/lib/mol-plugin/commands.d.ts +1 -0
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/mol-plugin-ui/react18.d.ts +11 -0
- package/lib/mol-plugin-ui/react18.js +34 -0
- 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/state/common.js +7 -8
- package/lib/mol-plugin-ui/structure/focus.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +2 -2
- package/lib/mol-plugin-ui/task.d.ts +2 -21
- package/lib/mol-plugin-ui/task.js +40 -46
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/mol-repr/structure/params.d.ts +4 -0
- package/lib/mol-repr/structure/registry.d.ts +10 -0
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/gaussian-density-volume.js +2 -3
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +10 -10
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +4 -4
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.js +5 -5
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/util/common.d.ts +1 -3
- package/lib/mol-repr/structure/visual/util/common.js +1 -24
- package/lib/mol-repr/util.d.ts +2 -1
- package/lib/mol-repr/util.js +2 -2
- package/lib/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/mol-repr/volume/registry.d.ts +1 -0
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/package.json +162 -160
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -10,15 +10,17 @@ export function getFieldType(type, description, values, container) {
|
|
|
10
10
|
switch (type) {
|
|
11
11
|
// mmCIF
|
|
12
12
|
case 'code':
|
|
13
|
-
case 'ucode':
|
|
14
13
|
case 'line':
|
|
15
|
-
case 'uline':
|
|
16
14
|
case 'text':
|
|
17
15
|
case 'char':
|
|
18
|
-
case 'uchar3':
|
|
19
|
-
case 'uchar1':
|
|
20
16
|
case 'boolean':
|
|
21
17
|
return values && values.length ? EnumCol(values, 'str', description) : StrCol(description);
|
|
18
|
+
case 'ucode':
|
|
19
|
+
case 'uline':
|
|
20
|
+
case 'uchar3':
|
|
21
|
+
case 'uchar1':
|
|
22
|
+
// only force lower-case for enums
|
|
23
|
+
return values && values.length ? EnumCol(values.map(function (x) { return x.toLowerCase(); }), 'lstr', description) : StrCol(description);
|
|
22
24
|
case 'aliasname':
|
|
23
25
|
case 'name':
|
|
24
26
|
case 'idname':
|
|
@@ -1,12 +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 Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
6
6
|
import { indentString } from '../../../mol-util/string';
|
|
7
7
|
import { FieldPath } from '../../../mol-io/reader/cif/schema';
|
|
8
8
|
function header(name, info, moldataImportPath) {
|
|
9
|
-
return "/**\n * Copyright (c) 2017-
|
|
9
|
+
return "/**\n * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
|
|
10
10
|
}
|
|
11
11
|
function footer(name) {
|
|
12
12
|
return "\nexport type ".concat(name, "_Schema = typeof ").concat(name, "_Schema;\nexport interface ").concat(name, "_Database extends Database<").concat(name, "_Schema> {};");
|
|
@@ -20,7 +20,10 @@ function getTypeShorthands(schema, fields) {
|
|
|
20
20
|
Object.keys(columns).forEach(function (columnName) {
|
|
21
21
|
if (fields && !fields[table][columnName])
|
|
22
22
|
return;
|
|
23
|
-
|
|
23
|
+
var col = schema.tables[table].columns[columnName];
|
|
24
|
+
if (col.type === 'enum')
|
|
25
|
+
types.add(col.subType);
|
|
26
|
+
types.add(col.type);
|
|
24
27
|
});
|
|
25
28
|
});
|
|
26
29
|
var shorthands = [];
|
|
@@ -29,6 +32,12 @@ function getTypeShorthands(schema, fields) {
|
|
|
29
32
|
case 'str':
|
|
30
33
|
shorthands.push('const str = Schema.str;');
|
|
31
34
|
break;
|
|
35
|
+
case 'ustr':
|
|
36
|
+
shorthands.push('const ustr = Schema.ustr;');
|
|
37
|
+
break;
|
|
38
|
+
case 'lstr':
|
|
39
|
+
shorthands.push('const lstr = Schema.lstr;');
|
|
40
|
+
break;
|
|
32
41
|
case 'int':
|
|
33
42
|
shorthands.push('const int = Schema.int;');
|
|
34
43
|
break;
|
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -40,10 +40,10 @@ export declare type CoordCol = {
|
|
|
40
40
|
export declare function CoordCol(description: string): CoordCol;
|
|
41
41
|
export declare type EnumCol = {
|
|
42
42
|
type: 'enum';
|
|
43
|
-
subType: 'int' | 'str';
|
|
43
|
+
subType: 'int' | 'str' | 'ustr' | 'lstr';
|
|
44
44
|
values: string[];
|
|
45
45
|
} & BaseCol;
|
|
46
|
-
export declare function EnumCol(values: string[], subType: 'int' | 'str', description: string): EnumCol;
|
|
46
|
+
export declare function EnumCol(values: string[], subType: 'int' | 'str' | 'ustr' | 'lstr', description: string): EnumCol;
|
|
47
47
|
export declare type VectorCol = {
|
|
48
48
|
type: 'vector';
|
|
49
49
|
length: number;
|
|
@@ -10,7 +10,7 @@ exports.DockingViewer = exports.setProductionMode = exports.setDebugMode = expor
|
|
|
10
10
|
var tslib_1 = require("tslib");
|
|
11
11
|
var structure_1 = require("../../mol-model/structure");
|
|
12
12
|
var objects_1 = require("../../mol-plugin-state/objects");
|
|
13
|
-
var
|
|
13
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
14
14
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
15
15
|
var behavior_1 = require("../../mol-plugin/behavior");
|
|
16
16
|
var commands_1 = require("../../mol-plugin/commands");
|
|
@@ -118,7 +118,7 @@ var Viewer = /** @class */ (function () {
|
|
|
118
118
|
: elementOrId;
|
|
119
119
|
if (!element)
|
|
120
120
|
throw new Error("Could not get element with id '".concat(elementOrId, "'"));
|
|
121
|
-
return [4 /*yield*/, (0,
|
|
121
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(element, spec)];
|
|
122
122
|
case 1:
|
|
123
123
|
plugin = _b.sent();
|
|
124
124
|
plugin.customState = {
|
|
@@ -28,7 +28,7 @@ var representation_preset_1 = require("../../mol-plugin-state/builder/structure/
|
|
|
28
28
|
var volume_representation_params_1 = require("../../mol-plugin-state/helpers/volume-representation-params");
|
|
29
29
|
var transforms_1 = require("../../mol-plugin-state/transforms");
|
|
30
30
|
var model_1 = require("../../mol-plugin-state/transforms/model");
|
|
31
|
-
var
|
|
31
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
32
32
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
33
33
|
var commands_1 = require("../../mol-plugin/commands");
|
|
34
34
|
var config_1 = require("../../mol-plugin/config");
|
|
@@ -156,7 +156,7 @@ var Viewer = /** @class */ (function () {
|
|
|
156
156
|
: elementOrId;
|
|
157
157
|
if (!element)
|
|
158
158
|
throw new Error("Could not get element with id '".concat(elementOrId, "'"));
|
|
159
|
-
return [4 /*yield*/, (0,
|
|
159
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(element, spec, {
|
|
160
160
|
onBeforeUIRender: function (plugin) {
|
|
161
161
|
// the preset needs to be added before the UI renders otherwise
|
|
162
162
|
// "Download Structure" wont be able to pick it up
|
|
@@ -16,7 +16,7 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
16
16
|
name: import("../../mol-data/db/column").Column.Schema.Str;
|
|
17
17
|
one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
18
18
|
three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
19
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "
|
|
19
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
|
|
20
20
|
pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
|
|
21
21
|
pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
|
|
22
22
|
pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -26,12 +26,12 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
26
26
|
pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
27
27
|
pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
28
28
|
pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
29
|
-
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
30
|
-
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
29
|
+
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
30
|
+
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
31
31
|
pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
32
32
|
pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
33
33
|
pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
|
|
34
|
-
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "
|
|
34
|
+
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
|
|
35
35
|
};
|
|
36
36
|
chem_comp_atom: {
|
|
37
37
|
alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -47,9 +47,9 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
47
47
|
pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
48
48
|
pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
49
49
|
pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
50
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
51
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
52
|
-
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
50
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
|
|
51
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
52
|
+
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
53
53
|
};
|
|
54
54
|
chem_comp_bond: {
|
|
55
55
|
atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -57,13 +57,13 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
57
57
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
58
58
|
value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
|
|
59
59
|
pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
|
|
60
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
61
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
60
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
|
|
61
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
62
62
|
};
|
|
63
63
|
pdbx_chem_comp_descriptor: {
|
|
64
64
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
65
65
|
descriptor: import("../../mol-data/db/column").Column.Schema.Str;
|
|
66
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
66
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
|
|
67
67
|
program: import("../../mol-data/db/column").Column.Schema.Str;
|
|
68
68
|
program_version: import("../../mol-data/db/column").Column.Schema.Str;
|
|
69
69
|
};
|
|
@@ -84,7 +84,7 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
84
84
|
name: import("../../mol-data/db/column").Column.Schema.Str;
|
|
85
85
|
one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
86
86
|
three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
87
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "
|
|
87
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
|
|
88
88
|
pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
|
|
89
89
|
pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
|
|
90
90
|
pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -94,12 +94,12 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
94
94
|
pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
95
95
|
pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
96
96
|
pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
97
|
-
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
98
|
-
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
97
|
+
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
98
|
+
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
99
99
|
pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
100
100
|
pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
101
101
|
pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
|
|
102
|
-
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "
|
|
102
|
+
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
|
|
103
103
|
};
|
|
104
104
|
chem_comp_atom: {
|
|
105
105
|
alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -115,9 +115,9 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
115
115
|
pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
116
116
|
pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
117
117
|
pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
118
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
119
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
120
|
-
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
118
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
|
|
119
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
120
|
+
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
121
121
|
};
|
|
122
122
|
chem_comp_bond: {
|
|
123
123
|
atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -125,13 +125,13 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
125
125
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
126
126
|
value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
|
|
127
127
|
pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
|
|
128
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
129
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
128
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
|
|
129
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
130
130
|
};
|
|
131
131
|
pdbx_chem_comp_descriptor: {
|
|
132
132
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
133
133
|
descriptor: import("../../mol-data/db/column").Column.Schema.Str;
|
|
134
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
134
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
|
|
135
135
|
program: import("../../mol-data/db/column").Column.Schema.Str;
|
|
136
136
|
program_version: import("../../mol-data/db/column").Column.Schema.Str;
|
|
137
137
|
};
|
|
@@ -99,7 +99,7 @@ function classify(name, field) {
|
|
|
99
99
|
function convert(path, asText, hints, filter) {
|
|
100
100
|
var _this = this;
|
|
101
101
|
if (asText === void 0) { asText = false; }
|
|
102
|
-
return mol_task_1.Task.create('
|
|
102
|
+
return mol_task_1.Task.create('Convert CIF', function (ctx) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
103
103
|
var encodingProvider, cif, encoder, maxProgress, _i, _a, b, _b, _c, c, current, _d, _e, b, _f, _g, c, cat, fields, _h, _j, f, ret;
|
|
104
104
|
return tslib_1.__generator(this, function (_k) {
|
|
105
105
|
switch (_k.label) {
|
|
@@ -22,7 +22,7 @@ function process(srcPath, outPath, configPath, filterPath) {
|
|
|
22
22
|
case 0:
|
|
23
23
|
config = configPath ? JSON.parse(fs.readFileSync(configPath, 'utf8')) : void 0;
|
|
24
24
|
filter = filterPath ? fs.readFileSync(filterPath, 'utf8') : void 0;
|
|
25
|
-
return [4 /*yield*/, (0, converter_1.convert)(srcPath,
|
|
25
|
+
return [4 /*yield*/, (0, converter_1.convert)(srcPath, srcPath.toLowerCase().indexOf('.bcif') > 0, config, filter)];
|
|
26
26
|
case 1:
|
|
27
27
|
res = _a.sent();
|
|
28
28
|
return [4 /*yield*/, write(outPath, res)];
|
|
@@ -58,13 +58,13 @@ function run(args) {
|
|
|
58
58
|
}
|
|
59
59
|
var parser = new argparse.ArgumentParser({
|
|
60
60
|
add_help: true,
|
|
61
|
-
description: 'Convert any
|
|
61
|
+
description: 'Convert any BCIF file to a CIF file or vice versa'
|
|
62
62
|
});
|
|
63
63
|
parser.add_argument('src', {
|
|
64
|
-
help: 'Source
|
|
64
|
+
help: 'Source file path'
|
|
65
65
|
});
|
|
66
66
|
parser.add_argument('out', {
|
|
67
|
-
help: 'Output
|
|
67
|
+
help: 'Output file path'
|
|
68
68
|
});
|
|
69
69
|
parser.add_argument('-c', '--config', {
|
|
70
70
|
help: 'Optional encoding strategy/precision config path',
|
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -13,15 +13,17 @@ function getFieldType(type, description, values, container) {
|
|
|
13
13
|
switch (type) {
|
|
14
14
|
// mmCIF
|
|
15
15
|
case 'code':
|
|
16
|
-
case 'ucode':
|
|
17
16
|
case 'line':
|
|
18
|
-
case 'uline':
|
|
19
17
|
case 'text':
|
|
20
18
|
case 'char':
|
|
21
|
-
case 'uchar3':
|
|
22
|
-
case 'uchar1':
|
|
23
19
|
case 'boolean':
|
|
24
20
|
return values && values.length ? (0, schema_1.EnumCol)(values, 'str', description) : (0, schema_1.StrCol)(description);
|
|
21
|
+
case 'ucode':
|
|
22
|
+
case 'uline':
|
|
23
|
+
case 'uchar3':
|
|
24
|
+
case 'uchar1':
|
|
25
|
+
// only force lower-case for enums
|
|
26
|
+
return values && values.length ? (0, schema_1.EnumCol)(values.map(function (x) { return x.toLowerCase(); }), 'lstr', description) : (0, schema_1.StrCol)(description);
|
|
25
27
|
case 'aliasname':
|
|
26
28
|
case 'name':
|
|
27
29
|
case 'idname':
|
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ exports.generate = void 0;
|
|
|
9
9
|
var string_1 = require("../../../mol-util/string");
|
|
10
10
|
var schema_1 = require("../../../mol-io/reader/cif/schema");
|
|
11
11
|
function header(name, info, moldataImportPath) {
|
|
12
|
-
return "/**\n * Copyright (c) 2017-
|
|
12
|
+
return "/**\n * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
|
|
13
13
|
}
|
|
14
14
|
function footer(name) {
|
|
15
15
|
return "\nexport type ".concat(name, "_Schema = typeof ").concat(name, "_Schema;\nexport interface ").concat(name, "_Database extends Database<").concat(name, "_Schema> {};");
|
|
@@ -23,7 +23,10 @@ function getTypeShorthands(schema, fields) {
|
|
|
23
23
|
Object.keys(columns).forEach(function (columnName) {
|
|
24
24
|
if (fields && !fields[table][columnName])
|
|
25
25
|
return;
|
|
26
|
-
|
|
26
|
+
var col = schema.tables[table].columns[columnName];
|
|
27
|
+
if (col.type === 'enum')
|
|
28
|
+
types.add(col.subType);
|
|
29
|
+
types.add(col.type);
|
|
27
30
|
});
|
|
28
31
|
});
|
|
29
32
|
var shorthands = [];
|
|
@@ -32,6 +35,12 @@ function getTypeShorthands(schema, fields) {
|
|
|
32
35
|
case 'str':
|
|
33
36
|
shorthands.push('const str = Schema.str;');
|
|
34
37
|
break;
|
|
38
|
+
case 'ustr':
|
|
39
|
+
shorthands.push('const ustr = Schema.ustr;');
|
|
40
|
+
break;
|
|
41
|
+
case 'lstr':
|
|
42
|
+
shorthands.push('const lstr = Schema.lstr;');
|
|
43
|
+
break;
|
|
35
44
|
case 'int':
|
|
36
45
|
shorthands.push('const int = Schema.int;');
|
|
37
46
|
break;
|
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -40,10 +40,10 @@ export declare type CoordCol = {
|
|
|
40
40
|
export declare function CoordCol(description: string): CoordCol;
|
|
41
41
|
export declare type EnumCol = {
|
|
42
42
|
type: 'enum';
|
|
43
|
-
subType: 'int' | 'str';
|
|
43
|
+
subType: 'int' | 'str' | 'ustr' | 'lstr';
|
|
44
44
|
values: string[];
|
|
45
45
|
} & BaseCol;
|
|
46
|
-
export declare function EnumCol(values: string[], subType: 'int' | 'str', description: string): EnumCol;
|
|
46
|
+
export declare function EnumCol(values: string[], subType: 'int' | 'str' | 'ustr' | 'lstr', description: string): EnumCol;
|
|
47
47
|
export declare type VectorCol = {
|
|
48
48
|
type: 'vector';
|
|
49
49
|
length: number;
|
|
@@ -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
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -11,7 +11,7 @@ var rxjs_1 = require("rxjs");
|
|
|
11
11
|
var operators_1 = require("rxjs/operators");
|
|
12
12
|
var transforms_1 = require("../../extensions/alpha-orbitals/transforms");
|
|
13
13
|
var grid3d_1 = require("../../mol-gl/compute/grid3d");
|
|
14
|
-
var
|
|
14
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
15
15
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
16
16
|
var commands_1 = require("../../mol-plugin/commands");
|
|
17
17
|
var config_1 = require("../../mol-plugin/config");
|
|
@@ -38,7 +38,7 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
38
38
|
case 0:
|
|
39
39
|
defaultSpec = (0, spec_1.DefaultPluginUISpec)();
|
|
40
40
|
_b = this;
|
|
41
|
-
return [4 /*yield*/, (0,
|
|
41
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, tslib_1.__assign(tslib_1.__assign({}, defaultSpec), { layout: {
|
|
42
42
|
initial: {
|
|
43
43
|
isExpanded: false,
|
|
44
44
|
showControls: false
|
|
@@ -10,7 +10,7 @@ var pdbe_1 = require("../../extensions/pdbe");
|
|
|
10
10
|
var loci_1 = require("../../mol-model/loci");
|
|
11
11
|
var structure_1 = require("../../mol-model/structure");
|
|
12
12
|
var model_index_1 = require("../../mol-plugin-state/animation/built-in/model-index");
|
|
13
|
-
var
|
|
13
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
14
14
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
15
15
|
var commands_1 = require("../../mol-plugin/commands");
|
|
16
16
|
var script_1 = require("../../mol-script/script");
|
|
@@ -186,7 +186,7 @@ var BasicWrapper = /** @class */ (function () {
|
|
|
186
186
|
switch (_b.label) {
|
|
187
187
|
case 0:
|
|
188
188
|
_a = this;
|
|
189
|
-
return [4 /*yield*/, (0,
|
|
189
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, tslib_1.__assign(tslib_1.__assign({}, (0, spec_1.DefaultPluginUISpec)()), { layout: {
|
|
190
190
|
initial: {
|
|
191
191
|
isExpanded: false,
|
|
192
192
|
showControls: false
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
var tslib_1 = require("tslib");
|
|
9
|
-
var
|
|
9
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
10
10
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
11
11
|
var commands_1 = require("../../mol-plugin/commands");
|
|
12
12
|
var assets_1 = require("../../mol-util/assets");
|
|
@@ -66,7 +66,7 @@ var LightingDemo = /** @class */ (function () {
|
|
|
66
66
|
switch (_b.label) {
|
|
67
67
|
case 0:
|
|
68
68
|
_a = this;
|
|
69
|
-
return [4 /*yield*/, (0,
|
|
69
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, tslib_1.__assign(tslib_1.__assign({}, (0, spec_1.DefaultPluginUISpec)()), { layout: {
|
|
70
70
|
initial: {
|
|
71
71
|
isExpanded: false,
|
|
72
72
|
showControls: false
|
|
@@ -11,7 +11,7 @@ var canvas3d_1 = require("../../mol-canvas3d/canvas3d");
|
|
|
11
11
|
var model_index_1 = require("../../mol-plugin-state/animation/built-in/model-index");
|
|
12
12
|
var structure_representation_params_1 = require("../../mol-plugin-state/helpers/structure-representation-params");
|
|
13
13
|
var transforms_1 = require("../../mol-plugin-state/transforms");
|
|
14
|
-
var
|
|
14
|
+
var react18_1 = require("../../mol-plugin-ui/react18");
|
|
15
15
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
16
16
|
var transformers_1 = require("../../mol-plugin/behavior/dynamic/volume-streaming/transformers");
|
|
17
17
|
var commands_1 = require("../../mol-plugin/commands");
|
|
@@ -241,7 +241,7 @@ var MolStarProteopediaWrapper = /** @class */ (function () {
|
|
|
241
241
|
switch (_b.label) {
|
|
242
242
|
case 0:
|
|
243
243
|
_a = this;
|
|
244
|
-
return [4 /*yield*/, (0,
|
|
244
|
+
return [4 /*yield*/, (0, react18_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, tslib_1.__assign(tslib_1.__assign({}, (0, spec_1.DefaultPluginUISpec)()), { animations: [
|
|
245
245
|
model_index_1.AnimateModelIndex
|
|
246
246
|
], layout: {
|
|
247
247
|
initial: {
|
|
@@ -18,6 +18,7 @@ declare const BilayerPlanesParams: {
|
|
|
18
18
|
flatShaded: PD.BooleanParam;
|
|
19
19
|
ignoreLight: PD.BooleanParam;
|
|
20
20
|
xrayShaded: PD.BooleanParam;
|
|
21
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
21
22
|
bumpFrequency: PD.Numeric;
|
|
22
23
|
bumpAmplitude: PD.Numeric;
|
|
23
24
|
alpha: PD.Numeric;
|
|
@@ -98,6 +99,7 @@ export declare const MembraneOrientationParams: {
|
|
|
98
99
|
flatShaded: PD.BooleanParam;
|
|
99
100
|
ignoreLight: PD.BooleanParam;
|
|
100
101
|
xrayShaded: PD.BooleanParam;
|
|
102
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
101
103
|
bumpFrequency: PD.Numeric;
|
|
102
104
|
bumpAmplitude: PD.Numeric;
|
|
103
105
|
};
|
|
@@ -134,6 +136,7 @@ export declare function getMembraneOrientationParams(ctx: ThemeRegistryContext,
|
|
|
134
136
|
flatShaded: PD.BooleanParam;
|
|
135
137
|
ignoreLight: PD.BooleanParam;
|
|
136
138
|
xrayShaded: PD.BooleanParam;
|
|
139
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
137
140
|
bumpFrequency: PD.Numeric;
|
|
138
141
|
bumpAmplitude: PD.Numeric;
|
|
139
142
|
};
|
|
@@ -170,6 +173,7 @@ export declare const MembraneOrientationRepresentationProvider: StructureReprese
|
|
|
170
173
|
flatShaded: PD.BooleanParam;
|
|
171
174
|
ignoreLight: PD.BooleanParam;
|
|
172
175
|
xrayShaded: PD.BooleanParam;
|
|
176
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
173
177
|
bumpFrequency: PD.Numeric;
|
|
174
178
|
bumpAmplitude: PD.Numeric;
|
|
175
179
|
}, "membrane-orientation">;
|