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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BaseSchema = exports.ClippingSchema = exports.TransparencySchema = exports.OverpaintSchema = exports.MarkerSchema = exports.SizeSchema = exports.ColorSchema = exports.InternalSchema = exports.GlobalTextureSchema = exports.GlobalUniformSchema = exports.ValueSpec = exports.DefineSpec = exports.ElementsSpec = exports.TextureSpec = exports.UniformSpec = exports.AttributeSpec = exports.getValueVersions = exports.splitValues = void 0;
|
|
8
|
+
exports.BaseSchema = exports.ClippingSchema = exports.SubstanceSchema = exports.TransparencySchema = exports.OverpaintSchema = exports.MarkerSchema = exports.SizeSchema = exports.ColorSchema = exports.InternalSchema = exports.GlobalTextureSchema = exports.GlobalUniformSchema = exports.ValueSpec = exports.DefineSpec = exports.ElementsSpec = exports.TextureSpec = exports.UniformSpec = exports.AttributeSpec = exports.getValueVersions = exports.splitValues = void 0;
|
|
9
9
|
var tslib_1 = require("tslib");
|
|
10
10
|
function splitValues(schema, values) {
|
|
11
11
|
var attributeValues = {};
|
|
@@ -97,14 +97,9 @@ exports.GlobalUniformSchema = {
|
|
|
97
97
|
uClipObjectPosition: UniformSpec('v3[]'),
|
|
98
98
|
uClipObjectRotation: UniformSpec('v4[]'),
|
|
99
99
|
uClipObjectScale: UniformSpec('v3[]'),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
uLightIntensity: UniformSpec('f'),
|
|
104
|
-
uAmbientIntensity: UniformSpec('f'),
|
|
105
|
-
uMetalness: UniformSpec('f'),
|
|
106
|
-
uRoughness: UniformSpec('f'),
|
|
107
|
-
uReflectivity: UniformSpec('f'),
|
|
100
|
+
uLightDirection: UniformSpec('v3[]'),
|
|
101
|
+
uLightColor: UniformSpec('v3[]'),
|
|
102
|
+
uAmbientColor: UniformSpec('v3'),
|
|
108
103
|
uPickingAlphaThreshold: UniformSpec('f'),
|
|
109
104
|
uInteriorDarkening: UniformSpec('f'),
|
|
110
105
|
uInteriorColorFlag: UniformSpec('b'),
|
|
@@ -156,12 +151,29 @@ exports.OverpaintSchema = {
|
|
|
156
151
|
uOverpaintTexDim: UniformSpec('v2'),
|
|
157
152
|
tOverpaint: TextureSpec('image-uint8', 'rgba', 'ubyte', 'nearest'),
|
|
158
153
|
dOverpaint: DefineSpec('boolean'),
|
|
154
|
+
uOverpaintGridDim: UniformSpec('v3'),
|
|
155
|
+
uOverpaintGridTransform: UniformSpec('v4'),
|
|
156
|
+
tOverpaintGrid: TextureSpec('texture', 'rgba', 'ubyte', 'linear'),
|
|
157
|
+
dOverpaintType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
159
158
|
};
|
|
160
159
|
exports.TransparencySchema = {
|
|
161
160
|
uTransparencyTexDim: UniformSpec('v2'),
|
|
162
161
|
tTransparency: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
163
162
|
dTransparency: DefineSpec('boolean'),
|
|
164
163
|
transparencyAverage: ValueSpec('number'),
|
|
164
|
+
uTransparencyGridDim: UniformSpec('v3'),
|
|
165
|
+
uTransparencyGridTransform: UniformSpec('v4'),
|
|
166
|
+
tTransparencyGrid: TextureSpec('texture', 'alpha', 'ubyte', 'linear'),
|
|
167
|
+
dTransparencyType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
168
|
+
};
|
|
169
|
+
exports.SubstanceSchema = {
|
|
170
|
+
uSubstanceTexDim: UniformSpec('v2'),
|
|
171
|
+
tSubstance: TextureSpec('image-uint8', 'rgb', 'ubyte', 'nearest'),
|
|
172
|
+
dSubstance: DefineSpec('boolean'),
|
|
173
|
+
uSubstanceGridDim: UniformSpec('v3'),
|
|
174
|
+
uSubstanceGridTransform: UniformSpec('v4'),
|
|
175
|
+
tSubstanceGrid: TextureSpec('texture', 'rgb', 'ubyte', 'linear'),
|
|
176
|
+
dSubstanceType: DefineSpec('string', ['groupInstance', 'volumeInstance']),
|
|
165
177
|
};
|
|
166
178
|
exports.ClippingSchema = {
|
|
167
179
|
dClipObjectCount: DefineSpec('number'),
|
|
@@ -170,7 +182,7 @@ exports.ClippingSchema = {
|
|
|
170
182
|
tClipping: TextureSpec('image-uint8', 'alpha', 'ubyte', 'nearest'),
|
|
171
183
|
dClipping: DefineSpec('boolean'),
|
|
172
184
|
};
|
|
173
|
-
exports.BaseSchema = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, exports.ColorSchema), exports.MarkerSchema), exports.OverpaintSchema), exports.TransparencySchema), exports.ClippingSchema), { aInstance: AttributeSpec('float32', 1, 1),
|
|
185
|
+
exports.BaseSchema = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, exports.ColorSchema), exports.MarkerSchema), exports.OverpaintSchema), exports.TransparencySchema), exports.SubstanceSchema), exports.ClippingSchema), { dLightCount: DefineSpec('number'), aInstance: AttributeSpec('float32', 1, 1),
|
|
174
186
|
/**
|
|
175
187
|
* final per-instance transform calculated for instance `i` as
|
|
176
188
|
* `aTransform[i] = matrix * transform[i] * extraTransform[i]`
|
|
@@ -179,7 +191,7 @@ exports.BaseSchema = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__a
|
|
|
179
191
|
/**
|
|
180
192
|
* final alpha, calculated as `values.alpha * state.alpha`
|
|
181
193
|
*/
|
|
182
|
-
uAlpha: UniformSpec('f', 'material'), uVertexCount: UniformSpec('i'), uInstanceCount: UniformSpec('i'), uGroupCount: UniformSpec('i'), uInvariantBoundingSphere: UniformSpec('v4'), drawCount: ValueSpec('number'), instanceCount: ValueSpec('number'),
|
|
194
|
+
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'),
|
|
183
195
|
/** base alpha, see uAlpha */
|
|
184
196
|
alpha: ValueSpec('number'),
|
|
185
197
|
/** 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,SAAgB,WAAW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EAAE,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,EAExC,YAAY,EAAE,WAAW,CAAC,GAAG,CAAC,EAC9B,cAAc,EAAE,WAAW,CAAC,GAAG,CAAC,EAChC,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,EAC7B,wBAAwB,EAAE,WAAW,CAAC,IAAI,CAAC,EAE3C,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC9B,aAAa,EAAE,SAAS,CAAC,QAAQ,CAAC;IAElC,8BAA8B;IAC9B,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC;IAE1B,uCAAuC;IACvC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC;IACvB,kDAAkD;IAClD,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC;IAC/B,wDAAwD;IACxD,cAAc,EAAE,SAAS,CAAC,SAAS,CAAC;IACpC,sCAAsC;IACtC,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC;IAEnC,kFAAkF;IAClF,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAC;IACnC,yDAAyD;IACzD,uBAAuB,EAAE,SAAS,CAAC,QAAQ,CAAC,GACtC,CAAC"}
|
|
@@ -20,9 +20,12 @@ export declare const SpheresSchema: {
|
|
|
20
20
|
tSize: import("./schema").TextureSpec<"image-uint8">;
|
|
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">;
|
|
@@ -12,7 +12,7 @@ var render_item_1 = require("../webgl/render-item");
|
|
|
12
12
|
var schema_1 = require("./schema");
|
|
13
13
|
var shader_code_1 = require("../shader-code");
|
|
14
14
|
var mol_util_1 = require("../../mol-util");
|
|
15
|
-
exports.TextureMeshSchema = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, schema_1.BaseSchema), { uGeoTexDim: (0, schema_1.UniformSpec)('v2', 'buffered'), tPosition: (0, schema_1.TextureSpec)('texture', 'rgb', 'float', 'nearest'), tGroup: (0, schema_1.TextureSpec)('texture', 'alpha', 'float', 'nearest'), tNormal: (0, schema_1.TextureSpec)('texture', 'rgb', 'float', 'nearest'), dFlatShaded: (0, schema_1.DefineSpec)('boolean'), dDoubleSided: (0, schema_1.DefineSpec)('boolean'), dFlipSided: (0, schema_1.DefineSpec)('boolean'), dIgnoreLight: (0, schema_1.DefineSpec)('boolean'), dXrayShaded: (0, schema_1.DefineSpec)('boolean'), dGeoTexture: (0, schema_1.DefineSpec)('boolean') });
|
|
15
|
+
exports.TextureMeshSchema = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, schema_1.BaseSchema), { uGeoTexDim: (0, schema_1.UniformSpec)('v2', 'buffered'), tPosition: (0, schema_1.TextureSpec)('texture', 'rgb', 'float', 'nearest'), tGroup: (0, schema_1.TextureSpec)('texture', 'alpha', 'float', 'nearest'), tNormal: (0, schema_1.TextureSpec)('texture', 'rgb', 'float', 'nearest'), dFlatShaded: (0, schema_1.DefineSpec)('boolean'), dDoubleSided: (0, schema_1.DefineSpec)('boolean'), dFlipSided: (0, schema_1.DefineSpec)('boolean'), dIgnoreLight: (0, schema_1.DefineSpec)('boolean'), dXrayShaded: (0, schema_1.DefineSpec)('boolean'), dGeoTexture: (0, schema_1.DefineSpec)('boolean'), meta: (0, schema_1.ValueSpec)('unknown') });
|
|
16
16
|
function TextureMeshRenderable(ctx, id, values, state, materialId) {
|
|
17
17
|
var schema = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, schema_1.GlobalUniformSchema), schema_1.GlobalTextureSchema), schema_1.InternalSchema), exports.TextureMeshSchema);
|
|
18
18
|
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,4CAA8E;AAE9E,oDAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"texture-mesh.js","sourceRoot":"","sources":["../../../../src/mol-gl/renderable/texture-mesh.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,4CAA8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BAAgB,EAAC,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AATD,sDASC"}
|
|
@@ -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
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Renderer = exports.
|
|
8
|
+
exports.Renderer = exports.RendererParams = void 0;
|
|
9
9
|
var util_1 = require("../mol-canvas3d/camera/util");
|
|
10
10
|
var linear_algebra_1 = require("../mol-math/linear-algebra");
|
|
11
11
|
var color_1 = require("../mol-util/color");
|
|
@@ -19,7 +19,6 @@ var array_1 = require("../mol-util/array");
|
|
|
19
19
|
var interpolate_1 = require("../mol-math/interpolate");
|
|
20
20
|
exports.RendererParams = {
|
|
21
21
|
backgroundColor: param_definition_1.ParamDefinition.Color((0, color_1.Color)(0x000000), { description: 'Background color of the 3D canvas' }),
|
|
22
|
-
// the following are general 'material' parameters
|
|
23
22
|
pickingAlphaThreshold: param_definition_1.ParamDefinition.Numeric(0.5, { min: 0.0, max: 1.0, step: 0.01 }, { description: 'The minimum opacity value needed for an object to be pickable.' }),
|
|
24
23
|
interiorDarkening: param_definition_1.ParamDefinition.Numeric(0.5, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
25
24
|
interiorColorFlag: param_definition_1.ParamDefinition.Boolean(true, { label: 'Use Interior Color' }),
|
|
@@ -30,20 +29,19 @@ exports.RendererParams = {
|
|
|
30
29
|
selectStrength: param_definition_1.ParamDefinition.Numeric(0.7, { min: 0.0, max: 1.0, step: 0.1 }),
|
|
31
30
|
markerPriority: param_definition_1.ParamDefinition.Select(1, [[1, 'Highlight'], [2, 'Select']]),
|
|
32
31
|
xrayEdgeFalloff: param_definition_1.ParamDefinition.Numeric(1, { min: 0.0, max: 3.0, step: 0.1 }),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}, { label: 'Lighting', description: 'Style in which the 3D scene is rendered/lighted' }),
|
|
32
|
+
light: param_definition_1.ParamDefinition.ObjectList({
|
|
33
|
+
inclination: param_definition_1.ParamDefinition.Numeric(180, { min: 0, max: 180, step: 1 }),
|
|
34
|
+
azimuth: param_definition_1.ParamDefinition.Numeric(0, { min: 0, max: 360, step: 1 }),
|
|
35
|
+
color: param_definition_1.ParamDefinition.Color(color_1.Color.fromNormalizedRgb(1.0, 1.0, 1.0)),
|
|
36
|
+
intensity: param_definition_1.ParamDefinition.Numeric(0.6, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
37
|
+
}, function (o) { return color_1.Color.toHexString(o.color); }, { defaultValue: [{
|
|
38
|
+
inclination: 180,
|
|
39
|
+
azimuth: 0,
|
|
40
|
+
color: color_1.Color.fromNormalizedRgb(1.0, 1.0, 1.0),
|
|
41
|
+
intensity: 0.6
|
|
42
|
+
}] }),
|
|
43
|
+
ambientColor: param_definition_1.ParamDefinition.Color(color_1.Color.fromNormalizedRgb(1.0, 1.0, 1.0)),
|
|
44
|
+
ambientIntensity: param_definition_1.ParamDefinition.Numeric(0.4, { min: 0.0, max: 1.0, step: 0.01 }),
|
|
47
45
|
clip: param_definition_1.ParamDefinition.Group({
|
|
48
46
|
variant: param_definition_1.ParamDefinition.Select('instance', param_definition_1.ParamDefinition.arrayToOptions(['instance', 'pixel'])),
|
|
49
47
|
objects: param_definition_1.ParamDefinition.ObjectList({
|
|
@@ -58,38 +56,22 @@ exports.RendererParams = {
|
|
|
58
56
|
}, function (o) { return (0, string_1.stringToWords)(o.type); })
|
|
59
57
|
})
|
|
60
58
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
case 'glossy':
|
|
76
|
-
return {
|
|
77
|
-
lightIntensity: 0.7, ambientIntensity: 0.3,
|
|
78
|
-
metalness: 0, roughness: 0.4, reflectivity: 0.5
|
|
79
|
-
};
|
|
80
|
-
case 'metallic':
|
|
81
|
-
return {
|
|
82
|
-
lightIntensity: 0.7, ambientIntensity: 0.7,
|
|
83
|
-
metalness: 0.6, roughness: 0.6, reflectivity: 0.5
|
|
84
|
-
};
|
|
85
|
-
case 'plastic':
|
|
86
|
-
return {
|
|
87
|
-
lightIntensity: 0.7, ambientIntensity: 0.3,
|
|
88
|
-
metalness: 0, roughness: 0.2, reflectivity: 0.5
|
|
89
|
-
};
|
|
59
|
+
var tmpDir = (0, linear_algebra_1.Vec3)();
|
|
60
|
+
var tmpColor = (0, linear_algebra_1.Vec3)();
|
|
61
|
+
function getLight(props, light) {
|
|
62
|
+
var _a = light || {
|
|
63
|
+
direction: (new Array(5 * 3)).fill(0),
|
|
64
|
+
color: (new Array(5 * 3)).fill(0),
|
|
65
|
+
}, direction = _a.direction, color = _a.color;
|
|
66
|
+
for (var i = 0, il = props.length; i < il; ++i) {
|
|
67
|
+
var p = props[i];
|
|
68
|
+
linear_algebra_1.Vec3.directionFromSpherical(tmpDir, (0, misc_1.degToRad)(p.inclination), (0, misc_1.degToRad)(p.azimuth), 1);
|
|
69
|
+
linear_algebra_1.Vec3.toArray(tmpDir, direction, i * 3);
|
|
70
|
+
linear_algebra_1.Vec3.scale(tmpColor, color_1.Color.toVec3Normalized(tmpColor, p.color), p.intensity);
|
|
71
|
+
linear_algebra_1.Vec3.toArray(tmpColor, color, i * 3);
|
|
90
72
|
}
|
|
73
|
+
return { count: props.length, direction: direction, color: color };
|
|
91
74
|
}
|
|
92
|
-
exports.getStyle = getStyle;
|
|
93
75
|
var tmpQuat = (0, linear_algebra_1.Quat)();
|
|
94
76
|
function getClip(props, clip) {
|
|
95
77
|
var _a = (clip === null || clip === void 0 ? void 0 : clip.objects) || {
|
|
@@ -118,7 +100,7 @@ var Renderer;
|
|
|
118
100
|
if (props === void 0) { props = {}; }
|
|
119
101
|
var gl = ctx.gl, state = ctx.state, stats = ctx.stats, fragDepth = ctx.extensions.fragDepth;
|
|
120
102
|
var p = param_definition_1.ParamDefinition.merge(exports.RendererParams, param_definition_1.ParamDefinition.getDefaultValues(exports.RendererParams), props);
|
|
121
|
-
var
|
|
103
|
+
var light = getLight(p.light);
|
|
122
104
|
var clip = getClip(p.clip);
|
|
123
105
|
var viewport = (0, util_1.Viewport)();
|
|
124
106
|
var drawingBufferSize = linear_algebra_1.Vec2.create(gl.drawingBufferWidth, gl.drawingBufferHeight);
|
|
@@ -137,6 +119,8 @@ var Renderer;
|
|
|
137
119
|
var invModelViewProjection = (0, linear_algebra_1.Mat4)();
|
|
138
120
|
var cameraDir = (0, linear_algebra_1.Vec3)();
|
|
139
121
|
var viewOffset = (0, linear_algebra_1.Vec2)();
|
|
122
|
+
var ambientColor = (0, linear_algebra_1.Vec3)();
|
|
123
|
+
linear_algebra_1.Vec3.scale(ambientColor, color_1.Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
140
124
|
var globalUniforms = {
|
|
141
125
|
uModel: mol_util_1.ValueCell.create(linear_algebra_1.Mat4.identity()),
|
|
142
126
|
uView: mol_util_1.ValueCell.create(view),
|
|
@@ -167,12 +151,9 @@ var Renderer;
|
|
|
167
151
|
uClipObjectPosition: mol_util_1.ValueCell.create(clip.objects.position),
|
|
168
152
|
uClipObjectRotation: mol_util_1.ValueCell.create(clip.objects.rotation),
|
|
169
153
|
uClipObjectScale: mol_util_1.ValueCell.create(clip.objects.scale),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
uMetalness: mol_util_1.ValueCell.create(style.metalness),
|
|
174
|
-
uRoughness: mol_util_1.ValueCell.create(style.roughness),
|
|
175
|
-
uReflectivity: mol_util_1.ValueCell.create(style.reflectivity),
|
|
154
|
+
uLightDirection: mol_util_1.ValueCell.create(light.direction),
|
|
155
|
+
uLightColor: mol_util_1.ValueCell.create(light.color),
|
|
156
|
+
uAmbientColor: mol_util_1.ValueCell.create(ambientColor),
|
|
176
157
|
uPickingAlphaThreshold: mol_util_1.ValueCell.create(p.pickingAlphaThreshold),
|
|
177
158
|
uInteriorDarkening: mol_util_1.ValueCell.create(p.interiorDarkening),
|
|
178
159
|
uInteriorColorFlag: mol_util_1.ValueCell.create(p.interiorColorFlag),
|
|
@@ -207,6 +188,10 @@ var Renderer;
|
|
|
207
188
|
definesNeedUpdate = true;
|
|
208
189
|
}
|
|
209
190
|
}
|
|
191
|
+
if (r.values.dLightCount.ref.value !== light.count) {
|
|
192
|
+
mol_util_1.ValueCell.update(r.values.dLightCount, light.count);
|
|
193
|
+
definesNeedUpdate = true;
|
|
194
|
+
}
|
|
210
195
|
if (definesNeedUpdate)
|
|
211
196
|
r.update();
|
|
212
197
|
var program = r.getProgram(variant);
|
|
@@ -221,6 +206,9 @@ var Renderer;
|
|
|
221
206
|
globalUniformsNeedUpdate = false;
|
|
222
207
|
}
|
|
223
208
|
if (r.values.dRenderMode) { // indicates direct-volume
|
|
209
|
+
if ((variant[0] === 'p' || variant === 'depth') && r.values.dRenderMode.ref.value === 'volume') {
|
|
210
|
+
return; // no picking/depth in volume mode
|
|
211
|
+
}
|
|
224
212
|
// culling done in fragment shader
|
|
225
213
|
state.disable(gl.CULL_FACE);
|
|
226
214
|
state.frontFace(gl.CCW);
|
|
@@ -535,14 +523,21 @@ var Renderer;
|
|
|
535
523
|
p.xrayEdgeFalloff = props.xrayEdgeFalloff;
|
|
536
524
|
mol_util_1.ValueCell.update(globalUniforms.uXrayEdgeFalloff, p.xrayEdgeFalloff);
|
|
537
525
|
}
|
|
538
|
-
if (props.
|
|
539
|
-
p.
|
|
540
|
-
Object.assign(
|
|
541
|
-
mol_util_1.ValueCell.
|
|
542
|
-
mol_util_1.ValueCell.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
526
|
+
if (props.light !== undefined && !(0, mol_util_1.deepEqual)(props.light, p.light)) {
|
|
527
|
+
p.light = props.light;
|
|
528
|
+
Object.assign(light, getLight(props.light, light));
|
|
529
|
+
mol_util_1.ValueCell.update(globalUniforms.uLightDirection, light.direction);
|
|
530
|
+
mol_util_1.ValueCell.update(globalUniforms.uLightColor, light.color);
|
|
531
|
+
}
|
|
532
|
+
if (props.ambientColor !== undefined && props.ambientColor !== p.ambientColor) {
|
|
533
|
+
p.ambientColor = props.ambientColor;
|
|
534
|
+
linear_algebra_1.Vec3.scale(ambientColor, color_1.Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
535
|
+
mol_util_1.ValueCell.update(globalUniforms.uAmbientColor, ambientColor);
|
|
536
|
+
}
|
|
537
|
+
if (props.ambientIntensity !== undefined && props.ambientIntensity !== p.ambientIntensity) {
|
|
538
|
+
p.ambientIntensity = props.ambientIntensity;
|
|
539
|
+
linear_algebra_1.Vec3.scale(ambientColor, color_1.Color.toArrayNormalized(p.ambientColor, ambientColor, 0), p.ambientIntensity);
|
|
540
|
+
mol_util_1.ValueCell.update(globalUniforms.uAmbientColor, ambientColor);
|
|
546
541
|
}
|
|
547
542
|
if (props.clip !== undefined && !(0, mol_util_1.deepEqual)(props.clip, p.clip)) {
|
|
548
543
|
p.clip = props.clip;
|