molstar 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/index.html +1 -1
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +12 -14
- package/lib/apps/docking-viewer/index.js +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/index.html +1 -1
- package/lib/cli/chem-comp-dict/util.d.ts +20 -20
- 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/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/representation.d.ts +3 -0
- 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/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
- 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/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/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-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/util.js +3 -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/structure/focus.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
- 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-surface-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- 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/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/examples/alpha-orbitals/index.js +1 -1
- package/lib/examples/basic-wrapper/index.js +1 -1
- package/lib/examples/lighting/index.js +1 -1
- 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/representation.d.ts +3 -0
- 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/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
- 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/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/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-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/util.js +3 -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/structure/focus.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +2 -2
- 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-surface-mesh.d.ts +4 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- 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/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/package.json +8 -6
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
/*!
|
|
8
2
|
* The buffer module from node.js, for the browser.
|
|
9
3
|
*
|
|
@@ -30,8 +24,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
30
24
|
|
|
31
25
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
32
26
|
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-dom.production.min.js
|
|
35
30
|
*
|
|
36
31
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
32
|
*
|
|
@@ -39,8 +34,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
39
34
|
* LICENSE file in the root directory of this source tree.
|
|
40
35
|
*/
|
|
41
36
|
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
37
|
+
/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-jsx-runtime.production.min.js
|
|
44
40
|
*
|
|
45
41
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
42
|
*
|
|
@@ -48,8 +44,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
48
44
|
* LICENSE file in the root directory of this source tree.
|
|
49
45
|
*/
|
|
50
46
|
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
47
|
+
/**
|
|
48
|
+
* @license React
|
|
49
|
+
* react.production.min.js
|
|
53
50
|
*
|
|
54
51
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
52
|
*
|
|
@@ -57,8 +54,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
57
54
|
* LICENSE file in the root directory of this source tree.
|
|
58
55
|
*/
|
|
59
56
|
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
57
|
+
/**
|
|
58
|
+
* @license React
|
|
59
|
+
* scheduler.production.min.js
|
|
62
60
|
*
|
|
63
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
62
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
8
8
|
import { Structure } from '../../mol-model/structure';
|
|
9
9
|
import { PluginStateObject as PSO, PluginStateTransform } from '../../mol-plugin-state/objects';
|
|
10
|
-
import { createPluginUI } from '../../mol-plugin-ui';
|
|
10
|
+
import { createPluginUI } from '../../mol-plugin-ui/react18';
|
|
11
11
|
import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
|
|
12
12
|
import { PluginBehaviors } from '../../mol-plugin/behavior';
|
|
13
13
|
import { PluginCommands } from '../../mol-plugin/commands';
|
package/lib/apps/viewer/app.js
CHANGED
|
@@ -25,7 +25,7 @@ import { PresetStructureRepresentations, StructureRepresentationPresetProvider }
|
|
|
25
25
|
import { createVolumeRepresentationParams } from '../../mol-plugin-state/helpers/volume-representation-params';
|
|
26
26
|
import { StateTransforms } from '../../mol-plugin-state/transforms';
|
|
27
27
|
import { TrajectoryFromModelAndCoordinates } from '../../mol-plugin-state/transforms/model';
|
|
28
|
-
import { createPluginUI } from '../../mol-plugin-ui';
|
|
28
|
+
import { createPluginUI } from '../../mol-plugin-ui/react18';
|
|
29
29
|
import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
|
|
30
30
|
import { PluginCommands } from '../../mol-plugin/commands';
|
|
31
31
|
import { PluginConfig } from '../../mol-plugin/config';
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
pixelScale: parseFloat(pixelScale) || 1,
|
|
72
72
|
pickScale: parseFloat(pickScale) || 0.25,
|
|
73
73
|
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
|
|
74
|
-
enableWboit: disableWboit ?
|
|
74
|
+
enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
|
|
75
75
|
preferWebgl1: preferWebgl1,
|
|
76
76
|
}).then(viewer => {
|
|
77
77
|
var snapshotId = getParam('snapshot-id', '[^&]+').trim();
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -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;
|