molstar 2.3.9 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/molstar.js +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/cli/cifschema/util/cif-dic.js.map +1 -1
- package/lib/commonjs/apps/viewer/index.d.ts +2 -2
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/cli/cifschema/util/cif-dic.js.map +1 -1
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +1 -1
- package/lib/commonjs/extensions/cellpack/model.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/commonjs/extensions/geo-export/controls.js +1 -1
- package/lib/commonjs/extensions/geo-export/controls.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/glb-exporter.d.ts +1 -0
- package/lib/commonjs/extensions/geo-export/glb-exporter.js +27 -17
- package/lib/commonjs/extensions/geo-export/glb-exporter.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/mesh-exporter.d.ts +31 -2
- package/lib/commonjs/extensions/geo-export/mesh-exporter.js +87 -15
- package/lib/commonjs/extensions/geo-export/mesh-exporter.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/obj-exporter.d.ts +1 -0
- package/lib/commonjs/extensions/geo-export/obj-exporter.js +24 -15
- package/lib/commonjs/extensions/geo-export/obj-exporter.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/ui.js +24 -20
- package/lib/commonjs/extensions/geo-export/ui.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/usdz-exporter.d.ts +1 -0
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js +26 -16
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js.map +1 -1
- package/lib/commonjs/extensions/mp4-export/controls.js +1 -1
- package/lib/commonjs/extensions/mp4-export/controls.js.map +1 -1
- package/lib/commonjs/extensions/mp4-export/ui.js +7 -6
- package/lib/commonjs/extensions/mp4-export/ui.js.map +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +2 -2
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.d.ts +12 -12
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +22 -21
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +4 -4
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -11
- package/lib/commonjs/mol-canvas3d/passes/draw.js.map +1 -1
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +2 -2
- package/lib/commonjs/mol-data/int/impl/sorted-array.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/base.d.ts +13 -1
- package/lib/commonjs/mol-geo/geometry/base.js +37 -2
- package/lib/commonjs/mol-geo/geometry/base.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +9 -2
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +154 -35
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/overpaint-data.d.ts +7 -2
- package/lib/commonjs/mol-geo/geometry/overpaint-data.js +10 -1
- package/lib/commonjs/mol-geo/geometry/overpaint-data.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +7 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +162 -27
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +7 -2
- package/lib/commonjs/mol-geo/geometry/transparency-data.js +10 -1
- package/lib/commonjs/mol-geo/geometry/transparency-data.js.map +1 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +3 -3
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js.map +1 -1
- package/lib/commonjs/mol-gl/compute/util.d.ts +25 -6
- package/lib/commonjs/mol-gl/compute/util.js +76 -21
- package/lib/commonjs/mol-gl/compute/util.js.map +1 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/points.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +16 -0
- package/lib/commonjs/mol-gl/renderable/schema.js +8 -0
- package/lib/commonjs/mol-gl/renderable/schema.js.map +1 -1
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/text.d.ts +8 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +22 -13
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js.map +1 -1
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
- package/lib/commonjs/mol-gl/renderer.js +3 -0
- package/lib/commonjs/mol-gl/renderer.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.vert.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.vert.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.vert.js.map +1 -1
- package/lib/commonjs/mol-gl/webgl/extensions.js +1 -5
- package/lib/commonjs/mol-gl/webgl/extensions.js.map +1 -1
- package/lib/commonjs/mol-gl/webgl/resources.js +1 -1
- package/lib/commonjs/mol-gl/webgl/resources.js.map +1 -1
- package/lib/commonjs/mol-gl/webgl/vertex-array.d.ts +3 -2
- package/lib/commonjs/mol-gl/webgl/vertex-array.js +9 -2
- package/lib/commonjs/mol-gl/webgl/vertex-array.js.map +1 -1
- package/lib/commonjs/mol-io/common/typed-array.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/_spec/sdf.spec.js +51 -0
- package/lib/commonjs/mol-io/reader/_spec/sdf.spec.js.map +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +8 -5
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +15 -5
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js.map +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +14 -14
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.d.ts +9 -0
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js +91 -0
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js.map +1 -0
- package/lib/commonjs/mol-io/reader/sdf/parser.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/sdf/parser.js +12 -4
- package/lib/commonjs/mol-io/reader/sdf/parser.js.map +1 -1
- package/lib/commonjs/mol-model/loci.d.ts +30 -30
- package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/structure/properties.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/properties.js.map +1 -1
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +8 -8
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -5
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +5 -5
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts +12 -12
- package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +4 -4
- package/lib/commonjs/mol-plugin/commands.d.ts +2 -2
- package/lib/commonjs/mol-plugin/config.d.ts +1 -1
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/actions/file.js +4 -2
- package/lib/commonjs/mol-plugin-state/actions/file.js.map +1 -1
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/animation/helpers.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +4 -4
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +4 -4
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +10 -10
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +8 -8
- package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -0
- package/lib/commonjs/mol-plugin-state/formats/volume.js.map +1 -1
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +4 -4
- package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +14 -3
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
- package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/snapshots.js +2 -1
- package/lib/commonjs/mol-plugin-state/manager/snapshots.js.map +1 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/selection.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +8 -8
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +40 -14
- package/lib/commonjs/mol-plugin-state/transforms/representation.js.map +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/polymer.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/state/common.js +10 -9
- package/lib/commonjs/mol-plugin-ui/state/common.js.map +1 -1
- package/lib/commonjs/mol-plugin-ui/state/snapshots.js +10 -8
- package/lib/commonjs/mol-plugin-ui/state/snapshots.js.map +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/selection.js +2 -1
- package/lib/commonjs/mol-plugin-ui/structure/selection.js.map +1 -1
- package/lib/commonjs/mol-repr/representation.d.ts +9 -0
- package/lib/commonjs/mol-repr/representation.js +43 -4
- package/lib/commonjs/mol-repr/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/representation.js +5 -0
- package/lib/commonjs/mol-repr/shape/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/complex-representation.js +11 -4
- package/lib/commonjs/mol-repr/structure/complex-representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +7 -7
- package/lib/commonjs/mol-repr/structure/complex-visual.js +11 -5
- package/lib/commonjs/mol-repr/structure/complex-visual.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/params.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/registry.d.ts +26 -26
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/units-representation.js +15 -15
- package/lib/commonjs/mol-repr/structure/units-representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/units-visual.js +11 -5
- package/lib/commonjs/mol-repr/structure/units-visual.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
- 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 +14 -12
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +5 -4
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +16 -16
- package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/element.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.d.ts +2 -2
- package/lib/commonjs/mol-repr/visual.d.ts +21 -13
- package/lib/commonjs/mol-repr/visual.js +53 -6
- package/lib/commonjs/mol-repr/visual.js.map +1 -1
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +5 -5
- package/lib/commonjs/mol-repr/volume/registry.d.ts +3 -3
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/representation.js +12 -3
- package/lib/commonjs/mol-repr/volume/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/volume/slice.d.ts +6 -6
- package/lib/commonjs/mol-state/state.js +7 -5
- package/lib/commonjs/mol-state/state.js.map +1 -1
- package/lib/commonjs/mol-task/execution/observable.js +1 -5
- package/lib/commonjs/mol-task/execution/observable.js.map +1 -1
- package/lib/commonjs/mol-theme/color/atom-id.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/chain-id.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/element-index.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/element-symbol.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/entity-id.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/entity-source.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/model-index.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/operator-hkl.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/operator-name.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/polymer-id.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/polymer-index.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/unit-index.d.ts +12 -12
- package/lib/commonjs/mol-theme/color.d.ts +78 -78
- package/lib/commonjs/mol-util/color/lists.d.ts +3 -3
- package/lib/commonjs/mol-util/color/palette.d.ts +13 -13
- package/lib/commonjs/mol-util/color/scale.d.ts +1 -1
- package/lib/commonjs/servers/model/config.d.ts +2 -2
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/extensions/geo-export/controls.js +1 -1
- package/lib/extensions/geo-export/controls.js.map +1 -1
- package/lib/extensions/geo-export/glb-exporter.d.ts +1 -0
- package/lib/extensions/geo-export/glb-exporter.js +27 -17
- package/lib/extensions/geo-export/glb-exporter.js.map +1 -1
- package/lib/extensions/geo-export/mesh-exporter.d.ts +31 -2
- package/lib/extensions/geo-export/mesh-exporter.js +87 -15
- package/lib/extensions/geo-export/mesh-exporter.js.map +1 -1
- package/lib/extensions/geo-export/obj-exporter.d.ts +1 -0
- package/lib/extensions/geo-export/obj-exporter.js +24 -15
- package/lib/extensions/geo-export/obj-exporter.js.map +1 -1
- package/lib/extensions/geo-export/ui.js +24 -20
- package/lib/extensions/geo-export/ui.js.map +1 -1
- package/lib/extensions/geo-export/usdz-exporter.d.ts +1 -0
- package/lib/extensions/geo-export/usdz-exporter.js +26 -16
- package/lib/extensions/geo-export/usdz-exporter.js.map +1 -1
- package/lib/extensions/mp4-export/controls.js +1 -1
- package/lib/extensions/mp4-export/controls.js.map +1 -1
- package/lib/extensions/mp4-export/ui.js +7 -6
- package/lib/extensions/mp4-export/ui.js.map +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -3
- package/lib/extensions/rcsb/graphql/types.d.ts +22 -21
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/mol-canvas3d/canvas3d.d.ts +4 -4
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +2 -2
- package/lib/mol-canvas3d/passes/draw.js +3 -11
- package/lib/mol-canvas3d/passes/draw.js.map +1 -1
- package/lib/mol-canvas3d/passes/image.d.ts +2 -2
- package/lib/mol-data/int/impl/ordered-set.d.ts +3 -3
- package/lib/mol-data/int/impl/sorted-array.d.ts +1 -1
- package/lib/mol-geo/geometry/base.d.ts +13 -1
- package/lib/mol-geo/geometry/base.js +34 -1
- package/lib/mol-geo/geometry/base.js.map +1 -1
- package/lib/mol-geo/geometry/image/image.d.ts +2 -2
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +10 -3
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +150 -34
- package/lib/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
- package/lib/mol-geo/geometry/overpaint-data.d.ts +7 -2
- package/lib/mol-geo/geometry/overpaint-data.js +11 -2
- package/lib/mol-geo/geometry/overpaint-data.js.map +1 -1
- package/lib/mol-geo/geometry/points/points.d.ts +2 -2
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +0 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +7 -3
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +158 -26
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js.map +1 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
- package/lib/mol-geo/geometry/transparency-data.d.ts +7 -2
- package/lib/mol-geo/geometry/transparency-data.js +11 -2
- package/lib/mol-geo/geometry/transparency-data.js.map +1 -1
- package/lib/mol-gl/compute/copy.d.ts +20 -0
- package/lib/mol-gl/compute/copy.js +24 -0
- package/lib/mol-gl/compute/copy.js.map +1 -0
- package/lib/mol-gl/compute/marching-cubes/isosurface.js +3 -3
- package/lib/mol-gl/compute/marching-cubes/isosurface.js.map +1 -1
- package/lib/mol-gl/compute/util.d.ts +25 -6
- package/lib/mol-gl/compute/util.js +74 -21
- package/lib/mol-gl/compute/util.js.map +1 -1
- package/lib/mol-gl/renderable/cylinders.d.ts +8 -0
- package/lib/mol-gl/renderable/direct-volume.d.ts +8 -0
- package/lib/mol-gl/renderable/image.d.ts +8 -0
- package/lib/mol-gl/renderable/lines.d.ts +8 -0
- package/lib/mol-gl/renderable/mesh.d.ts +8 -0
- package/lib/mol-gl/renderable/points.d.ts +8 -0
- package/lib/mol-gl/renderable/schema.d.ts +16 -0
- package/lib/mol-gl/renderable/schema.js +8 -0
- package/lib/mol-gl/renderable/schema.js.map +1 -1
- package/lib/mol-gl/renderable/spheres.d.ts +8 -0
- package/lib/mol-gl/renderable/text.d.ts +8 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +22 -13
- package/lib/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/mol-gl/renderable/texture-mesh.js.map +1 -1
- package/lib/mol-gl/renderer.d.ts +2 -2
- package/lib/mol-gl/renderer.js +3 -0
- package/lib/mol-gl/renderer.js.map +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js.map +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js.map +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.d.ts +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.js.map +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.d.ts +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.js.map +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.d.ts +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.js +1 -1
- package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.js.map +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js.map +1 -1
- package/lib/mol-gl/shader/mesh.vert.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.vert.js +1 -1
- package/lib/mol-gl/shader/mesh.vert.js.map +1 -1
- package/lib/mol-gl/webgl/extensions.js +2 -6
- package/lib/mol-gl/webgl/extensions.js.map +1 -1
- package/lib/mol-gl/webgl/render-item.d.ts +1 -1
- package/lib/mol-gl/webgl/resources.js +1 -1
- package/lib/mol-gl/webgl/resources.js.map +1 -1
- package/lib/mol-gl/webgl/vertex-array.d.ts +3 -2
- package/lib/mol-gl/webgl/vertex-array.js +9 -2
- package/lib/mol-gl/webgl/vertex-array.js.map +1 -1
- package/lib/mol-io/common/typed-array.d.ts +1 -1
- package/lib/mol-io/reader/_spec/sdf.spec.js +51 -0
- package/lib/mol-io/reader/_spec/sdf.spec.js.map +1 -1
- package/lib/mol-io/reader/cif/schema/bird.d.ts +2 -2
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/cif-core.d.ts +8 -5
- package/lib/mol-io/reader/cif/schema/cif-core.js +15 -5
- package/lib/mol-io/reader/cif/schema/cif-core.js.map +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +13 -13
- package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/mol-io/reader/sdf/parser-v3-util.d.ts +9 -0
- package/lib/mol-io/reader/sdf/parser-v3-util.js +84 -0
- package/lib/mol-io/reader/sdf/parser-v3-util.js.map +1 -0
- package/lib/mol-io/reader/sdf/parser.d.ts +1 -1
- package/lib/mol-io/reader/sdf/parser.js +12 -4
- package/lib/mol-io/reader/sdf/parser.js.map +1 -1
- package/lib/mol-model/loci.d.ts +20 -20
- package/lib/mol-model/shape/shape.d.ts +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/mol-model/structure/structure/properties.js +5 -5
- package/lib/mol-model/structure/structure/properties.js.map +1 -1
- package/lib/mol-model/structure/structure/unit.d.ts +2 -2
- package/lib/mol-model-formats/shape/ply.d.ts +8 -8
- package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -5
- package/lib/mol-model-formats/structure/common/component.d.ts +5 -5
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +10 -10
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +5 -5
- package/lib/mol-plugin/commands.d.ts +2 -2
- package/lib/mol-plugin/layout.d.ts +4 -4
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +6 -6
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/file.js +4 -2
- package/lib/mol-plugin-state/actions/file.js.map +1 -1
- package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
- package/lib/mol-plugin-state/animation/helpers.d.ts +5 -5
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -2
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +2 -2
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +7 -7
- package/lib/mol-plugin-state/formats/volume.d.ts +4 -4
- package/lib/mol-plugin-state/formats/volume.js +1 -0
- package/lib/mol-plugin-state/formats/volume.js.map +1 -1
- package/lib/mol-plugin-state/helpers/root-structure.d.ts +2 -2
- package/lib/mol-plugin-state/helpers/structure-component.d.ts +1 -1
- package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +14 -3
- package/lib/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
- package/lib/mol-plugin-state/manager/interactivity.d.ts +1 -1
- package/lib/mol-plugin-state/manager/snapshots.js +2 -1
- package/lib/mol-plugin-state/manager/snapshots.js.map +1 -1
- package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -2
- package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/mol-plugin-state/transforms/model.d.ts +4 -4
- package/lib/mol-plugin-state/transforms/representation.d.ts +8 -8
- package/lib/mol-plugin-state/transforms/representation.js +41 -15
- package/lib/mol-plugin-state/transforms/representation.js.map +1 -1
- package/lib/mol-plugin-ui/state/common.js +10 -9
- package/lib/mol-plugin-ui/state/common.js.map +1 -1
- package/lib/mol-plugin-ui/state/snapshots.js +10 -8
- package/lib/mol-plugin-ui/state/snapshots.js.map +1 -1
- package/lib/mol-plugin-ui/structure/selection.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/selection.js +2 -1
- package/lib/mol-plugin-ui/structure/selection.js.map +1 -1
- package/lib/mol-repr/representation.d.ts +9 -0
- package/lib/mol-repr/representation.js +43 -4
- package/lib/mol-repr/representation.js.map +1 -1
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -1
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/mol-repr/shape/representation.js +5 -0
- package/lib/mol-repr/shape/representation.js.map +1 -1
- package/lib/mol-repr/structure/complex-representation.js +11 -4
- package/lib/mol-repr/structure/complex-representation.js.map +1 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +6 -6
- package/lib/mol-repr/structure/complex-visual.js +11 -5
- package/lib/mol-repr/structure/complex-visual.js.map +1 -1
- package/lib/mol-repr/structure/params.d.ts +3 -3
- package/lib/mol-repr/structure/registry.d.ts +31 -31
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +12 -12
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/mol-repr/structure/representation/cartoon.d.ts +6 -6
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +12 -12
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -9
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -3
- package/lib/mol-repr/structure/representation/label.d.ts +6 -6
- package/lib/mol-repr/structure/representation/line.d.ts +15 -15
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -9
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/mol-repr/structure/representation/point.d.ts +6 -6
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/mol-repr/structure/units-representation.js +15 -15
- package/lib/mol-repr/structure/units-representation.js.map +1 -1
- package/lib/mol-repr/structure/units-visual.d.ts +9 -9
- package/lib/mol-repr/structure/units-visual.js +11 -5
- package/lib/mol-repr/structure/units-visual.js.map +1 -1
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +8 -8
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +4 -4
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +8 -8
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +4 -4
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -1
- package/lib/mol-repr/structure/visual/element-point.d.ts +2 -2
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -2
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -12
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -7
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js.map +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/label-text.d.ts +2 -2
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +3 -2
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js.map +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +4 -4
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/util/bond.d.ts +18 -18
- package/lib/mol-repr/structure/visual/util/common.d.ts +2 -2
- package/lib/mol-repr/visual.d.ts +21 -13
- package/lib/mol-repr/visual.js +53 -6
- package/lib/mol-repr/visual.js.map +1 -1
- package/lib/mol-repr/volume/direct-volume.d.ts +2 -2
- package/lib/mol-repr/volume/registry.d.ts +2 -2
- package/lib/mol-repr/volume/representation.d.ts +1 -1
- package/lib/mol-repr/volume/representation.js +12 -3
- package/lib/mol-repr/volume/representation.js.map +1 -1
- package/lib/mol-repr/volume/slice.d.ts +6 -6
- package/lib/mol-state/state.js +7 -5
- package/lib/mol-state/state.js.map +1 -1
- package/lib/mol-task/execution/observable.js +1 -5
- package/lib/mol-task/execution/observable.js.map +1 -1
- package/lib/mol-theme/color/element-symbol.d.ts +4 -4
- package/lib/mol-theme/color.d.ts +2 -2
- package/lib/mol-util/color/palette.d.ts +1 -1
- package/lib/mol-util/color/scale.d.ts +1 -1
- package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
- package/package.json +26 -26
|
@@ -68,7 +68,7 @@ export declare const ColorLists: {
|
|
|
68
68
|
};
|
|
69
69
|
export declare type ColorListName = keyof typeof ColorLists;
|
|
70
70
|
export declare const ColorListNames: string[];
|
|
71
|
-
export declare const ColorListOptions: ["orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "
|
|
72
|
-
export declare const ColorListOptionsScale: ["orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "
|
|
73
|
-
export declare const ColorListOptionsSet: ["orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "
|
|
71
|
+
export declare const ColorListOptions: ["red-yellow-blue" | "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "brown-white-green" | "red-grey" | "orange-purple" | "set-2" | "accent" | "set-1" | "set-3" | "dark-2" | "paired" | "pastel-2" | "pastel-1" | "many-distinct" | "magma" | "inferno" | "plasma" | "viridis" | "cividis" | "twilight" | "turbo" | "rainbow" | "red-white-blue", string, string][];
|
|
72
|
+
export declare const ColorListOptionsScale: ["red-yellow-blue" | "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "brown-white-green" | "red-grey" | "orange-purple" | "set-2" | "accent" | "set-1" | "set-3" | "dark-2" | "paired" | "pastel-2" | "pastel-1" | "many-distinct" | "magma" | "inferno" | "plasma" | "viridis" | "cividis" | "twilight" | "turbo" | "rainbow" | "red-white-blue", string, string][];
|
|
73
|
+
export declare const ColorListOptionsSet: ["red-yellow-blue" | "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "brown-white-green" | "red-grey" | "orange-purple" | "set-2" | "accent" | "set-1" | "set-3" | "dark-2" | "paired" | "pastel-2" | "pastel-1" | "many-distinct" | "magma" | "inferno" | "plasma" | "viridis" | "cividis" | "twilight" | "turbo" | "rainbow" | "red-white-blue", string, string][];
|
|
74
74
|
export declare function getColorListFromName(name: ColorListName): ColorList;
|
|
@@ -10,38 +10,38 @@ import { ParamDefinition as PD } from '../param-definition';
|
|
|
10
10
|
declare type PaletteType = 'generate' | 'colors';
|
|
11
11
|
declare const DefaultGetPaletteProps: {
|
|
12
12
|
type: PaletteType;
|
|
13
|
-
colorList: "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "
|
|
13
|
+
colorList: "red-yellow-blue" | "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "brown-white-green" | "red-grey" | "orange-purple" | "set-2" | "accent" | "set-1" | "set-3" | "dark-2" | "paired" | "pastel-2" | "pastel-1" | "many-distinct" | "magma" | "inferno" | "plasma" | "viridis" | "cividis" | "twilight" | "turbo" | "rainbow" | "red-white-blue";
|
|
14
14
|
};
|
|
15
15
|
declare type GetPaletteProps = typeof DefaultGetPaletteProps;
|
|
16
16
|
export declare function getPaletteParams(props?: Partial<GetPaletteProps>): {
|
|
17
17
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
18
|
-
list: {
|
|
19
|
-
kind: "interpolate" | "set";
|
|
20
|
-
colors: import("./color").ColorListEntry[];
|
|
21
|
-
};
|
|
22
|
-
}>, "colors"> | PD.NamedParams<PD.Normalize<{
|
|
23
18
|
maxCount: number;
|
|
24
19
|
hue: [number, number];
|
|
25
20
|
chroma: [number, number];
|
|
26
21
|
luminance: [number, number];
|
|
27
22
|
clusteringStepCount: number;
|
|
28
23
|
minSampleCount: number;
|
|
29
|
-
}>, "generate"
|
|
30
|
-
};
|
|
31
|
-
declare const DefaultPaletteProps: PD.Values<{
|
|
32
|
-
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
24
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
33
25
|
list: {
|
|
34
|
-
kind: "
|
|
26
|
+
kind: "set" | "interpolate";
|
|
35
27
|
colors: import("./color").ColorListEntry[];
|
|
36
28
|
};
|
|
37
|
-
}>, "colors"
|
|
29
|
+
}>, "colors">>;
|
|
30
|
+
};
|
|
31
|
+
declare const DefaultPaletteProps: PD.Values<{
|
|
32
|
+
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
38
33
|
maxCount: number;
|
|
39
34
|
hue: [number, number];
|
|
40
35
|
chroma: [number, number];
|
|
41
36
|
luminance: [number, number];
|
|
42
37
|
clusteringStepCount: number;
|
|
43
38
|
minSampleCount: number;
|
|
44
|
-
}>, "generate"
|
|
39
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
40
|
+
list: {
|
|
41
|
+
kind: "set" | "interpolate";
|
|
42
|
+
colors: import("./color").ColorListEntry[];
|
|
43
|
+
};
|
|
44
|
+
}>, "colors">>;
|
|
45
45
|
}>;
|
|
46
46
|
declare type PaletteProps = typeof DefaultPaletteProps;
|
|
47
47
|
declare const DefaultLabelOptions: {
|
|
@@ -21,7 +21,7 @@ export interface ColorScale {
|
|
|
21
21
|
export declare const DefaultColorScaleProps: {
|
|
22
22
|
domain: [number, number];
|
|
23
23
|
reverse: boolean;
|
|
24
|
-
listOrName: "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "
|
|
24
|
+
listOrName: "red-yellow-blue" | "orange-red" | "purple-blue" | "blue-purple" | "oranges" | "blue-green" | "yellow-orange-brown" | "yellow-green" | "reds" | "red-purple" | "greens" | "yellow-green-blue" | "purples" | "green-blue" | "greys" | "yellow-orange-red" | "purple-red" | "blues" | "purple-blue-green" | "spectral" | "red-yellow-green" | "red-blue" | "pink-yellow-green" | "purple-green" | "brown-white-green" | "red-grey" | "orange-purple" | "set-2" | "accent" | "set-1" | "set-3" | "dark-2" | "paired" | "pastel-2" | "pastel-1" | "many-distinct" | "magma" | "inferno" | "plasma" | "viridis" | "cividis" | "twilight" | "turbo" | "rainbow" | "red-white-blue" | ColorListEntry[];
|
|
25
25
|
minLabel: string | undefined;
|
|
26
26
|
maxLabel: string | undefined;
|
|
27
27
|
};
|
|
@@ -53,7 +53,7 @@ declare const DefaultModelServerConfig: {
|
|
|
53
53
|
*
|
|
54
54
|
* /static query uses 'pdb-cif' and 'pdb-bcif' source names.
|
|
55
55
|
*/
|
|
56
|
-
sourceMap: ([string, string] | [string, string, "
|
|
56
|
+
sourceMap: ([string, string] | [string, string, "cif" | "bcif" | "cif.gz" | "bcif.gz"])[];
|
|
57
57
|
};
|
|
58
58
|
export declare const ModelServerFetchFormats: readonly ["cif", "bcif", "cif.gz", "bcif.gz"];
|
|
59
59
|
export declare type ModelServerFetchFormats = (typeof ModelServerFetchFormats)[number];
|
|
@@ -108,7 +108,7 @@ export declare const ModelServerConfig: {
|
|
|
108
108
|
*
|
|
109
109
|
* /static query uses 'pdb-cif' and 'pdb-bcif' source names.
|
|
110
110
|
*/
|
|
111
|
-
sourceMap: ([string, string] | [string, string, "
|
|
111
|
+
sourceMap: ([string, string] | [string, string, "cif" | "bcif" | "cif.gz" | "bcif.gz"])[];
|
|
112
112
|
};
|
|
113
113
|
export declare const ModelServerConfigTemplate: ModelServerConfig;
|
|
114
114
|
export declare function configureServer(): void;
|
|
@@ -10,7 +10,7 @@ import { StructureRepresentation, StructureRepresentationProvider } from '../../
|
|
|
10
10
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
11
11
|
import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
12
12
|
export declare const ConfalPyramidsParams: {
|
|
13
|
-
unitKinds: PD.MultiSelect<"
|
|
13
|
+
unitKinds: PD.MultiSelect<"atomic" | "spheres" | "gaussians">;
|
|
14
14
|
includeParent: PD.BooleanParam;
|
|
15
15
|
doubleSided: PD.BooleanParam;
|
|
16
16
|
flipSided: PD.BooleanParam;
|
|
@@ -22,7 +22,7 @@ export declare const ConfalPyramidsParams: {
|
|
|
22
22
|
};
|
|
23
23
|
export declare type ConfalPyramidsParams = typeof ConfalPyramidsParams;
|
|
24
24
|
export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
25
|
-
unitKinds: PD.MultiSelect<"
|
|
25
|
+
unitKinds: PD.MultiSelect<"atomic" | "spheres" | "gaussians">;
|
|
26
26
|
includeParent: PD.BooleanParam;
|
|
27
27
|
doubleSided: PD.BooleanParam;
|
|
28
28
|
flipSided: PD.BooleanParam;
|
|
@@ -35,7 +35,7 @@ export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, struc
|
|
|
35
35
|
export declare type ConfalPyramidsRepresentation = StructureRepresentation<ConfalPyramidsParams>;
|
|
36
36
|
export declare function ConfalPyramidsRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, ConfalPyramidsParams>): ConfalPyramidsRepresentation;
|
|
37
37
|
export declare const ConfalPyramidsRepresentationProvider: StructureRepresentationProvider<{
|
|
38
|
-
unitKinds: PD.MultiSelect<"
|
|
38
|
+
unitKinds: PD.MultiSelect<"atomic" | "spheres" | "gaussians">;
|
|
39
39
|
includeParent: PD.BooleanParam;
|
|
40
40
|
doubleSided: PD.BooleanParam;
|
|
41
41
|
flipSided: PD.BooleanParam;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.js","sourceRoot":"","sources":["../../../src/extensions/geo-export/controls.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,IAAI,EAAE,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CA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AC7C,qBAAM,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,2BAAoB,CAAC,cAAI,EAAE,CAAE,EAAE,CAAC,EAAA;;wBAA5D,SAA4D,CAAC;wBAC7D,qBAAM,oBAAoB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,0CAAE,KAAM,EAAE,GAAG,CAAC,EAAA;;wBAAnF,SAAmF,CAAC;;;wBAFrC,EAAE,CAAC,CAAA;;4BAKzC,qBAAM,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,EAAA;;wBAA9C,IAAI,GAAG,SAAuC;wBACpD,sBAAO;gCACH,IAAI,MAAA;gCACJ,QAAQ,EAAE,QAAQ,GAAG,GAAG,GAAG,oBAAoB,CAAC,aAAa;6BAChE,EAAC;;;wBAEF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;wBACtD,MAAM,GAAC,CAAC;;;;aAEf,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IAKL,uBAAC;AAAD,CAAC,AA7DD,CAAsC,eAAe,GA6DpD"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Sukolsak Sakshuwong <sukolsak@stanford.edu>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { Style } from '../../mol-gl/renderer';
|
|
7
8
|
import { Box3D } from '../../mol-math/geometry';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Sukolsak Sakshuwong <sukolsak@stanford.edu>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { __awaiter, __extends, __generator, __spreadArray } from "tslib";
|
|
7
8
|
import { asciiWrite } from '../../mol-io/common/ascii';
|
|
@@ -21,6 +22,11 @@ var UNSIGNED_INT = 5125;
|
|
|
21
22
|
var FLOAT = 5126;
|
|
22
23
|
var ARRAY_BUFFER = 34962;
|
|
23
24
|
var ELEMENT_ARRAY_BUFFER = 34963;
|
|
25
|
+
var GLTF_MAGIC_BYTE = 0x46546C67;
|
|
26
|
+
var JSON_CHUNK_TYPE = 0x4E4F534A;
|
|
27
|
+
var BIN_CHUNK_TYPE = 0x004E4942;
|
|
28
|
+
var JSON_PAD_CHAR = 0x20;
|
|
29
|
+
var BIN_PAD_CHAR = 0x00;
|
|
24
30
|
var GlbExporter = /** @class */ (function (_super) {
|
|
25
31
|
__extends(GlbExporter, _super);
|
|
26
32
|
function GlbExporter(style, boundingBox) {
|
|
@@ -110,20 +116,14 @@ var GlbExporter = /** @class */ (function (_super) {
|
|
|
110
116
|
indexAccessorIndex: isGeoTexture ? undefined : this.addBuffer(indexBuffer, UNSIGNED_INT, 'SCALAR', drawCount, ELEMENT_ARRAY_BUFFER)
|
|
111
117
|
};
|
|
112
118
|
};
|
|
113
|
-
GlbExporter.prototype.addColorBuffer = function (
|
|
114
|
-
var
|
|
119
|
+
GlbExporter.prototype.addColorBuffer = function (geoData, interpolatedColors, interpolatedOverpaint, interpolatedTransparency) {
|
|
120
|
+
var values = geoData.values, vertexCount = geoData.vertexCount;
|
|
115
121
|
var uAlpha = values.uAlpha.ref.value;
|
|
116
|
-
var dTransparency = values.dTransparency.ref.value;
|
|
117
|
-
var tTransparency = values.tTransparency.ref.value;
|
|
118
122
|
var colorArray = new Uint8Array(vertexCount * 4);
|
|
119
123
|
for (var i = 0; i < vertexCount; ++i) {
|
|
120
|
-
var color = GlbExporter.getColor(
|
|
121
|
-
var
|
|
122
|
-
|
|
123
|
-
var group = isGeoTexture ? GlbExporter.getGroup(groups, i) : groups[i];
|
|
124
|
-
var transparency = tTransparency.array[instanceIndex * groupCount + group] / 255;
|
|
125
|
-
alpha *= 1 - transparency;
|
|
126
|
-
}
|
|
124
|
+
var color = GlbExporter.getColor(i, geoData, interpolatedColors, interpolatedOverpaint);
|
|
125
|
+
var transparency = GlbExporter.getTransparency(i, geoData, interpolatedTransparency);
|
|
126
|
+
var alpha = uAlpha * (1 - transparency);
|
|
127
127
|
color = Color.sRGBToLinear(color);
|
|
128
128
|
Color.toArray(color, colorArray, i * 4);
|
|
129
129
|
colorArray[i * 4 + 3] = Math.round(alpha * 255);
|
|
@@ -136,19 +136,29 @@ var GlbExporter = /** @class */ (function (_super) {
|
|
|
136
136
|
};
|
|
137
137
|
GlbExporter.prototype.addMeshWithColors = function (input) {
|
|
138
138
|
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
-
var mesh, values, isGeoTexture, webgl, ctx, t, colorType, dTransparency, aTransform, instanceCount, interpolatedColors, stride, sameGeometryBuffers, sameColorBuffer, vertexAccessorIndex, normalAccessorIndex, indexAccessorIndex, colorAccessorIndex, meshIndex, instanceIndex, _a, vertices, normals, indices, groups, vertexCount, drawCount, accessorIndices, node;
|
|
139
|
+
var mesh, values, isGeoTexture, webgl, ctx, t, colorType, overpaintType, transparencyType, dTransparency, aTransform, instanceCount, interpolatedColors, stride, interpolatedOverpaint, stride, interpolatedTransparency, stride, sameGeometryBuffers, sameColorBuffer, vertexAccessorIndex, normalAccessorIndex, indexAccessorIndex, colorAccessorIndex, meshIndex, instanceIndex, _a, vertices, normals, indices, groups, vertexCount, drawCount, accessorIndices, node;
|
|
140
140
|
return __generator(this, function (_b) {
|
|
141
141
|
switch (_b.label) {
|
|
142
142
|
case 0:
|
|
143
143
|
mesh = input.mesh, values = input.values, isGeoTexture = input.isGeoTexture, webgl = input.webgl, ctx = input.ctx;
|
|
144
144
|
t = Mat4();
|
|
145
145
|
colorType = values.dColorType.ref.value;
|
|
146
|
+
overpaintType = values.dOverpaintType.ref.value;
|
|
147
|
+
transparencyType = values.dTransparencyType.ref.value;
|
|
146
148
|
dTransparency = values.dTransparency.ref.value;
|
|
147
149
|
aTransform = values.aTransform.ref.value;
|
|
148
150
|
instanceCount = values.uInstanceCount.ref.value;
|
|
149
151
|
if (colorType === 'volume' || colorType === 'volumeInstance') {
|
|
150
152
|
stride = isGeoTexture ? 4 : 3;
|
|
151
|
-
interpolatedColors = GlbExporter.getInterpolatedColors(mesh.vertices, mesh.vertexCount, values, stride, colorType
|
|
153
|
+
interpolatedColors = GlbExporter.getInterpolatedColors(webgl, { vertices: mesh.vertices, vertexCount: mesh.vertexCount, values: values, stride: stride, colorType: colorType });
|
|
154
|
+
}
|
|
155
|
+
if (overpaintType === 'volumeInstance') {
|
|
156
|
+
stride = isGeoTexture ? 4 : 3;
|
|
157
|
+
interpolatedOverpaint = GlbExporter.getInterpolatedOverpaint(webgl, { vertices: mesh.vertices, vertexCount: mesh.vertexCount, values: values, stride: stride, colorType: overpaintType });
|
|
158
|
+
}
|
|
159
|
+
if (transparencyType === 'volumeInstance') {
|
|
160
|
+
stride = isGeoTexture ? 4 : 3;
|
|
161
|
+
interpolatedTransparency = GlbExporter.getInterpolatedTransparency(webgl, { vertices: mesh.vertices, vertexCount: mesh.vertexCount, values: values, stride: stride, colorType: transparencyType });
|
|
152
162
|
}
|
|
153
163
|
sameGeometryBuffers = mesh !== undefined;
|
|
154
164
|
sameColorBuffer = sameGeometryBuffers && colorType !== 'instance' && !colorType.endsWith('Instance') && !dTransparency;
|
|
@@ -177,7 +187,7 @@ var GlbExporter = /** @class */ (function (_super) {
|
|
|
177
187
|
}
|
|
178
188
|
// create a color buffer if needed
|
|
179
189
|
if (instanceIndex === 0 || !sameColorBuffer) {
|
|
180
|
-
colorAccessorIndex = this.addColorBuffer(values, groups, vertexCount, instanceIndex, isGeoTexture, interpolatedColors);
|
|
190
|
+
colorAccessorIndex = this.addColorBuffer({ values: values, groups: groups, vertexCount: vertexCount, instanceIndex: instanceIndex, isGeoTexture: isGeoTexture }, interpolatedColors, interpolatedOverpaint, interpolatedTransparency);
|
|
181
191
|
}
|
|
182
192
|
// glTF mesh
|
|
183
193
|
meshIndex = this.meshes.length;
|
|
@@ -259,12 +269,12 @@ var GlbExporter = /** @class */ (function (_super) {
|
|
|
259
269
|
jsonString = JSON.stringify(gltf);
|
|
260
270
|
jsonBuffer = new Uint8Array(jsonString.length);
|
|
261
271
|
asciiWrite(jsonBuffer, jsonString);
|
|
262
|
-
_a = createChunk(
|
|
263
|
-
_b = createChunk(
|
|
272
|
+
_a = createChunk(JSON_CHUNK_TYPE, [jsonBuffer.buffer], jsonBuffer.length, JSON_PAD_CHAR), jsonChunk = _a[0], jsonChunkLength = _a[1];
|
|
273
|
+
_b = createChunk(BIN_CHUNK_TYPE, this.binaryBuffer, binaryBufferLength, BIN_PAD_CHAR), binaryChunk = _b[0], binaryChunkLength = _b[1];
|
|
264
274
|
glbBufferLength = 12 + jsonChunkLength + binaryChunkLength;
|
|
265
275
|
header = new ArrayBuffer(12);
|
|
266
276
|
headerDataView = new DataView(header);
|
|
267
|
-
headerDataView.setUint32(0,
|
|
277
|
+
headerDataView.setUint32(0, GLTF_MAGIC_BYTE, true); // magic number "glTF"
|
|
268
278
|
headerDataView.setUint32(4, 2, true); // version
|
|
269
279
|
headerDataView.setUint32(8, glbBufferLength, true); // length
|
|
270
280
|
glbBuffer = __spreadArray(__spreadArray([header], jsonChunk, true), binaryChunk, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glb-exporter.js","sourceRoot":"","sources":["../../../src/extensions/geo-export/glb-exporter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEjF,OAAO,EAAE,IAAI,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BACxC,MAAM,GAAG,CAAC,CAAC;gBACf,WAA8B,EAAT,uBAAS,EAAT,uBAAS,EAAT,IAAS,EAAE;oBAArB,MAAM;oBACb,GAAG,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;oBACxC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;iBAC/B;gBACD,sBAAO,EAAE,GAAG,KAAA,EAAE,EAAC;;;KAClB;IAEK,6BAAO,GAAb,UAAc,GAAmB;;;;;;6BAClB,IAAI;wBAAG,qBAAM,IAAI,CAAC,OAAO,EAAE,EAAA;4BAAtC,sBAAO,cAAI,IAAI,YAAE,CAAC,SAAoB,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAC,EAAC;;;;KAChF;IASL,kBAAC;AAAD,CAAC,AA5RD,CAAiC,YAAY,GA4R5C"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Sukolsak Sakshuwong <sukolsak@stanford.edu>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { GraphicsRenderObject } from '../../mol-gl/render-object';
|
|
7
8
|
import { BaseValues } from '../../mol-gl/renderable/schema';
|
|
@@ -25,12 +26,39 @@ export interface AddMeshInput {
|
|
|
25
26
|
webgl: WebGLContext | undefined;
|
|
26
27
|
ctx: RuntimeContext;
|
|
27
28
|
}
|
|
29
|
+
export declare type MeshGeoData = {
|
|
30
|
+
values: BaseValues;
|
|
31
|
+
groups: Float32Array | Uint8Array;
|
|
32
|
+
vertexCount: number;
|
|
33
|
+
instanceIndex: number;
|
|
34
|
+
isGeoTexture: boolean;
|
|
35
|
+
};
|
|
28
36
|
export declare abstract class MeshExporter<D extends RenderObjectExportData> implements RenderObjectExporter<D> {
|
|
29
37
|
abstract readonly fileExtension: string;
|
|
30
38
|
private static getSizeFromTexture;
|
|
31
39
|
private static getSize;
|
|
32
40
|
protected static getGroup(groups: Float32Array | Uint8Array, i: number): number;
|
|
33
|
-
protected static getInterpolatedColors(
|
|
41
|
+
protected static getInterpolatedColors(webgl: WebGLContext, input: {
|
|
42
|
+
vertices: Float32Array;
|
|
43
|
+
vertexCount: number;
|
|
44
|
+
values: BaseValues;
|
|
45
|
+
stride: 3 | 4;
|
|
46
|
+
colorType: 'volume' | 'volumeInstance';
|
|
47
|
+
}): Uint8Array;
|
|
48
|
+
protected static getInterpolatedOverpaint(webgl: WebGLContext, input: {
|
|
49
|
+
vertices: Float32Array;
|
|
50
|
+
vertexCount: number;
|
|
51
|
+
values: BaseValues;
|
|
52
|
+
stride: 3 | 4;
|
|
53
|
+
colorType: 'volumeInstance';
|
|
54
|
+
}): Uint8Array;
|
|
55
|
+
protected static getInterpolatedTransparency(webgl: WebGLContext, input: {
|
|
56
|
+
vertices: Float32Array;
|
|
57
|
+
vertexCount: number;
|
|
58
|
+
values: BaseValues;
|
|
59
|
+
stride: 3 | 4;
|
|
60
|
+
colorType: 'volumeInstance';
|
|
61
|
+
}): Uint8Array;
|
|
34
62
|
protected static quantizeColors(colorArray: Uint8Array, vertexCount: number): void;
|
|
35
63
|
protected static getInstance(input: AddMeshInput, instanceIndex: number): {
|
|
36
64
|
vertices: Float32Array;
|
|
@@ -40,7 +68,8 @@ export declare abstract class MeshExporter<D extends RenderObjectExportData> imp
|
|
|
40
68
|
vertexCount: number;
|
|
41
69
|
drawCount: number;
|
|
42
70
|
};
|
|
43
|
-
protected static getColor(
|
|
71
|
+
protected static getColor(vertexIndex: number, geoData: MeshGeoData, interpolatedColors?: Uint8Array, interpolatedOverpaint?: Uint8Array): Color;
|
|
72
|
+
protected static getTransparency(vertexIndex: number, geoData: MeshGeoData, interpolatedTransparency?: Uint8Array): number;
|
|
44
73
|
protected abstract addMeshWithColors(input: AddMeshInput): void;
|
|
45
74
|
private addMesh;
|
|
46
75
|
private addLines;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Sukolsak Sakshuwong <sukolsak@stanford.edu>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { __awaiter, __generator } from "tslib";
|
|
7
8
|
import { sort, arraySwap } from '../../mol-data/util';
|
|
@@ -14,6 +15,7 @@ import { sizeDataFactor } from '../../mol-geo/geometry/size-data';
|
|
|
14
15
|
import { Vec3 } from '../../mol-math/linear-algebra';
|
|
15
16
|
import { Color } from '../../mol-util/color/color';
|
|
16
17
|
import { decodeFloatRGB } from '../../mol-util/float-packing';
|
|
18
|
+
import { readAlphaTexture, readTexture } from '../../mol-gl/compute/util';
|
|
17
19
|
var GeoExportName = 'geo-export';
|
|
18
20
|
// avoiding namespace lookup improved performance in Chrome (Aug 2020)
|
|
19
21
|
var v3fromArray = Vec3.fromArray;
|
|
@@ -56,22 +58,37 @@ var MeshExporter = /** @class */ (function () {
|
|
|
56
58
|
}
|
|
57
59
|
return decodeFloatRGB(r, g, b);
|
|
58
60
|
};
|
|
59
|
-
MeshExporter.getInterpolatedColors = function (
|
|
61
|
+
MeshExporter.getInterpolatedColors = function (webgl, input) {
|
|
62
|
+
var values = input.values, vertexCount = input.vertexCount, vertices = input.vertices, colorType = input.colorType, stride = input.stride;
|
|
60
63
|
var colorGridTransform = values.uColorGridTransform.ref.value;
|
|
61
64
|
var colorGridDim = values.uColorGridDim.ref.value;
|
|
62
65
|
var colorTexDim = values.uColorTexDim.ref.value;
|
|
63
66
|
var aTransform = values.aTransform.ref.value;
|
|
64
67
|
var instanceCount = values.uInstanceCount.ref.value;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
values.
|
|
73
|
-
|
|
74
|
-
var
|
|
68
|
+
var colorGrid = readTexture(webgl, values.tColorGrid.ref.value).array;
|
|
69
|
+
var interpolated = getTrilinearlyInterpolated({ vertexCount: vertexCount, instanceCount: instanceCount, transformBuffer: aTransform, positionBuffer: vertices, colorType: colorType, grid: colorGrid, gridDim: colorGridDim, gridTexDim: colorTexDim, gridTransform: colorGridTransform, vertexStride: stride, colorStride: 4, outputStride: 3 });
|
|
70
|
+
return interpolated.array;
|
|
71
|
+
};
|
|
72
|
+
MeshExporter.getInterpolatedOverpaint = function (webgl, input) {
|
|
73
|
+
var values = input.values, vertexCount = input.vertexCount, vertices = input.vertices, colorType = input.colorType, stride = input.stride;
|
|
74
|
+
var overpaintGridTransform = values.uOverpaintGridTransform.ref.value;
|
|
75
|
+
var overpaintGridDim = values.uOverpaintGridDim.ref.value;
|
|
76
|
+
var overpaintTexDim = values.uOverpaintTexDim.ref.value;
|
|
77
|
+
var aTransform = values.aTransform.ref.value;
|
|
78
|
+
var instanceCount = values.uInstanceCount.ref.value;
|
|
79
|
+
var overpaintGrid = readTexture(webgl, values.tOverpaintGrid.ref.value).array;
|
|
80
|
+
var interpolated = getTrilinearlyInterpolated({ vertexCount: vertexCount, instanceCount: instanceCount, transformBuffer: aTransform, positionBuffer: vertices, colorType: colorType, grid: overpaintGrid, gridDim: overpaintGridDim, gridTexDim: overpaintTexDim, gridTransform: overpaintGridTransform, vertexStride: stride, colorStride: 4, outputStride: 4 });
|
|
81
|
+
return interpolated.array;
|
|
82
|
+
};
|
|
83
|
+
MeshExporter.getInterpolatedTransparency = function (webgl, input) {
|
|
84
|
+
var values = input.values, vertexCount = input.vertexCount, vertices = input.vertices, colorType = input.colorType, stride = input.stride;
|
|
85
|
+
var transparencyGridTransform = values.uTransparencyGridTransform.ref.value;
|
|
86
|
+
var transparencyGridDim = values.uTransparencyGridDim.ref.value;
|
|
87
|
+
var transparencyTexDim = values.uTransparencyTexDim.ref.value;
|
|
88
|
+
var aTransform = values.aTransform.ref.value;
|
|
89
|
+
var instanceCount = values.uInstanceCount.ref.value;
|
|
90
|
+
var transparencyGrid = readAlphaTexture(webgl, values.tTransparencyGrid.ref.value).array;
|
|
91
|
+
var interpolated = getTrilinearlyInterpolated({ vertexCount: vertexCount, instanceCount: instanceCount, transformBuffer: aTransform, positionBuffer: vertices, colorType: colorType, grid: transparencyGrid, gridDim: transparencyGridDim, gridTexDim: transparencyTexDim, gridTransform: transparencyGridTransform, vertexStride: stride, colorStride: 4, outputStride: 1, itemOffset: 3 });
|
|
75
92
|
return interpolated.array;
|
|
76
93
|
};
|
|
77
94
|
MeshExporter.quantizeColors = function (colorArray, vertexCount) {
|
|
@@ -153,11 +170,13 @@ var MeshExporter = /** @class */ (function () {
|
|
|
153
170
|
};
|
|
154
171
|
}
|
|
155
172
|
};
|
|
156
|
-
MeshExporter.getColor = function (
|
|
173
|
+
MeshExporter.getColor = function (vertexIndex, geoData, interpolatedColors, interpolatedOverpaint) {
|
|
174
|
+
var values = geoData.values, instanceIndex = geoData.instanceIndex, isGeoTexture = geoData.isGeoTexture, groups = geoData.groups, vertexCount = geoData.vertexCount;
|
|
157
175
|
var groupCount = values.uGroupCount.ref.value;
|
|
158
176
|
var colorType = values.dColorType.ref.value;
|
|
159
177
|
var uColor = values.uColor.ref.value;
|
|
160
178
|
var tColor = values.tColor.ref.value.array;
|
|
179
|
+
var overpaintType = values.dOverpaintType.ref.value;
|
|
161
180
|
var dOverpaint = values.dOverpaint.ref.value;
|
|
162
181
|
var tOverpaint = values.tOverpaint.ref.value.array;
|
|
163
182
|
var color;
|
|
@@ -193,13 +212,66 @@ var MeshExporter = /** @class */ (function () {
|
|
|
193
212
|
default: throw new Error('Unsupported color type.');
|
|
194
213
|
}
|
|
195
214
|
if (dOverpaint) {
|
|
196
|
-
var
|
|
197
|
-
var
|
|
198
|
-
|
|
215
|
+
var overpaintColor = void 0;
|
|
216
|
+
var overpaintAlpha = void 0;
|
|
217
|
+
switch (overpaintType) {
|
|
218
|
+
case 'groupInstance': {
|
|
219
|
+
var group = isGeoTexture ? MeshExporter.getGroup(groups, vertexIndex) : groups[vertexIndex];
|
|
220
|
+
var idx = (instanceIndex * groupCount + group) * 4;
|
|
221
|
+
overpaintColor = Color.fromArray(tOverpaint, idx);
|
|
222
|
+
overpaintAlpha = tOverpaint[idx + 3] / 255;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
case 'vertexInstance': {
|
|
226
|
+
var idx = (instanceIndex * vertexCount + vertexIndex) * 4;
|
|
227
|
+
overpaintColor = Color.fromArray(tOverpaint, idx);
|
|
228
|
+
overpaintAlpha = tOverpaint[idx + 3] / 255;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
case 'volumeInstance': {
|
|
232
|
+
var idx = (instanceIndex * vertexCount + vertexIndex) * 4;
|
|
233
|
+
overpaintColor = Color.fromArray(interpolatedOverpaint, idx);
|
|
234
|
+
overpaintAlpha = interpolatedOverpaint[idx + 3] / 255;
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
default: throw new Error('Unsupported overpaint type.');
|
|
238
|
+
}
|
|
239
|
+
// interpolate twice to avoid darkening due to empty overpaint
|
|
240
|
+
overpaintColor = Color.interpolate(color, overpaintColor, overpaintAlpha);
|
|
199
241
|
color = Color.interpolate(color, overpaintColor, overpaintAlpha);
|
|
200
242
|
}
|
|
201
243
|
return color;
|
|
202
244
|
};
|
|
245
|
+
MeshExporter.getTransparency = function (vertexIndex, geoData, interpolatedTransparency) {
|
|
246
|
+
var values = geoData.values, instanceIndex = geoData.instanceIndex, isGeoTexture = geoData.isGeoTexture, groups = geoData.groups, vertexCount = geoData.vertexCount;
|
|
247
|
+
var groupCount = values.uGroupCount.ref.value;
|
|
248
|
+
var dTransparency = values.dTransparency.ref.value;
|
|
249
|
+
var tTransparency = values.tTransparency.ref.value.array;
|
|
250
|
+
var transparencyType = values.dTransparencyType.ref.value;
|
|
251
|
+
var transparency = 0;
|
|
252
|
+
if (dTransparency) {
|
|
253
|
+
switch (transparencyType) {
|
|
254
|
+
case 'groupInstance': {
|
|
255
|
+
var group = isGeoTexture ? MeshExporter.getGroup(groups, vertexIndex) : groups[vertexIndex];
|
|
256
|
+
var idx = (instanceIndex * groupCount + group);
|
|
257
|
+
transparency = tTransparency[idx] / 255;
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
case 'vertexInstance': {
|
|
261
|
+
var idx = (instanceIndex * vertexCount + vertexIndex);
|
|
262
|
+
transparency = tTransparency[idx] / 255;
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
case 'volumeInstance': {
|
|
266
|
+
var idx = (instanceIndex * vertexCount + vertexIndex);
|
|
267
|
+
transparency = interpolatedTransparency[idx] / 255;
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
default: throw new Error('Unsupported transparency type.');
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return transparency;
|
|
274
|
+
};
|
|
203
275
|
MeshExporter.prototype.addMesh = function (values, webgl, ctx) {
|
|
204
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
205
277
|
var aPosition, aNormal, aGroup, originalData, indices, vertexCount, drawCount;
|