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
|
@@ -21,6 +21,7 @@ export declare const PolymerDirectionParams: {
|
|
|
21
21
|
flatShaded: PD.BooleanParam;
|
|
22
22
|
ignoreLight: PD.BooleanParam;
|
|
23
23
|
xrayShaded: PD.BooleanParam;
|
|
24
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
24
25
|
bumpFrequency: PD.Numeric;
|
|
25
26
|
bumpAmplitude: PD.Numeric;
|
|
26
27
|
alpha: PD.Numeric;
|
|
@@ -24,6 +24,7 @@ export declare const PolymerGapParams: {
|
|
|
24
24
|
flatShaded: PD.BooleanParam;
|
|
25
25
|
ignoreLight: PD.BooleanParam;
|
|
26
26
|
xrayShaded: PD.BooleanParam;
|
|
27
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
27
28
|
bumpFrequency: PD.Numeric;
|
|
28
29
|
bumpAmplitude: PD.Numeric;
|
|
29
30
|
alpha: PD.Numeric;
|
|
@@ -42,6 +42,7 @@ export declare const PolymerTraceParams: {
|
|
|
42
42
|
flatShaded: PD.BooleanParam;
|
|
43
43
|
ignoreLight: PD.BooleanParam;
|
|
44
44
|
xrayShaded: PD.BooleanParam;
|
|
45
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
45
46
|
bumpFrequency: PD.Numeric;
|
|
46
47
|
bumpAmplitude: PD.Numeric;
|
|
47
48
|
alpha: PD.Numeric;
|
|
@@ -30,6 +30,7 @@ export declare const PolymerTubeParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.BooleanParam;
|
|
33
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
33
34
|
bumpFrequency: PD.Numeric;
|
|
34
35
|
bumpAmplitude: PD.Numeric;
|
|
35
36
|
alpha: PD.Numeric;
|
|
@@ -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
|
*/
|
|
@@ -85,5 +85,3 @@ export declare function getStructureConformationAndRadius(structure: Structure,
|
|
|
85
85
|
export declare function isHydrogen(unit: Unit, element: ElementIndex): boolean;
|
|
86
86
|
export declare function isH(atomicNumber: ArrayLike<number>, element: ElementIndex): boolean;
|
|
87
87
|
export declare function isTrace(unit: Unit, element: ElementIndex): boolean;
|
|
88
|
-
export declare function getUnitExtraRadius(unit: Unit): number;
|
|
89
|
-
export declare function getStructureExtraRadius(structure: Structure): number;
|
|
@@ -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
|
*/
|
|
@@ -273,26 +273,3 @@ export function isTrace(unit, element) {
|
|
|
273
273
|
return true;
|
|
274
274
|
return false;
|
|
275
275
|
}
|
|
276
|
-
export function getUnitExtraRadius(unit) {
|
|
277
|
-
if (Unit.isAtomic(unit))
|
|
278
|
-
return 4;
|
|
279
|
-
var max = 0;
|
|
280
|
-
var elements = unit.elements;
|
|
281
|
-
var r = unit.conformation.r;
|
|
282
|
-
for (var i = 0, _i = elements.length; i < _i; i++) {
|
|
283
|
-
var _r = r(elements[i]);
|
|
284
|
-
if (_r > max)
|
|
285
|
-
max = _r;
|
|
286
|
-
}
|
|
287
|
-
return max + 1;
|
|
288
|
-
}
|
|
289
|
-
export function getStructureExtraRadius(structure) {
|
|
290
|
-
var max = 0;
|
|
291
|
-
for (var _a = 0, _b = structure.unitSymmetryGroups; _a < _b.length; _a++) {
|
|
292
|
-
var ug = _b[_a];
|
|
293
|
-
var r = getUnitExtraRadius(ug.units[0]);
|
|
294
|
-
if (r > max)
|
|
295
|
-
max = r;
|
|
296
|
-
}
|
|
297
|
-
return max;
|
|
298
|
-
}
|
package/lib/mol-repr/util.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -31,6 +31,7 @@ export interface QualityProps {
|
|
|
31
31
|
doubleSided: boolean;
|
|
32
32
|
xrayShaded: boolean;
|
|
33
33
|
alpha: number;
|
|
34
|
+
allowTransparentBackfaces: boolean;
|
|
34
35
|
}
|
|
35
36
|
export declare const DefaultQualityThresholds: {
|
|
36
37
|
lowestElementCount: number;
|
package/lib/mol-repr/util.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -165,7 +165,7 @@ export function getQualityProps(props, data) {
|
|
|
165
165
|
// max resolution based on volume (for 'auto' quality)
|
|
166
166
|
resolution = Math.max(resolution, volume / 500000000);
|
|
167
167
|
resolution = Math.min(resolution, 20);
|
|
168
|
-
if ((props.alpha !== undefined && props.alpha < 1) || !!props.xrayShaded) {
|
|
168
|
+
if (!props.allowTransparentBackfaces && ((props.alpha !== undefined && props.alpha < 1) || !!props.xrayShaded)) {
|
|
169
169
|
doubleSided = false;
|
|
170
170
|
}
|
|
171
171
|
return {
|
|
@@ -93,6 +93,7 @@ export declare function IsosurfaceVisual(materialId: number, volume: Volume, pro
|
|
|
93
93
|
flatShaded: PD.BooleanParam;
|
|
94
94
|
ignoreLight: PD.BooleanParam;
|
|
95
95
|
xrayShaded: PD.BooleanParam;
|
|
96
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
96
97
|
bumpFrequency: PD.Numeric;
|
|
97
98
|
bumpAmplitude: PD.Numeric;
|
|
98
99
|
alpha: PD.Numeric;
|
|
@@ -166,6 +167,7 @@ export declare const IsosurfaceMeshParams: {
|
|
|
166
167
|
flatShaded: PD.BooleanParam;
|
|
167
168
|
ignoreLight: PD.BooleanParam;
|
|
168
169
|
xrayShaded: PD.BooleanParam;
|
|
170
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
169
171
|
bumpFrequency: PD.Numeric;
|
|
170
172
|
bumpAmplitude: PD.Numeric;
|
|
171
173
|
alpha: PD.Numeric;
|
|
@@ -328,6 +330,7 @@ export declare const IsosurfaceParams: {
|
|
|
328
330
|
flatShaded: PD.BooleanParam;
|
|
329
331
|
ignoreLight: PD.BooleanParam;
|
|
330
332
|
xrayShaded: PD.BooleanParam;
|
|
333
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
331
334
|
bumpAmplitude: PD.Numeric;
|
|
332
335
|
};
|
|
333
336
|
export declare type IsosurfaceParams = typeof IsosurfaceParams;
|
|
@@ -403,6 +406,7 @@ export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: V
|
|
|
403
406
|
flatShaded: PD.BooleanParam;
|
|
404
407
|
ignoreLight: PD.BooleanParam;
|
|
405
408
|
xrayShaded: PD.BooleanParam;
|
|
409
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
406
410
|
bumpAmplitude: PD.Numeric;
|
|
407
411
|
};
|
|
408
412
|
export declare type IsosurfaceRepresentation = VolumeRepresentation<IsosurfaceParams>;
|
|
@@ -479,5 +483,6 @@ export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvi
|
|
|
479
483
|
flatShaded: PD.BooleanParam;
|
|
480
484
|
ignoreLight: PD.BooleanParam;
|
|
481
485
|
xrayShaded: PD.BooleanParam;
|
|
486
|
+
allowTransparentBackfaces: PD.BooleanParam;
|
|
482
487
|
bumpAmplitude: PD.Numeric;
|
|
483
488
|
}, "isosurface">;
|
|
@@ -82,6 +82,7 @@ export declare namespace VolumeRepresentationRegistry {
|
|
|
82
82
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
83
83
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
84
84
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
85
|
+
allowTransparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
85
86
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
86
87
|
}, "isosurface">;
|
|
87
88
|
slice: import("./representation").VolumeRepresentationProvider<{
|
|
@@ -10,6 +10,7 @@ export declare namespace MolScriptBuilder {
|
|
|
10
10
|
'@header': string;
|
|
11
11
|
type: {
|
|
12
12
|
'@header': string;
|
|
13
|
+
/** atom macromolecular property set */
|
|
13
14
|
bool: MSymbol<import("./symbol").Arguments<import("./symbol").Arguments.PropTypes<{
|
|
14
15
|
0: import("./symbol").Argument<import("./type").Type.AnyValue>;
|
|
15
16
|
}>>, import("./type").Type.OneOf<boolean>>;
|
package/package.json
CHANGED
|
@@ -1,160 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "molstar",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "A comprehensive macromolecular library.",
|
|
5
|
-
"homepage": "https://github.com/molstar/molstar#readme",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/molstar/molstar.git"
|
|
9
|
-
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/molstar/molstar/issues"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"lint": "eslint .",
|
|
15
|
-
"lint-fix": "eslint . --fix",
|
|
16
|
-
"test": "npm install --no-save \"gl@^5.0.0\" && npm run lint && jest",
|
|
17
|
-
"jest": "jest",
|
|
18
|
-
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
|
|
19
|
-
"clean": "node ./scripts/clean.js",
|
|
20
|
-
"rebuild": "npm run clean && npm run build",
|
|
21
|
-
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
|
|
22
|
-
"build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
|
|
23
|
-
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
|
|
24
|
-
"build-webpack": "webpack --mode production --config ./webpack.config.production.js",
|
|
25
|
-
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
|
|
26
|
-
"watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
|
|
27
|
-
"watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
|
|
28
|
-
"watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
|
|
29
|
-
"watch-tsc": "tsc --watch --incremental",
|
|
30
|
-
"watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
|
|
31
|
-
"watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
|
|
32
|
-
"watch-webpack": "webpack -w --mode development --stats minimal",
|
|
33
|
-
"watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
|
|
34
|
-
"watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
|
|
35
|
-
"serve": "http-server -p 1338 -g",
|
|
36
|
-
"model-server": "node lib/commonjs/servers/model/server.js",
|
|
37
|
-
"model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
|
|
38
|
-
"volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
|
|
39
|
-
"plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
|
|
40
|
-
"preversion": "npm run test",
|
|
41
|
-
"version": "npm run rebuild && cpx .npmignore lib/",
|
|
42
|
-
"postversion": "git push && git push --tags"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"lib/",
|
|
46
|
-
"build/viewer/"
|
|
47
|
-
],
|
|
48
|
-
"bin": {
|
|
49
|
-
"cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
|
|
50
|
-
"cifschema": "lib/commonjs/cli/cifschema/index.js",
|
|
51
|
-
"model-server": "lib/commonjs/servers/model/server.js",
|
|
52
|
-
"model-server-query": "lib/commonjs/servers/model/query.js",
|
|
53
|
-
"model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
|
|
54
|
-
"volume-server": "lib/commonjs/servers/volume/server.js",
|
|
55
|
-
"volume-server-query": "lib/commonjs/servers/volume/query.js",
|
|
56
|
-
"volume-server-pack": "lib/commonjs/servers/volume/pack.js"
|
|
57
|
-
},
|
|
58
|
-
"nodemonConfig": {
|
|
59
|
-
"ignoreRoot": [
|
|
60
|
-
"./node_modules",
|
|
61
|
-
".git"
|
|
62
|
-
],
|
|
63
|
-
"ignore": [],
|
|
64
|
-
"delay": "2500"
|
|
65
|
-
},
|
|
66
|
-
"jest": {
|
|
67
|
-
"moduleFileExtensions": [
|
|
68
|
-
"ts",
|
|
69
|
-
"js"
|
|
70
|
-
],
|
|
71
|
-
"transform": {
|
|
72
|
-
"\\.ts$": "ts-jest"
|
|
73
|
-
},
|
|
74
|
-
"moduleDirectories": [
|
|
75
|
-
"node_modules",
|
|
76
|
-
"lib"
|
|
77
|
-
],
|
|
78
|
-
"testURL": "http://localhost/",
|
|
79
|
-
"testRegex": "\\.spec\\.ts$"
|
|
80
|
-
},
|
|
81
|
-
"author": "Mol* Contributors",
|
|
82
|
-
"contributors": [
|
|
83
|
-
"Alexander Rose <alexander.rose@weirdbyte.de>",
|
|
84
|
-
"David Sehnal <david.sehnal@gmail.com>",
|
|
85
|
-
"Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
|
|
86
|
-
"Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
|
|
87
|
-
"Ludovic Autin <autin@scripps.edu>",
|
|
88
|
-
"Michal Malý <michal.maly@ibt.cas.cz>",
|
|
89
|
-
"Jiří Černý <jiri.cerny@ibt.cas.cz>",
|
|
90
|
-
"Panagiotis Tourlas <panagiot_tourlov@hotmail.com>"
|
|
91
|
-
],
|
|
92
|
-
"license": "MIT",
|
|
93
|
-
"devDependencies": {
|
|
94
|
-
"@graphql-codegen/add": "^3.1.1",
|
|
95
|
-
"@graphql-codegen/cli": "^2.6.2",
|
|
96
|
-
"@graphql-codegen/time": "^3.1.1",
|
|
97
|
-
"@graphql-codegen/typescript": "^2.4.7",
|
|
98
|
-
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
|
|
99
|
-
"@graphql-codegen/typescript-graphql-request": "^4.4.2",
|
|
100
|
-
"@graphql-codegen/typescript-operations": "^2.3.4",
|
|
101
|
-
"@types/cors": "^2.8.12",
|
|
102
|
-
"@types/gl": "^4.1.0",
|
|
103
|
-
"@types/jest": "^27.4.1",
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"@types/
|
|
137
|
-
"@types/
|
|
138
|
-
"@types/
|
|
139
|
-
"@types/
|
|
140
|
-
"@types/
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "molstar",
|
|
3
|
+
"version": "3.6.1",
|
|
4
|
+
"description": "A comprehensive macromolecular library.",
|
|
5
|
+
"homepage": "https://github.com/molstar/molstar#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/molstar/molstar.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/molstar/molstar/issues"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"lint-fix": "eslint . --fix",
|
|
16
|
+
"test": "npm install --no-save \"gl@^5.0.0\" && npm run lint && jest",
|
|
17
|
+
"jest": "jest",
|
|
18
|
+
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
|
|
19
|
+
"clean": "node ./scripts/clean.js",
|
|
20
|
+
"rebuild": "npm run clean && npm run build",
|
|
21
|
+
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
|
|
22
|
+
"build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
|
|
23
|
+
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
|
|
24
|
+
"build-webpack": "webpack --mode production --config ./webpack.config.production.js",
|
|
25
|
+
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
|
|
26
|
+
"watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
|
|
27
|
+
"watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
|
|
28
|
+
"watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
|
|
29
|
+
"watch-tsc": "tsc --watch --incremental",
|
|
30
|
+
"watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
|
|
31
|
+
"watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
|
|
32
|
+
"watch-webpack": "webpack -w --mode development --stats minimal",
|
|
33
|
+
"watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
|
|
34
|
+
"watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
|
|
35
|
+
"serve": "http-server -p 1338 -g",
|
|
36
|
+
"model-server": "node lib/commonjs/servers/model/server.js",
|
|
37
|
+
"model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
|
|
38
|
+
"volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
|
|
39
|
+
"plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
|
|
40
|
+
"preversion": "npm run test",
|
|
41
|
+
"version": "npm run rebuild && cpx .npmignore lib/",
|
|
42
|
+
"postversion": "git push && git push --tags"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"lib/",
|
|
46
|
+
"build/viewer/"
|
|
47
|
+
],
|
|
48
|
+
"bin": {
|
|
49
|
+
"cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
|
|
50
|
+
"cifschema": "lib/commonjs/cli/cifschema/index.js",
|
|
51
|
+
"model-server": "lib/commonjs/servers/model/server.js",
|
|
52
|
+
"model-server-query": "lib/commonjs/servers/model/query.js",
|
|
53
|
+
"model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
|
|
54
|
+
"volume-server": "lib/commonjs/servers/volume/server.js",
|
|
55
|
+
"volume-server-query": "lib/commonjs/servers/volume/query.js",
|
|
56
|
+
"volume-server-pack": "lib/commonjs/servers/volume/pack.js"
|
|
57
|
+
},
|
|
58
|
+
"nodemonConfig": {
|
|
59
|
+
"ignoreRoot": [
|
|
60
|
+
"./node_modules",
|
|
61
|
+
".git"
|
|
62
|
+
],
|
|
63
|
+
"ignore": [],
|
|
64
|
+
"delay": "2500"
|
|
65
|
+
},
|
|
66
|
+
"jest": {
|
|
67
|
+
"moduleFileExtensions": [
|
|
68
|
+
"ts",
|
|
69
|
+
"js"
|
|
70
|
+
],
|
|
71
|
+
"transform": {
|
|
72
|
+
"\\.ts$": "ts-jest"
|
|
73
|
+
},
|
|
74
|
+
"moduleDirectories": [
|
|
75
|
+
"node_modules",
|
|
76
|
+
"lib"
|
|
77
|
+
],
|
|
78
|
+
"testURL": "http://localhost/",
|
|
79
|
+
"testRegex": "\\.spec\\.ts$"
|
|
80
|
+
},
|
|
81
|
+
"author": "Mol* Contributors",
|
|
82
|
+
"contributors": [
|
|
83
|
+
"Alexander Rose <alexander.rose@weirdbyte.de>",
|
|
84
|
+
"David Sehnal <david.sehnal@gmail.com>",
|
|
85
|
+
"Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
|
|
86
|
+
"Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
|
|
87
|
+
"Ludovic Autin <autin@scripps.edu>",
|
|
88
|
+
"Michal Malý <michal.maly@ibt.cas.cz>",
|
|
89
|
+
"Jiří Černý <jiri.cerny@ibt.cas.cz>",
|
|
90
|
+
"Panagiotis Tourlas <panagiot_tourlov@hotmail.com>"
|
|
91
|
+
],
|
|
92
|
+
"license": "MIT",
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@graphql-codegen/add": "^3.1.1",
|
|
95
|
+
"@graphql-codegen/cli": "^2.6.2",
|
|
96
|
+
"@graphql-codegen/time": "^3.1.1",
|
|
97
|
+
"@graphql-codegen/typescript": "^2.4.7",
|
|
98
|
+
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
|
|
99
|
+
"@graphql-codegen/typescript-graphql-request": "^4.4.2",
|
|
100
|
+
"@graphql-codegen/typescript-operations": "^2.3.4",
|
|
101
|
+
"@types/cors": "^2.8.12",
|
|
102
|
+
"@types/gl": "^4.1.0",
|
|
103
|
+
"@types/jest": "^27.4.1",
|
|
104
|
+
"@types/react": "^17.0.43",
|
|
105
|
+
"@types/react-dom": "^17.0.14",
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
107
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
108
|
+
"benchmark": "^2.1.4",
|
|
109
|
+
"concurrently": "^7.0.0",
|
|
110
|
+
"cpx2": "^4.2.0",
|
|
111
|
+
"crypto-browserify": "^3.12.0",
|
|
112
|
+
"css-loader": "^6.7.1",
|
|
113
|
+
"eslint": "^8.11.0",
|
|
114
|
+
"extra-watch-webpack-plugin": "^1.0.3",
|
|
115
|
+
"file-loader": "^6.2.0",
|
|
116
|
+
"fs-extra": "^10.0.1",
|
|
117
|
+
"graphql": "^16.3.0",
|
|
118
|
+
"http-server": "^14.1.0",
|
|
119
|
+
"jest": "^27.5.1",
|
|
120
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
121
|
+
"path-browserify": "^1.0.1",
|
|
122
|
+
"raw-loader": "^4.0.2",
|
|
123
|
+
"react": "^18.0.0",
|
|
124
|
+
"react-dom": "^18.0.0",
|
|
125
|
+
"sass": "^1.49.9",
|
|
126
|
+
"sass-loader": "^12.6.0",
|
|
127
|
+
"simple-git": "^3.3.0",
|
|
128
|
+
"stream-browserify": "^3.0.0",
|
|
129
|
+
"style-loader": "^3.3.1",
|
|
130
|
+
"ts-jest": "^27.1.3",
|
|
131
|
+
"typescript": "^4.6.3",
|
|
132
|
+
"webpack": "^5.70.0",
|
|
133
|
+
"webpack-cli": "^4.9.2"
|
|
134
|
+
},
|
|
135
|
+
"dependencies": {
|
|
136
|
+
"@types/argparse": "^2.0.10",
|
|
137
|
+
"@types/benchmark": "^2.1.1",
|
|
138
|
+
"@types/compression": "1.7.2",
|
|
139
|
+
"@types/express": "^4.17.13",
|
|
140
|
+
"@types/node": "^16.11.26",
|
|
141
|
+
"@types/node-fetch": "^2.6.1",
|
|
142
|
+
"@types/swagger-ui-dist": "3.30.1",
|
|
143
|
+
"argparse": "^2.0.1",
|
|
144
|
+
"body-parser": "^1.19.2",
|
|
145
|
+
"compression": "^1.7.4",
|
|
146
|
+
"cors": "^2.8.5",
|
|
147
|
+
"express": "^4.17.3",
|
|
148
|
+
"h264-mp4-encoder": "^1.0.12",
|
|
149
|
+
"immer": "^9.0.12",
|
|
150
|
+
"immutable": "^4.0.0",
|
|
151
|
+
"node-fetch": "^2.6.7",
|
|
152
|
+
"rxjs": "^7.5.5",
|
|
153
|
+
"swagger-ui-dist": "^4.6.2",
|
|
154
|
+
"tslib": "^2.3.1",
|
|
155
|
+
"util.promisify": "^1.1.1",
|
|
156
|
+
"xhr2": "^0.2.1"
|
|
157
|
+
},
|
|
158
|
+
"peerDependencies": {
|
|
159
|
+
"react": "^18.0.0 || ^17.0.2 || ^16.14.0",
|
|
160
|
+
"react-dom": "^18.0.0 || ^17.0.2 || ^16.14.0"
|
|
161
|
+
}
|
|
162
|
+
}
|