molstar 3.0.1 → 3.0.2
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 +194 -194
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/commonjs/apps/docking-viewer/index.js +253 -0
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -2
- package/lib/commonjs/apps/docking-viewer/viewport.js +326 -0
- package/lib/commonjs/apps/viewer/app.d.ts +3 -3
- package/lib/commonjs/cli/chem-comp-dict/create-ions.d.ts +7 -0
- package/lib/commonjs/cli/chem-comp-dict/create-ions.js +68 -0
- package/lib/commonjs/cli/chem-comp-dict/create-table.d.ts +7 -0
- package/lib/commonjs/cli/chem-comp-dict/create-table.js +282 -0
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +146 -0
- package/lib/commonjs/cli/chem-comp-dict/util.js +144 -0
- package/lib/commonjs/cli/cif2bcif/converter.d.ts +8 -0
- package/lib/commonjs/cli/cif2bcif/converter.js +187 -0
- package/lib/commonjs/cli/cif2bcif/index.d.ts +8 -0
- package/lib/commonjs/cli/cif2bcif/index.js +81 -0
- package/lib/commonjs/cli/cifschema/index.d.ts +7 -0
- package/lib/commonjs/cli/cifschema/index.js +397 -0
- package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +11 -0
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +456 -0
- package/lib/commonjs/cli/cifschema/util/generate.d.ts +7 -0
- package/lib/commonjs/cli/cifschema/util/generate.js +158 -0
- package/lib/commonjs/cli/cifschema/util/helper.d.ts +10 -0
- package/lib/commonjs/cli/cifschema/util/helper.js +22 -0
- package/lib/commonjs/cli/cifschema/util/schema.d.ts +70 -0
- package/lib/commonjs/cli/cifschema/util/schema.js +64 -0
- package/lib/commonjs/cli/lipid-params/index.d.ts +7 -0
- package/lib/commonjs/cli/lipid-params/index.js +104 -0
- package/lib/commonjs/cli/state-docs/index.js +64 -0
- package/lib/commonjs/cli/state-docs/pd-to-md.js +80 -0
- package/lib/commonjs/cli/structure-info/helpers.d.ts +7 -0
- package/lib/commonjs/cli/structure-info/helpers.js +92 -0
- package/lib/commonjs/cli/structure-info/model.js +336 -0
- package/lib/commonjs/cli/structure-info/volume.js +115 -0
- package/lib/commonjs/examples/alpha-orbitals/controls.js +25 -0
- package/lib/commonjs/examples/alpha-orbitals/example-data.js +60260 -0
- package/lib/commonjs/examples/alpha-orbitals/index.js +230 -0
- package/lib/commonjs/examples/basic-wrapper/coloring.js +31 -0
- package/lib/commonjs/examples/basic-wrapper/controls.js +23 -0
- package/lib/commonjs/examples/basic-wrapper/custom-theme.js +49 -0
- package/lib/commonjs/examples/basic-wrapper/index.js +265 -0
- package/lib/commonjs/examples/basic-wrapper/superposition.js +191 -0
- package/lib/commonjs/examples/domain-annotation-server/mapping.d.ts +6 -0
- package/lib/commonjs/examples/domain-annotation-server/mapping.js +111 -0
- package/lib/commonjs/examples/domain-annotation-server/schemas.d.ts +103 -0
- package/lib/commonjs/examples/domain-annotation-server/schemas.js +73 -0
- package/lib/commonjs/examples/domain-annotation-server/server.d.ts +6 -0
- package/lib/commonjs/examples/domain-annotation-server/server.js +65 -0
- package/lib/commonjs/examples/domain-annotation-server/test.d.ts +6 -0
- package/lib/commonjs/examples/domain-annotation-server/test.js +28 -0
- package/lib/commonjs/examples/lighting/index.js +145 -0
- package/lib/commonjs/examples/proteopedia-wrapper/annotation.js +88 -0
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.js +97 -0
- package/lib/commonjs/examples/proteopedia-wrapper/helpers.js +109 -0
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +498 -0
- package/lib/commonjs/examples/proteopedia-wrapper/ui/controls.js +19 -0
- package/lib/commonjs/examples/task.d.ts +19 -0
- package/lib/commonjs/examples/task.js +221 -0
- package/lib/commonjs/extensions/alpha-orbitals/collocation.js +134 -0
- package/lib/commonjs/extensions/alpha-orbitals/data-model.js +69 -0
- package/lib/commonjs/extensions/alpha-orbitals/density.js +113 -0
- package/lib/commonjs/extensions/alpha-orbitals/gpu/compute.js +157 -0
- package/lib/commonjs/extensions/alpha-orbitals/gpu/shader.frag.d.ts +7 -0
- package/lib/commonjs/extensions/alpha-orbitals/gpu/shader.frag.js +11 -0
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.js +121 -0
- package/lib/commonjs/extensions/alpha-orbitals/spherical-functions.d.ts +11 -0
- package/lib/commonjs/extensions/alpha-orbitals/spherical-functions.js +66 -0
- package/lib/commonjs/extensions/alpha-orbitals/transforms.js +261 -0
- package/lib/commonjs/extensions/anvil/algorithm.js +578 -0
- package/lib/commonjs/extensions/anvil/behavior.d.ts +2 -2
- package/lib/commonjs/extensions/anvil/behavior.js +209 -0
- package/lib/commonjs/extensions/anvil/prop.js +82 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +5 -5
- package/lib/commonjs/extensions/anvil/representation.js +118 -0
- package/lib/commonjs/extensions/cellpack/color/generate.js +86 -0
- package/lib/commonjs/extensions/cellpack/color/provided.js +68 -0
- package/lib/commonjs/extensions/cellpack/curve.d.ts +9 -0
- package/lib/commonjs/extensions/cellpack/curve.js +203 -0
- package/lib/commonjs/extensions/cellpack/data.d.ts +107 -0
- package/lib/commonjs/extensions/cellpack/data.js +8 -0
- package/lib/commonjs/extensions/cellpack/index.js +39 -0
- package/lib/commonjs/extensions/cellpack/model.js +903 -0
- package/lib/commonjs/extensions/cellpack/preset.js +109 -0
- package/lib/commonjs/extensions/cellpack/property.js +31 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +2 -2
- package/lib/commonjs/extensions/cellpack/representation.js +47 -0
- package/lib/commonjs/extensions/cellpack/state.js +397 -0
- package/lib/commonjs/extensions/cellpack/util.js +181 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.js +121 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +178 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/property.js +160 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.js +159 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/types.js +27 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +234 -0
- package/lib/commonjs/extensions/dnatco/index.js +12 -0
- package/lib/commonjs/extensions/g3d/data.js +71 -0
- package/lib/commonjs/extensions/g3d/format.js +232 -0
- package/lib/commonjs/extensions/g3d/model.js +215 -0
- package/lib/commonjs/extensions/geo-export/controls.js +109 -0
- package/lib/commonjs/extensions/geo-export/glb-exporter.js +323 -0
- package/lib/commonjs/extensions/geo-export/index.js +36 -0
- package/lib/commonjs/extensions/geo-export/mesh-exporter.js +457 -0
- package/lib/commonjs/extensions/geo-export/obj-exporter.js +212 -0
- package/lib/commonjs/extensions/geo-export/render-object-exporter.js +8 -0
- package/lib/commonjs/extensions/geo-export/stl-exporter.js +131 -0
- package/lib/commonjs/extensions/geo-export/ui.js +116 -0
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js +222 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -2
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.js +236 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +125 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +111 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/prop.js +130 -0
- package/lib/commonjs/extensions/model-export/export.js +129 -0
- package/lib/commonjs/extensions/model-export/index.js +36 -0
- package/lib/commonjs/extensions/model-export/ui.js +77 -0
- package/lib/commonjs/extensions/mp4-export/controls.js +142 -0
- package/lib/commonjs/extensions/mp4-export/encoder.js +119 -0
- package/lib/commonjs/extensions/mp4-export/index.js +36 -0
- package/lib/commonjs/extensions/mp4-export/ui.js +94 -0
- package/lib/commonjs/extensions/pdbe/index.js +15 -0
- package/lib/commonjs/extensions/pdbe/preferred-assembly.js +98 -0
- package/lib/commonjs/extensions/pdbe/struct-ref-domain.js +128 -0
- package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.js +75 -0
- package/lib/commonjs/extensions/pdbe/structure-quality-report/color.js +113 -0
- package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +288 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +5 -5
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.js +255 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.d.ts +2 -2
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +101 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +220 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.js +363 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/ui.js +215 -0
- package/lib/commonjs/extensions/rcsb/graphql/symmetry.gql.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/graphql/symmetry.gql.js +5 -0
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +12874 -0
- package/lib/commonjs/extensions/rcsb/graphql/types.js +3 -0
- package/lib/commonjs/extensions/rcsb/index.js +13 -0
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -3
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.js +421 -0
- package/lib/commonjs/extensions/rcsb/validation-report/color/density-fit.js +79 -0
- package/lib/commonjs/extensions/rcsb/validation-report/color/geometry-quality.js +110 -0
- package/lib/commonjs/extensions/rcsb/validation-report/color/random-coil-index.js +67 -0
- package/lib/commonjs/extensions/rcsb/validation-report/prop.js +490 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/commonjs/extensions/rcsb/validation-report/representation.js +243 -0
- package/lib/commonjs/mol-canvas3d/camera/stereo.js +129 -0
- package/lib/commonjs/mol-canvas3d/camera/transition.js +103 -0
- package/lib/commonjs/mol-canvas3d/camera/util.d.ts +31 -0
- package/lib/commonjs/mol-canvas3d/camera/util.js +94 -0
- package/lib/commonjs/mol-canvas3d/camera.js +334 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +4 -4
- package/lib/commonjs/mol-canvas3d/controls/object.js +49 -0
- package/lib/commonjs/mol-canvas3d/controls/trackball.js +426 -0
- package/lib/commonjs/mol-canvas3d/helper/bounding-sphere-helper.js +157 -0
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +217 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +184 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.js +33 -0
- package/lib/commonjs/mol-canvas3d/passes/fxaa.js +94 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/passes/marking.js +131 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/passes/smaa.js +167 -0
- package/lib/commonjs/mol-canvas3d/passes/wboit.d.ts +23 -0
- package/lib/commonjs/mol-canvas3d/passes/wboit.js +115 -0
- package/lib/commonjs/mol-canvas3d/util.d.ts +10 -0
- package/lib/commonjs/mol-canvas3d/util.js +70 -0
- package/lib/commonjs/mol-data/db/column-helpers.d.ts +19 -0
- package/lib/commonjs/mol-data/db/column-helpers.js +44 -0
- package/lib/commonjs/mol-data/db/column.d.ts +135 -0
- package/lib/commonjs/mol-data/db/column.js +425 -0
- package/lib/commonjs/mol-data/db/database.d.ts +25 -0
- package/lib/commonjs/mol-data/db/database.js +40 -0
- package/lib/commonjs/mol-data/db/table.d.ts +57 -0
- package/lib/commonjs/mol-data/db/table.js +302 -0
- package/lib/commonjs/mol-data/db.d.ts +14 -0
- package/lib/commonjs/mol-data/db.js +19 -0
- package/lib/commonjs/mol-data/generic/hash-set.d.ts +12 -0
- package/lib/commonjs/mol-data/generic/hash-set.js +52 -0
- package/lib/commonjs/mol-data/generic/linked-list.d.ts +26 -0
- package/lib/commonjs/mol-data/generic/linked-list.js +95 -0
- package/lib/commonjs/mol-data/generic/unique-array.d.ts +15 -0
- package/lib/commonjs/mol-data/generic/unique-array.js +31 -0
- package/lib/commonjs/mol-data/generic.d.ts +8 -0
- package/lib/commonjs/mol-data/generic.js +12 -0
- package/lib/commonjs/mol-data/index.d.ts +11 -0
- package/lib/commonjs/mol-data/index.js +20 -0
- package/lib/commonjs/mol-data/int/impl/interval.d.ts +30 -0
- package/lib/commonjs/mol-data/int/impl/interval.js +84 -0
- package/lib/commonjs/mol-data/int/impl/ordered-set.d.ts +40 -0
- package/lib/commonjs/mol-data/int/impl/ordered-set.js +423 -0
- package/lib/commonjs/mol-data/int/impl/segmentation.d.ts +41 -0
- package/lib/commonjs/mol-data/int/impl/segmentation.js +109 -0
- package/lib/commonjs/mol-data/int/impl/sorted-array.d.ts +45 -0
- package/lib/commonjs/mol-data/int/impl/sorted-array.js +477 -0
- package/lib/commonjs/mol-data/int/interval.d.ts +53 -0
- package/lib/commonjs/mol-data/int/interval.js +56 -0
- package/lib/commonjs/mol-data/int/linked-index.d.ts +13 -0
- package/lib/commonjs/mol-data/int/linked-index.js +48 -0
- package/lib/commonjs/mol-data/int/map.d.ts +25 -0
- package/lib/commonjs/mol-data/int/map.js +50 -0
- package/lib/commonjs/mol-data/int/ordered-set.d.ts +55 -0
- package/lib/commonjs/mol-data/int/ordered-set.js +80 -0
- package/lib/commonjs/mol-data/int/segmentation.d.ts +32 -0
- package/lib/commonjs/mol-data/int/segmentation.js +22 -0
- package/lib/commonjs/mol-data/int/sorted-array.d.ts +49 -0
- package/lib/commonjs/mol-data/int/sorted-array.js +52 -0
- package/lib/commonjs/mol-data/int/sorted-ranges.d.ts +42 -0
- package/lib/commonjs/mol-data/int/sorted-ranges.js +125 -0
- package/lib/commonjs/mol-data/int/tuple.d.ts +28 -0
- package/lib/commonjs/mol-data/int/tuple.js +86 -0
- package/lib/commonjs/mol-data/int.d.ts +14 -0
- package/lib/commonjs/mol-data/int.js +25 -0
- package/lib/commonjs/mol-data/iterator.d.ts +25 -0
- package/lib/commonjs/mol-data/iterator.js +113 -0
- package/lib/commonjs/mol-data/util/array.d.ts +19 -0
- package/lib/commonjs/mol-data/util/array.js +56 -0
- package/lib/commonjs/mol-data/util/buckets.d.ts +16 -0
- package/lib/commonjs/mol-data/util/buckets.js +81 -0
- package/lib/commonjs/mol-data/util/chunked-array.d.ts +49 -0
- package/lib/commonjs/mol-data/util/chunked-array.js +175 -0
- package/lib/commonjs/mol-data/util/combination.d.ts +17 -0
- package/lib/commonjs/mol-data/util/combination.js +61 -0
- package/lib/commonjs/mol-data/util/equivalence-classes.d.ts +16 -0
- package/lib/commonjs/mol-data/util/equivalence-classes.js +52 -0
- package/lib/commonjs/mol-data/util/grouping.d.ts +23 -0
- package/lib/commonjs/mol-data/util/grouping.js +53 -0
- package/lib/commonjs/mol-data/util/hash-functions.d.ts +26 -0
- package/lib/commonjs/mol-data/util/hash-functions.js +96 -0
- package/lib/commonjs/mol-data/util/interval-iterator.d.ts +19 -0
- package/lib/commonjs/mol-data/util/interval-iterator.js +45 -0
- package/lib/commonjs/mol-data/util/sort.d.ts +12 -0
- package/lib/commonjs/mol-data/util/sort.js +164 -0
- package/lib/commonjs/mol-data/util.d.ts +12 -0
- package/lib/commonjs/mol-data/util.js +16 -0
- package/lib/commonjs/mol-geo/geometry/base.d.ts +5 -5
- package/lib/commonjs/mol-geo/geometry/base.js +152 -0
- package/lib/commonjs/mol-geo/geometry/clipping-data.js +55 -0
- package/lib/commonjs/mol-geo/geometry/color-data.js +235 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders-builder.js +114 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +3 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +197 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +220 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/transfer-function.d.ts +15 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/transfer-function.js +61 -0
- package/lib/commonjs/mol-geo/geometry/geometry.js +89 -0
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +3 -3
- package/lib/commonjs/mol-geo/geometry/image/image.js +176 -0
- package/lib/commonjs/mol-geo/geometry/lines/lines-builder.js +110 -0
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.js +195 -0
- package/lib/commonjs/mol-geo/geometry/marker-data.d.ts +24 -0
- package/lib/commonjs/mol-geo/geometry/marker-data.js +103 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/axes.js +32 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/box.js +100 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/cylinder.js +119 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/ellipsoid.js +24 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/ribbon.js +85 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/sheet.js +187 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/sphere.js +30 -0
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +175 -0
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +325 -0
- package/lib/commonjs/mol-geo/geometry/mesh/laplacian-smoothing.d.ts +5 -0
- package/lib/commonjs/mol-geo/geometry/mesh/laplacian-smoothing.js +75 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh-builder.js +154 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +638 -0
- package/lib/commonjs/mol-geo/geometry/overpaint-data.d.ts +23 -0
- package/lib/commonjs/mol-geo/geometry/overpaint-data.js +68 -0
- package/lib/commonjs/mol-geo/geometry/picking.d.ts +13 -0
- package/lib/commonjs/mol-geo/geometry/picking.js +16 -0
- package/lib/commonjs/mol-geo/geometry/points/points-builder.js +35 -0
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +4 -4
- package/lib/commonjs/mol-geo/geometry/points/points.js +175 -0
- package/lib/commonjs/mol-geo/geometry/size-data.js +123 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres-builder.js +58 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +180 -0
- package/lib/commonjs/mol-geo/geometry/substance-data.js +68 -0
- package/lib/commonjs/mol-geo/geometry/text/font-atlas.js +124 -0
- package/lib/commonjs/mol-geo/geometry/text/text-builder.js +284 -0
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/text/text.js +222 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +70 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +432 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +145 -0
- package/lib/commonjs/mol-geo/geometry/transform-data.d.ts +32 -0
- package/lib/commonjs/mol-geo/geometry/transform-data.js +87 -0
- package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +24 -0
- package/lib/commonjs/mol-geo/geometry/transparency-data.js +76 -0
- package/lib/commonjs/mol-geo/primitive/box.d.ts +10 -0
- package/lib/commonjs/mol-geo/primitive/box.js +94 -0
- package/lib/commonjs/mol-geo/primitive/cage.d.ts +14 -0
- package/lib/commonjs/mol-geo/primitive/cage.js +33 -0
- package/lib/commonjs/mol-geo/primitive/circle.d.ts +14 -0
- package/lib/commonjs/mol-geo/primitive/circle.js +69 -0
- package/lib/commonjs/mol-geo/primitive/cylinder.d.ts +19 -0
- package/lib/commonjs/mol-geo/primitive/cylinder.js +129 -0
- package/lib/commonjs/mol-geo/primitive/dodecahedron.d.ts +12 -0
- package/lib/commonjs/mol-geo/primitive/dodecahedron.js +67 -0
- package/lib/commonjs/mol-geo/primitive/icosahedron.d.ts +9 -0
- package/lib/commonjs/mol-geo/primitive/icosahedron.js +40 -0
- package/lib/commonjs/mol-geo/primitive/octahedron.d.ts +13 -0
- package/lib/commonjs/mol-geo/primitive/octahedron.js +50 -0
- package/lib/commonjs/mol-geo/primitive/plane.d.ts +9 -0
- package/lib/commonjs/mol-geo/primitive/plane.js +39 -0
- package/lib/commonjs/mol-geo/primitive/polygon.d.ts +10 -0
- package/lib/commonjs/mol-geo/primitive/polygon.js +29 -0
- package/lib/commonjs/mol-geo/primitive/polyhedron.d.ts +12 -0
- package/lib/commonjs/mol-geo/primitive/polyhedron.js +107 -0
- package/lib/commonjs/mol-geo/primitive/primitive.d.ts +24 -0
- package/lib/commonjs/mol-geo/primitive/primitive.js +97 -0
- package/lib/commonjs/mol-geo/primitive/prism.d.ts +29 -0
- package/lib/commonjs/mol-geo/primitive/prism.js +186 -0
- package/lib/commonjs/mol-geo/primitive/pyramid.d.ts +19 -0
- package/lib/commonjs/mol-geo/primitive/pyramid.js +126 -0
- package/lib/commonjs/mol-geo/primitive/sphere.d.ts +10 -0
- package/lib/commonjs/mol-geo/primitive/sphere.js +22 -0
- package/lib/commonjs/mol-geo/primitive/spiked-ball.d.ts +11 -0
- package/lib/commonjs/mol-geo/primitive/spiked-ball.js +61 -0
- package/lib/commonjs/mol-geo/primitive/star.d.ts +14 -0
- package/lib/commonjs/mol-geo/primitive/star.js +49 -0
- package/lib/commonjs/mol-geo/primitive/tetrahedron.d.ts +11 -0
- package/lib/commonjs/mol-geo/primitive/tetrahedron.js +33 -0
- package/lib/commonjs/mol-geo/primitive/torus.d.ts +15 -0
- package/lib/commonjs/mol-geo/primitive/torus.js +64 -0
- package/lib/commonjs/mol-geo/primitive/wedge.d.ts +13 -0
- package/lib/commonjs/mol-geo/primitive/wedge.js +56 -0
- package/lib/commonjs/mol-geo/util/location-iterator.js +91 -0
- package/lib/commonjs/mol-geo/util/marching-cubes/algorithm.js +285 -0
- package/lib/commonjs/mol-geo/util/marching-cubes/builder.js +100 -0
- package/lib/commonjs/mol-geo/util/marching-cubes/tables.d.ts +50 -0
- package/lib/commonjs/mol-geo/util/marching-cubes/tables.js +432 -0
- package/lib/commonjs/mol-geo/util.d.ts +36 -0
- package/lib/commonjs/mol-geo/util.js +137 -0
- package/lib/commonjs/mol-gl/commit-queue.js +61 -0
- package/lib/commonjs/mol-gl/compute/grid3d.d.ts +24 -0
- package/lib/commonjs/mol-gl/compute/grid3d.js +188 -0
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.d.ts +16 -0
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +158 -0
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.d.ts +8 -0
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.js +79 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.d.ts +9 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.js +84 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.d.ts +30 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +156 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/tables.d.ts +8 -0
- package/lib/commonjs/mol-gl/compute/marching-cubes/tables.js +42 -0
- package/lib/commonjs/mol-gl/compute/util.d.ts +39 -0
- package/lib/commonjs/mol-gl/compute/util.js +113 -0
- package/lib/commonjs/mol-gl/object3d.d.ts +16 -0
- package/lib/commonjs/mol-gl/object3d.js +28 -0
- package/lib/commonjs/mol-gl/render-object.js +41 -0
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +99 -0
- package/lib/commonjs/mol-gl/renderable/cylinders.js +26 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +104 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.js +30 -0
- package/lib/commonjs/mol-gl/renderable/image.js +27 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +94 -0
- package/lib/commonjs/mol-gl/renderable/lines.js +26 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +93 -0
- package/lib/commonjs/mol-gl/renderable/mesh.js +26 -0
- package/lib/commonjs/mol-gl/renderable/points.d.ts +90 -0
- package/lib/commonjs/mol-gl/renderable/points.js +26 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +295 -0
- package/lib/commonjs/mol-gl/renderable/schema.js +203 -0
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +96 -0
- package/lib/commonjs/mol-gl/renderable/spheres.js +26 -0
- package/lib/commonjs/mol-gl/renderable/text.d.ts +101 -0
- package/lib/commonjs/mol-gl/renderable/text.js +26 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +93 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +26 -0
- package/lib/commonjs/mol-gl/renderable/util.d.ts +41 -0
- package/lib/commonjs/mol-gl/renderable/util.js +181 -0
- package/lib/commonjs/mol-gl/renderable.d.ts +38 -0
- package/lib/commonjs/mol-gl/renderable.js +41 -0
- package/lib/commonjs/mol-gl/scene.d.ts +1 -1
- package/lib/commonjs/mol-gl/scene.js +226 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-fog.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-fog.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +13 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-marker-color.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-marker-color.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-clipping-varying.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-clipping-varying.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-group.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-group.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-position.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-position.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-size.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-size.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/clip-instance.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/clip-instance.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/clip-pixel.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/clip-pixel.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-clip.glsl.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-clip.glsl.js +11 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/float-to-rgba.glsl.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/float-to-rgba.glsl.js +10 -0
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +13 -0
- package/lib/commonjs/mol-gl/shader/chunks/matrix-scale.glsl.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/matrix-scale.glsl.js +10 -0
- package/lib/commonjs/mol-gl/shader/chunks/normal-frag-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/normal-frag-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/read-from-texture.glsl.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/read-from-texture.glsl.js +10 -0
- package/lib/commonjs/mol-gl/shader/chunks/rgba-to-float.glsl.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/rgba-to-float.glsl.js +10 -0
- package/lib/commonjs/mol-gl/shader/chunks/size-vert-params.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/size-vert-params.glsl.js +5 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-1d-trilinear.glsl.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-1d-trilinear.glsl.js +10 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-linear.glsl.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-linear.glsl.js +11 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-nearest.glsl.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-nearest.glsl.js +11 -0
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +11 -0
- package/lib/commonjs/mol-gl/shader/compose.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/compose.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/copy.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/copy.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/cylinders.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/cylinders.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/depth-merge.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/depth-merge.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +11 -0
- package/lib/commonjs/mol-gl/shader/direct-volume.vert.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/direct-volume.vert.js +11 -0
- package/lib/commonjs/mol-gl/shader/evaluate-wboit.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/evaluate-wboit.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/fxaa.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/fxaa.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/gaussian-density.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/gaussian-density.frag.js +11 -0
- package/lib/commonjs/mol-gl/shader/gaussian-density.vert.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/gaussian-density.vert.js +11 -0
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/reduction.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/reduction.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/sum.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/sum.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/image.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/image.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/image.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/lines.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/lines.vert.d.ts +8 -0
- package/lib/commonjs/mol-gl/shader/lines.vert.js +12 -0
- package/lib/commonjs/mol-gl/shader/marching-cubes/active-voxels.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/marching-cubes/active-voxels.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/marching-cubes/isosurface.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/marching-cubes/isosurface.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/marking/edge.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/marking/edge.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/marking/overlay.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/marking/overlay.frag.js +5 -0
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/mesh.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/mesh.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/outlines.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/outlines.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/points.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/points.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/points.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +11 -0
- package/lib/commonjs/mol-gl/shader/quad.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/quad.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/smaa/blend.frag.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/blend.frag.js +13 -0
- package/lib/commonjs/mol-gl/shader/smaa/blend.vert.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/blend.vert.js +13 -0
- package/lib/commonjs/mol-gl/shader/smaa/edges.frag.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/edges.frag.js +13 -0
- package/lib/commonjs/mol-gl/shader/smaa/edges.vert.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/edges.vert.js +13 -0
- package/lib/commonjs/mol-gl/shader/smaa/weights.frag.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/weights.frag.js +13 -0
- package/lib/commonjs/mol-gl/shader/smaa/weights.vert.d.ts +9 -0
- package/lib/commonjs/mol-gl/shader/smaa/weights.vert.js +13 -0
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/spheres.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/spheres.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.js +11 -0
- package/lib/commonjs/mol-gl/shader/ssao.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/ssao.frag.js +11 -0
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/text.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader/text.vert.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/text.vert.js +10 -0
- package/lib/commonjs/mol-gl/shader/util/grid3d-template.frag.d.ts +6 -0
- package/lib/commonjs/mol-gl/shader/util/grid3d-template.frag.js +10 -0
- package/lib/commonjs/mol-gl/shader-code.d.ts +47 -0
- package/lib/commonjs/mol-gl/shader-code.js +281 -0
- package/lib/commonjs/mol-gl/webgl/buffer.d.ts +67 -0
- package/lib/commonjs/mol-gl/webgl/buffer.js +180 -0
- package/lib/commonjs/mol-gl/webgl/compat.d.ts +96 -0
- package/lib/commonjs/mol-gl/webgl/compat.js +343 -0
- package/lib/commonjs/mol-gl/webgl/context.d.ts +84 -0
- package/lib/commonjs/mol-gl/webgl/context.js +309 -0
- package/lib/commonjs/mol-gl/webgl/extensions.d.ts +25 -0
- package/lib/commonjs/mol-gl/webgl/extensions.js +102 -0
- package/lib/commonjs/mol-gl/webgl/framebuffer.d.ts +15 -0
- package/lib/commonjs/mol-gl/webgl/framebuffer.js +71 -0
- package/lib/commonjs/mol-gl/webgl/program.d.ts +32 -0
- package/lib/commonjs/mol-gl/webgl/program.js +196 -0
- package/lib/commonjs/mol-gl/webgl/render-item.d.ts +54 -0
- package/lib/commonjs/mol-gl/webgl/render-item.js +335 -0
- package/lib/commonjs/mol-gl/webgl/render-target.d.ts +23 -0
- package/lib/commonjs/mol-gl/webgl/render-target.js +89 -0
- package/lib/commonjs/mol-gl/webgl/renderbuffer.d.ts +20 -0
- package/lib/commonjs/mol-gl/webgl/renderbuffer.js +83 -0
- package/lib/commonjs/mol-gl/webgl/resources.d.ts +38 -0
- package/lib/commonjs/mol-gl/webgl/resources.js +128 -0
- package/lib/commonjs/mol-gl/webgl/shader.d.ts +19 -0
- package/lib/commonjs/mol-gl/webgl/shader.js +50 -0
- package/lib/commonjs/mol-gl/webgl/state.d.ts +60 -0
- package/lib/commonjs/mol-gl/webgl/state.js +147 -0
- package/lib/commonjs/mol-gl/webgl/texture.d.ts +75 -0
- package/lib/commonjs/mol-gl/webgl/texture.js +398 -0
- package/lib/commonjs/mol-gl/webgl/uniform.d.ts +45 -0
- package/lib/commonjs/mol-gl/webgl/uniform.js +112 -0
- package/lib/commonjs/mol-gl/webgl/vertex-array.d.ts +17 -0
- package/lib/commonjs/mol-gl/webgl/vertex-array.js +69 -0
- package/lib/commonjs/mol-io/common/ascii.d.ts +6 -0
- package/lib/commonjs/mol-io/common/ascii.js +15 -0
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.d.ts +50 -0
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.js +396 -0
- package/lib/commonjs/mol-io/common/binary-cif/classifier.d.ts +8 -0
- package/lib/commonjs/mol-io/common/binary-cif/classifier.js +173 -0
- package/lib/commonjs/mol-io/common/binary-cif/decoder.d.ts +12 -0
- package/lib/commonjs/mol-io/common/binary-cif/decoder.js +180 -0
- package/lib/commonjs/mol-io/common/binary-cif/encoding.d.ts +96 -0
- package/lib/commonjs/mol-io/common/binary-cif/encoding.js +47 -0
- package/lib/commonjs/mol-io/common/binary-cif.d.ts +9 -0
- package/lib/commonjs/mol-io/common/binary-cif.js +15 -0
- package/lib/commonjs/mol-io/common/binary.d.ts +9 -0
- package/lib/commonjs/mol-io/common/binary.js +36 -0
- package/lib/commonjs/mol-io/common/file-handle.d.ts +43 -0
- package/lib/commonjs/mol-io/common/file-handle.js +55 -0
- package/lib/commonjs/mol-io/common/msgpack/decode.d.ts +1 -0
- package/lib/commonjs/mol-io/common/msgpack/decode.js +204 -0
- package/lib/commonjs/mol-io/common/msgpack/encode.d.ts +1 -0
- package/lib/commonjs/mol-io/common/msgpack/encode.js +290 -0
- package/lib/commonjs/mol-io/common/simple-buffer.d.ts +48 -0
- package/lib/commonjs/mol-io/common/simple-buffer.js +90 -0
- package/lib/commonjs/mol-io/common/typed-array.d.ts +30 -0
- package/lib/commonjs/mol-io/common/typed-array.js +83 -0
- package/lib/commonjs/mol-io/common/utf8.d.ts +10 -0
- package/lib/commonjs/mol-io/common/utf8.js +131 -0
- package/lib/commonjs/mol-io/reader/ccp4/parser.d.ts +19 -0
- package/lib/commonjs/mol-io/reader/ccp4/parser.js +193 -0
- package/lib/commonjs/mol-io/reader/ccp4/schema.d.ts +118 -0
- package/lib/commonjs/mol-io/reader/ccp4/schema.js +9 -0
- package/lib/commonjs/mol-io/reader/cif/binary/field.d.ts +9 -0
- package/lib/commonjs/mol-io/reader/cif/binary/field.js +54 -0
- package/lib/commonjs/mol-io/reader/cif/binary/parser.d.ts +9 -0
- package/lib/commonjs/mol-io/reader/cif/binary/parser.js +73 -0
- package/lib/commonjs/mol-io/reader/cif/data-model.d.ts +85 -0
- package/lib/commonjs/mol-io/reader/cif/data-model.js +307 -0
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +491 -0
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +497 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +12 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.js +18 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +390 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +398 -0
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +684 -0
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +750 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ddl.d.ts +0 -0
- package/lib/commonjs/mol-io/reader/cif/schema/ddl.js +3 -0
- package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +52 -0
- package/lib/commonjs/mol-io/reader/cif/schema/density-server.js +60 -0
- package/lib/commonjs/mol-io/reader/cif/schema/dic.d.ts +51 -0
- package/lib/commonjs/mol-io/reader/cif/schema/dic.js +63 -0
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +39 -0
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +28 -0
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +5036 -0
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +5046 -0
- package/lib/commonjs/mol-io/reader/cif/schema.d.ts +16 -0
- package/lib/commonjs/mol-io/reader/cif/schema.js +211 -0
- package/lib/commonjs/mol-io/reader/cif/text/parser.d.ts +27 -0
- package/lib/commonjs/mol-io/reader/cif/text/parser.js +732 -0
- package/lib/commonjs/mol-io/reader/cif.d.ts +32 -0
- package/lib/commonjs/mol-io/reader/cif.js +36 -0
- package/lib/commonjs/mol-io/reader/common/binary/column.d.ts +5 -0
- package/lib/commonjs/mol-io/reader/common/binary/column.js +7 -0
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.d.ts +9 -0
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.js +52 -0
- package/lib/commonjs/mol-io/reader/common/text/column/token.d.ts +12 -0
- package/lib/commonjs/mol-io/reader/common/text/column/token.js +63 -0
- package/lib/commonjs/mol-io/reader/common/text/number-parser.d.ts +26 -0
- package/lib/commonjs/mol-io/reader/common/text/number-parser.js +163 -0
- package/lib/commonjs/mol-io/reader/common/text/tokenizer.d.ts +66 -0
- package/lib/commonjs/mol-io/reader/common/text/tokenizer.js +307 -0
- package/lib/commonjs/mol-io/reader/csv/data-model.d.ts +20 -0
- package/lib/commonjs/mol-io/reader/csv/data-model.js +20 -0
- package/lib/commonjs/mol-io/reader/csv/field.d.ts +7 -0
- package/lib/commonjs/mol-io/reader/csv/field.js +11 -0
- package/lib/commonjs/mol-io/reader/csv/parser.d.ts +16 -0
- package/lib/commonjs/mol-io/reader/csv/parser.js +259 -0
- package/lib/commonjs/mol-io/reader/csv/schema.d.ts +6 -0
- package/lib/commonjs/mol-io/reader/csv/schema.js +11 -0
- package/lib/commonjs/mol-io/reader/cube/parser.d.ts +41 -0
- package/lib/commonjs/mol-io/reader/cube/parser.js +114 -0
- package/lib/commonjs/mol-io/reader/dcd/parser.d.ts +30 -0
- package/lib/commonjs/mol-io/reader/dcd/parser.js +170 -0
- package/lib/commonjs/mol-io/reader/dsn6/parser.d.ts +22 -0
- package/lib/commonjs/mol-io/reader/dsn6/parser.js +188 -0
- package/lib/commonjs/mol-io/reader/dsn6/schema.d.ts +43 -0
- package/lib/commonjs/mol-io/reader/dsn6/schema.js +8 -0
- package/lib/commonjs/mol-io/reader/dx/parser.d.ts +24 -0
- package/lib/commonjs/mol-io/reader/dx/parser.js +129 -0
- package/lib/commonjs/mol-io/reader/gro/parser.d.ts +10 -0
- package/lib/commonjs/mol-io/reader/gro/parser.js +173 -0
- package/lib/commonjs/mol-io/reader/mol/parser.d.ts +53 -0
- package/lib/commonjs/mol-io/reader/mol/parser.js +204 -0
- package/lib/commonjs/mol-io/reader/mol2/parser.d.ts +10 -0
- package/lib/commonjs/mol-io/reader/mol2/parser.js +322 -0
- package/lib/commonjs/mol-io/reader/mol2/schema.d.ts +59 -0
- package/lib/commonjs/mol-io/reader/mol2/schema.js +8 -0
- package/lib/commonjs/mol-io/reader/obj/parser.js +35 -0
- package/lib/commonjs/mol-io/reader/pdb/parser.d.ts +10 -0
- package/lib/commonjs/mol-io/reader/pdb/parser.js +35 -0
- package/lib/commonjs/mol-io/reader/pdb/schema.d.ts +12 -0
- package/lib/commonjs/mol-io/reader/pdb/schema.js +9 -0
- package/lib/commonjs/mol-io/reader/ply/parser.d.ts +9 -0
- package/lib/commonjs/mol-io/reader/ply/parser.js +253 -0
- package/lib/commonjs/mol-io/reader/ply/schema.d.ts +52 -0
- package/lib/commonjs/mol-io/reader/ply/schema.js +50 -0
- package/lib/commonjs/mol-io/reader/psf/parser.d.ts +29 -0
- package/lib/commonjs/mol-io/reader/psf/parser.js +282 -0
- package/lib/commonjs/mol-io/reader/result.d.ts +19 -0
- package/lib/commonjs/mol-io/reader/result.js +48 -0
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.d.ts +15 -0
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js +100 -0
- package/lib/commonjs/mol-io/reader/sdf/parser.d.ts +24 -0
- package/lib/commonjs/mol-io/reader/sdf/parser.js +111 -0
- package/lib/commonjs/mol-io/reader/xtc/parser.d.ts +23 -0
- package/lib/commonjs/mol-io/reader/xtc/parser.js +377 -0
- package/lib/commonjs/mol-io/reader/xyz/parser.d.ts +19 -0
- package/lib/commonjs/mol-io/reader/xyz/parser.js +61 -0
- package/lib/commonjs/mol-io/utils/short-string-pool.d.ts +18 -0
- package/lib/commonjs/mol-io/utils/short-string-pool.js +26 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.d.ts +33 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.js +191 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/text.d.ts +27 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/text.js +257 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/util.d.ts +19 -0
- package/lib/commonjs/mol-io/writer/cif/encoder/util.js +36 -0
- package/lib/commonjs/mol-io/writer/cif/encoder.d.ts +108 -0
- package/lib/commonjs/mol-io/writer/cif/encoder.js +270 -0
- package/lib/commonjs/mol-io/writer/cif.d.ts +46 -0
- package/lib/commonjs/mol-io/writer/cif.js +98 -0
- package/lib/commonjs/mol-io/writer/encoder.d.ts +12 -0
- package/lib/commonjs/mol-io/writer/encoder.js +8 -0
- package/lib/commonjs/mol-io/writer/ligand-encoder.js +127 -0
- package/lib/commonjs/mol-io/writer/mol/encoder.js +125 -0
- package/lib/commonjs/mol-io/writer/mol.js +18 -0
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +328 -0
- package/lib/commonjs/mol-io/writer/mol2.js +18 -0
- package/lib/commonjs/mol-io/writer/sdf.js +18 -0
- package/lib/commonjs/mol-io/writer/writer.d.ts +12 -0
- package/lib/commonjs/mol-io/writer/writer.js +8 -0
- package/lib/commonjs/mol-math/approx.d.ts +37 -0
- package/lib/commonjs/mol-math/approx.js +211 -0
- package/lib/commonjs/mol-math/easing.d.ts +25 -0
- package/lib/commonjs/mol-math/easing.js +91 -0
- package/lib/commonjs/mol-math/geometry/boundary-helper.d.ts +31 -0
- package/lib/commonjs/mol-math/geometry/boundary-helper.js +150 -0
- package/lib/commonjs/mol-math/geometry/boundary.d.ts +13 -0
- package/lib/commonjs/mol-math/geometry/boundary.js +54 -0
- package/lib/commonjs/mol-math/geometry/centroid-helper.d.ts +31 -0
- package/lib/commonjs/mol-math/geometry/centroid-helper.js +114 -0
- package/lib/commonjs/mol-math/geometry/common.d.ts +41 -0
- package/lib/commonjs/mol-math/geometry/common.js +25 -0
- package/lib/commonjs/mol-math/geometry/distance-transform.d.ts +10 -0
- package/lib/commonjs/mol-math/geometry/distance-transform.js +57 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.d.ts +10 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.js +139 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.d.ts +15 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +390 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density.d.ts +28 -0
- package/lib/commonjs/mol-math/geometry/gaussian-density.js +52 -0
- package/lib/commonjs/mol-math/geometry/lookup3d/common.d.ts +29 -0
- package/lib/commonjs/mol-math/geometry/lookup3d/common.js +35 -0
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.d.ts +19 -0
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.js +199 -0
- package/lib/commonjs/mol-math/geometry/molecular-surface.js +357 -0
- package/lib/commonjs/mol-math/geometry/primitives/axes3d.d.ts +28 -0
- package/lib/commonjs/mol-math/geometry/primitives/axes3d.js +71 -0
- package/lib/commonjs/mol-math/geometry/primitives/box3d.d.ts +40 -0
- package/lib/commonjs/mol-math/geometry/primitives/box3d.js +131 -0
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.d.ts +60 -0
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +269 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/cell.d.ts +17 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/cell.js +40 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/construction.d.ts +50 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/construction.js +169 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/tables.d.ts +371 -0
- package/lib/commonjs/mol-math/geometry/spacegroup/tables.js +1532 -0
- package/lib/commonjs/mol-math/geometry/symmetry-operator.d.ts +76 -0
- package/lib/commonjs/mol-math/geometry/symmetry-operator.js +226 -0
- package/lib/commonjs/mol-math/geometry.d.ts +14 -0
- package/lib/commonjs/mol-math/geometry.js +18 -0
- package/lib/commonjs/mol-math/graph/int-adjacency-graph.d.ts +136 -0
- package/lib/commonjs/mol-math/graph/int-adjacency-graph.js +367 -0
- package/lib/commonjs/mol-math/graph/inter-unit-graph.d.ts +71 -0
- package/lib/commonjs/mol-math/graph/inter-unit-graph.js +148 -0
- package/lib/commonjs/mol-math/graph.d.ts +6 -0
- package/lib/commonjs/mol-math/graph.js +10 -0
- package/lib/commonjs/mol-math/histogram.d.ts +15 -0
- package/lib/commonjs/mol-math/histogram.js +35 -0
- package/lib/commonjs/mol-math/interpolate.d.ts +18 -0
- package/lib/commonjs/mol-math/interpolate.js +72 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/common.d.ts +8 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/common.js +26 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/mat3.d.ts +79 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/mat3.js +439 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/mat4.d.ts +150 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/mat4.js +1032 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/minimize-rmsd.d.ts +33 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/minimize-rmsd.js +136 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/quat.d.ts +89 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +435 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec2.d.ts +50 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js +159 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.d.ts +183 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +583 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec4.d.ts +63 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js +221 -0
- package/lib/commonjs/mol-math/linear-algebra/3d.d.ts +15 -0
- package/lib/commonjs/mol-math/linear-algebra/3d.js +35 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/evd.d.ts +20 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/evd.js +259 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/matrix.d.ts +36 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/matrix.js +111 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/principal-axes.d.ts +21 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/principal-axes.js +134 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/svd.d.ts +11 -0
- package/lib/commonjs/mol-math/linear-algebra/matrix/svd.js +281 -0
- package/lib/commonjs/mol-math/linear-algebra/tensor.d.ts +49 -0
- package/lib/commonjs/mol-math/linear-algebra/tensor.js +325 -0
- package/lib/commonjs/mol-math/linear-algebra.d.ts +7 -0
- package/lib/commonjs/mol-math/linear-algebra.js +11 -0
- package/lib/commonjs/mol-math/misc.d.ts +16 -0
- package/lib/commonjs/mol-math/misc.js +69 -0
- package/lib/commonjs/mol-model/custom-property.js +82 -0
- package/lib/commonjs/mol-model/location.js +23 -0
- package/lib/commonjs/mol-model/loci.d.ts +20 -20
- package/lib/commonjs/mol-model/sequence/alignment/alignment.d.ts +17 -0
- package/lib/commonjs/mol-model/sequence/alignment/alignment.js +181 -0
- package/lib/commonjs/mol-model/sequence/alignment/sequence.js +97 -0
- package/lib/commonjs/mol-model/sequence/alignment/substitution-matrix.d.ts +23 -0
- package/lib/commonjs/mol-model/sequence/alignment/substitution-matrix.js +75 -0
- package/lib/commonjs/mol-model/sequence/alignment.d.ts +0 -0
- package/lib/commonjs/mol-model/sequence/alignment.js +2 -0
- package/lib/commonjs/mol-model/sequence/constants.d.ts +10 -0
- package/lib/commonjs/mol-model/sequence/constants.js +73 -0
- package/lib/commonjs/mol-model/sequence/sequence.d.ts +43 -0
- package/lib/commonjs/mol-model/sequence/sequence.js +162 -0
- package/lib/commonjs/mol-model/sequence.d.ts +6 -0
- package/lib/commonjs/mol-model/sequence.js +10 -0
- package/lib/commonjs/mol-model/shape/provider.js +8 -0
- package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
- package/lib/commonjs/mol-model/shape/shape.js +216 -0
- package/lib/commonjs/mol-model/shape.js +10 -0
- package/lib/commonjs/mol-model/structure/coordinates/coordinates.d.ts +62 -0
- package/lib/commonjs/mol-model/structure/coordinates/coordinates.js +124 -0
- package/lib/commonjs/mol-model/structure/coordinates.d.ts +6 -0
- package/lib/commonjs/mol-model/structure/coordinates.js +10 -0
- package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +160 -0
- package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +89 -0
- package/lib/commonjs/mol-model/structure/export/categories/misc.js +63 -0
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +102 -0
- package/lib/commonjs/mol-model/structure/export/categories/sequence.js +34 -0
- package/lib/commonjs/mol-model/structure/export/categories/utils.js +110 -0
- package/lib/commonjs/mol-model/structure/export/mmcif.js +247 -0
- package/lib/commonjs/mol-model/structure/model/indexing.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/model/indexing.js +8 -0
- package/lib/commonjs/mol-model/structure/model/model.js +327 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.d.ts +13 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js +93 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/conformation.d.ts +41 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/conformation.js +9 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.d.ts +244 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.js +110 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/measures.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/measures.js +38 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/types.d.ts +155 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic/types.js +70 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic.d.ts +8 -0
- package/lib/commonjs/mol-model/structure/model/properties/atomic.js +12 -0
- package/lib/commonjs/mol-model/structure/model/properties/coarse/conformation.d.ts +57 -0
- package/lib/commonjs/mol-model/structure/model/properties/coarse/conformation.js +9 -0
- package/lib/commonjs/mol-model/structure/model/properties/common.d.ts +30 -0
- package/lib/commonjs/mol-model/structure/model/properties/common.js +12 -0
- package/lib/commonjs/mol-model/structure/model/properties/custom/indexed.js +197 -0
- package/lib/commonjs/mol-model/structure/model/properties/global-transform.js +82 -0
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.d.ts +47 -0
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.js +13 -0
- package/lib/commonjs/mol-model/structure/model/properties/symmetry.js +69 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +84 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.d.ts +10 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +229 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-ranges.js +117 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js +97 -0
- package/lib/commonjs/mol-model/structure/model/properties/utils/residue-set.js +98 -0
- package/lib/commonjs/mol-model/structure/model/types/ions.d.ts +8 -0
- package/lib/commonjs/mol-model/structure/model/types/ions.js +12 -0
- package/lib/commonjs/mol-model/structure/model/types/lipids.d.ts +8 -0
- package/lib/commonjs/mol-model/structure/model/types/lipids.js +12 -0
- package/lib/commonjs/mol-model/structure/model/types.d.ts +261 -0
- package/lib/commonjs/mol-model/structure/model/types.js +620 -0
- package/lib/commonjs/mol-model/structure/model/util.js +52 -0
- package/lib/commonjs/mol-model/structure/model.js +20 -0
- package/lib/commonjs/mol-model/structure/query/context.js +135 -0
- package/lib/commonjs/mol-model/structure/query/predicates.js +120 -0
- package/lib/commonjs/mol-model/structure/query/queries/combinators.js +73 -0
- package/lib/commonjs/mol-model/structure/query/queries/filters.js +309 -0
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +351 -0
- package/lib/commonjs/mol-model/structure/query/queries/internal.js +130 -0
- package/lib/commonjs/mol-model/structure/query/queries/modifiers.js +614 -0
- package/lib/commonjs/mol-model/structure/query/query.js +18 -0
- package/lib/commonjs/mol-model/structure/query/selection.js +163 -0
- package/lib/commonjs/mol-model/structure/query/utils/builders.js +86 -0
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.js +126 -0
- package/lib/commonjs/mol-model/structure/query/utils/structure-set.js +138 -0
- package/lib/commonjs/mol-model/structure/query.js +29 -0
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js +390 -0
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.d.ts +64 -0
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.js +322 -0
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/data.js +19 -0
- package/lib/commonjs/mol-model/structure/structure/element/bundle.js +247 -0
- package/lib/commonjs/mol-model/structure/structure/element/element.js +15 -0
- package/lib/commonjs/mol-model/structure/structure/element/location.js +67 -0
- package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +723 -0
- package/lib/commonjs/mol-model/structure/structure/element/stats.js +359 -0
- package/lib/commonjs/mol-model/structure/structure/element/util.js +47 -0
- package/lib/commonjs/mol-model/structure/structure/element.js +13 -0
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/structure/properties.js +177 -0
- package/lib/commonjs/mol-model/structure/structure/structure.js +1390 -0
- package/lib/commonjs/mol-model/structure/structure/symmetry.js +337 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/common.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/common.js +122 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/data.js +46 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/element-set-intra-bond-cache.js +50 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +199 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +240 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds.js +224 -0
- package/lib/commonjs/mol-model/structure/structure/unit/rings/compute.js +337 -0
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +218 -0
- package/lib/commonjs/mol-model/structure/structure/unit.d.ts +4 -4
- package/lib/commonjs/mol-model/structure/structure/unit.js +492 -0
- package/lib/commonjs/mol-model/structure/structure/util/boundary.js +50 -0
- package/lib/commonjs/mol-model/structure/structure/util/lookup3d.js +200 -0
- package/lib/commonjs/mol-model/structure/structure/util/polymer.js +123 -0
- package/lib/commonjs/mol-model/structure/structure/util/principal-axes.js +28 -0
- package/lib/commonjs/mol-model/structure/structure/util/subset-builder.js +115 -0
- package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.js +135 -0
- package/lib/commonjs/mol-model/structure/structure/util/superposition.js +91 -0
- package/lib/commonjs/mol-model/structure/structure/util/unique-subset-builder.js +100 -0
- package/lib/commonjs/mol-model/structure/structure/util/unit-transforms.js +73 -0
- package/lib/commonjs/mol-model/structure/structure.js +24 -0
- package/lib/commonjs/mol-model/structure/topology/topology.d.ts +24 -0
- package/lib/commonjs/mol-model/structure/topology/topology.js +24 -0
- package/lib/commonjs/mol-model/structure/topology.d.ts +6 -0
- package/lib/commonjs/mol-model/structure/topology.js +10 -0
- package/lib/commonjs/mol-model/structure/trajectory.js +22 -0
- package/lib/commonjs/mol-model/structure/util.js +60 -0
- package/lib/commonjs/mol-model/structure.js +16 -0
- package/lib/commonjs/mol-model/volume/grid.d.ts +41 -0
- package/lib/commonjs/mol-model/volume/grid.js +67 -0
- package/lib/commonjs/mol-model-formats/format.d.ts +11 -0
- package/lib/commonjs/mol-model-formats/format.js +9 -0
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -6
- package/lib/commonjs/mol-model-formats/shape/ply.js +295 -0
- package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +174 -0
- package/lib/commonjs/mol-model-formats/structure/basic/coarse.js +84 -0
- package/lib/commonjs/mol-model-formats/structure/basic/entities.js +137 -0
- package/lib/commonjs/mol-model-formats/structure/basic/parser.js +245 -0
- package/lib/commonjs/mol-model-formats/structure/basic/properties.js +132 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +194 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.js +45 -0
- package/lib/commonjs/mol-model-formats/structure/basic/sequence.js +40 -0
- package/lib/commonjs/mol-model-formats/structure/basic/sort.d.ts +13 -0
- package/lib/commonjs/mol-model-formats/structure/basic/sort.js +72 -0
- package/lib/commonjs/mol-model-formats/structure/basic/util.d.ts +8 -0
- package/lib/commonjs/mol-model-formats/structure/basic/util.js +22 -0
- package/lib/commonjs/mol-model-formats/structure/cif-core.js +258 -0
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +50 -0
- package/lib/commonjs/mol-model-formats/structure/common/component.js +185 -0
- package/lib/commonjs/mol-model-formats/structure/common/entity.d.ts +40 -0
- package/lib/commonjs/mol-model-formats/structure/common/entity.js +80 -0
- package/lib/commonjs/mol-model-formats/structure/common/property.js +66 -0
- package/lib/commonjs/mol-model-formats/structure/common/util.d.ts +6 -0
- package/lib/commonjs/mol-model-formats/structure/common/util.js +27 -0
- package/lib/commonjs/mol-model-formats/structure/cube.js +78 -0
- package/lib/commonjs/mol-model-formats/structure/dcd.d.ts +9 -0
- package/lib/commonjs/mol-model-formats/structure/dcd.js +67 -0
- package/lib/commonjs/mol-model-formats/structure/gro.js +126 -0
- package/lib/commonjs/mol-model-formats/structure/mmcif.js +93 -0
- package/lib/commonjs/mol-model-formats/structure/mol.js +104 -0
- package/lib/commonjs/mol-model-formats/structure/mol2.js +163 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/anisotropic.d.ts +36 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/anisotropic.js +130 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/assembly.d.ts +10 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js +243 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +35 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +145 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/conect.d.ts +11 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/conect.js +75 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/entity.d.ts +9 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/entity.js +113 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.d.ts +9 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +205 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.d.ts +9 -0
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +231 -0
- package/lib/commonjs/mol-model-formats/structure/pdb.js +71 -0
- package/lib/commonjs/mol-model-formats/structure/property/anisotropic.js +72 -0
- package/lib/commonjs/mol-model-formats/structure/property/assembly.js +126 -0
- package/lib/commonjs/mol-model-formats/structure/property/atoms/chem_comp.js +87 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +117 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +62 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +167 -0
- package/lib/commonjs/mol-model-formats/structure/property/partial-charge.js +18 -0
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +190 -0
- package/lib/commonjs/mol-model-formats/structure/property/symmetry.js +77 -0
- package/lib/commonjs/mol-model-formats/structure/psf.d.ts +16 -0
- package/lib/commonjs/mol-model-formats/structure/psf.js +123 -0
- package/lib/commonjs/mol-model-formats/structure/sdf.js +27 -0
- package/lib/commonjs/mol-model-formats/structure/util.d.ts +8 -0
- package/lib/commonjs/mol-model-formats/structure/util.js +79 -0
- package/lib/commonjs/mol-model-formats/structure/xtc.d.ts +10 -0
- package/lib/commonjs/mol-model-formats/structure/xtc.js +48 -0
- package/lib/commonjs/mol-model-formats/structure/xyz.js +92 -0
- package/lib/commonjs/mol-model-formats/volume/ccp4.js +96 -0
- package/lib/commonjs/mol-model-formats/volume/cube.js +75 -0
- package/lib/commonjs/mol-model-formats/volume/density-server.js +61 -0
- package/lib/commonjs/mol-model-formats/volume/dsn6.js +67 -0
- package/lib/commonjs/mol-model-formats/volume/dx.js +58 -0
- package/lib/commonjs/mol-model-props/common/custom-element-property.js +110 -0
- package/lib/commonjs/mol-model-props/common/custom-model-property.js +110 -0
- package/lib/commonjs/mol-model-props/common/custom-property.js +70 -0
- package/lib/commonjs/mol-model-props/common/custom-structure-property.js +114 -0
- package/lib/commonjs/mol-model-props/common/wrapper.js +46 -0
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/area.js +101 -0
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/common.js +46 -0
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +148 -0
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +121 -0
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area.js +63 -0
- package/lib/commonjs/mol-model-props/computed/chemistry/functional-group.js +207 -0
- package/lib/commonjs/mol-model-props/computed/chemistry/geometry.js +121 -0
- package/lib/commonjs/mol-model-props/computed/chemistry/util.js +122 -0
- package/lib/commonjs/mol-model-props/computed/chemistry/valence-model.js +326 -0
- package/lib/commonjs/mol-model-props/computed/helix-orientation/helix-orientation.js +111 -0
- package/lib/commonjs/mol-model-props/computed/helix-orientation.js +29 -0
- package/lib/commonjs/mol-model-props/computed/interactions.js +39 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/backbone-hbonds.js +125 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bends.js +60 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bridges.js +74 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/common.js +26 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/dihedral-angles.js +51 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/helices.js +64 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/ladders.js +99 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/protein-info.js +37 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/sheets.js +58 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/trace-lookup.js +23 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/turns.js +40 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp.js +212 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/zhang-skolnik.d.ts +0 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure/zhang-skolnik.js +3 -0
- package/lib/commonjs/mol-model-props/computed/secondary-structure.js +119 -0
- package/lib/commonjs/mol-model-props/computed/themes/accessible-surface-area.js +82 -0
- package/lib/commonjs/mol-model-props/computed/valence-model.js +39 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/color.js +68 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/format.js +93 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/property.js +197 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.js +127 -0
- package/lib/commonjs/mol-model-props/integrative/pair-restraints.js +41 -0
- package/lib/commonjs/mol-model-props/sequence/best-database-mapping.js +88 -0
- package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts +2 -2
- package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.js +119 -0
- package/lib/commonjs/mol-plugin/animation-loop.js +75 -0
- package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/behavior.js +179 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/camera.js +137 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js +139 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/secondary-structure.js +42 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js +103 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/integrative/cross-link-restraint.js +47 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/best-database-mapping.js +70 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/structure-info.js +133 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +24 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +3 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +309 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +245 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.js +436 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.js +28 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.js +387 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +167 -0
- package/lib/commonjs/mol-plugin/behavior/static/camera.js +37 -0
- package/lib/commonjs/mol-plugin/behavior/static/misc.js +31 -0
- package/lib/commonjs/mol-plugin/behavior/static/representation.js +100 -0
- package/lib/commonjs/mol-plugin/behavior/static/state.js +259 -0
- package/lib/commonjs/mol-plugin/behavior.js +29 -0
- package/lib/commonjs/mol-plugin/command.js +106 -0
- package/lib/commonjs/mol-plugin/commands.d.ts +2 -2
- package/lib/commonjs/mol-plugin/commands.js +60 -0
- package/lib/commonjs/mol-plugin/config.d.ts +1 -1
- package/lib/commonjs/mol-plugin/context.js +441 -0
- package/lib/commonjs/mol-plugin/features.d.ts +9 -0
- package/lib/commonjs/mol-plugin/features.js +38 -0
- package/lib/commonjs/mol-plugin/layout.d.ts +4 -4
- package/lib/commonjs/mol-plugin/layout.js +179 -0
- package/lib/commonjs/mol-plugin/state.js +184 -0
- package/lib/commonjs/mol-plugin/util/substructure-parent-helper.js +106 -0
- package/lib/commonjs/mol-plugin/util/task-manager.d.ts +40 -0
- package/lib/commonjs/mol-plugin/util/task-manager.js +144 -0
- package/lib/commonjs/mol-plugin/util/toast.js +85 -0
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.js +413 -0
- package/lib/commonjs/mol-plugin/version.d.ts +10 -0
- package/lib/commonjs/mol-plugin/version.js +14 -0
- package/lib/commonjs/mol-plugin-state/actions/file.js +189 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/actions/structure.js +412 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/assembly-unwind.js +115 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/camera-rock.js +62 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/camera-spin.js +61 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/explode-units.js +86 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.js +172 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/spin-structure.js +89 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/state-interpolation.js +81 -0
- package/lib/commonjs/mol-plugin-state/animation/built-in/state-snapshots.js +97 -0
- package/lib/commonjs/mol-plugin-state/animation/helpers.js +88 -0
- package/lib/commonjs/mol-plugin-state/animation/model.js +26 -0
- package/lib/commonjs/mol-plugin-state/builder/data.js +53 -0
- package/lib/commonjs/mol-plugin-state/builder/preset-provider.js +8 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +11 -11
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +291 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.js +114 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +18 -18
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +529 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.js +156 -0
- package/lib/commonjs/mol-plugin-state/builder/structure.js +208 -0
- package/lib/commonjs/mol-plugin-state/component.d.ts +22 -0
- package/lib/commonjs/mol-plugin-state/component.js +83 -0
- package/lib/commonjs/mol-plugin-state/formats/provider.js +33 -0
- package/lib/commonjs/mol-plugin-state/formats/shape.js +45 -0
- package/lib/commonjs/mol-plugin-state/formats/structure.js +65 -0
- package/lib/commonjs/mol-plugin-state/formats/trajectory.js +173 -0
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +10 -10
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +207 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.js +101 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/helpers/structure-component.js +184 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-overpaint.js +126 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-query.js +53 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-representation-params.js +85 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +723 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-substance.js +126 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-transparency.js +124 -0
- package/lib/commonjs/mol-plugin-state/helpers/volume-representation-params.js +85 -0
- package/lib/commonjs/mol-plugin-state/manager/animation.js +304 -0
- package/lib/commonjs/mol-plugin-state/manager/camera.js +138 -0
- package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/interactivity.js +268 -0
- package/lib/commonjs/mol-plugin-state/manager/loci-label.js +95 -0
- package/lib/commonjs/mol-plugin-state/manager/snapshots.js +377 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +685 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/focus.js +176 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy-state.js +256 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.js +351 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js +376 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/selection.js +556 -0
- package/lib/commonjs/mol-plugin-state/manager/volume/hierarchy-state.js +133 -0
- package/lib/commonjs/mol-plugin-state/manager/volume/hierarchy.js +146 -0
- package/lib/commonjs/mol-plugin-state/objects.js +270 -0
- package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/data.js +606 -0
- package/lib/commonjs/mol-plugin-state/transforms/helpers.js +43 -0
- package/lib/commonjs/mol-plugin-state/transforms/misc.js +57 -0
- package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +7 -7
- package/lib/commonjs/mol-plugin-state/transforms/model.js +1288 -0
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +13 -13
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +1329 -0
- package/lib/commonjs/mol-plugin-state/transforms/shape.js +72 -0
- package/lib/commonjs/mol-plugin-state/transforms/volume.js +237 -0
- package/lib/commonjs/mol-plugin-state/transforms.js +24 -0
- package/lib/commonjs/mol-plugin-ui/base.js +104 -0
- package/lib/commonjs/mol-plugin-ui/context.js +35 -0
- package/lib/commonjs/mol-plugin-ui/controls/action-menu.js +250 -0
- package/lib/commonjs/mol-plugin-ui/controls/color.js +100 -0
- package/lib/commonjs/mol-plugin-ui/controls/common.d.ts +166 -0
- package/lib/commonjs/mol-plugin-ui/controls/common.js +255 -0
- package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +84 -0
- package/lib/commonjs/mol-plugin-ui/controls/icons.js +223 -0
- package/lib/commonjs/mol-plugin-ui/controls/legend.js +52 -0
- package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.d.ts +40 -0
- package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.js +311 -0
- package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.d.ts +10 -0
- package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.js +38 -0
- package/lib/commonjs/mol-plugin-ui/controls/parameters.js +1334 -0
- package/lib/commonjs/mol-plugin-ui/controls/screenshot.js +260 -0
- package/lib/commonjs/mol-plugin-ui/controls/slider.d.ts +147 -0
- package/lib/commonjs/mol-plugin-ui/controls/slider.js +624 -0
- package/lib/commonjs/mol-plugin-ui/controls.js +301 -0
- package/lib/commonjs/mol-plugin-ui/custom/volume.js +253 -0
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +14 -0
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +28 -0
- package/lib/commonjs/mol-plugin-ui/index.js +39 -0
- package/lib/commonjs/mol-plugin-ui/left-panel.js +156 -0
- package/lib/commonjs/mol-plugin-ui/plugin.js +256 -0
- package/lib/commonjs/mol-plugin-ui/sequence/chain.js +88 -0
- package/lib/commonjs/mol-plugin-ui/sequence/element.js +89 -0
- package/lib/commonjs/mol-plugin-ui/sequence/hetero.js +106 -0
- package/lib/commonjs/mol-plugin-ui/sequence/polymer.js +132 -0
- package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +282 -0
- package/lib/commonjs/mol-plugin-ui/sequence/wrapper.js +29 -0
- package/lib/commonjs/mol-plugin-ui/sequence.js +387 -0
- package/lib/commonjs/mol-plugin-ui/spec.js +18 -0
- package/lib/commonjs/mol-plugin-ui/state/actions.js +51 -0
- package/lib/commonjs/mol-plugin-ui/state/animation.js +55 -0
- package/lib/commonjs/mol-plugin-ui/state/apply-action.js +59 -0
- package/lib/commonjs/mol-plugin-ui/state/common.js +203 -0
- package/lib/commonjs/mol-plugin-ui/state/snapshots.js +349 -0
- package/lib/commonjs/mol-plugin-ui/state/tree.js +295 -0
- package/lib/commonjs/mol-plugin-ui/state/update-transform.js +115 -0
- package/lib/commonjs/mol-plugin-ui/structure/components.js +367 -0
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +233 -0
- package/lib/commonjs/mol-plugin-ui/structure/generic.js +155 -0
- package/lib/commonjs/mol-plugin-ui/structure/measurements.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/measurements.js +334 -0
- package/lib/commonjs/mol-plugin-ui/structure/selection.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/selection.js +354 -0
- package/lib/commonjs/mol-plugin-ui/structure/source.js +340 -0
- package/lib/commonjs/mol-plugin-ui/structure/superposition.js +332 -0
- package/lib/commonjs/mol-plugin-ui/structure/volume.js +324 -0
- package/lib/commonjs/mol-plugin-ui/task.js +98 -0
- package/lib/commonjs/mol-plugin-ui/toast.js +57 -0
- package/lib/commonjs/mol-plugin-ui/viewport/canvas.js +58 -0
- package/lib/commonjs/mol-plugin-ui/viewport/help.js +123 -0
- package/lib/commonjs/mol-plugin-ui/viewport/screenshot.js +103 -0
- package/lib/commonjs/mol-plugin-ui/viewport/simple-settings.js +155 -0
- package/lib/commonjs/mol-plugin-ui/viewport.js +83 -0
- package/lib/commonjs/mol-repr/representation.js +383 -0
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/angle.js +176 -0
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +3 -3
- package/lib/commonjs/mol-repr/shape/loci/common.js +20 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/dihedral.js +257 -0
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/distance.js +96 -0
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/label.js +65 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/orientation.js +103 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/plane.js +61 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.js +81 -0
- package/lib/commonjs/mol-repr/shape/representation.js +275 -0
- package/lib/commonjs/mol-repr/structure/complex-representation.js +182 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +7 -7
- package/lib/commonjs/mol-repr/structure/complex-visual.js +325 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/params.js +37 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +25 -25
- package/lib/commonjs/mol-repr/structure/registry.js +59 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/backbone.js +52 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +51 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +46 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +96 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +50 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +42 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.js +40 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/label.js +40 -0
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/line.js +54 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +41 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/orientation.js +39 -0
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/point.js +38 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.js +54 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.js +43 -0
- package/lib/commonjs/mol-repr/structure/representation.js +33 -0
- package/lib/commonjs/mol-repr/structure/units-representation.js +409 -0
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/units-visual.js +404 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.js +113 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +219 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +137 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-cross.js +77 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/element-point.js +64 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.js +58 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.js +102 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.js +133 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -12
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +379 -0
- 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 +69 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/label-text.js +137 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +99 -0
- 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 +67 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.js +148 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.js +202 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +118 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.js +124 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.js +101 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +88 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.js +89 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +191 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.js +111 -0
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +317 -0
- package/lib/commonjs/mol-repr/structure/visual/util/element.js +251 -0
- package/lib/commonjs/mol-repr/structure/visual/util/gaussian.js +104 -0
- package/lib/commonjs/mol-repr/structure/visual/util/link.js +366 -0
- package/lib/commonjs/mol-repr/structure/visual/util/molecular-surface.js +53 -0
- package/lib/commonjs/mol-repr/structure/visual/util/nucleotide.js +76 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone.js +115 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/curve-segment.d.ts +36 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/curve-segment.js +135 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/gap-iterator.js +66 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/trace-iterator.js +449 -0
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +269 -0
- package/lib/commonjs/mol-repr/util.js +185 -0
- package/lib/commonjs/mol-repr/visual.js +316 -0
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +6 -6
- package/lib/commonjs/mol-repr/volume/direct-volume.js +142 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +12 -12
- package/lib/commonjs/mol-repr/volume/isosurface.js +267 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +8 -8
- package/lib/commonjs/mol-repr/volume/registry.js +37 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/representation.js +310 -0
- package/lib/commonjs/mol-repr/volume/slice.d.ts +12 -12
- package/lib/commonjs/mol-repr/volume/slice.js +202 -0
- package/lib/commonjs/mol-repr/volume/util.js +168 -0
- package/lib/commonjs/mol-script/compiler.d.ts +0 -0
- package/lib/commonjs/mol-script/compiler.js +80 -0
- package/lib/commonjs/mol-script/language/builder.d.ts +756 -0
- package/lib/commonjs/mol-script/language/builder.js +74 -0
- package/lib/commonjs/mol-script/language/container.d.ts +6 -0
- package/lib/commonjs/mol-script/language/container.js +8 -0
- package/lib/commonjs/mol-script/language/expression-formatter.d.ts +2 -0
- package/lib/commonjs/mol-script/language/expression-formatter.js +130 -0
- package/lib/commonjs/mol-script/language/expression.d.ts +24 -0
- package/lib/commonjs/mol-script/language/expression.js +27 -0
- package/lib/commonjs/mol-script/language/helpers.d.ts +5 -0
- package/lib/commonjs/mol-script/language/helpers.js +57 -0
- package/lib/commonjs/mol-script/language/parser.d.ts +7 -0
- package/lib/commonjs/mol-script/language/parser.js +168 -0
- package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +254 -0
- package/lib/commonjs/mol-script/language/symbol-table/core.js +169 -0
- package/lib/commonjs/mol-script/language/symbol-table/internal.d.ts +22 -0
- package/lib/commonjs/mol-script/language/symbol-table/internal.js +33 -0
- package/lib/commonjs/mol-script/language/symbol-table/structure-query.d.ts +363 -0
- package/lib/commonjs/mol-script/language/symbol-table/structure-query.js +281 -0
- package/lib/commonjs/mol-script/language/symbol-table.d.ts +589 -0
- package/lib/commonjs/mol-script/language/symbol-table.js +25 -0
- package/lib/commonjs/mol-script/language/symbol.d.ts +73 -0
- package/lib/commonjs/mol-script/language/symbol.js +55 -0
- package/lib/commonjs/mol-script/language/type.d.ts +60 -0
- package/lib/commonjs/mol-script/language/type.js +40 -0
- package/lib/commonjs/mol-script/runtime/environment.d.ts +0 -0
- package/lib/commonjs/mol-script/runtime/environment.js +32 -0
- package/lib/commonjs/mol-script/runtime/expression.d.ts +0 -0
- package/lib/commonjs/mol-script/runtime/expression.js +21 -0
- package/lib/commonjs/mol-script/runtime/query/base.js +175 -0
- package/lib/commonjs/mol-script/runtime/query/compiler.js +11 -0
- package/lib/commonjs/mol-script/runtime/query/table.js +429 -0
- package/lib/commonjs/mol-script/runtime/runtime-macro.d.ts +0 -0
- package/lib/commonjs/mol-script/runtime/runtime-macro.js +68 -0
- package/lib/commonjs/mol-script/runtime/symbol.d.ts +0 -0
- package/lib/commonjs/mol-script/runtime/symbol.js +26 -0
- package/lib/commonjs/mol-script/script/mol-script/examples.d.ts +0 -0
- package/lib/commonjs/mol-script/script/mol-script/examples.js +105 -0
- package/lib/commonjs/mol-script/script/mol-script/parser.d.ts +0 -0
- package/lib/commonjs/mol-script/script/mol-script/parser.js +162 -0
- package/lib/commonjs/mol-script/script/mol-script/script-macro.d.ts +10 -0
- package/lib/commonjs/mol-script/script/mol-script/script-macro.js +47 -0
- package/lib/commonjs/mol-script/script/mol-script/symbols.d.ts +27 -0
- package/lib/commonjs/mol-script/script/mol-script/symbols.js +370 -0
- package/lib/commonjs/mol-script/script/parser.d.ts +8 -0
- package/lib/commonjs/mol-script/script/parser.js +9 -0
- package/lib/commonjs/mol-script/script.js +57 -0
- package/lib/commonjs/mol-script/util/id-list.js +89 -0
- package/lib/commonjs/mol-state/action/manager.js +99 -0
- package/lib/commonjs/mol-state/action.js +63 -0
- package/lib/commonjs/mol-state/index.js +17 -0
- package/lib/commonjs/mol-state/object.js +189 -0
- package/lib/commonjs/mol-state/state/builder.js +276 -0
- package/lib/commonjs/mol-state/state/selection.js +377 -0
- package/lib/commonjs/mol-state/state.js +992 -0
- package/lib/commonjs/mol-state/transform.js +199 -0
- package/lib/commonjs/mol-state/transformer.js +119 -0
- package/lib/commonjs/mol-state/tree/immutable.js +176 -0
- package/lib/commonjs/mol-state/tree/spine.js +86 -0
- package/lib/commonjs/mol-state/tree/transient.js +301 -0
- package/lib/commonjs/mol-state/tree.js +13 -0
- package/lib/commonjs/mol-task/execution/observable.d.ts +46 -0
- package/lib/commonjs/mol-task/execution/observable.js +246 -0
- package/lib/commonjs/mol-task/execution/progress.d.ts +22 -0
- package/lib/commonjs/mol-task/execution/progress.js +29 -0
- package/lib/commonjs/mol-task/execution/runtime-context.d.ts +24 -0
- package/lib/commonjs/mol-task/execution/runtime-context.js +15 -0
- package/lib/commonjs/mol-task/execution/synchronous.d.ts +12 -0
- package/lib/commonjs/mol-task/execution/synchronous.js +19 -0
- package/lib/commonjs/mol-task/index.d.ts +12 -0
- package/lib/commonjs/mol-task/index.js +21 -0
- package/lib/commonjs/mol-task/task.d.ts +49 -0
- package/lib/commonjs/mol-task/task.js +83 -0
- package/lib/commonjs/mol-task/util/chunked.d.ts +9 -0
- package/lib/commonjs/mol-task/util/chunked.js +53 -0
- package/lib/commonjs/mol-task/util/multistep.d.ts +10 -0
- package/lib/commonjs/mol-task/util/multistep.js +18 -0
- package/lib/commonjs/mol-task/util/scheduler.d.ts +13 -0
- package/lib/commonjs/mol-task/util/scheduler.js +194 -0
- package/lib/commonjs/mol-task/util/user-timing.d.ts +11 -0
- package/lib/commonjs/mol-task/util/user-timing.js +32 -0
- package/lib/commonjs/mol-theme/clipping.js +185 -0
- package/lib/commonjs/mol-theme/color/atom-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/atom-id.js +84 -0
- package/lib/commonjs/mol-theme/color/carbohydrate-symbol.js +70 -0
- package/lib/commonjs/mol-theme/color/chain-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/chain-id.js +118 -0
- package/lib/commonjs/mol-theme/color/element-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/element-index.js +75 -0
- package/lib/commonjs/mol-theme/color/element-symbol.d.ts +10 -10
- package/lib/commonjs/mol-theme/color/entity-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/entity-source.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/entity-source.js +156 -0
- package/lib/commonjs/mol-theme/color/hydrophobicity.js +96 -0
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +6 -6
- package/lib/commonjs/mol-theme/color/model-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/model-index.js +71 -0
- package/lib/commonjs/mol-theme/color/molecule-type.js +85 -0
- package/lib/commonjs/mol-theme/color/occupancy.js +66 -0
- package/lib/commonjs/mol-theme/color/operator-hkl.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/operator-hkl.js +114 -0
- package/lib/commonjs/mol-theme/color/operator-name.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/operator-name.js +76 -0
- package/lib/commonjs/mol-theme/color/partial-charge.js +63 -0
- package/lib/commonjs/mol-theme/color/polymer-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/polymer-id.js +126 -0
- package/lib/commonjs/mol-theme/color/polymer-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/polymer-index.js +86 -0
- package/lib/commonjs/mol-theme/color/residue-name.js +138 -0
- package/lib/commonjs/mol-theme/color/secondary-structure.js +130 -0
- package/lib/commonjs/mol-theme/color/sequence-id.js +111 -0
- package/lib/commonjs/mol-theme/color/shape-group.js +43 -0
- package/lib/commonjs/mol-theme/color/uncertainty.js +70 -0
- package/lib/commonjs/mol-theme/color/uniform.js +43 -0
- package/lib/commonjs/mol-theme/color/unit-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/unit-index.js +73 -0
- package/lib/commonjs/mol-theme/color/volume-value.js +57 -0
- package/lib/commonjs/mol-theme/color.d.ts +19 -19
- package/lib/commonjs/mol-theme/label.js +362 -0
- package/lib/commonjs/mol-theme/overpaint.js +132 -0
- package/lib/commonjs/mol-theme/size/physical.js +70 -0
- package/lib/commonjs/mol-theme/size/shape-group.js +42 -0
- package/lib/commonjs/mol-theme/size/uncertainty.js +62 -0
- package/lib/commonjs/mol-theme/size/uniform.js +38 -0
- package/lib/commonjs/mol-theme/size.js +36 -0
- package/lib/commonjs/mol-theme/substance.js +141 -0
- package/lib/commonjs/mol-theme/theme.js +136 -0
- package/lib/commonjs/mol-theme/transparency.js +140 -0
- package/lib/commonjs/mol-util/array.d.ts +37 -0
- package/lib/commonjs/mol-util/array.js +177 -0
- package/lib/commonjs/mol-util/assets.d.ts +58 -0
- package/lib/commonjs/mol-util/assets.js +153 -0
- package/lib/commonjs/mol-util/async-queue.d.ts +14 -0
- package/lib/commonjs/mol-util/async-queue.js +54 -0
- package/lib/commonjs/mol-util/binding.d.ts +32 -0
- package/lib/commonjs/mol-util/binding.js +116 -0
- package/lib/commonjs/mol-util/bit-flags.d.ts +13 -0
- package/lib/commonjs/mol-util/bit-flags.js +20 -0
- package/lib/commonjs/mol-util/clip.d.ts +1 -1
- package/lib/commonjs/mol-util/clip.js +97 -0
- package/lib/commonjs/mol-util/color/color.d.ts +68 -0
- package/lib/commonjs/mol-util/color/color.js +153 -0
- package/lib/commonjs/mol-util/color/distinct.js +146 -0
- package/lib/commonjs/mol-util/color/index.d.ts +7 -0
- package/lib/commonjs/mol-util/color/index.js +15 -0
- package/lib/commonjs/mol-util/color/lists.d.ts +74 -0
- package/lib/commonjs/mol-util/color/lists.js +91 -0
- package/lib/commonjs/mol-util/color/names.d.ts +167 -0
- package/lib/commonjs/mol-util/color/names.js +175 -0
- package/lib/commonjs/mol-util/color/palette.d.ts +3 -3
- package/lib/commonjs/mol-util/color/palette.js +89 -0
- package/lib/commonjs/mol-util/color/params.js +19 -0
- package/lib/commonjs/mol-util/color/scale.d.ts +31 -0
- package/lib/commonjs/mol-util/color/scale.js +84 -0
- package/lib/commonjs/mol-util/color/spaces/hcl.d.ts +46 -0
- package/lib/commonjs/mol-util/color/spaces/hcl.js +106 -0
- package/lib/commonjs/mol-util/color/spaces/lab.d.ts +39 -0
- package/lib/commonjs/mol-util/color/spaces/lab.js +152 -0
- package/lib/commonjs/mol-util/color/swatches.d.ts +8 -0
- package/lib/commonjs/mol-util/color/swatches.js +25 -0
- package/lib/commonjs/mol-util/console-logger.d.ts +13 -0
- package/lib/commonjs/mol-util/console-logger.js +52 -0
- package/lib/commonjs/mol-util/data-source.d.ts +48 -0
- package/lib/commonjs/mol-util/data-source.js +389 -0
- package/lib/commonjs/mol-util/date.d.ts +7 -0
- package/lib/commonjs/mol-util/date.js +24 -0
- package/lib/commonjs/mol-util/debug.d.ts +18 -0
- package/lib/commonjs/mol-util/debug.js +46 -0
- package/lib/commonjs/mol-util/download.d.ts +6 -0
- package/lib/commonjs/mol-util/download.js +74 -0
- package/lib/commonjs/mol-util/file-info.d.ts +20 -0
- package/lib/commonjs/mol-util/file-info.js +54 -0
- package/lib/commonjs/mol-util/graphql-client.d.ts +44 -0
- package/lib/commonjs/mol-util/graphql-client.js +67 -0
- package/lib/commonjs/mol-util/id-factory.d.ts +7 -0
- package/lib/commonjs/mol-util/id-factory.js +21 -0
- package/lib/commonjs/mol-util/image.d.ts +18 -0
- package/lib/commonjs/mol-util/image.js +46 -0
- package/lib/commonjs/mol-util/index.d.ts +29 -0
- package/lib/commonjs/mol-util/index.js +222 -0
- package/lib/commonjs/mol-util/input/event-offset.d.ts +7 -0
- package/lib/commonjs/mol-util/input/event-offset.js +27 -0
- package/lib/commonjs/mol-util/input/input-observer.d.ts +136 -0
- package/lib/commonjs/mol-util/input/input-observer.js +593 -0
- package/lib/commonjs/mol-util/is-little-endian.d.ts +6 -0
- package/lib/commonjs/mol-util/is-little-endian.js +18 -0
- package/lib/commonjs/mol-util/legend.d.ts +20 -0
- package/lib/commonjs/mol-util/legend.js +17 -0
- package/lib/commonjs/mol-util/log-entry.d.ts +18 -0
- package/lib/commonjs/mol-util/log-entry.js +21 -0
- package/lib/commonjs/mol-util/lru-cache.d.ts +21 -0
- package/lib/commonjs/mol-util/lru-cache.js +47 -0
- package/lib/commonjs/mol-util/make-dir.d.ts +6 -0
- package/lib/commonjs/mol-util/make-dir.js +24 -0
- package/lib/commonjs/mol-util/map.d.ts +11 -0
- package/lib/commonjs/mol-util/map.js +36 -0
- package/lib/commonjs/mol-util/marker-action.d.ts +49 -0
- package/lib/commonjs/mol-util/marker-action.js +286 -0
- package/lib/commonjs/mol-util/mask.d.ts +48 -0
- package/lib/commonjs/mol-util/mask.js +191 -0
- package/lib/commonjs/mol-util/material.js +43 -0
- package/lib/commonjs/mol-util/memoize.d.ts +9 -0
- package/lib/commonjs/mol-util/memoize.js +45 -0
- package/lib/commonjs/mol-util/monadic-parser.d.ts +119 -0
- package/lib/commonjs/mol-util/monadic-parser.js +490 -0
- package/lib/commonjs/mol-util/now.d.ts +13 -0
- package/lib/commonjs/mol-util/now.js +47 -0
- package/lib/commonjs/mol-util/number-packing.d.ts +11 -0
- package/lib/commonjs/mol-util/number-packing.js +36 -0
- package/lib/commonjs/mol-util/number.d.ts +26 -0
- package/lib/commonjs/mol-util/number.js +85 -0
- package/lib/commonjs/mol-util/object.d.ts +23 -0
- package/lib/commonjs/mol-util/object.js +127 -0
- package/lib/commonjs/mol-util/param-definition.js +612 -0
- package/lib/commonjs/mol-util/param-mapping.js +26 -0
- package/lib/commonjs/mol-util/performance-monitor.d.ts +14 -0
- package/lib/commonjs/mol-util/performance-monitor.js +73 -0
- package/lib/commonjs/mol-util/polyfill.d.ts +5 -0
- package/lib/commonjs/mol-util/polyfill.js +610 -0
- package/lib/commonjs/mol-util/read.d.ts +11 -0
- package/lib/commonjs/mol-util/read.js +70 -0
- package/lib/commonjs/mol-util/reference-cache.d.ts +28 -0
- package/lib/commonjs/mol-util/reference-cache.js +57 -0
- package/lib/commonjs/mol-util/retry-if.d.ts +11 -0
- package/lib/commonjs/mol-util/retry-if.js +48 -0
- package/lib/commonjs/mol-util/rx-event-helper.d.ts +15 -0
- package/lib/commonjs/mol-util/rx-event-helper.js +48 -0
- package/lib/commonjs/mol-util/set.d.ts +26 -0
- package/lib/commonjs/mol-util/set.js +133 -0
- package/lib/commonjs/mol-util/sleep.d.ts +6 -0
- package/lib/commonjs/mol-util/sleep.js +13 -0
- package/lib/commonjs/mol-util/string-builder.d.ts +38 -0
- package/lib/commonjs/mol-util/string-builder.js +164 -0
- package/lib/commonjs/mol-util/string.d.ts +31 -0
- package/lib/commonjs/mol-util/string.js +110 -0
- package/lib/commonjs/mol-util/type-helpers.d.ts +35 -0
- package/lib/commonjs/mol-util/type-helpers.js +23 -0
- package/lib/commonjs/mol-util/url.d.ts +7 -0
- package/lib/commonjs/mol-util/url.js +21 -0
- package/lib/commonjs/mol-util/uuid.d.ts +16 -0
- package/lib/commonjs/mol-util/uuid.js +40 -0
- package/lib/commonjs/mol-util/value-cell.d.ts +41 -0
- package/lib/commonjs/mol-util/value-cell.js +55 -0
- package/lib/commonjs/mol-util/zip/bin.d.ts +17 -0
- package/lib/commonjs/mol-util/zip/bin.js +122 -0
- package/lib/commonjs/mol-util/zip/checksum.d.ts +10 -0
- package/lib/commonjs/mol-util/zip/checksum.js +52 -0
- package/lib/commonjs/mol-util/zip/deflate.d.ts +10 -0
- package/lib/commonjs/mol-util/zip/deflate.js +404 -0
- package/lib/commonjs/mol-util/zip/huffman.d.ts +17 -0
- package/lib/commonjs/mol-util/zip/huffman.js +112 -0
- package/lib/commonjs/mol-util/zip/inflate.d.ts +10 -0
- package/lib/commonjs/mol-util/zip/inflate.js +232 -0
- package/lib/commonjs/mol-util/zip/util.d.ts +40 -0
- package/lib/commonjs/mol-util/zip/util.js +136 -0
- package/lib/commonjs/mol-util/zip/zip.d.ts +29 -0
- package/lib/commonjs/mol-util/zip/zip.js +376 -0
- package/lib/commonjs/servers/common/file-handle.d.ts +8 -0
- package/lib/commonjs/servers/common/file-handle.js +70 -0
- package/lib/commonjs/servers/common/swagger-ui/index.d.ts +16 -0
- package/lib/commonjs/servers/common/swagger-ui/index.js +31 -0
- package/lib/commonjs/servers/common/swagger-ui/indexTemplate.d.ts +1 -0
- package/lib/commonjs/servers/common/swagger-ui/indexTemplate.js +5 -0
- package/lib/commonjs/servers/common/util.d.ts +7 -0
- package/lib/commonjs/servers/common/util.js +31 -0
- package/lib/commonjs/servers/model/config.js +267 -0
- package/lib/commonjs/servers/model/preprocess/converter.d.ts +8 -0
- package/lib/commonjs/servers/model/preprocess/converter.js +81 -0
- package/lib/commonjs/servers/model/preprocess/master.js +74 -0
- package/lib/commonjs/servers/model/preprocess/parallel.js +124 -0
- package/lib/commonjs/servers/model/preprocess/preprocess.js +102 -0
- package/lib/commonjs/servers/model/preprocess/util.d.ts +8 -0
- package/lib/commonjs/servers/model/preprocess/util.js +20 -0
- package/lib/commonjs/servers/model/preprocess.js +20 -0
- package/lib/commonjs/servers/model/properties/pdbe.js +21 -0
- package/lib/commonjs/servers/model/properties/providers/pdbe.js +126 -0
- package/lib/commonjs/servers/model/properties/providers/wwpdb.js +132 -0
- package/lib/commonjs/servers/model/properties/wwpdb.js +19 -0
- package/lib/commonjs/servers/model/property-provider.js +63 -0
- package/lib/commonjs/servers/model/query/atoms.js +110 -0
- package/lib/commonjs/servers/model/query/schemas.d.ts +10 -0
- package/lib/commonjs/servers/model/query/schemas.js +61 -0
- package/lib/commonjs/servers/model/query.js +80 -0
- package/lib/commonjs/servers/model/server/api-local.js +106 -0
- package/lib/commonjs/servers/model/server/api-schema.js +183 -0
- package/lib/commonjs/servers/model/server/api-web-multiple.js +14 -0
- package/lib/commonjs/servers/model/server/api-web.js +191 -0
- package/lib/commonjs/servers/model/server/api.js +294 -0
- package/lib/commonjs/servers/model/server/cache.js +88 -0
- package/lib/commonjs/servers/model/server/jobs.js +88 -0
- package/lib/commonjs/servers/model/server/query.js +377 -0
- package/lib/commonjs/servers/model/server/structure-wrapper.js +354 -0
- package/lib/commonjs/servers/model/server.js +66 -0
- package/lib/commonjs/servers/model/test.d.ts +0 -0
- package/lib/commonjs/servers/model/test.js +82 -0
- package/lib/commonjs/servers/model/utils/fetch-props-pdbe.d.ts +6 -0
- package/lib/commonjs/servers/model/utils/fetch-props-pdbe.js +118 -0
- package/lib/commonjs/servers/model/utils/fetch-retry.d.ts +7 -0
- package/lib/commonjs/servers/model/utils/fetch-retry.js +43 -0
- package/lib/commonjs/servers/model/utils/tar.d.ts +22 -0
- package/lib/commonjs/servers/model/utils/tar.js +179 -0
- package/lib/commonjs/servers/model/utils/writer.d.ts +77 -0
- package/lib/commonjs/servers/model/utils/writer.js +223 -0
- package/lib/commonjs/servers/model/version.d.ts +6 -0
- package/lib/commonjs/servers/model/version.js +10 -0
- package/lib/commonjs/servers/plugin-state/api-schema.d.ts +107 -0
- package/lib/commonjs/servers/plugin-state/api-schema.js +135 -0
- package/lib/commonjs/servers/plugin-state/config.d.ts +12 -0
- package/lib/commonjs/servers/plugin-state/config.js +25 -0
- package/lib/commonjs/servers/plugin-state/index.d.ts +6 -0
- package/lib/commonjs/servers/plugin-state/index.js +208 -0
- package/lib/commonjs/servers/plugin-state/version.d.ts +1 -0
- package/lib/commonjs/servers/plugin-state/version.js +5 -0
- package/lib/commonjs/servers/volume/common/binary-schema.d.ts +42 -0
- package/lib/commonjs/servers/volume/common/binary-schema.js +176 -0
- package/lib/commonjs/servers/volume/common/data-format.d.ts +53 -0
- package/lib/commonjs/servers/volume/common/data-format.js +70 -0
- package/lib/commonjs/servers/volume/common/file.d.ts +12 -0
- package/lib/commonjs/servers/volume/common/file.js +86 -0
- package/lib/commonjs/servers/volume/config.d.ts +47 -0
- package/lib/commonjs/servers/volume/config.js +197 -0
- package/lib/commonjs/servers/volume/pack/data-model.js +43 -0
- package/lib/commonjs/servers/volume/pack/downsampling.js +168 -0
- package/lib/commonjs/servers/volume/pack/format/ccp4.js +72 -0
- package/lib/commonjs/servers/volume/pack/format/dsn6.js +76 -0
- package/lib/commonjs/servers/volume/pack/format.js +82 -0
- package/lib/commonjs/servers/volume/pack/main.js +186 -0
- package/lib/commonjs/servers/volume/pack/sampling.js +272 -0
- package/lib/commonjs/servers/volume/pack/version.d.ts +1 -0
- package/lib/commonjs/servers/volume/pack/version.js +5 -0
- package/lib/commonjs/servers/volume/pack/writer.js +86 -0
- package/lib/commonjs/servers/volume/pack.js +62 -0
- package/lib/commonjs/servers/volume/query.d.ts +10 -0
- package/lib/commonjs/servers/volume/query.js +79 -0
- package/lib/commonjs/servers/volume/server/algebra/box.d.ts +32 -0
- package/lib/commonjs/servers/volume/server/algebra/box.js +123 -0
- package/lib/commonjs/servers/volume/server/algebra/coordinate.d.ts +65 -0
- package/lib/commonjs/servers/volume/server/algebra/coordinate.js +137 -0
- package/lib/commonjs/servers/volume/server/api.d.ts +20 -0
- package/lib/commonjs/servers/volume/server/api.js +115 -0
- package/lib/commonjs/servers/volume/server/local-api.d.ts +36 -0
- package/lib/commonjs/servers/volume/server/local-api.js +145 -0
- package/lib/commonjs/servers/volume/server/query/compose.d.ts +9 -0
- package/lib/commonjs/servers/volume/server/query/compose.js +124 -0
- package/lib/commonjs/servers/volume/server/query/data-model.d.ts +91 -0
- package/lib/commonjs/servers/volume/server/query/data-model.js +10 -0
- package/lib/commonjs/servers/volume/server/query/encode.d.ts +9 -0
- package/lib/commonjs/servers/volume/server/query/encode.js +162 -0
- package/lib/commonjs/servers/volume/server/query/execute.d.ts +9 -0
- package/lib/commonjs/servers/volume/server/query/execute.js +254 -0
- package/lib/commonjs/servers/volume/server/query/identify.d.ts +11 -0
- package/lib/commonjs/servers/volume/server/query/identify.js +112 -0
- package/lib/commonjs/servers/volume/server/state.d.ts +12 -0
- package/lib/commonjs/servers/volume/server/state.js +16 -0
- package/lib/commonjs/servers/volume/server/version.d.ts +2 -0
- package/lib/commonjs/servers/volume/server/version.js +6 -0
- package/lib/commonjs/servers/volume/server/web-api.d.ts +10 -0
- package/lib/commonjs/servers/volume/server/web-api.js +226 -0
- package/lib/commonjs/servers/volume/server/web-schema.d.ts +245 -0
- package/lib/commonjs/servers/volume/server/web-schema.js +263 -0
- package/lib/commonjs/servers/volume/server.d.ts +10 -0
- package/lib/commonjs/servers/volume/server.js +59 -0
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
- package/lib/mol-math/geometry/primitives/sphere3d.js +17 -4
- package/lib/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/mol-model/structure/structure/element/loci.js +4 -2
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.js +11 -6
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/mol-plugin/behavior/static/representation.js +1 -1
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/mol-repr/shape/loci/common.js +3 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
- package/lib/mol-script/language/builder.d.ts +0 -1
- package/lib/mol-state/transform.js +12 -2
- package/package.json +160 -160
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
*
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.DihedralRepresentation = exports.DihedralParams = void 0;
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var loci_1 = require("../../../mol-model/loci");
|
|
11
|
+
var lines_1 = require("../../../mol-geo/geometry/lines/lines");
|
|
12
|
+
var text_1 = require("../../../mol-geo/geometry/text/text");
|
|
13
|
+
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
14
|
+
var names_1 = require("../../../mol-util/color/names");
|
|
15
|
+
var representation_1 = require("../representation");
|
|
16
|
+
var representation_2 = require("../../representation");
|
|
17
|
+
var shape_1 = require("../../../mol-model/shape");
|
|
18
|
+
var lines_builder_1 = require("../../../mol-geo/geometry/lines/lines-builder");
|
|
19
|
+
var text_builder_1 = require("../../../mol-geo/geometry/text/text-builder");
|
|
20
|
+
var linear_algebra_1 = require("../../../mol-math/linear-algebra");
|
|
21
|
+
var mesh_1 = require("../../../mol-geo/geometry/mesh/mesh");
|
|
22
|
+
var mesh_builder_1 = require("../../../mol-geo/geometry/mesh/mesh-builder");
|
|
23
|
+
var misc_1 = require("../../../mol-math/misc");
|
|
24
|
+
var circle_1 = require("../../../mol-geo/primitive/circle");
|
|
25
|
+
var primitive_1 = require("../../../mol-geo/primitive/primitive");
|
|
26
|
+
var marker_action_1 = require("../../../mol-util/marker-action");
|
|
27
|
+
var label_1 = require("../../../mol-theme/label");
|
|
28
|
+
var common_1 = require("./common");
|
|
29
|
+
var geometry_1 = require("../../../mol-math/geometry");
|
|
30
|
+
var SharedParams = {
|
|
31
|
+
color: param_definition_1.ParamDefinition.Color(names_1.ColorNames.lightgreen),
|
|
32
|
+
arcScale: param_definition_1.ParamDefinition.Numeric(0.7, { min: 0.01, max: 1, step: 0.01 })
|
|
33
|
+
};
|
|
34
|
+
var LinesParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, lines_1.Lines.Params), SharedParams), { lineSizeAttenuation: param_definition_1.ParamDefinition.Boolean(true), linesSize: param_definition_1.ParamDefinition.Numeric(0.04, { min: 0.01, max: 5, step: 0.01 }), dashLength: param_definition_1.ParamDefinition.Numeric(0.04, { min: 0.01, max: 0.2, step: 0.01 }) });
|
|
35
|
+
var VectorsParams = (0, tslib_1.__assign)({}, LinesParams);
|
|
36
|
+
var ExtendersParams = (0, tslib_1.__assign)({}, LinesParams);
|
|
37
|
+
var ArmsParams = (0, tslib_1.__assign)({}, LinesParams);
|
|
38
|
+
var ArcParams = (0, tslib_1.__assign)({}, LinesParams);
|
|
39
|
+
var SectorParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, mesh_1.Mesh.Params), SharedParams), { ignoreLight: param_definition_1.ParamDefinition.Boolean(true), sectorOpacity: param_definition_1.ParamDefinition.Numeric(0.75, { min: 0, max: 1, step: 0.01 }) });
|
|
40
|
+
var DihedralVisuals = {
|
|
41
|
+
'vectors': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getVectorsShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
42
|
+
'extenders': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getExtendersShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
43
|
+
'connector': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getConnectorShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
44
|
+
'arms': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getArmsShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
45
|
+
'arc': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getArcShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
46
|
+
'sector': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getSectorShape, mesh_1.Mesh.Utils, { modifyProps: function (p) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, p), { alpha: p.sectorOpacity })); }, modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { markerActions: marker_action_1.MarkerActions.Highlighting })); } }); },
|
|
47
|
+
'text': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getTextShape, text_1.Text.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { markerActions: marker_action_1.MarkerAction.None })); } }); },
|
|
48
|
+
};
|
|
49
|
+
exports.DihedralParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, VectorsParams), ExtendersParams), ArmsParams), ArcParams), SectorParams), common_1.LociLabelTextParams), { visuals: param_definition_1.ParamDefinition.MultiSelect(['extenders', 'arms', 'sector', 'text'], param_definition_1.ParamDefinition.objectToOptions(DihedralVisuals)) });
|
|
50
|
+
//
|
|
51
|
+
function getDihedralState() {
|
|
52
|
+
return {
|
|
53
|
+
sphereA: (0, geometry_1.Sphere3D)(),
|
|
54
|
+
sphereB: (0, geometry_1.Sphere3D)(),
|
|
55
|
+
sphereC: (0, geometry_1.Sphere3D)(),
|
|
56
|
+
sphereD: (0, geometry_1.Sphere3D)(),
|
|
57
|
+
dirBA: (0, linear_algebra_1.Vec3)(),
|
|
58
|
+
dirCD: (0, linear_algebra_1.Vec3)(),
|
|
59
|
+
projA: (0, linear_algebra_1.Vec3)(),
|
|
60
|
+
projD: (0, linear_algebra_1.Vec3)(),
|
|
61
|
+
arcPointA: (0, linear_algebra_1.Vec3)(),
|
|
62
|
+
arcPointD: (0, linear_algebra_1.Vec3)(),
|
|
63
|
+
arcDirA: (0, linear_algebra_1.Vec3)(),
|
|
64
|
+
arcDirD: (0, linear_algebra_1.Vec3)(),
|
|
65
|
+
arcCenter: (0, linear_algebra_1.Vec3)(),
|
|
66
|
+
arcNormal: (0, linear_algebra_1.Vec3)(),
|
|
67
|
+
radius: 0,
|
|
68
|
+
angle: 0,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
var tmpVec = (0, linear_algebra_1.Vec3)();
|
|
72
|
+
var tmpMat = (0, linear_algebra_1.Mat4)();
|
|
73
|
+
// TODO improper dihedrals are not handled correctly
|
|
74
|
+
function setDihedralState(quad, state, arcScale) {
|
|
75
|
+
var sphereA = state.sphereA, sphereB = state.sphereB, sphereC = state.sphereC, sphereD = state.sphereD, dirBA = state.dirBA, dirCD = state.dirCD, projA = state.projA, projD = state.projD;
|
|
76
|
+
var arcPointA = state.arcPointA, arcPointD = state.arcPointD, arcDirA = state.arcDirA, arcDirD = state.arcDirD, arcCenter = state.arcCenter, arcNormal = state.arcNormal;
|
|
77
|
+
var _a = quad.loci, lociA = _a[0], lociB = _a[1], lociC = _a[2], lociD = _a[3];
|
|
78
|
+
loci_1.Loci.getBoundingSphere(lociA, sphereA);
|
|
79
|
+
loci_1.Loci.getBoundingSphere(lociB, sphereB);
|
|
80
|
+
loci_1.Loci.getBoundingSphere(lociC, sphereC);
|
|
81
|
+
loci_1.Loci.getBoundingSphere(lociD, sphereD);
|
|
82
|
+
linear_algebra_1.Vec3.add(arcCenter, sphereB.center, sphereC.center);
|
|
83
|
+
linear_algebra_1.Vec3.scale(arcCenter, arcCenter, 0.5);
|
|
84
|
+
linear_algebra_1.Vec3.sub(dirBA, sphereA.center, sphereB.center);
|
|
85
|
+
linear_algebra_1.Vec3.sub(dirCD, sphereD.center, sphereC.center);
|
|
86
|
+
linear_algebra_1.Vec3.add(arcPointA, arcCenter, dirBA);
|
|
87
|
+
linear_algebra_1.Vec3.add(arcPointD, arcCenter, dirCD);
|
|
88
|
+
linear_algebra_1.Vec3.sub(arcNormal, sphereC.center, sphereB.center);
|
|
89
|
+
linear_algebra_1.Vec3.orthogonalize(arcDirA, arcNormal, dirBA);
|
|
90
|
+
linear_algebra_1.Vec3.orthogonalize(arcDirD, arcNormal, dirCD);
|
|
91
|
+
linear_algebra_1.Vec3.projectPointOnVector(projA, arcPointA, arcDirA, arcCenter);
|
|
92
|
+
linear_algebra_1.Vec3.projectPointOnVector(projD, arcPointD, arcDirD, arcCenter);
|
|
93
|
+
var len = Math.min(linear_algebra_1.Vec3.distance(projA, arcCenter), linear_algebra_1.Vec3.distance(projD, arcCenter));
|
|
94
|
+
var radius = len * arcScale;
|
|
95
|
+
linear_algebra_1.Vec3.setMagnitude(arcDirA, arcDirA, radius);
|
|
96
|
+
linear_algebra_1.Vec3.setMagnitude(arcDirD, arcDirD, radius);
|
|
97
|
+
linear_algebra_1.Vec3.add(arcPointA, arcCenter, arcDirA);
|
|
98
|
+
linear_algebra_1.Vec3.add(arcPointD, arcCenter, arcDirD);
|
|
99
|
+
state.radius = radius;
|
|
100
|
+
state.angle = linear_algebra_1.Vec3.dihedralAngle(sphereA.center, sphereB.center, sphereC.center, sphereD.center);
|
|
101
|
+
linear_algebra_1.Vec3.matchDirection(tmpVec, arcNormal, linear_algebra_1.Vec3.sub(tmpVec, arcPointA, sphereA.center));
|
|
102
|
+
var angleA = linear_algebra_1.Vec3.angle(dirBA, tmpVec);
|
|
103
|
+
var lenA = radius / Math.cos(angleA - misc_1.halfPI);
|
|
104
|
+
linear_algebra_1.Vec3.add(projA, sphereB.center, linear_algebra_1.Vec3.setMagnitude(tmpVec, dirBA, lenA));
|
|
105
|
+
linear_algebra_1.Vec3.matchDirection(tmpVec, arcNormal, linear_algebra_1.Vec3.sub(tmpVec, arcPointD, sphereD.center));
|
|
106
|
+
var angleD = linear_algebra_1.Vec3.angle(dirCD, tmpVec);
|
|
107
|
+
var lenD = radius / Math.cos(angleD - misc_1.halfPI);
|
|
108
|
+
linear_algebra_1.Vec3.add(projD, sphereC.center, linear_algebra_1.Vec3.setMagnitude(tmpVec, dirCD, lenD));
|
|
109
|
+
return state;
|
|
110
|
+
}
|
|
111
|
+
function getCircle(state, segmentLength) {
|
|
112
|
+
var radius = state.radius, angle = state.angle;
|
|
113
|
+
var segments = segmentLength ? (0, misc_1.arcLength)(angle, radius) / segmentLength : 32;
|
|
114
|
+
linear_algebra_1.Mat4.targetTo(tmpMat, state.arcCenter, angle < 0 ? state.arcPointD : state.arcPointA, state.arcNormal);
|
|
115
|
+
linear_algebra_1.Mat4.setTranslation(tmpMat, state.arcCenter);
|
|
116
|
+
linear_algebra_1.Mat4.mul(tmpMat, tmpMat, linear_algebra_1.Mat4.rotY180);
|
|
117
|
+
var circle = (0, circle_1.Circle)({ radius: radius, thetaLength: Math.abs(angle), segments: segments });
|
|
118
|
+
return (0, primitive_1.transformPrimitive)(circle, tmpMat);
|
|
119
|
+
}
|
|
120
|
+
var tmpState = getDihedralState();
|
|
121
|
+
function getDihedralName(data) {
|
|
122
|
+
return data.quads.length === 1 ? "Dihedral ".concat((0, label_1.dihedralLabel)(data.quads[0], { measureOnly: true })) : "".concat(data.quads.length, " Dihedrals");
|
|
123
|
+
}
|
|
124
|
+
//
|
|
125
|
+
function buildVectorsLines(data, props, lines) {
|
|
126
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
127
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
128
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
129
|
+
builder.addFixedLengthDashes(tmpState.arcCenter, tmpState.arcPointA, props.dashLength, i);
|
|
130
|
+
builder.addFixedLengthDashes(tmpState.arcCenter, tmpState.arcPointD, props.dashLength, i);
|
|
131
|
+
}
|
|
132
|
+
return builder.getLines();
|
|
133
|
+
}
|
|
134
|
+
function getVectorsShape(ctx, data, props, shape) {
|
|
135
|
+
var lines = buildVectorsLines(data, props, shape && shape.geometry);
|
|
136
|
+
var name = getDihedralName(data);
|
|
137
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.color; }, function () { return props.linesSize; }, function () { return ''; });
|
|
138
|
+
}
|
|
139
|
+
//
|
|
140
|
+
function buildConnectorLine(data, props, lines) {
|
|
141
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
142
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
143
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
144
|
+
builder.addFixedLengthDashes(tmpState.sphereB.center, tmpState.sphereC.center, props.dashLength, i);
|
|
145
|
+
}
|
|
146
|
+
return builder.getLines();
|
|
147
|
+
}
|
|
148
|
+
function getConnectorShape(ctx, data, props, shape) {
|
|
149
|
+
var lines = buildConnectorLine(data, props, shape && shape.geometry);
|
|
150
|
+
var name = getDihedralName(data);
|
|
151
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.color; }, function () { return props.linesSize; }, function () { return ''; });
|
|
152
|
+
}
|
|
153
|
+
//
|
|
154
|
+
function buildArmsLines(data, props, lines) {
|
|
155
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
156
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
157
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
158
|
+
builder.addFixedLengthDashes(tmpState.sphereB.center, tmpState.sphereA.center, props.dashLength, i);
|
|
159
|
+
builder.addFixedLengthDashes(tmpState.sphereC.center, tmpState.sphereD.center, props.dashLength, i);
|
|
160
|
+
}
|
|
161
|
+
return builder.getLines();
|
|
162
|
+
}
|
|
163
|
+
function getArmsShape(ctx, data, props, shape) {
|
|
164
|
+
var lines = buildArmsLines(data, props, shape && shape.geometry);
|
|
165
|
+
var name = getDihedralName(data);
|
|
166
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.color; }, function () { return props.linesSize; }, function () { return ''; });
|
|
167
|
+
}
|
|
168
|
+
//
|
|
169
|
+
function buildExtendersLines(data, props, lines) {
|
|
170
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
171
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
172
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
173
|
+
builder.addFixedLengthDashes(tmpState.arcPointA, tmpState.projA, props.dashLength, i);
|
|
174
|
+
builder.addFixedLengthDashes(tmpState.arcPointD, tmpState.projD, props.dashLength, i);
|
|
175
|
+
}
|
|
176
|
+
return builder.getLines();
|
|
177
|
+
}
|
|
178
|
+
function getExtendersShape(ctx, data, props, shape) {
|
|
179
|
+
var lines = buildExtendersLines(data, props, shape && shape.geometry);
|
|
180
|
+
var name = getDihedralName(data);
|
|
181
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.color; }, function () { return props.linesSize; }, function () { return ''; });
|
|
182
|
+
}
|
|
183
|
+
//
|
|
184
|
+
function buildArcLines(data, props, lines) {
|
|
185
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
186
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
187
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
188
|
+
var circle = getCircle(tmpState, props.dashLength);
|
|
189
|
+
var indices = circle.indices, vertices = circle.vertices;
|
|
190
|
+
for (var j = 0, jl = indices.length; j < jl; j += 3) {
|
|
191
|
+
if (j % 2 === 1)
|
|
192
|
+
continue; // draw every other segment to get dashes
|
|
193
|
+
var start = indices[j] * 3;
|
|
194
|
+
var end = indices[j + 1] * 3;
|
|
195
|
+
var startX = vertices[start];
|
|
196
|
+
var startY = vertices[start + 1];
|
|
197
|
+
var startZ = vertices[start + 2];
|
|
198
|
+
var endX = vertices[end];
|
|
199
|
+
var endY = vertices[end + 1];
|
|
200
|
+
var endZ = vertices[end + 2];
|
|
201
|
+
builder.add(startX, startY, startZ, endX, endY, endZ, i);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return builder.getLines();
|
|
205
|
+
}
|
|
206
|
+
function getArcShape(ctx, data, props, shape) {
|
|
207
|
+
var lines = buildArcLines(data, props, shape && shape.geometry);
|
|
208
|
+
var name = getDihedralName(data);
|
|
209
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.color; }, function () { return props.linesSize; }, function () { return ''; });
|
|
210
|
+
}
|
|
211
|
+
//
|
|
212
|
+
function buildSectorMesh(data, props, mesh) {
|
|
213
|
+
var state = mesh_builder_1.MeshBuilder.createState(128, 64, mesh);
|
|
214
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
215
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
216
|
+
var circle = getCircle(tmpState);
|
|
217
|
+
state.currentGroup = i;
|
|
218
|
+
mesh_builder_1.MeshBuilder.addPrimitive(state, linear_algebra_1.Mat4.id, circle);
|
|
219
|
+
mesh_builder_1.MeshBuilder.addPrimitiveFlipped(state, linear_algebra_1.Mat4.id, circle);
|
|
220
|
+
}
|
|
221
|
+
return mesh_builder_1.MeshBuilder.getMesh(state);
|
|
222
|
+
}
|
|
223
|
+
function getSectorShape(ctx, data, props, shape) {
|
|
224
|
+
var mesh = buildSectorMesh(data, props, shape && shape.geometry);
|
|
225
|
+
var name = getDihedralName(data);
|
|
226
|
+
var getLabel = function (groupId) { return (0, label_1.dihedralLabel)(data.quads[groupId]); };
|
|
227
|
+
return shape_1.Shape.create(name, data, mesh, function () { return props.color; }, function () { return 1; }, getLabel);
|
|
228
|
+
}
|
|
229
|
+
//
|
|
230
|
+
function buildText(data, props, text) {
|
|
231
|
+
var builder = text_builder_1.TextBuilder.create(props, 128, 64, text);
|
|
232
|
+
for (var i = 0, il = data.quads.length; i < il; ++i) {
|
|
233
|
+
setDihedralState(data.quads[i], tmpState, props.arcScale);
|
|
234
|
+
linear_algebra_1.Vec3.add(tmpVec, tmpState.arcDirA, tmpState.arcDirD);
|
|
235
|
+
linear_algebra_1.Vec3.setMagnitude(tmpVec, tmpVec, tmpState.radius);
|
|
236
|
+
linear_algebra_1.Vec3.add(tmpVec, tmpState.arcCenter, tmpVec);
|
|
237
|
+
var angle = (0, misc_1.radToDeg)(tmpState.angle).toFixed(2);
|
|
238
|
+
if (angle === '-0.00')
|
|
239
|
+
angle = '0.00';
|
|
240
|
+
var label = props.customText || "".concat(angle, "\u00B0");
|
|
241
|
+
var radius = Math.max(2, tmpState.sphereA.radius, tmpState.sphereB.radius, tmpState.sphereC.radius, tmpState.sphereD.radius);
|
|
242
|
+
var scale = radius / 2;
|
|
243
|
+
builder.add(label, tmpVec[0], tmpVec[1], tmpVec[2], 0.1, scale, i);
|
|
244
|
+
}
|
|
245
|
+
return builder.getText();
|
|
246
|
+
}
|
|
247
|
+
function getTextShape(ctx, data, props, shape) {
|
|
248
|
+
var text = buildText(data, props, shape && shape.geometry);
|
|
249
|
+
var name = getDihedralName(data);
|
|
250
|
+
var getLabel = function (groupId) { return (0, label_1.dihedralLabel)(data.quads[groupId]); };
|
|
251
|
+
return shape_1.Shape.create(name, data, text, function () { return props.textColor; }, function () { return props.textSize; }, getLabel);
|
|
252
|
+
}
|
|
253
|
+
function DihedralRepresentation(ctx, getParams) {
|
|
254
|
+
return representation_2.Representation.createMulti('Dihedral', ctx, getParams, representation_2.Representation.StateBuilder, DihedralVisuals);
|
|
255
|
+
}
|
|
256
|
+
exports.DihedralRepresentation = DihedralRepresentation;
|
|
257
|
+
//# sourceMappingURL=dihedral.js.map
|
|
@@ -28,14 +28,14 @@ export declare const DistanceParams: {
|
|
|
28
28
|
tether: PD.BooleanParam;
|
|
29
29
|
tetherLength: PD.Numeric;
|
|
30
30
|
tetherBaseWidth: PD.Numeric;
|
|
31
|
-
attachment: PD.Select<"
|
|
31
|
+
attachment: PD.Select<"bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-center" | "middle-right" | "top-left" | "top-center" | "top-right">;
|
|
32
32
|
fontFamily: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontFamily>;
|
|
33
33
|
fontQuality: PD.Select<number>;
|
|
34
34
|
fontStyle: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontStyle>;
|
|
35
35
|
fontVariant: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontVariant>;
|
|
36
36
|
fontWeight: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontWeight>;
|
|
37
37
|
alpha: PD.Numeric;
|
|
38
|
-
quality: PD.Select<"
|
|
38
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
39
39
|
material: PD.Group<PD.Normalize<{
|
|
40
40
|
metalness: number;
|
|
41
41
|
roughness: number;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
*
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.DistanceRepresentation = exports.DistanceParams = void 0;
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var loci_1 = require("../../../mol-model/loci");
|
|
11
|
+
var lines_1 = require("../../../mol-geo/geometry/lines/lines");
|
|
12
|
+
var text_1 = require("../../../mol-geo/geometry/text/text");
|
|
13
|
+
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
14
|
+
var names_1 = require("../../../mol-util/color/names");
|
|
15
|
+
var representation_1 = require("../representation");
|
|
16
|
+
var representation_2 = require("../../representation");
|
|
17
|
+
var shape_1 = require("../../../mol-model/shape");
|
|
18
|
+
var lines_builder_1 = require("../../../mol-geo/geometry/lines/lines-builder");
|
|
19
|
+
var text_builder_1 = require("../../../mol-geo/geometry/text/text-builder");
|
|
20
|
+
var linear_algebra_1 = require("../../../mol-math/linear-algebra");
|
|
21
|
+
var marker_action_1 = require("../../../mol-util/marker-action");
|
|
22
|
+
var label_1 = require("../../../mol-theme/label");
|
|
23
|
+
var common_1 = require("./common");
|
|
24
|
+
var geometry_1 = require("../../../mol-math/geometry");
|
|
25
|
+
var SharedParams = {
|
|
26
|
+
unitLabel: param_definition_1.ParamDefinition.Text('\u212B', { isEssential: true })
|
|
27
|
+
};
|
|
28
|
+
var LineParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, lines_1.Lines.Params), SharedParams), { lineSizeAttenuation: param_definition_1.ParamDefinition.Boolean(true), linesColor: param_definition_1.ParamDefinition.Color(names_1.ColorNames.lightgreen, { isEssential: true }), linesSize: param_definition_1.ParamDefinition.Numeric(0.075, { min: 0.01, max: 5, step: 0.01 }), dashLength: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0.01, max: 0.2, step: 0.01 }) });
|
|
29
|
+
var TextParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, common_1.LociLabelTextParams), SharedParams);
|
|
30
|
+
var DistanceVisuals = {
|
|
31
|
+
'lines': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getLinesShape, lines_1.Lines.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { markerActions: marker_action_1.MarkerActions.Highlighting })); } }); },
|
|
32
|
+
'text': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getTextShape, text_1.Text.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { markerActions: marker_action_1.MarkerAction.None })); } }); },
|
|
33
|
+
};
|
|
34
|
+
exports.DistanceParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, LineParams), TextParams), { visuals: param_definition_1.ParamDefinition.MultiSelect(['lines', 'text'], param_definition_1.ParamDefinition.objectToOptions(DistanceVisuals)) });
|
|
35
|
+
//
|
|
36
|
+
function getDistanceState() {
|
|
37
|
+
return {
|
|
38
|
+
sphereA: (0, geometry_1.Sphere3D)(),
|
|
39
|
+
sphereB: (0, geometry_1.Sphere3D)(),
|
|
40
|
+
center: (0, linear_algebra_1.Vec3)(),
|
|
41
|
+
distance: 0,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function setDistanceState(pair, state) {
|
|
45
|
+
var sphereA = state.sphereA, sphereB = state.sphereB, center = state.center;
|
|
46
|
+
var _a = pair.loci, lociA = _a[0], lociB = _a[1];
|
|
47
|
+
loci_1.Loci.getBoundingSphere(lociA, sphereA);
|
|
48
|
+
loci_1.Loci.getBoundingSphere(lociB, sphereB);
|
|
49
|
+
linear_algebra_1.Vec3.add(center, sphereA.center, sphereB.center);
|
|
50
|
+
linear_algebra_1.Vec3.scale(center, center, 0.5);
|
|
51
|
+
state.distance = linear_algebra_1.Vec3.distance(sphereA.center, sphereB.center);
|
|
52
|
+
return state;
|
|
53
|
+
}
|
|
54
|
+
var tmpState = getDistanceState();
|
|
55
|
+
function getDistanceName(data, unitLabel) {
|
|
56
|
+
return data.pairs.length === 1 ? "Distance ".concat((0, label_1.distanceLabel)(data.pairs[0], { unitLabel: unitLabel, measureOnly: true })) : "".concat(data.pairs.length, " Distances");
|
|
57
|
+
}
|
|
58
|
+
//
|
|
59
|
+
function buildLines(data, props, lines) {
|
|
60
|
+
var builder = lines_builder_1.LinesBuilder.create(128, 64, lines);
|
|
61
|
+
for (var i = 0, il = data.pairs.length; i < il; ++i) {
|
|
62
|
+
setDistanceState(data.pairs[i], tmpState);
|
|
63
|
+
builder.addFixedLengthDashes(tmpState.sphereA.center, tmpState.sphereB.center, props.dashLength, i);
|
|
64
|
+
}
|
|
65
|
+
return builder.getLines();
|
|
66
|
+
}
|
|
67
|
+
function getLinesShape(ctx, data, props, shape) {
|
|
68
|
+
var lines = buildLines(data, props, shape && shape.geometry);
|
|
69
|
+
var name = getDistanceName(data, props.unitLabel);
|
|
70
|
+
var getLabel = function (groupId) { return (0, label_1.distanceLabel)(data.pairs[groupId], props); };
|
|
71
|
+
return shape_1.Shape.create(name, data, lines, function () { return props.linesColor; }, function () { return props.linesSize; }, getLabel);
|
|
72
|
+
}
|
|
73
|
+
//
|
|
74
|
+
function buildText(data, props, text) {
|
|
75
|
+
var builder = text_builder_1.TextBuilder.create(props, 128, 64, text);
|
|
76
|
+
for (var i = 0, il = data.pairs.length; i < il; ++i) {
|
|
77
|
+
setDistanceState(data.pairs[i], tmpState);
|
|
78
|
+
var center = tmpState.center, distance = tmpState.distance, sphereA = tmpState.sphereA, sphereB = tmpState.sphereB;
|
|
79
|
+
var label = props.customText || "".concat(distance.toFixed(2), " ").concat(props.unitLabel);
|
|
80
|
+
var radius = Math.max(2, sphereA.radius, sphereB.radius);
|
|
81
|
+
var scale = radius / 2;
|
|
82
|
+
builder.add(label, center[0], center[1], center[2], 1, scale, i);
|
|
83
|
+
}
|
|
84
|
+
return builder.getText();
|
|
85
|
+
}
|
|
86
|
+
function getTextShape(ctx, data, props, shape) {
|
|
87
|
+
var text = buildText(data, props, shape && shape.geometry);
|
|
88
|
+
var name = getDistanceName(data, props.unitLabel);
|
|
89
|
+
var getLabel = function (groupId) { return (0, label_1.distanceLabel)(data.pairs[groupId], props); };
|
|
90
|
+
return shape_1.Shape.create(name, data, text, function () { return props.textColor; }, function () { return props.textSize; }, getLabel);
|
|
91
|
+
}
|
|
92
|
+
function DistanceRepresentation(ctx, getParams) {
|
|
93
|
+
return representation_2.Representation.createMulti('Distance', ctx, getParams, representation_2.Representation.StateBuilder, DistanceVisuals);
|
|
94
|
+
}
|
|
95
|
+
exports.DistanceRepresentation = DistanceRepresentation;
|
|
96
|
+
//# sourceMappingURL=distance.js.map
|
|
@@ -31,14 +31,14 @@ export declare const LabelParams: {
|
|
|
31
31
|
tether: PD.BooleanParam;
|
|
32
32
|
tetherLength: PD.Numeric;
|
|
33
33
|
tetherBaseWidth: PD.Numeric;
|
|
34
|
-
attachment: PD.Select<"
|
|
34
|
+
attachment: PD.Select<"bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-center" | "middle-right" | "top-left" | "top-center" | "top-right">;
|
|
35
35
|
fontFamily: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontFamily>;
|
|
36
36
|
fontQuality: PD.Select<number>;
|
|
37
37
|
fontStyle: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontStyle>;
|
|
38
38
|
fontVariant: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontVariant>;
|
|
39
39
|
fontWeight: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontWeight>;
|
|
40
40
|
alpha: PD.Numeric;
|
|
41
|
-
quality: PD.Select<"
|
|
41
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
42
42
|
material: PD.Group<PD.Normalize<{
|
|
43
43
|
metalness: number;
|
|
44
44
|
roughness: number;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
*
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.LabelRepresentation = exports.LabelParams = void 0;
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var loci_1 = require("../../../mol-model/loci");
|
|
11
|
+
var text_1 = require("../../../mol-geo/geometry/text/text");
|
|
12
|
+
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
13
|
+
var representation_1 = require("../representation");
|
|
14
|
+
var representation_2 = require("../../representation");
|
|
15
|
+
var shape_1 = require("../../../mol-model/shape");
|
|
16
|
+
var text_builder_1 = require("../../../mol-geo/geometry/text/text-builder");
|
|
17
|
+
var geometry_1 = require("../../../mol-math/geometry");
|
|
18
|
+
var label_1 = require("../../../mol-theme/label");
|
|
19
|
+
var common_1 = require("./common");
|
|
20
|
+
var TextParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, common_1.LociLabelTextParams), { offsetZ: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }) });
|
|
21
|
+
var LabelVisuals = {
|
|
22
|
+
'text': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getTextShape, text_1.Text.Utils, { modifyState: function (s) { return ((0, tslib_1.__assign)((0, tslib_1.__assign)({}, s), { pickable: false })); } }); },
|
|
23
|
+
};
|
|
24
|
+
exports.LabelParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, TextParams), { scaleByRadius: param_definition_1.ParamDefinition.Boolean(true), visuals: param_definition_1.ParamDefinition.MultiSelect(['text'], param_definition_1.ParamDefinition.objectToOptions(LabelVisuals)) });
|
|
25
|
+
//
|
|
26
|
+
var tmpSphere = (0, geometry_1.Sphere3D)();
|
|
27
|
+
function label(info, condensed) {
|
|
28
|
+
if (condensed === void 0) { condensed = false; }
|
|
29
|
+
return info.label || (0, label_1.lociLabel)(info.loci, { hidePrefix: true, htmlStyling: false, condensed: condensed });
|
|
30
|
+
}
|
|
31
|
+
function getLabelName(data) {
|
|
32
|
+
return data.infos.length === 1 ? label(data.infos[0]) : "".concat(data.infos.length, " Labels");
|
|
33
|
+
}
|
|
34
|
+
//
|
|
35
|
+
function buildText(data, props, text) {
|
|
36
|
+
var builder = text_builder_1.TextBuilder.create(props, 128, 64, text);
|
|
37
|
+
var customLabel = props.customText.trim();
|
|
38
|
+
for (var i = 0, il = data.infos.length; i < il; ++i) {
|
|
39
|
+
var info = data.infos[i];
|
|
40
|
+
var sphere = loci_1.Loci.getBoundingSphere(info.loci, tmpSphere);
|
|
41
|
+
if (!sphere)
|
|
42
|
+
continue;
|
|
43
|
+
var center = sphere.center, radius = sphere.radius;
|
|
44
|
+
var text_2 = customLabel || label(info, true);
|
|
45
|
+
builder.add(text_2, center[0], center[1], center[2], props.scaleByRadius ? radius / 0.9 : 0, props.scaleByRadius ? Math.max(1, radius) : 1, i);
|
|
46
|
+
}
|
|
47
|
+
return builder.getText();
|
|
48
|
+
}
|
|
49
|
+
function getTextShape(ctx, data, props, shape) {
|
|
50
|
+
var text = buildText(data, props, shape && shape.geometry);
|
|
51
|
+
var name = getLabelName(data);
|
|
52
|
+
var customLabel = props.customText.trim();
|
|
53
|
+
var getLabel = customLabel
|
|
54
|
+
? function (groupId) {
|
|
55
|
+
return customLabel;
|
|
56
|
+
} : function (groupId) {
|
|
57
|
+
return label(data.infos[groupId]);
|
|
58
|
+
};
|
|
59
|
+
return shape_1.Shape.create(name, data, text, function () { return props.textColor; }, function () { return props.textSize; }, getLabel);
|
|
60
|
+
}
|
|
61
|
+
function LabelRepresentation(ctx, getParams) {
|
|
62
|
+
return representation_2.Representation.createMulti('Label', ctx, getParams, representation_2.Representation.StateBuilder, LabelVisuals);
|
|
63
|
+
}
|
|
64
|
+
exports.LabelRepresentation = LabelRepresentation;
|
|
65
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -10,7 +10,7 @@ export interface OrientationData {
|
|
|
10
10
|
locis: StructureElement.Loci[];
|
|
11
11
|
}
|
|
12
12
|
export declare const OrientationParams: {
|
|
13
|
-
visuals: PD.MultiSelect<"
|
|
13
|
+
visuals: PD.MultiSelect<"box" | "axes" | "ellipsoid">;
|
|
14
14
|
color: PD.Color;
|
|
15
15
|
scaleFactor: PD.Numeric;
|
|
16
16
|
radiusScale: PD.Numeric;
|
|
@@ -22,7 +22,7 @@ export declare const OrientationParams: {
|
|
|
22
22
|
bumpFrequency: PD.Numeric;
|
|
23
23
|
bumpAmplitude: PD.Numeric;
|
|
24
24
|
alpha: PD.Numeric;
|
|
25
|
-
quality: PD.Select<"
|
|
25
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
26
26
|
material: PD.Group<PD.Normalize<{
|
|
27
27
|
metalness: number;
|
|
28
28
|
roughness: number;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
*
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OrientationRepresentation = exports.OrientationParams = void 0;
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
11
|
+
var names_1 = require("../../../mol-util/color/names");
|
|
12
|
+
var representation_1 = require("../representation");
|
|
13
|
+
var representation_2 = require("../../representation");
|
|
14
|
+
var shape_1 = require("../../../mol-model/shape");
|
|
15
|
+
var mesh_1 = require("../../../mol-geo/geometry/mesh/mesh");
|
|
16
|
+
var mesh_builder_1 = require("../../../mol-geo/geometry/mesh/mesh-builder");
|
|
17
|
+
var label_1 = require("../../../mol-theme/label");
|
|
18
|
+
var axes_1 = require("../../../mol-geo/geometry/mesh/builder/axes");
|
|
19
|
+
var box_1 = require("../../../mol-geo/geometry/mesh/builder/box");
|
|
20
|
+
var ellipsoid_1 = require("../../../mol-geo/geometry/mesh/builder/ellipsoid");
|
|
21
|
+
var geometry_1 = require("../../../mol-math/geometry");
|
|
22
|
+
var linear_algebra_1 = require("../../../mol-math/linear-algebra");
|
|
23
|
+
var marker_action_1 = require("../../../mol-util/marker-action");
|
|
24
|
+
var structure_1 = require("../../../mol-model/structure");
|
|
25
|
+
var SharedParams = {
|
|
26
|
+
color: param_definition_1.ParamDefinition.Color(names_1.ColorNames.orange),
|
|
27
|
+
scaleFactor: param_definition_1.ParamDefinition.Numeric(1, { min: 0.1, max: 10, step: 0.1 }),
|
|
28
|
+
radiusScale: param_definition_1.ParamDefinition.Numeric(2, { min: 0.1, max: 10, step: 0.1 })
|
|
29
|
+
};
|
|
30
|
+
var AxesParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, mesh_1.Mesh.Params), SharedParams);
|
|
31
|
+
var BoxParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, mesh_1.Mesh.Params), SharedParams);
|
|
32
|
+
var EllipsoidParams = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, mesh_1.Mesh.Params), SharedParams);
|
|
33
|
+
var OrientationVisuals = {
|
|
34
|
+
'axes': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getAxesShape, mesh_1.Mesh.Utils); },
|
|
35
|
+
'box': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getBoxShape, mesh_1.Mesh.Utils); },
|
|
36
|
+
'ellipsoid': function (ctx, getParams) { return (0, representation_1.ShapeRepresentation)(getEllipsoidShape, mesh_1.Mesh.Utils); },
|
|
37
|
+
};
|
|
38
|
+
exports.OrientationParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, AxesParams), BoxParams), EllipsoidParams), { visuals: param_definition_1.ParamDefinition.MultiSelect(['box'], param_definition_1.ParamDefinition.objectToOptions(OrientationVisuals)) });
|
|
39
|
+
//
|
|
40
|
+
function getAxesName(locis) {
|
|
41
|
+
var label = (0, label_1.structureElementLociLabelMany)(locis, { countsOnly: true });
|
|
42
|
+
return "Principal Axes of ".concat(label);
|
|
43
|
+
}
|
|
44
|
+
function buildAxesMesh(data, props, mesh) {
|
|
45
|
+
var state = mesh_builder_1.MeshBuilder.createState(256, 128, mesh);
|
|
46
|
+
var principalAxes = structure_1.StructureElement.Loci.getPrincipalAxesMany(data.locis);
|
|
47
|
+
geometry_1.Axes3D.scale(principalAxes.momentsAxes, principalAxes.momentsAxes, props.scaleFactor);
|
|
48
|
+
state.currentGroup = 0;
|
|
49
|
+
(0, axes_1.addAxes)(state, principalAxes.momentsAxes, props.radiusScale, 2, 20);
|
|
50
|
+
return mesh_builder_1.MeshBuilder.getMesh(state);
|
|
51
|
+
}
|
|
52
|
+
function getAxesShape(ctx, data, props, shape) {
|
|
53
|
+
var mesh = buildAxesMesh(data, props, shape && shape.geometry);
|
|
54
|
+
var name = getAxesName(data.locis);
|
|
55
|
+
return shape_1.Shape.create(name, data, mesh, function () { return props.color; }, function () { return 1; }, function () { return name; });
|
|
56
|
+
}
|
|
57
|
+
//
|
|
58
|
+
function getBoxName(locis) {
|
|
59
|
+
var label = (0, label_1.structureElementLociLabelMany)(locis, { countsOnly: true });
|
|
60
|
+
return "Oriented Box of ".concat(label);
|
|
61
|
+
}
|
|
62
|
+
function buildBoxMesh(data, props, mesh) {
|
|
63
|
+
var state = mesh_builder_1.MeshBuilder.createState(256, 128, mesh);
|
|
64
|
+
var principalAxes = structure_1.StructureElement.Loci.getPrincipalAxesMany(data.locis);
|
|
65
|
+
geometry_1.Axes3D.scale(principalAxes.boxAxes, principalAxes.boxAxes, props.scaleFactor);
|
|
66
|
+
state.currentGroup = 0;
|
|
67
|
+
(0, box_1.addOrientedBox)(state, principalAxes.boxAxes, props.radiusScale, 2, 20);
|
|
68
|
+
return mesh_builder_1.MeshBuilder.getMesh(state);
|
|
69
|
+
}
|
|
70
|
+
function getBoxShape(ctx, data, props, shape) {
|
|
71
|
+
var mesh = buildBoxMesh(data, props, shape && shape.geometry);
|
|
72
|
+
var name = getBoxName(data.locis);
|
|
73
|
+
return shape_1.Shape.create(name, data, mesh, function () { return props.color; }, function () { return 1; }, function () { return name; });
|
|
74
|
+
}
|
|
75
|
+
//
|
|
76
|
+
function getEllipsoidName(locis) {
|
|
77
|
+
var label = (0, label_1.structureElementLociLabelMany)(locis, { countsOnly: true });
|
|
78
|
+
return "Oriented Ellipsoid of ".concat(label);
|
|
79
|
+
}
|
|
80
|
+
function buildEllipsoidMesh(data, props, mesh) {
|
|
81
|
+
var state = mesh_builder_1.MeshBuilder.createState(256, 128, mesh);
|
|
82
|
+
var principalAxes = structure_1.StructureElement.Loci.getPrincipalAxesMany(data.locis);
|
|
83
|
+
var axes = principalAxes.boxAxes;
|
|
84
|
+
var origin = axes.origin, dirA = axes.dirA, dirB = axes.dirB;
|
|
85
|
+
var size = geometry_1.Axes3D.size((0, linear_algebra_1.Vec3)(), axes);
|
|
86
|
+
linear_algebra_1.Vec3.scale(size, size, 0.5 * props.scaleFactor);
|
|
87
|
+
var radiusScale = linear_algebra_1.Vec3.create(size[2], size[1], size[0]);
|
|
88
|
+
state.currentGroup = 0;
|
|
89
|
+
(0, ellipsoid_1.addEllipsoid)(state, origin, dirA, dirB, radiusScale, 2);
|
|
90
|
+
return mesh_builder_1.MeshBuilder.getMesh(state);
|
|
91
|
+
}
|
|
92
|
+
function getEllipsoidShape(ctx, data, props, shape) {
|
|
93
|
+
var mesh = buildEllipsoidMesh(data, props, shape && shape.geometry);
|
|
94
|
+
var name = getEllipsoidName(data.locis);
|
|
95
|
+
return shape_1.Shape.create(name, data, mesh, function () { return props.color; }, function () { return 1; }, function () { return name; });
|
|
96
|
+
}
|
|
97
|
+
function OrientationRepresentation(ctx, getParams) {
|
|
98
|
+
var repr = representation_2.Representation.createMulti('Orientation', ctx, getParams, representation_2.Representation.StateBuilder, OrientationVisuals);
|
|
99
|
+
repr.setState({ markerActions: marker_action_1.MarkerActions.Highlighting });
|
|
100
|
+
return repr;
|
|
101
|
+
}
|
|
102
|
+
exports.OrientationRepresentation = OrientationRepresentation;
|
|
103
|
+
//# sourceMappingURL=orientation.js.map
|
|
@@ -21,7 +21,7 @@ export declare const PlaneParams: {
|
|
|
21
21
|
bumpFrequency: PD.Numeric;
|
|
22
22
|
bumpAmplitude: PD.Numeric;
|
|
23
23
|
alpha: PD.Numeric;
|
|
24
|
-
quality: PD.Select<"
|
|
24
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
25
25
|
material: PD.Group<PD.Normalize<{
|
|
26
26
|
metalness: number;
|
|
27
27
|
roughness: number;
|