molstar 2.3.8 → 3.0.0-dev.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/apps/docking-viewer/viewport.d.ts +2 -2
- package/lib/apps/docking-viewer/viewport.js +14 -14
- package/lib/apps/docking-viewer/viewport.js.map +1 -1
- package/lib/cli/chem-comp-dict/util.d.ts +4 -4
- 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/docking-viewer/viewport.js +14 -14
- package/lib/commonjs/apps/docking-viewer/viewport.js.map +1 -1
- 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/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +20 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +4 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +12 -0
- package/lib/commonjs/extensions/geo-export/controls.js +16 -18
- package/lib/commonjs/extensions/geo-export/controls.js.map +1 -1
- package/lib/commonjs/extensions/geo-export/glb-exporter.d.ts +5 -3
- package/lib/commonjs/extensions/geo-export/glb-exporter.js +49 -27
- 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 +3 -5
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js +39 -30
- 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 +3 -2
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +4 -0
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +22 -21
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +20 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +22 -18
- package/lib/commonjs/mol-canvas3d/controls/trackball.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -11
- package/lib/commonjs/mol-canvas3d/passes/draw.js.map +1 -1
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/base.d.ts +24 -3
- package/lib/commonjs/mol-geo/geometry/base.js +51 -6
- package/lib/commonjs/mol-geo/geometry/base.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +3 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +4 -3
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/image/image.js +3 -1
- package/lib/commonjs/mol-geo/geometry/image/image.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/lines/lines.js +3 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +18 -8
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +10 -2
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +188 -35
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +3 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.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/points/points.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/points/points.js +3 -1
- package/lib/commonjs/mol-geo/geometry/points/points.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +4 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +3 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/substance-data.d.ts +23 -0
- package/lib/commonjs/mol-geo/geometry/substance-data.js +68 -0
- package/lib/commonjs/mol-geo/geometry/substance-data.js.map +1 -0
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +4 -0
- package/lib/commonjs/mol-geo/geometry/text/text.js +3 -1
- package/lib/commonjs/mol-geo/geometry/text/text.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +8 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +194 -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 +7 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -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/_spec/renderer.spec.js +2 -2
- package/lib/commonjs/mol-gl/_spec/renderer.spec.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 +18 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/points.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/points.js +1 -2
- package/lib/commonjs/mol-gl/renderable/points.js.map +1 -1
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +40 -5
- package/lib/commonjs/mol-gl/renderable/schema.js +23 -11
- package/lib/commonjs/mol-gl/renderable/schema.js.map +1 -1
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/text.d.ts +18 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +32 -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 +9 -15
- package/lib/commonjs/mol-gl/renderer.js +56 -61
- package/lib/commonjs/mol-gl/renderer.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.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-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.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/chunks/common-clip.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-clip.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-clip.glsl.js.map +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-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.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.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/shader-code.d.ts +0 -1
- package/lib/commonjs/mol-gl/shader-code.js +31 -13
- package/lib/commonjs/mol-gl/shader-code.js.map +1 -1
- package/lib/commonjs/mol-gl/webgl/extensions.js +2 -4
- package/lib/commonjs/mol-gl/webgl/extensions.js.map +1 -1
- package/lib/commonjs/mol-gl/webgl/render-item.js +1 -4
- package/lib/commonjs/mol-gl/webgl/render-item.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/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/mmcif.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +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-math/linear-algebra/3d/vec3.d.ts +6 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +9 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js.map +1 -1
- package/lib/commonjs/mol-model/loci.d.ts +18 -18
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
- 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 -0
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +4 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +4 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +12 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +16 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +5 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +4 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
- package/lib/commonjs/mol-plugin/commands.d.ts +11 -9
- package/lib/commonjs/mol-plugin/spec.js +1 -0
- package/lib/commonjs/mol-plugin/spec.js.map +1 -1
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- 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/builder/structure/representation-preset.d.ts +4 -4
- 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/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/helpers/structure-substance.d.ts +13 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-substance.js +126 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-substance.js.map +1 -0
- 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/component.d.ts +9 -2
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +44 -22
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js.map +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +31 -4
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +160 -15
- package/lib/commonjs/mol-plugin-state/transforms/representation.js.map +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-plugin-ui/viewport/simple-settings.js +2 -5
- package/lib/commonjs/mol-plugin-ui/viewport/simple-settings.js.map +1 -1
- package/lib/commonjs/mol-repr/representation.d.ts +12 -0
- package/lib/commonjs/mol-repr/representation.js +50 -5
- package/lib/commonjs/mol-repr/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +5 -1
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +5 -1
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +5 -1
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +5 -1
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +5 -1
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +4 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +4 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +4 -0
- package/lib/commonjs/mol-repr/shape/representation.js +8 -0
- package/lib/commonjs/mol-repr/shape/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/complex-representation.js +17 -4
- package/lib/commonjs/mol-repr/structure/complex-representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +25 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.js +15 -5
- package/lib/commonjs/mol-repr/structure/complex-visual.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/params.d.ts +33 -1
- package/lib/commonjs/mol-repr/structure/registry.d.ts +61 -5
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +18 -6
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +15 -3
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +18 -6
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/units-representation.js +23 -17
- package/lib/commonjs/mol-repr/structure/units-representation.js.map +1 -1
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +33 -1
- package/lib/commonjs/mol-repr/structure/units-visual.js +15 -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 +8 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +24 -8
- 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 +4 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +5 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +6 -2
- 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 +4 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/visual.d.ts +24 -13
- package/lib/commonjs/mol-repr/visual.js +106 -8
- package/lib/commonjs/mol-repr/visual.js.map +1 -1
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +12 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +24 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +12 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +5 -1
- package/lib/commonjs/mol-repr/volume/representation.js +15 -3
- package/lib/commonjs/mol-repr/volume/representation.js.map +1 -1
- package/lib/commonjs/mol-repr/volume/slice.d.ts +12 -0
- 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/overpaint.js +1 -1
- package/lib/commonjs/mol-theme/overpaint.js.map +1 -1
- package/lib/commonjs/mol-theme/substance.d.ts +43 -0
- package/lib/commonjs/mol-theme/substance.js +132 -0
- package/lib/commonjs/mol-theme/substance.js.map +1 -0
- package/lib/commonjs/mol-util/material.d.ts +32 -0
- package/lib/commonjs/mol-util/material.js +51 -0
- package/lib/commonjs/mol-util/material.js.map +1 -0
- package/lib/commonjs/mol-util/number.d.ts +1 -0
- package/lib/commonjs/mol-util/number.js +5 -1
- package/lib/commonjs/mol-util/number.js.map +1 -1
- package/lib/extensions/anvil/behavior.d.ts +3 -2
- package/lib/extensions/anvil/representation.d.ts +25 -5
- package/lib/extensions/cellpack/representation.d.ts +6 -2
- package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +15 -3
- package/lib/extensions/geo-export/controls.js +16 -18
- package/lib/extensions/geo-export/controls.js.map +1 -1
- package/lib/extensions/geo-export/glb-exporter.d.ts +5 -3
- package/lib/extensions/geo-export/glb-exporter.js +49 -27
- 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 +3 -5
- package/lib/extensions/geo-export/usdz-exporter.js +39 -30
- 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 +6 -5
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +5 -1
- package/lib/extensions/rcsb/graphql/types.d.ts +22 -21
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -3
- package/lib/extensions/rcsb/validation-report/representation.d.ts +25 -5
- package/lib/mol-canvas3d/canvas3d.d.ts +18 -14
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +4 -3
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +2 -1
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- 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 +3 -2
- package/lib/mol-data/int/impl/sorted-array.d.ts +1 -1
- package/lib/mol-geo/geometry/base.d.ts +27 -6
- package/lib/mol-geo/geometry/base.js +48 -5
- package/lib/mol-geo/geometry/base.js.map +1 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +5 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js +3 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js.map +1 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +5 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.js +4 -3
- package/lib/mol-geo/geometry/direct-volume/direct-volume.js.map +1 -1
- package/lib/mol-geo/geometry/image/image.d.ts +7 -3
- package/lib/mol-geo/geometry/image/image.js +3 -1
- package/lib/mol-geo/geometry/image/image.js.map +1 -1
- package/lib/mol-geo/geometry/lines/lines.d.ts +5 -1
- package/lib/mol-geo/geometry/lines/lines.js +3 -1
- package/lib/mol-geo/geometry/lines/lines.js.map +1 -1
- package/lib/mol-geo/geometry/mesh/builder/tube.js +19 -9
- package/lib/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +11 -3
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +183 -34
- package/lib/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +5 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +3 -1
- package/lib/mol-geo/geometry/mesh/mesh.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 +7 -3
- package/lib/mol-geo/geometry/points/points.js +3 -1
- package/lib/mol-geo/geometry/points/points.js.map +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +5 -2
- package/lib/mol-geo/geometry/spheres/spheres.js +3 -1
- package/lib/mol-geo/geometry/spheres/spheres.js.map +1 -1
- package/lib/mol-geo/geometry/substance-data.d.ts +23 -0
- package/lib/mol-geo/geometry/substance-data.js +61 -0
- package/lib/mol-geo/geometry/substance-data.js.map +1 -0
- package/lib/mol-geo/geometry/text/text.d.ts +5 -1
- package/lib/mol-geo/geometry/text/text.js +3 -1
- package/lib/mol-geo/geometry/text/text.js.map +1 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +8 -3
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +189 -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 +8 -2
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -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/_spec/renderer.spec.js +2 -2
- package/lib/mol-gl/_spec/renderer.spec.js.map +1 -1
- 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 +18 -0
- package/lib/mol-gl/renderable/direct-volume.d.ts +18 -0
- package/lib/mol-gl/renderable/image.d.ts +18 -0
- package/lib/mol-gl/renderable/lines.d.ts +18 -0
- package/lib/mol-gl/renderable/mesh.d.ts +18 -0
- package/lib/mol-gl/renderable/points.d.ts +18 -0
- package/lib/mol-gl/renderable/points.js +1 -2
- package/lib/mol-gl/renderable/points.js.map +1 -1
- package/lib/mol-gl/renderable/schema.d.ts +40 -5
- package/lib/mol-gl/renderable/schema.js +22 -10
- package/lib/mol-gl/renderable/schema.js.map +1 -1
- package/lib/mol-gl/renderable/spheres.d.ts +18 -0
- package/lib/mol-gl/renderable/text.d.ts +18 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +32 -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 +9 -15
- package/lib/mol-gl/renderer.js +55 -59
- package/lib/mol-gl/renderer.js.map +1 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +3 -3
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +3 -3
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.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-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.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/chunks/common-clip.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common-clip.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/common-clip.glsl.js.map +1 -1
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +3 -3
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +3 -3
- package/lib/mol-gl/shader/chunks/light-frag-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.frag.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/mol-gl/shader/mesh.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/shader-code.d.ts +0 -1
- package/lib/mol-gl/shader-code.js +31 -13
- package/lib/mol-gl/shader-code.js.map +1 -1
- package/lib/mol-gl/webgl/extensions.js +3 -5
- 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/render-item.js +1 -4
- package/lib/mol-gl/webgl/render-item.js.map +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/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 +3 -3
- 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/density-server.d.ts +3 -3
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +12 -12
- 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-math/linear-algebra/3d/vec3.d.ts +6 -0
- package/lib/mol-math/linear-algebra/3d/vec3.js +9 -0
- package/lib/mol-math/linear-algebra/3d/vec3.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-formats/shape/ply.d.ts +14 -6
- package/lib/mol-model-formats/structure/basic/schema.d.ts +6 -6
- package/lib/mol-model-formats/structure/common/component.d.ts +8 -8
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +5 -1
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +5 -1
- package/lib/mol-model-props/computed/representations/interactions.d.ts +15 -3
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +20 -4
- package/lib/mol-plugin/behavior/behavior.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +5 -0
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +4 -2
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +8 -8
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +4 -4
- package/lib/mol-plugin/commands.d.ts +9 -7
- package/lib/mol-plugin/spec.js +1 -0
- package/lib/mol-plugin/spec.js.map +1 -1
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +12 -9
- 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/actions/structure.d.ts +1 -1
- package/lib/mol-plugin-state/animation/helpers.d.ts +5 -5
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +3 -3
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +3 -3
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +12 -12
- package/lib/mol-plugin-state/builder/structure/representation.d.ts +1 -1
- package/lib/mol-plugin-state/formats/volume.d.ts +6 -6
- 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 +3 -3
- 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/helpers/structure-substance.d.ts +13 -0
- package/lib/mol-plugin-state/helpers/structure-substance.js +121 -0
- package/lib/mol-plugin-state/helpers/structure-substance.js.map +1 -0
- 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 +10 -3
- package/lib/mol-plugin-state/manager/structure/component.js +44 -22
- package/lib/mol-plugin-state/manager/structure/component.js.map +1 -1
- package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/mol-plugin-state/transforms/model.d.ts +5 -5
- package/lib/mol-plugin-state/transforms/representation.d.ts +45 -18
- package/lib/mol-plugin-state/transforms/representation.js +160 -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/measurements.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-plugin-ui/viewport/simple-settings.js +2 -5
- package/lib/mol-plugin-ui/viewport/simple-settings.js.map +1 -1
- package/lib/mol-repr/representation.d.ts +12 -0
- package/lib/mol-repr/representation.js +50 -5
- package/lib/mol-repr/representation.js.map +1 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +6 -2
- package/lib/mol-repr/shape/loci/common.d.ts +6 -2
- package/lib/mol-repr/shape/loci/dihedral.d.ts +6 -2
- package/lib/mol-repr/shape/loci/distance.d.ts +7 -3
- package/lib/mol-repr/shape/loci/label.d.ts +6 -2
- package/lib/mol-repr/shape/loci/orientation.d.ts +5 -1
- package/lib/mol-repr/shape/loci/plane.d.ts +5 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +5 -1
- package/lib/mol-repr/shape/representation.js +8 -0
- package/lib/mol-repr/shape/representation.js.map +1 -1
- package/lib/mol-repr/structure/complex-representation.js +17 -4
- package/lib/mol-repr/structure/complex-representation.js.map +1 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +31 -7
- package/lib/mol-repr/structure/complex-visual.js +15 -5
- package/lib/mol-repr/structure/complex-visual.js.map +1 -1
- package/lib/mol-repr/structure/params.d.ts +42 -10
- package/lib/mol-repr/structure/registry.d.ts +81 -25
- package/lib/mol-repr/structure/representation/backbone.d.ts +15 -3
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +18 -6
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +15 -3
- package/lib/mol-repr/structure/representation/cartoon.d.ts +15 -3
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +18 -6
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +21 -9
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +15 -3
- package/lib/mol-repr/structure/representation/label.d.ts +21 -9
- package/lib/mol-repr/structure/representation/line.d.ts +21 -9
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +21 -9
- package/lib/mol-repr/structure/representation/orientation.d.ts +15 -3
- package/lib/mol-repr/structure/representation/point.d.ts +18 -6
- package/lib/mol-repr/structure/representation/putty.d.ts +15 -3
- package/lib/mol-repr/structure/representation/spacefill.d.ts +15 -3
- package/lib/mol-repr/structure/units-representation.js +23 -17
- package/lib/mol-repr/structure/units-representation.js.map +1 -1
- package/lib/mol-repr/structure/units-visual.d.ts +42 -10
- package/lib/mol-repr/structure/units-visual.js +15 -5
- package/lib/mol-repr/structure/units-visual.js.map +1 -1
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +12 -4
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +6 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +12 -4
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +6 -2
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +5 -1
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +5 -1
- package/lib/mol-repr/structure/visual/element-cross.d.ts +5 -1
- package/lib/mol-repr/structure/visual/element-point.d.ts +6 -2
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +10 -2
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +10 -2
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +28 -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 +5 -1
- package/lib/mol-repr/structure/visual/label-text.d.ts +7 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +7 -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 +5 -1
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +10 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +10 -2
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +5 -1
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +5 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/util/bond.d.ts +6 -6
- package/lib/mol-repr/visual.d.ts +24 -13
- package/lib/mol-repr/visual.js +106 -8
- package/lib/mol-repr/visual.js.map +1 -1
- package/lib/mol-repr/volume/direct-volume.d.ts +18 -6
- package/lib/mol-repr/volume/isosurface.d.ts +36 -12
- package/lib/mol-repr/volume/registry.d.ts +19 -7
- package/lib/mol-repr/volume/representation.d.ts +6 -2
- package/lib/mol-repr/volume/representation.js +15 -3
- package/lib/mol-repr/volume/representation.js.map +1 -1
- package/lib/mol-repr/volume/slice.d.ts +21 -9
- 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/overpaint.js +1 -1
- package/lib/mol-theme/overpaint.js.map +1 -1
- package/lib/mol-theme/substance.d.ts +43 -0
- package/lib/mol-theme/substance.js +128 -0
- package/lib/mol-theme/substance.js.map +1 -0
- package/lib/mol-util/color/names.d.ts +1 -1
- package/lib/mol-util/material.d.ts +32 -0
- package/lib/mol-util/material.js +47 -0
- package/lib/mol-util/material.js.map +1 -0
- package/lib/mol-util/number.d.ts +1 -0
- package/lib/mol-util/number.js +3 -0
- package/lib/mol-util/number.js.map +1 -1
- package/lib/servers/model/config.d.ts +2 -2
- package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
- package/package.json +26 -26
- package/lib/commonjs/mol-repr/structure/visual/util/color.d.ts +0 -24
- package/lib/commonjs/mol-repr/structure/visual/util/color.js +0 -100
- package/lib/commonjs/mol-repr/structure/visual/util/color.js.map +0 -1
- package/lib/mol-gl/_spec/shader.spec.d.ts +0 -0
- package/lib/mol-gl/_spec/shader.spec.js +0 -2
- package/lib/mol-gl/_spec/shader.spec.js.map +0 -1
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.d.ts +0 -35
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.js +0 -43
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.js.map +0 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.d.ts +0 -31
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js +0 -48
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js.map +0 -1
- package/lib/mol-repr/structure/visual/util/color.d.ts +0 -24
- package/lib/mol-repr/structure/visual/util/color.js +0 -94
- package/lib/mol-repr/structure/visual/util/color.js.map +0 -1
- package/lib/mol-repr/structure/visual/util/orientation.d.ts +0 -17
- package/lib/mol-repr/structure/visual/util/orientation.js +0 -71
- package/lib/mol-repr/structure/visual/util/orientation.js.map +0 -1
|
@@ -111,11 +111,9 @@ export declare const GlobalUniformSchema: {
|
|
|
111
111
|
readonly uClipObjectPosition: UniformSpec<"v3[]">;
|
|
112
112
|
readonly uClipObjectRotation: UniformSpec<"v4[]">;
|
|
113
113
|
readonly uClipObjectScale: UniformSpec<"v3[]">;
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly uRoughness: UniformSpec<"f">;
|
|
118
|
-
readonly uReflectivity: UniformSpec<"f">;
|
|
114
|
+
readonly uLightDirection: UniformSpec<"v3[]">;
|
|
115
|
+
readonly uLightColor: UniformSpec<"v3[]">;
|
|
116
|
+
readonly uAmbientColor: UniformSpec<"v3">;
|
|
119
117
|
readonly uPickingAlphaThreshold: UniformSpec<"f">;
|
|
120
118
|
readonly uInteriorDarkening: UniformSpec<"f">;
|
|
121
119
|
readonly uInteriorColorFlag: UniformSpec<"b">;
|
|
@@ -177,6 +175,10 @@ export declare const OverpaintSchema: {
|
|
|
177
175
|
readonly uOverpaintTexDim: UniformSpec<"v2">;
|
|
178
176
|
readonly tOverpaint: TextureSpec<"image-uint8">;
|
|
179
177
|
readonly dOverpaint: DefineSpec<"boolean">;
|
|
178
|
+
readonly uOverpaintGridDim: UniformSpec<"v3">;
|
|
179
|
+
readonly uOverpaintGridTransform: UniformSpec<"v4">;
|
|
180
|
+
readonly tOverpaintGrid: TextureSpec<"texture">;
|
|
181
|
+
readonly dOverpaintType: DefineSpec<"string">;
|
|
180
182
|
};
|
|
181
183
|
export declare type OverpaintSchema = typeof OverpaintSchema;
|
|
182
184
|
export declare type OverpaintValues = Values<OverpaintSchema>;
|
|
@@ -185,9 +187,24 @@ export declare const TransparencySchema: {
|
|
|
185
187
|
readonly tTransparency: TextureSpec<"image-uint8">;
|
|
186
188
|
readonly dTransparency: DefineSpec<"boolean">;
|
|
187
189
|
readonly transparencyAverage: ValueSpec<"number">;
|
|
190
|
+
readonly uTransparencyGridDim: UniformSpec<"v3">;
|
|
191
|
+
readonly uTransparencyGridTransform: UniformSpec<"v4">;
|
|
192
|
+
readonly tTransparencyGrid: TextureSpec<"texture">;
|
|
193
|
+
readonly dTransparencyType: DefineSpec<"string">;
|
|
188
194
|
};
|
|
189
195
|
export declare type TransparencySchema = typeof TransparencySchema;
|
|
190
196
|
export declare type TransparencyValues = Values<TransparencySchema>;
|
|
197
|
+
export declare const SubstanceSchema: {
|
|
198
|
+
readonly uSubstanceTexDim: UniformSpec<"v2">;
|
|
199
|
+
readonly tSubstance: TextureSpec<"image-uint8">;
|
|
200
|
+
readonly dSubstance: DefineSpec<"boolean">;
|
|
201
|
+
readonly uSubstanceGridDim: UniformSpec<"v3">;
|
|
202
|
+
readonly uSubstanceGridTransform: UniformSpec<"v4">;
|
|
203
|
+
readonly tSubstanceGrid: TextureSpec<"texture">;
|
|
204
|
+
readonly dSubstanceType: DefineSpec<"string">;
|
|
205
|
+
};
|
|
206
|
+
export declare type SubstanceSchema = typeof SubstanceSchema;
|
|
207
|
+
export declare type SubstanceValues = Values<SubstanceSchema>;
|
|
191
208
|
export declare const ClippingSchema: {
|
|
192
209
|
readonly dClipObjectCount: DefineSpec<"number">;
|
|
193
210
|
readonly dClipVariant: DefineSpec<"string">;
|
|
@@ -198,6 +215,7 @@ export declare const ClippingSchema: {
|
|
|
198
215
|
export declare type ClippingSchema = typeof ClippingSchema;
|
|
199
216
|
export declare type ClippingValues = Values<ClippingSchema>;
|
|
200
217
|
export declare const BaseSchema: {
|
|
218
|
+
readonly dLightCount: DefineSpec<"number">;
|
|
201
219
|
readonly aInstance: AttributeSpec<"float32">;
|
|
202
220
|
/**
|
|
203
221
|
* final per-instance transform calculated for instance `i` as
|
|
@@ -208,6 +226,8 @@ export declare const BaseSchema: {
|
|
|
208
226
|
* final alpha, calculated as `values.alpha * state.alpha`
|
|
209
227
|
*/
|
|
210
228
|
readonly uAlpha: UniformSpec<"f">;
|
|
229
|
+
readonly uMetalness: UniformSpec<"f">;
|
|
230
|
+
readonly uRoughness: UniformSpec<"f">;
|
|
211
231
|
readonly uVertexCount: UniformSpec<"i">;
|
|
212
232
|
readonly uInstanceCount: UniformSpec<"i">;
|
|
213
233
|
readonly uGroupCount: UniformSpec<"i">;
|
|
@@ -233,13 +253,28 @@ export declare const BaseSchema: {
|
|
|
233
253
|
readonly uClippingTexDim: UniformSpec<"v2">;
|
|
234
254
|
readonly tClipping: TextureSpec<"image-uint8">;
|
|
235
255
|
readonly dClipping: DefineSpec<"boolean">;
|
|
256
|
+
readonly uSubstanceTexDim: UniformSpec<"v2">;
|
|
257
|
+
readonly tSubstance: TextureSpec<"image-uint8">;
|
|
258
|
+
readonly dSubstance: DefineSpec<"boolean">;
|
|
259
|
+
readonly uSubstanceGridDim: UniformSpec<"v3">;
|
|
260
|
+
readonly uSubstanceGridTransform: UniformSpec<"v4">;
|
|
261
|
+
readonly tSubstanceGrid: TextureSpec<"texture">;
|
|
262
|
+
readonly dSubstanceType: DefineSpec<"string">;
|
|
236
263
|
readonly uTransparencyTexDim: UniformSpec<"v2">;
|
|
237
264
|
readonly tTransparency: TextureSpec<"image-uint8">;
|
|
238
265
|
readonly dTransparency: DefineSpec<"boolean">;
|
|
239
266
|
readonly transparencyAverage: ValueSpec<"number">;
|
|
267
|
+
readonly uTransparencyGridDim: UniformSpec<"v3">;
|
|
268
|
+
readonly uTransparencyGridTransform: UniformSpec<"v4">;
|
|
269
|
+
readonly tTransparencyGrid: TextureSpec<"texture">;
|
|
270
|
+
readonly dTransparencyType: DefineSpec<"string">;
|
|
240
271
|
readonly uOverpaintTexDim: UniformSpec<"v2">;
|
|
241
272
|
readonly tOverpaint: TextureSpec<"image-uint8">;
|
|
242
273
|
readonly dOverpaint: DefineSpec<"boolean">;
|
|
274
|
+
readonly uOverpaintGridDim: UniformSpec<"v3">;
|
|
275
|
+
readonly uOverpaintGridTransform: UniformSpec<"v4">;
|
|
276
|
+
readonly tOverpaintGrid: TextureSpec<"texture">;
|
|
277
|
+
readonly dOverpaintType: DefineSpec<"string">;
|
|
243
278
|
readonly uMarker: UniformSpec<"f">;
|
|
244
279
|
readonly uMarkerTexDim: UniformSpec<"v2">;
|
|
245
280
|
readonly tMarker: TextureSpec<"image-uint8">;
|
|
@@ -86,14 +86,9 @@ export var GlobalUniformSchema = {
|
|
|
86
86
|
uClipObjectPosition: UniformSpec('v3[]'),
|
|
87
87
|
uClipObjectRotation: UniformSpec('v4[]'),
|
|
88
88
|
uClipObjectScale: UniformSpec('v3[]'),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
uLightIntensity: UniformSpec('f'),
|
|
93
|
-
uAmbientIntensity: UniformSpec('f'),
|
|
94
|
-
uMetalness: UniformSpec('f'),
|
|
95
|
-
uRoughness: UniformSpec('f'),
|
|
96
|
-
uReflectivity: UniformSpec('f'),
|
|
89
|
+
uLightDirection: UniformSpec('v3[]'),
|
|
90
|
+
uLightColor: UniformSpec('v3[]'),
|
|
91
|
+
uAmbientColor: UniformSpec('v3'),
|
|
97
92
|
uPickingAlphaThreshold: UniformSpec('f'),
|
|
98
93
|
uInteriorDarkening: UniformSpec('f'),
|
|
99
94
|
uInteriorColorFlag: UniformSpec('b'),
|
|
@@ -145,12 +140,29 @@ export var OverpaintSchema = {
|
|
|
145
140
|
uOverpaintTexDim: UniformSpec('v2'),
|
|
146
141
|
tOverpaint: TextureSpec('image-uint8', 'rgba', 'ubyte', 'nearest'),
|
|
147
142
|
dOverpaint: DefineSpec('boolean'),
|
|
143
|
+
uOverpaintGridDim: UniformSpec('v3'),
|
|
144
|
+
uOverpaintGridTransform: UniformSpec('v4'),
|
|
145
|
+
tOverpaintGrid: TextureSpec('texture', 'rgba', 'ubyte', 'linear'),
|
|
146
|
+
dOverpaintType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
148
147
|
};
|
|
149
148
|
export var TransparencySchema = {
|
|
150
149
|
uTransparencyTexDim: UniformSpec('v2'),
|
|
151
150
|
tTransparency: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
152
151
|
dTransparency: DefineSpec('boolean'),
|
|
153
152
|
transparencyAverage: ValueSpec('number'),
|
|
153
|
+
uTransparencyGridDim: UniformSpec('v3'),
|
|
154
|
+
uTransparencyGridTransform: UniformSpec('v4'),
|
|
155
|
+
tTransparencyGrid: TextureSpec('texture', 'alpha', 'ubyte', 'linear'),
|
|
156
|
+
dTransparencyType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
157
|
+
};
|
|
158
|
+
export var SubstanceSchema = {
|
|
159
|
+
uSubstanceTexDim: UniformSpec('v2'),
|
|
160
|
+
tSubstance: TextureSpec('image-uint8', 'rgb', 'ubyte', 'nearest'),
|
|
161
|
+
dSubstance: DefineSpec('boolean'),
|
|
162
|
+
uSubstanceGridDim: UniformSpec('v3'),
|
|
163
|
+
uSubstanceGridTransform: UniformSpec('v4'),
|
|
164
|
+
tSubstanceGrid: TextureSpec('texture', 'rgb', 'ubyte', 'linear'),
|
|
165
|
+
dSubstanceType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
154
166
|
};
|
|
155
167
|
export var ClippingSchema = {
|
|
156
168
|
dClipObjectCount: DefineSpec('number'),
|
|
@@ -159,7 +171,7 @@ export var ClippingSchema = {
|
|
|
159
171
|
tClipping: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
160
172
|
dClipping: DefineSpec('boolean'),
|
|
161
173
|
};
|
|
162
|
-
export var BaseSchema = __assign(__assign(__assign(__assign(__assign(__assign({}, ColorSchema), MarkerSchema), OverpaintSchema), TransparencySchema), ClippingSchema), { aInstance: AttributeSpec('float32', 1, 1),
|
|
174
|
+
export var BaseSchema = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, ColorSchema), MarkerSchema), OverpaintSchema), TransparencySchema), SubstanceSchema), ClippingSchema), { dLightCount: DefineSpec('number'), aInstance: AttributeSpec('float32', 1, 1),
|
|
163
175
|
/**
|
|
164
176
|
* final per-instance transform calculated for instance `i` as
|
|
165
177
|
* `aTransform[i] = matrix * transform[i] * extraTransform[i]`
|
|
@@ -168,7 +180,7 @@ export var BaseSchema = __assign(__assign(__assign(__assign(__assign(__assign({}
|
|
|
168
180
|
/**
|
|
169
181
|
* final alpha, calculated as `values.alpha * state.alpha`
|
|
170
182
|
*/
|
|
171
|
-
uAlpha: UniformSpec('f', 'material'), uVertexCount: UniformSpec('i'), uInstanceCount: UniformSpec('i'), uGroupCount: UniformSpec('i'), uInvariantBoundingSphere: UniformSpec('v4'), drawCount: ValueSpec('number'), instanceCount: ValueSpec('number'),
|
|
183
|
+
uAlpha: UniformSpec('f', 'material'), uMetalness: UniformSpec('f', 'material'), uRoughness: UniformSpec('f', 'material'), uVertexCount: UniformSpec('i'), uInstanceCount: UniformSpec('i'), uGroupCount: UniformSpec('i'), uInvariantBoundingSphere: UniformSpec('v4'), drawCount: ValueSpec('number'), instanceCount: ValueSpec('number'),
|
|
172
184
|
/** base alpha, see uAlpha */
|
|
173
185
|
alpha: ValueSpec('number'),
|
|
174
186
|
/** global transform, see aTransform */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/mol-gl/renderable/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AA8BH,MAAM,UAAU,WAAW,CAAC,MAAwB,EAAE,MAAwB;IAC1E,IAAM,eAAe,GAAoB,EAAE,CAAC;IAC5C,IAAM,YAAY,GAAiB,EAAE,CAAC;IACtC,IAAM,aAAa,GAAkB,EAAE,CAAC;IACxC,IAAM,aAAa,GAAkB,EAAE,CAAC;IACxC,IAAM,qBAAqB,GAAkB,EAAE,CAAC;IAChD,IAAM,qBAAqB,GAAkB,EAAE,CAAC;IAChD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAA,CAAC;QACzB,IAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACvB,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW;YAAE,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;YAAE,YAAY,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxD,yDAAyD;QACzD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,SAAS;YAAE,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACrF,yDAAyD;QACzD,IAAI,IAAI,CAAC,IAA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
21
21
|
dSizeType: DefineSpec<"string">;
|
|
22
22
|
uSizeFactor: import("./schema").UniformSpec<"f">;
|
|
23
|
+
dLightCount: DefineSpec<"number">;
|
|
23
24
|
aInstance: AttributeSpec<"float32">;
|
|
24
25
|
aTransform: AttributeSpec<"float32">;
|
|
25
26
|
uAlpha: import("./schema").UniformSpec<"f">;
|
|
27
|
+
uMetalness: import("./schema").UniformSpec<"f">;
|
|
28
|
+
uRoughness: import("./schema").UniformSpec<"f">;
|
|
26
29
|
uVertexCount: import("./schema").UniformSpec<"i">;
|
|
27
30
|
uInstanceCount: import("./schema").UniformSpec<"i">;
|
|
28
31
|
uGroupCount: import("./schema").UniformSpec<"i">;
|
|
@@ -41,13 +44,28 @@ export declare const SpheresSchema: {
|
|
|
41
44
|
uClippingTexDim: import("./schema").UniformSpec<"v2">;
|
|
42
45
|
tClipping: import("./schema").TextureSpec<"image-uint8">;
|
|
43
46
|
dClipping: DefineSpec<"boolean">;
|
|
47
|
+
uSubstanceTexDim: import("./schema").UniformSpec<"v2">;
|
|
48
|
+
tSubstance: import("./schema").TextureSpec<"image-uint8">;
|
|
49
|
+
dSubstance: DefineSpec<"boolean">;
|
|
50
|
+
uSubstanceGridDim: import("./schema").UniformSpec<"v3">;
|
|
51
|
+
uSubstanceGridTransform: import("./schema").UniformSpec<"v4">;
|
|
52
|
+
tSubstanceGrid: import("./schema").TextureSpec<"texture">;
|
|
53
|
+
dSubstanceType: DefineSpec<"string">;
|
|
44
54
|
uTransparencyTexDim: import("./schema").UniformSpec<"v2">;
|
|
45
55
|
tTransparency: import("./schema").TextureSpec<"image-uint8">;
|
|
46
56
|
dTransparency: DefineSpec<"boolean">;
|
|
47
57
|
transparencyAverage: ValueSpec<"number">;
|
|
58
|
+
uTransparencyGridDim: import("./schema").UniformSpec<"v3">;
|
|
59
|
+
uTransparencyGridTransform: import("./schema").UniformSpec<"v4">;
|
|
60
|
+
tTransparencyGrid: import("./schema").TextureSpec<"texture">;
|
|
61
|
+
dTransparencyType: DefineSpec<"string">;
|
|
48
62
|
uOverpaintTexDim: import("./schema").UniformSpec<"v2">;
|
|
49
63
|
tOverpaint: import("./schema").TextureSpec<"image-uint8">;
|
|
50
64
|
dOverpaint: DefineSpec<"boolean">;
|
|
65
|
+
uOverpaintGridDim: import("./schema").UniformSpec<"v3">;
|
|
66
|
+
uOverpaintGridTransform: import("./schema").UniformSpec<"v4">;
|
|
67
|
+
tOverpaintGrid: import("./schema").TextureSpec<"texture">;
|
|
68
|
+
dOverpaintType: DefineSpec<"string">;
|
|
51
69
|
uMarker: import("./schema").UniformSpec<"f">;
|
|
52
70
|
uMarkerTexDim: import("./schema").UniformSpec<"v2">;
|
|
53
71
|
tMarker: import("./schema").TextureSpec<"image-uint8">;
|
|
@@ -27,9 +27,12 @@ export declare const TextSchema: {
|
|
|
27
27
|
tSize: TextureSpec<"image-uint8">;
|
|
28
28
|
dSizeType: import("./schema").DefineSpec<"string">;
|
|
29
29
|
uSizeFactor: UniformSpec<"f">;
|
|
30
|
+
dLightCount: import("./schema").DefineSpec<"number">;
|
|
30
31
|
aInstance: AttributeSpec<"float32">;
|
|
31
32
|
aTransform: AttributeSpec<"float32">;
|
|
32
33
|
uAlpha: UniformSpec<"f">;
|
|
34
|
+
uMetalness: UniformSpec<"f">;
|
|
35
|
+
uRoughness: UniformSpec<"f">;
|
|
33
36
|
uVertexCount: UniformSpec<"i">;
|
|
34
37
|
uInstanceCount: UniformSpec<"i">;
|
|
35
38
|
uGroupCount: UniformSpec<"i">;
|
|
@@ -48,13 +51,28 @@ export declare const TextSchema: {
|
|
|
48
51
|
uClippingTexDim: UniformSpec<"v2">;
|
|
49
52
|
tClipping: TextureSpec<"image-uint8">;
|
|
50
53
|
dClipping: import("./schema").DefineSpec<"boolean">;
|
|
54
|
+
uSubstanceTexDim: UniformSpec<"v2">;
|
|
55
|
+
tSubstance: TextureSpec<"image-uint8">;
|
|
56
|
+
dSubstance: import("./schema").DefineSpec<"boolean">;
|
|
57
|
+
uSubstanceGridDim: UniformSpec<"v3">;
|
|
58
|
+
uSubstanceGridTransform: UniformSpec<"v4">;
|
|
59
|
+
tSubstanceGrid: TextureSpec<"texture">;
|
|
60
|
+
dSubstanceType: import("./schema").DefineSpec<"string">;
|
|
51
61
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
52
62
|
tTransparency: TextureSpec<"image-uint8">;
|
|
53
63
|
dTransparency: import("./schema").DefineSpec<"boolean">;
|
|
54
64
|
transparencyAverage: ValueSpec<"number">;
|
|
65
|
+
uTransparencyGridDim: UniformSpec<"v3">;
|
|
66
|
+
uTransparencyGridTransform: UniformSpec<"v4">;
|
|
67
|
+
tTransparencyGrid: TextureSpec<"texture">;
|
|
68
|
+
dTransparencyType: import("./schema").DefineSpec<"string">;
|
|
55
69
|
uOverpaintTexDim: UniformSpec<"v2">;
|
|
56
70
|
tOverpaint: TextureSpec<"image-uint8">;
|
|
57
71
|
dOverpaint: import("./schema").DefineSpec<"boolean">;
|
|
72
|
+
uOverpaintGridDim: UniformSpec<"v3">;
|
|
73
|
+
uOverpaintGridTransform: UniformSpec<"v4">;
|
|
74
|
+
tOverpaintGrid: TextureSpec<"texture">;
|
|
75
|
+
dOverpaintType: import("./schema").DefineSpec<"string">;
|
|
58
76
|
uMarker: UniformSpec<"f">;
|
|
59
77
|
uMarkerTexDim: UniformSpec<"v2">;
|
|
60
78
|
tMarker: TextureSpec<"image-uint8">;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Renderable, RenderableState } from '../renderable';
|
|
7
7
|
import { WebGLContext } from '../webgl/context';
|
|
8
|
-
import { DefineSpec, Values, UniformSpec, TextureSpec } from './schema';
|
|
8
|
+
import { DefineSpec, Values, UniformSpec, TextureSpec, ValueSpec } from './schema';
|
|
9
9
|
export declare const TextureMeshSchema: {
|
|
10
10
|
uGeoTexDim: UniformSpec<"v2">;
|
|
11
11
|
tPosition: TextureSpec<"texture">;
|
|
@@ -17,40 +17,59 @@ export declare const TextureMeshSchema: {
|
|
|
17
17
|
dIgnoreLight: DefineSpec<"boolean">;
|
|
18
18
|
dXrayShaded: DefineSpec<"boolean">;
|
|
19
19
|
dGeoTexture: DefineSpec<"boolean">;
|
|
20
|
+
meta: ValueSpec<"unknown">;
|
|
21
|
+
dLightCount: DefineSpec<"number">;
|
|
20
22
|
aInstance: import("./schema").AttributeSpec<"float32">;
|
|
21
23
|
aTransform: import("./schema").AttributeSpec<"float32">;
|
|
22
24
|
uAlpha: UniformSpec<"f">;
|
|
25
|
+
uMetalness: UniformSpec<"f">;
|
|
26
|
+
uRoughness: UniformSpec<"f">;
|
|
23
27
|
uVertexCount: UniformSpec<"i">;
|
|
24
28
|
uInstanceCount: UniformSpec<"i">;
|
|
25
29
|
uGroupCount: UniformSpec<"i">;
|
|
26
30
|
uInvariantBoundingSphere: UniformSpec<"v4">;
|
|
27
|
-
drawCount:
|
|
28
|
-
instanceCount:
|
|
29
|
-
alpha:
|
|
30
|
-
matrix:
|
|
31
|
-
transform:
|
|
32
|
-
extraTransform:
|
|
33
|
-
hasReflection:
|
|
34
|
-
boundingSphere:
|
|
35
|
-
invariantBoundingSphere:
|
|
31
|
+
drawCount: ValueSpec<"number">;
|
|
32
|
+
instanceCount: ValueSpec<"number">;
|
|
33
|
+
alpha: ValueSpec<"number">;
|
|
34
|
+
matrix: ValueSpec<"m4">;
|
|
35
|
+
transform: ValueSpec<"float32">;
|
|
36
|
+
extraTransform: ValueSpec<"float32">;
|
|
37
|
+
hasReflection: ValueSpec<"boolean">;
|
|
38
|
+
boundingSphere: ValueSpec<"sphere">;
|
|
39
|
+
invariantBoundingSphere: ValueSpec<"sphere">;
|
|
36
40
|
dClipObjectCount: DefineSpec<"number">;
|
|
37
41
|
dClipVariant: DefineSpec<"string">;
|
|
38
42
|
uClippingTexDim: UniformSpec<"v2">;
|
|
39
43
|
tClipping: TextureSpec<"image-uint8">;
|
|
40
44
|
dClipping: DefineSpec<"boolean">;
|
|
45
|
+
uSubstanceTexDim: UniformSpec<"v2">;
|
|
46
|
+
tSubstance: TextureSpec<"image-uint8">;
|
|
47
|
+
dSubstance: DefineSpec<"boolean">;
|
|
48
|
+
uSubstanceGridDim: UniformSpec<"v3">;
|
|
49
|
+
uSubstanceGridTransform: UniformSpec<"v4">;
|
|
50
|
+
tSubstanceGrid: TextureSpec<"texture">;
|
|
51
|
+
dSubstanceType: DefineSpec<"string">;
|
|
41
52
|
uTransparencyTexDim: UniformSpec<"v2">;
|
|
42
53
|
tTransparency: TextureSpec<"image-uint8">;
|
|
43
54
|
dTransparency: DefineSpec<"boolean">;
|
|
44
|
-
transparencyAverage:
|
|
55
|
+
transparencyAverage: ValueSpec<"number">;
|
|
56
|
+
uTransparencyGridDim: UniformSpec<"v3">;
|
|
57
|
+
uTransparencyGridTransform: UniformSpec<"v4">;
|
|
58
|
+
tTransparencyGrid: TextureSpec<"texture">;
|
|
59
|
+
dTransparencyType: DefineSpec<"string">;
|
|
45
60
|
uOverpaintTexDim: UniformSpec<"v2">;
|
|
46
61
|
tOverpaint: TextureSpec<"image-uint8">;
|
|
47
62
|
dOverpaint: DefineSpec<"boolean">;
|
|
63
|
+
uOverpaintGridDim: UniformSpec<"v3">;
|
|
64
|
+
uOverpaintGridTransform: UniformSpec<"v4">;
|
|
65
|
+
tOverpaintGrid: TextureSpec<"texture">;
|
|
66
|
+
dOverpaintType: DefineSpec<"string">;
|
|
48
67
|
uMarker: UniformSpec<"f">;
|
|
49
68
|
uMarkerTexDim: UniformSpec<"v2">;
|
|
50
69
|
tMarker: TextureSpec<"image-uint8">;
|
|
51
70
|
dMarkerType: DefineSpec<"string">;
|
|
52
|
-
markerAverage:
|
|
53
|
-
markerStatus:
|
|
71
|
+
markerAverage: ValueSpec<"number">;
|
|
72
|
+
markerStatus: ValueSpec<"number">;
|
|
54
73
|
uColor: UniformSpec<"v3">;
|
|
55
74
|
uColorTexDim: UniformSpec<"v2">;
|
|
56
75
|
uColorGridDim: UniformSpec<"v3">;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { __assign } from "tslib";
|
|
7
7
|
import { createRenderable } from '../renderable';
|
|
8
8
|
import { createGraphicsRenderItem } from '../webgl/render-item';
|
|
9
|
-
import { GlobalUniformSchema, BaseSchema, DefineSpec, InternalSchema, UniformSpec, TextureSpec, GlobalTextureSchema } from './schema';
|
|
9
|
+
import { GlobalUniformSchema, BaseSchema, DefineSpec, InternalSchema, UniformSpec, TextureSpec, GlobalTextureSchema, ValueSpec } from './schema';
|
|
10
10
|
import { MeshShaderCode } from '../shader-code';
|
|
11
11
|
import { ValueCell } from '../../mol-util';
|
|
12
|
-
export var TextureMeshSchema = __assign(__assign({}, BaseSchema), { uGeoTexDim: UniformSpec('v2', 'buffered'), tPosition: TextureSpec('texture', 'rgb', 'float', 'nearest'), tGroup: TextureSpec('texture', 'alpha', 'float', 'nearest'), tNormal: TextureSpec('texture', 'rgb', 'float', 'nearest'), dFlatShaded: DefineSpec('boolean'), dDoubleSided: DefineSpec('boolean'), dFlipSided: DefineSpec('boolean'), dIgnoreLight: DefineSpec('boolean'), dXrayShaded: DefineSpec('boolean'), dGeoTexture: DefineSpec('boolean') });
|
|
12
|
+
export var TextureMeshSchema = __assign(__assign({}, BaseSchema), { uGeoTexDim: UniformSpec('v2', 'buffered'), tPosition: TextureSpec('texture', 'rgb', 'float', 'nearest'), tGroup: TextureSpec('texture', 'alpha', 'float', 'nearest'), tNormal: TextureSpec('texture', 'rgb', 'float', 'nearest'), dFlatShaded: DefineSpec('boolean'), dDoubleSided: DefineSpec('boolean'), dFlipSided: DefineSpec('boolean'), dIgnoreLight: DefineSpec('boolean'), dXrayShaded: DefineSpec('boolean'), dGeoTexture: DefineSpec('boolean'), meta: ValueSpec('unknown') });
|
|
13
13
|
export function TextureMeshRenderable(ctx, id, values, state, materialId) {
|
|
14
14
|
var schema = __assign(__assign(__assign(__assign({}, GlobalUniformSchema), GlobalTextureSchema), InternalSchema), TextureMeshSchema);
|
|
15
15
|
var internalValues = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texture-mesh.js","sourceRoot":"","sources":["../../../src/mol-gl/renderable/texture-mesh.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAA+B,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAU,cAAc,EAAkB,WAAW,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"texture-mesh.js","sourceRoot":"","sources":["../../../src/mol-gl/renderable/texture-mesh.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAA+B,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAU,cAAc,EAAkB,WAAW,EAAE,WAAW,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACzK,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,IAAM,iBAAiB,yBACvB,UAAU,KACb,UAAU,EAAE,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,EACzC,SAAS,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAC5D,MAAM,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAC3D,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAE1D,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,EAClC,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,EACnC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,EACjC,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,EACnC,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,EAClC,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,EAClC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,GAC7B,CAAC;AAIF,MAAM,UAAU,qBAAqB,CAAC,GAAiB,EAAE,EAAU,EAAE,MAAyB,EAAE,KAAsB,EAAE,UAAkB;IACtI,IAAM,MAAM,2CAAQ,mBAAmB,GAAK,mBAAmB,GAAK,cAAc,GAAK,iBAAiB,CAAE,CAAC;IAC3G,IAAM,cAAc,GAAmB;QACnC,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;KAClC,CAAC;IACF,IAAM,UAAU,GAAG,cAAc,CAAC;IAClC,IAAM,UAAU,GAAG,wBAAwB,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAO,MAAM,GAAK,cAAc,GAAI,UAAU,CAAC,CAAC;IAEhI,OAAO,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC"}
|
package/lib/mol-gl/renderer.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { ICamera } from '../mol-canvas3d/camera';
|
|
7
7
|
import { Scene } from './scene';
|
|
8
8
|
import { WebGLContext } from './webgl/context';
|
|
9
|
+
import { Color } from '../mol-util/color';
|
|
9
10
|
import { GraphicsRenderVariant } from './webgl/render-item';
|
|
10
11
|
import { ParamDefinition as PD } from '../mol-util/param-definition';
|
|
11
12
|
import { Clipping } from '../mol-theme/clipping';
|
|
@@ -59,13 +60,14 @@ export declare const RendererParams: {
|
|
|
59
60
|
selectStrength: PD.Numeric;
|
|
60
61
|
markerPriority: PD.Select<number>;
|
|
61
62
|
xrayEdgeFalloff: PD.Numeric;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
light: PD.ObjectList<PD.Normalize<{
|
|
64
|
+
inclination: number;
|
|
65
|
+
azimuth: number;
|
|
66
|
+
color: Color;
|
|
67
|
+
intensity: number;
|
|
68
|
+
}>>;
|
|
69
|
+
ambientColor: PD.Color;
|
|
70
|
+
ambientIntensity: PD.Numeric;
|
|
69
71
|
clip: PD.Group<PD.Normalize<{
|
|
70
72
|
variant: Clipping.Variant;
|
|
71
73
|
objects: PD.Normalize<{
|
|
@@ -78,14 +80,6 @@ export declare const RendererParams: {
|
|
|
78
80
|
}>>;
|
|
79
81
|
};
|
|
80
82
|
export declare type RendererProps = PD.Values<typeof RendererParams>;
|
|
81
|
-
export declare type Style = {
|
|
82
|
-
lightIntensity: number;
|
|
83
|
-
ambientIntensity: number;
|
|
84
|
-
metalness: number;
|
|
85
|
-
roughness: number;
|
|
86
|
-
reflectivity: number;
|
|
87
|
-
};
|
|
88
|
-
export declare function getStyle(props: RendererProps['style']): Style;
|
|
89
83
|
declare namespace Renderer {
|
|
90
84
|
function create(ctx: WebGLContext, props?: Partial<RendererProps>): Renderer;
|
|
91
85
|
}
|
package/lib/mol-gl/renderer.js
CHANGED
|
@@ -16,7 +16,6 @@ import { arrayMapUpsert } from '../mol-util/array';
|
|
|
16
16
|
import { clamp } from '../mol-math/interpolate';
|
|
17
17
|
export var RendererParams = {
|
|
18
18
|
backgroundColor: PD.Color(Color(0x000000), { description: 'Background color of the 3D canvas' }),
|
|
19
|
-
// the following are general 'material' parameters
|
|
20
19
|
pickingAlphaThreshold: PD.Numeric(0.5, { min: 0.0, max: 1.0, step: 0.01 }, { description: 'The minimum opacity value needed for an object to be pickable.' }),
|
|
21
20
|
interiorDarkening: PD.Numeric(0.5, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
22
21
|
interiorColorFlag: PD.Boolean(true, { label: 'Use Interior Color' }),
|
|
@@ -27,20 +26,19 @@ export var RendererParams = {
|
|
|
27
26
|
selectStrength: PD.Numeric(0.7, { min: 0.0, max: 1.0, step: 0.1 }),
|
|
28
27
|
markerPriority: PD.Select(1, [[1, 'Highlight'], [2, 'Select']]),
|
|
29
28
|
xrayEdgeFalloff: PD.Numeric(1, { min: 0.0, max: 3.0, step: 0.1 }),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, { label: 'Lighting', description: 'Style in which the 3D scene is rendered/lighted' }),
|
|
29
|
+
light: PD.ObjectList({
|
|
30
|
+
inclination: PD.Numeric(180, { min: 0, max: 180, step: 1 }),
|
|
31
|
+
azimuth: PD.Numeric(0, { min: 0, max: 360, step: 1 }),
|
|
32
|
+
color: PD.Color(Color.fromNormalizedRgb(1.0, 1.0, 1.0)),
|
|
33
|
+
intensity: PD.Numeric(0.6, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
34
|
+
}, function (o) { return Color.toHexString(o.color); }, { defaultValue: [{
|
|
35
|
+
inclination: 180,
|
|
36
|
+
azimuth: 0,
|
|
37
|
+
color: Color.fromNormalizedRgb(1.0, 1.0, 1.0),
|
|
38
|
+
intensity: 0.6
|
|
39
|
+
}] }),
|
|
40
|
+
ambientColor: PD.Color(Color.fromNormalizedRgb(1.0, 1.0, 1.0)),
|
|
41
|
+
ambientIntensity: PD.Numeric(0.4, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
44
42
|
clip: PD.Group({
|
|
45
43
|
variant: PD.Select('instance', PD.arrayToOptions(['instance', 'pixel'])),
|
|
46
44
|
objects: PD.ObjectList({
|
|
@@ -55,36 +53,21 @@ export var RendererParams = {
|
|
|
55
53
|
}, function (o) { return stringToWords(o.type); })
|
|
56
54
|
})
|
|
57
55
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
case 'glossy':
|
|
73
|
-
return {
|
|
74
|
-
lightIntensity: 0.7, ambientIntensity: 0.3,
|
|
75
|
-
metalness: 0, roughness: 0.4, reflectivity: 0.5
|
|
76
|
-
};
|
|
77
|
-
case 'metallic':
|
|
78
|
-
return {
|
|
79
|
-
lightIntensity: 0.7, ambientIntensity: 0.7,
|
|
80
|
-
metalness: 0.6, roughness: 0.6, reflectivity: 0.5
|
|
81
|
-
};
|
|
82
|
-
case 'plastic':
|
|
83
|
-
return {
|
|
84
|
-
lightIntensity: 0.7, ambientIntensity: 0.3,
|
|
85
|
-
metalness: 0, roughness: 0.2, reflectivity: 0.5
|
|
86
|
-
};
|
|
56
|
+
var tmpDir = Vec3();
|
|
57
|
+
var tmpColor = Vec3();
|
|
58
|
+
function getLight(props, light) {
|
|
59
|
+
var _a = light || {
|
|
60
|
+
direction: (new Array(5 * 3)).fill(0),
|
|
61
|
+
color: (new Array(5 * 3)).fill(0),
|
|
62
|
+
}, direction = _a.direction, color = _a.color;
|
|
63
|
+
for (var i = 0, il = props.length; i < il; ++i) {
|
|
64
|
+
var p = props[i];
|
|
65
|
+
Vec3.directionFromSpherical(tmpDir, degToRad(p.inclination), degToRad(p.azimuth), 1);
|
|
66
|
+
Vec3.toArray(tmpDir, direction, i * 3);
|
|
67
|
+
Vec3.scale(tmpColor, Color.toVec3Normalized(tmpColor, p.color), p.intensity);
|
|
68
|
+
Vec3.toArray(tmpColor, color, i * 3);
|
|
87
69
|
}
|
|
70
|
+
return { count: props.length, direction: direction, color: color };
|
|
88
71
|
}
|
|
89
72
|
var tmpQuat = Quat();
|
|
90
73
|
function getClip(props, clip) {
|
|
@@ -114,7 +97,7 @@ var Renderer;
|
|
|
114
97
|
if (props === void 0) { props = {}; }
|
|
115
98
|
var gl = ctx.gl, state = ctx.state, stats = ctx.stats, fragDepth = ctx.extensions.fragDepth;
|
|
116
99
|
var p = PD.merge(RendererParams, PD.getDefaultValues(RendererParams), props);
|
|
117
|
-
var
|
|
100
|
+
var light = getLight(p.light);
|
|
118
101
|
var clip = getClip(p.clip);
|
|
119
102
|
var viewport = Viewport();
|
|
120
103
|
var drawingBufferSize = Vec2.create(gl.drawingBufferWidth, gl.drawingBufferHeight);
|
|
@@ -133,6 +116,8 @@ var Renderer;
|
|
|
133
116
|
var invModelViewProjection = Mat4();
|
|
134
117
|
var cameraDir = Vec3();
|
|
135
118
|
var viewOffset = Vec2();
|
|
119
|
+
var ambientColor = Vec3();
|
|
120
|
+
Vec3.scale(ambientColor, Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
136
121
|
var globalUniforms = {
|
|
137
122
|
uModel: ValueCell.create(Mat4.identity()),
|
|
138
123
|
uView: ValueCell.create(view),
|
|
@@ -163,12 +148,9 @@ var Renderer;
|
|
|
163
148
|
uClipObjectPosition: ValueCell.create(clip.objects.position),
|
|
164
149
|
uClipObjectRotation: ValueCell.create(clip.objects.rotation),
|
|
165
150
|
uClipObjectScale: ValueCell.create(clip.objects.scale),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
uMetalness: ValueCell.create(style.metalness),
|
|
170
|
-
uRoughness: ValueCell.create(style.roughness),
|
|
171
|
-
uReflectivity: ValueCell.create(style.reflectivity),
|
|
151
|
+
uLightDirection: ValueCell.create(light.direction),
|
|
152
|
+
uLightColor: ValueCell.create(light.color),
|
|
153
|
+
uAmbientColor: ValueCell.create(ambientColor),
|
|
172
154
|
uPickingAlphaThreshold: ValueCell.create(p.pickingAlphaThreshold),
|
|
173
155
|
uInteriorDarkening: ValueCell.create(p.interiorDarkening),
|
|
174
156
|
uInteriorColorFlag: ValueCell.create(p.interiorColorFlag),
|
|
@@ -203,6 +185,10 @@ var Renderer;
|
|
|
203
185
|
definesNeedUpdate = true;
|
|
204
186
|
}
|
|
205
187
|
}
|
|
188
|
+
if (r.values.dLightCount.ref.value !== light.count) {
|
|
189
|
+
ValueCell.update(r.values.dLightCount, light.count);
|
|
190
|
+
definesNeedUpdate = true;
|
|
191
|
+
}
|
|
206
192
|
if (definesNeedUpdate)
|
|
207
193
|
r.update();
|
|
208
194
|
var program = r.getProgram(variant);
|
|
@@ -217,6 +203,9 @@ var Renderer;
|
|
|
217
203
|
globalUniformsNeedUpdate = false;
|
|
218
204
|
}
|
|
219
205
|
if (r.values.dRenderMode) { // indicates direct-volume
|
|
206
|
+
if ((variant[0] === 'p' || variant === 'depth') && r.values.dRenderMode.ref.value === 'volume') {
|
|
207
|
+
return; // no picking/depth in volume mode
|
|
208
|
+
}
|
|
220
209
|
// culling done in fragment shader
|
|
221
210
|
state.disable(gl.CULL_FACE);
|
|
222
211
|
state.frontFace(gl.CCW);
|
|
@@ -531,14 +520,21 @@ var Renderer;
|
|
|
531
520
|
p.xrayEdgeFalloff = props.xrayEdgeFalloff;
|
|
532
521
|
ValueCell.update(globalUniforms.uXrayEdgeFalloff, p.xrayEdgeFalloff);
|
|
533
522
|
}
|
|
534
|
-
if (props.
|
|
535
|
-
p.
|
|
536
|
-
Object.assign(
|
|
537
|
-
ValueCell.
|
|
538
|
-
ValueCell.
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
523
|
+
if (props.light !== undefined && !deepEqual(props.light, p.light)) {
|
|
524
|
+
p.light = props.light;
|
|
525
|
+
Object.assign(light, getLight(props.light, light));
|
|
526
|
+
ValueCell.update(globalUniforms.uLightDirection, light.direction);
|
|
527
|
+
ValueCell.update(globalUniforms.uLightColor, light.color);
|
|
528
|
+
}
|
|
529
|
+
if (props.ambientColor !== undefined && props.ambientColor !== p.ambientColor) {
|
|
530
|
+
p.ambientColor = props.ambientColor;
|
|
531
|
+
Vec3.scale(ambientColor, Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
532
|
+
ValueCell.update(globalUniforms.uAmbientColor, ambientColor);
|
|
533
|
+
}
|
|
534
|
+
if (props.ambientIntensity !== undefined && props.ambientIntensity !== p.ambientIntensity) {
|
|
535
|
+
p.ambientIntensity = props.ambientIntensity;
|
|
536
|
+
Vec3.scale(ambientColor, Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
537
|
+
ValueCell.update(globalUniforms.uAmbientColor, ambientColor);
|
|
542
538
|
}
|
|
543
539
|
if (props.clip !== undefined && !deepEqual(props.clip, p.clip)) {
|
|
544
540
|
p.clip = props.clip;
|