molstar 3.0.0 → 3.2.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/LICENSE +20 -20
- package/README.md +194 -194
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/apps/viewer/app.d.ts +1 -0
- package/lib/apps/viewer/app.js +6 -3
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/commonjs/apps/viewer/app.d.ts +1 -0
- package/lib/commonjs/apps/viewer/app.js +8 -5
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +11 -11
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +1 -1
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
- package/lib/commonjs/mol-gl/renderer.js +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- 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/mmcif.d.ts +24 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +23 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +17 -4
- package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
- package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
- package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +4 -2
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +40 -20
- package/lib/commonjs/mol-model/volume/volume.d.ts +7 -0
- package/lib/commonjs/mol-model/volume/volume.js +18 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/commonjs/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/commonjs/mol-model-formats/structure/common/property.js +20 -8
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/commonjs/mol-model-props/computed/interactions/common.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/common.js +16 -24
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +29 -26
- package/lib/{mol-model-props/sequence/themes/best-database-mapping.d.ts → commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/commonjs/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +22 -22
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +11 -11
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +11 -6
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/behavior/static/representation.js +1 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.js +3 -3
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +5 -31
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +2 -1
- package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -11
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +11 -8
- package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +2 -1
- package/lib/commonjs/mol-plugin-ui/controls/icons.js +8 -5
- package/lib/commonjs/mol-plugin-ui/controls.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls.js +2 -1
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +131 -0
- package/lib/commonjs/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/commonjs/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/commonjs/mol-plugin-ui/structure/volume.js +4 -4
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/common.js +3 -3
- package/lib/commonjs/mol-repr/structure/registry.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +5 -4
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/commonjs/mol-state/transform.js +12 -2
- package/lib/commonjs/mol-theme/color/element-symbol.d.ts +46 -2
- package/lib/commonjs/mol-theme/color/element-symbol.js +15 -10
- package/lib/commonjs/mol-theme/color/entity-id.js +14 -11
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +32 -32
- package/lib/commonjs/mol-theme/color.d.ts +39 -17
- package/lib/commonjs/servers/volume/config.js +3 -3
- package/lib/commonjs/servers/volume/query.js +1 -1
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
- package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
- package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
- package/lib/mol-canvas3d/helper/interaction-events.js +1 -1
- package/lib/mol-canvas3d/passes/draw.d.ts +1 -1
- package/lib/mol-canvas3d/passes/draw.js +3 -3
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-gl/renderer.d.ts +2 -2
- package/lib/mol-gl/renderer.js +3 -3
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
- package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/mol-gl/shader/cylinders.frag.js +2 -2
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +2 -2
- package/lib/mol-gl/shader/direct-volume.frag.js +2 -2
- package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/mol-gl/shader/mesh.frag.js +2 -2
- package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/mol-gl/shader/spheres.frag.js +2 -2
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +24 -2
- package/lib/mol-io/reader/cif/schema/mmcif.js +23 -1
- package/lib/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
- package/lib/mol-math/geometry/primitives/sphere3d.js +17 -4
- package/lib/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
- package/lib/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
- package/lib/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/mol-model/structure/structure/element/loci.js +4 -2
- package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +38 -18
- package/lib/mol-model/volume/volume.d.ts +7 -0
- package/lib/mol-model/volume/volume.js +18 -0
- package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/mol-model-formats/structure/common/property.js +20 -8
- package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/mol-model-props/computed/interactions/common.d.ts +1 -1
- package/lib/mol-model-props/computed/interactions/common.js +16 -24
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
- package/lib/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +28 -25
- package/lib/{commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts → mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +19 -19
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +8 -8
- package/lib/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props.js +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.js +11 -6
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/behavior/static/representation.js +1 -1
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/mol-plugin-state/actions/volume.js +3 -3
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
- package/lib/mol-plugin-state/builder/structure/representation-preset.js +5 -31
- package/lib/mol-plugin-state/builder/structure/representation.d.ts +2 -1
- package/lib/mol-plugin-state/formats/volume.js +1 -11
- package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -1
- package/lib/mol-plugin-state/manager/structure/component.js +11 -8
- package/lib/mol-plugin-ui/controls/icons.d.ts +2 -1
- package/lib/mol-plugin-ui/controls/icons.js +5 -3
- package/lib/mol-plugin-ui/controls.d.ts +1 -1
- package/lib/mol-plugin-ui/controls.js +2 -1
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
- package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
- package/lib/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/mol-plugin-ui/structure/volume.js +4 -4
- package/lib/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/mol-repr/shape/loci/common.js +3 -3
- package/lib/mol-repr/structure/registry.d.ts +1 -1
- package/lib/mol-repr/structure/representation/cartoon.d.ts +4 -4
- package/lib/mol-repr/structure/representation/cartoon.js +3 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
- package/lib/mol-repr/structure/visual/util/bond.d.ts +1 -1
- package/lib/mol-repr/structure/visual/util/bond.js +5 -4
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/lib/mol-state/transform.js +12 -2
- package/lib/mol-theme/color/element-symbol.d.ts +46 -2
- package/lib/mol-theme/color/element-symbol.js +15 -10
- package/lib/mol-theme/color/entity-id.js +14 -11
- package/lib/mol-theme/color/illustrative.d.ts +32 -32
- package/lib/mol-theme/color.d.ts +39 -17
- package/lib/servers/volume/config.js +3 -3
- package/lib/servers/volume/query.js +1 -1
- package/package.json +160 -163
- package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
- package/lib/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
|
@@ -13,7 +13,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
13
13
|
export const BuiltIn: {
|
|
14
14
|
cartoon: import("./representation").StructureRepresentationProvider<{
|
|
15
15
|
sizeFactor: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
16
|
-
visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-
|
|
16
|
+
visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
|
|
17
17
|
bumpFrequency: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
18
18
|
unitKinds: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
19
19
|
includeParent: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
|
10
10
|
import { StructureRepresentation, StructureRepresentationProvider } from '../representation';
|
|
11
11
|
export declare const CartoonParams: {
|
|
12
12
|
sizeFactor: PD.Numeric;
|
|
13
|
-
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-
|
|
13
|
+
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
|
|
14
14
|
bumpFrequency: PD.Numeric;
|
|
15
15
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
16
16
|
includeParent: PD.BooleanParam;
|
|
@@ -48,7 +48,7 @@ export declare const CartoonParams: {
|
|
|
48
48
|
export declare type CartoonParams = typeof CartoonParams;
|
|
49
49
|
export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
50
50
|
sizeFactor: PD.Numeric;
|
|
51
|
-
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-
|
|
51
|
+
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
|
|
52
52
|
bumpFrequency: PD.Numeric;
|
|
53
53
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
54
54
|
includeParent: PD.BooleanParam;
|
|
@@ -87,7 +87,7 @@ export declare type CartoonRepresentation = StructureRepresentation<CartoonParam
|
|
|
87
87
|
export declare function CartoonRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, CartoonParams>): CartoonRepresentation;
|
|
88
88
|
export declare const CartoonRepresentationProvider: StructureRepresentationProvider<{
|
|
89
89
|
sizeFactor: PD.Numeric;
|
|
90
|
-
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-
|
|
90
|
+
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-block" | "direction-wedge">;
|
|
91
91
|
bumpFrequency: PD.Numeric;
|
|
92
92
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
93
93
|
includeParent: PD.BooleanParam;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ var CartoonVisuals = {
|
|
|
27
27
|
'nucleotide-ring': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Nucleotide ring mesh', ctx, getParams, nucleotide_ring_mesh_1.NucleotideRingVisual); },
|
|
28
28
|
'direction-wedge': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Polymer direction wedge', ctx, getParams, polymer_direction_wedge_1.PolymerDirectionVisual); }
|
|
29
29
|
};
|
|
30
|
-
exports.CartoonParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-
|
|
30
|
+
exports.CartoonParams = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring'], param_definition_1.ParamDefinition.objectToOptions(CartoonVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory) });
|
|
31
31
|
function getCartoonParams(ctx, structure) {
|
|
32
32
|
var params = param_definition_1.ParamDefinition.clone(exports.CartoonParams);
|
|
33
33
|
var hasNucleotides = false;
|
|
@@ -40,7 +40,7 @@ function getCartoonParams(ctx, structure) {
|
|
|
40
40
|
});
|
|
41
41
|
params.visuals.defaultValue = ['polymer-trace'];
|
|
42
42
|
if (hasNucleotides)
|
|
43
|
-
params.visuals.defaultValue.push('nucleotide-
|
|
43
|
+
params.visuals.defaultValue.push('nucleotide-ring');
|
|
44
44
|
if (hasGaps)
|
|
45
45
|
params.visuals.defaultValue.push('polymer-gap');
|
|
46
46
|
return params;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -43,7 +43,7 @@ function createMolecularSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
|
|
|
43
43
|
mesh_1.Mesh.transform(surface, transform);
|
|
44
44
|
if (ctx.webgl && !ctx.webgl.isWebGL2)
|
|
45
45
|
mesh_1.Mesh.uniformTriangleGroup(surface);
|
|
46
|
-
sphere = geometry_1.Sphere3D.expand((0, geometry_1.Sphere3D)(), unit.boundary.sphere,
|
|
46
|
+
sphere = geometry_1.Sphere3D.expand((0, geometry_1.Sphere3D)(), unit.boundary.sphere, (0, common_1.getUnitExtraRadius)(unit));
|
|
47
47
|
surface.setBoundingSphere(sphere);
|
|
48
48
|
surface.meta.resolution = resolution;
|
|
49
49
|
return [2 /*return*/, surface];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -215,6 +215,7 @@ function getInterBondLoci(pickingId, structure, id) {
|
|
|
215
215
|
return loci_1.EmptyLoci;
|
|
216
216
|
}
|
|
217
217
|
exports.getInterBondLoci = getInterBondLoci;
|
|
218
|
+
var __unitMap = new Map();
|
|
218
219
|
function eachInterBond(loci, structure, apply, isMarking) {
|
|
219
220
|
var changed = false;
|
|
220
221
|
if (structure_1.Bond.isLoci(loci)) {
|
|
@@ -234,17 +235,16 @@ function eachInterBond(loci, structure, apply, isMarking) {
|
|
|
234
235
|
return false;
|
|
235
236
|
if (isMarking && loci.elements.length === 1)
|
|
236
237
|
return false; // only a single unit
|
|
237
|
-
var map_1 = new Map();
|
|
238
238
|
for (var _b = 0, _c = loci.elements; _b < _c.length; _b++) {
|
|
239
239
|
var e = _c[_b];
|
|
240
|
-
|
|
240
|
+
__unitMap.set(e.unit.id, e.indices);
|
|
241
241
|
}
|
|
242
242
|
var _loop_2 = function (e) {
|
|
243
243
|
var unit = e.unit;
|
|
244
244
|
if (!structure_1.Unit.isAtomic(unit))
|
|
245
245
|
return "continue";
|
|
246
246
|
structure.interUnitBonds.getConnectedUnits(unit.id).forEach(function (b) {
|
|
247
|
-
var otherLociIndices =
|
|
247
|
+
var otherLociIndices = __unitMap.get(b.unitB);
|
|
248
248
|
if (!isMarking || otherLociIndices) {
|
|
249
249
|
int_1.OrderedSet.forEach(e.indices, function (v) {
|
|
250
250
|
if (!b.connectedIndices.includes(v))
|
|
@@ -264,6 +264,7 @@ function eachInterBond(loci, structure, apply, isMarking) {
|
|
|
264
264
|
var e = _e[_d];
|
|
265
265
|
_loop_2(e);
|
|
266
266
|
}
|
|
267
|
+
__unitMap.clear();
|
|
267
268
|
}
|
|
268
269
|
return changed;
|
|
269
270
|
}
|
|
@@ -10,6 +10,7 @@ export declare namespace MolScriptBuilder {
|
|
|
10
10
|
'@header': string;
|
|
11
11
|
type: {
|
|
12
12
|
'@header': string;
|
|
13
|
+
/** atom macromolecular property set */
|
|
13
14
|
bool: MSymbol<import("./symbol").Arguments<import("./symbol").Arguments.PropTypes<{
|
|
14
15
|
0: import("./symbol").Argument<import("./type").Type.AnyValue>;
|
|
15
16
|
}>>, import("./type").Type.OneOf<boolean>>;
|
|
@@ -56,7 +56,12 @@ var Transform;
|
|
|
56
56
|
if (!!s === !!t)
|
|
57
57
|
continue;
|
|
58
58
|
changed = true;
|
|
59
|
-
|
|
59
|
+
if (s !== void 0) {
|
|
60
|
+
a[k] = s;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
delete a[k];
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
for (var _b = 0, _c = Object.keys(a); _b < _c.length; _b++) {
|
|
62
67
|
var k = _c[_b];
|
|
@@ -64,7 +69,12 @@ var Transform;
|
|
|
64
69
|
if (!!s === !!t)
|
|
65
70
|
continue;
|
|
66
71
|
changed = true;
|
|
67
|
-
|
|
72
|
+
if (s !== void 0) {
|
|
73
|
+
a[k] = s;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
delete a[k];
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
return changed;
|
|
70
80
|
}
|
|
@@ -154,7 +154,29 @@ export declare const ElementSymbolColorThemeParams: {
|
|
|
154
154
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
155
155
|
list: any;
|
|
156
156
|
}>, "colors">;
|
|
157
|
-
}>, "operator-name"
|
|
157
|
+
}>, "operator-name"> | PD.NamedParams<PD.Normalize<{
|
|
158
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
159
|
+
maxCount: any;
|
|
160
|
+
hue: any;
|
|
161
|
+
chroma: any;
|
|
162
|
+
luminance: any;
|
|
163
|
+
clusteringStepCount: any;
|
|
164
|
+
minSampleCount: any;
|
|
165
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
166
|
+
list: any;
|
|
167
|
+
}>, "colors">;
|
|
168
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
169
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
170
|
+
maxCount: any;
|
|
171
|
+
hue: any;
|
|
172
|
+
chroma: any;
|
|
173
|
+
luminance: any;
|
|
174
|
+
clusteringStepCount: any;
|
|
175
|
+
minSampleCount: any;
|
|
176
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
177
|
+
list: any;
|
|
178
|
+
}>, "colors">;
|
|
179
|
+
}>, "entity-source">>;
|
|
158
180
|
saturation: PD.Numeric;
|
|
159
181
|
lightness: PD.Numeric;
|
|
160
182
|
colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -304,7 +326,29 @@ export declare function getElementSymbolColorThemeParams(ctx: ThemeDataContext):
|
|
|
304
326
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
305
327
|
list: any;
|
|
306
328
|
}>, "colors">;
|
|
307
|
-
}>, "operator-name"
|
|
329
|
+
}>, "operator-name"> | PD.NamedParams<PD.Normalize<{
|
|
330
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
331
|
+
maxCount: any;
|
|
332
|
+
hue: any;
|
|
333
|
+
chroma: any;
|
|
334
|
+
luminance: any;
|
|
335
|
+
clusteringStepCount: any;
|
|
336
|
+
minSampleCount: any;
|
|
337
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
338
|
+
list: any;
|
|
339
|
+
}>, "colors">;
|
|
340
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
341
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
342
|
+
maxCount: any;
|
|
343
|
+
hue: any;
|
|
344
|
+
chroma: any;
|
|
345
|
+
luminance: any;
|
|
346
|
+
clusteringStepCount: any;
|
|
347
|
+
minSampleCount: any;
|
|
348
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
349
|
+
list: any;
|
|
350
|
+
}>, "colors">;
|
|
351
|
+
}>, "entity-source">>;
|
|
308
352
|
saturation: PD.Numeric;
|
|
309
353
|
lightness: PD.Numeric;
|
|
310
354
|
colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ElementSymbolColorThemeProvider = exports.ElementSymbolColorTheme = exports.elementSymbolColor = exports.getElementSymbolColorThemeParams = exports.ElementSymbolColorThemeParams = exports.ElementSymbolColors = void 0;
|
|
9
|
-
var tslib_1 = require("tslib");
|
|
10
9
|
var color_1 = require("../../mol-util/color");
|
|
11
10
|
var structure_1 = require("../../mol-model/structure");
|
|
12
11
|
var param_definition_1 = require("../../mol-util/param-definition");
|
|
@@ -15,18 +14,22 @@ var color_2 = require("../../mol-util/color/color");
|
|
|
15
14
|
var params_1 = require("../../mol-util/color/params");
|
|
16
15
|
var chain_id_1 = require("./chain-id");
|
|
17
16
|
var operator_name_1 = require("./operator-name");
|
|
17
|
+
var entity_id_1 = require("./entity-id");
|
|
18
|
+
var type_helpers_1 = require("../../mol-util/type-helpers");
|
|
19
|
+
var entity_source_1 = require("./entity-source");
|
|
18
20
|
// from Jmol http://jmol.sourceforge.net/jscolors/ (or 0xFFFFFF)
|
|
19
21
|
exports.ElementSymbolColors = (0, color_1.ColorMap)({
|
|
20
22
|
'H': 0xFFFFFF, 'D': 0xFFFFC0, 'T': 0xFFFFA0, 'HE': 0xD9FFFF, 'LI': 0xCC80FF, 'BE': 0xC2FF00, 'B': 0xFFB5B5, 'C': 0x909090, 'N': 0x3050F8, 'O': 0xFF0D0D, 'F': 0x90E050, 'NE': 0xB3E3F5, 'NA': 0xAB5CF2, 'MG': 0x8AFF00, 'AL': 0xBFA6A6, 'SI': 0xF0C8A0, 'P': 0xFF8000, 'S': 0xFFFF30, 'CL': 0x1FF01F, 'AR': 0x80D1E3, 'K': 0x8F40D4, 'CA': 0x3DFF00, 'SC': 0xE6E6E6, 'TI': 0xBFC2C7, 'V': 0xA6A6AB, 'CR': 0x8A99C7, 'MN': 0x9C7AC7, 'FE': 0xE06633, 'CO': 0xF090A0, 'NI': 0x50D050, 'CU': 0xC88033, 'ZN': 0x7D80B0, 'GA': 0xC28F8F, 'GE': 0x668F8F, 'AS': 0xBD80E3, 'SE': 0xFFA100, 'BR': 0xA62929, 'KR': 0x5CB8D1, 'RB': 0x702EB0, 'SR': 0x00FF00, 'Y': 0x94FFFF, 'ZR': 0x94E0E0, 'NB': 0x73C2C9, 'MO': 0x54B5B5, 'TC': 0x3B9E9E, 'RU': 0x248F8F, 'RH': 0x0A7D8C, 'PD': 0x006985, 'AG': 0xC0C0C0, 'CD': 0xFFD98F, 'IN': 0xA67573, 'SN': 0x668080, 'SB': 0x9E63B5, 'TE': 0xD47A00, 'I': 0x940094, 'XE': 0x940094, 'CS': 0x57178F, 'BA': 0x00C900, 'LA': 0x70D4FF, 'CE': 0xFFFFC7, 'PR': 0xD9FFC7, 'ND': 0xC7FFC7, 'PM': 0xA3FFC7, 'SM': 0x8FFFC7, 'EU': 0x61FFC7, 'GD': 0x45FFC7, 'TB': 0x30FFC7, 'DY': 0x1FFFC7, 'HO': 0x00FF9C, 'ER': 0x00E675, 'TM': 0x00D452, 'YB': 0x00BF38, 'LU': 0x00AB24, 'HF': 0x4DC2FF, 'TA': 0x4DA6FF, 'W': 0x2194D6, 'RE': 0x267DAB, 'OS': 0x266696, 'IR': 0x175487, 'PT': 0xD0D0E0, 'AU': 0xFFD123, 'HG': 0xB8B8D0, 'TL': 0xA6544D, 'PB': 0x575961, 'BI': 0x9E4FB5, 'PO': 0xAB5C00, 'AT': 0x754F45, 'RN': 0x428296, 'FR': 0x420066, 'RA': 0x007D00, 'AC': 0x70ABFA, 'TH': 0x00BAFF, 'PA': 0x00A1FF, 'U': 0x008FFF, 'NP': 0x0080FF, 'PU': 0x006BFF, 'AM': 0x545CF2, 'CM': 0x785CE3, 'BK': 0x8A4FE3, 'CF': 0xA136D4, 'ES': 0xB31FD4, 'FM': 0xB31FBA, 'MD': 0xB30DA6, 'NO': 0xBD0D87, 'LR': 0xC70066, 'RF': 0xCC0059, 'DB': 0xD1004F, 'SG': 0xD90045, 'BH': 0xE00038, 'HS': 0xE6002E, 'MT': 0xEB0026, 'DS': 0xFFFFFF, 'RG': 0xFFFFFF, 'CN': 0xFFFFFF, 'UUT': 0xFFFFFF, 'FL': 0xFFFFFF, 'UUP': 0xFFFFFF, 'LV': 0xFFFFFF, 'UUH': 0xFFFFFF
|
|
21
23
|
});
|
|
22
24
|
var DefaultElementSymbolColor = (0, color_1.Color)(0xFFFFFF);
|
|
23
25
|
var Description = 'Assigns a color to every atom according to its chemical element.';
|
|
24
|
-
// TODO generalise `carbonColor` param to all themes?
|
|
25
26
|
exports.ElementSymbolColorThemeParams = {
|
|
26
27
|
carbonColor: param_definition_1.ParamDefinition.MappedStatic('chain-id', {
|
|
27
|
-
'chain-id': param_definition_1.ParamDefinition.Group(
|
|
28
|
-
'
|
|
29
|
-
'
|
|
28
|
+
'chain-id': param_definition_1.ParamDefinition.Group(chain_id_1.ChainIdColorThemeParams),
|
|
29
|
+
'entity-id': param_definition_1.ParamDefinition.Group(entity_id_1.EntityIdColorThemeParams),
|
|
30
|
+
'entity-source': param_definition_1.ParamDefinition.Group(entity_source_1.EntitySourceColorThemeParams),
|
|
31
|
+
'operator-name': param_definition_1.ParamDefinition.Group(operator_name_1.OperatorNameColorThemeParams),
|
|
32
|
+
'element-symbol': param_definition_1.ParamDefinition.EmptyGroup()
|
|
30
33
|
}, { description: 'Use chain-id coloring for carbon atoms.' }),
|
|
31
34
|
saturation: param_definition_1.ParamDefinition.Numeric(0, { min: -6, max: 6, step: 0.1 }),
|
|
32
35
|
lightness: param_definition_1.ParamDefinition.Numeric(0.2, { min: -6, max: 6, step: 0.1 }),
|
|
@@ -46,11 +49,13 @@ function elementSymbolColor(colorMap, element) {
|
|
|
46
49
|
exports.elementSymbolColor = elementSymbolColor;
|
|
47
50
|
function ElementSymbolColorTheme(ctx, props) {
|
|
48
51
|
var colorMap = (0, color_2.getAdjustedColorMap)(props.colors.name === 'default' ? exports.ElementSymbolColors : props.colors.params, props.saturation, props.lightness);
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
? (0,
|
|
53
|
-
|
|
52
|
+
var pcc = props.carbonColor;
|
|
53
|
+
var carbonColor = pcc.name === 'chain-id' ? (0, chain_id_1.ChainIdColorTheme)(ctx, pcc.params).color :
|
|
54
|
+
pcc.name === 'entity-id' ? (0, entity_id_1.EntityIdColorTheme)(ctx, pcc.params).color :
|
|
55
|
+
pcc.name === 'entity-source' ? (0, entity_source_1.EntitySourceColorTheme)(ctx, pcc.params).color :
|
|
56
|
+
pcc.name === 'operator-name' ? (0, operator_name_1.OperatorNameColorTheme)(ctx, pcc.params).color :
|
|
57
|
+
pcc.name === 'element-symbol' ? undefined :
|
|
58
|
+
(0, type_helpers_1.assertUnreachable)(pcc);
|
|
54
59
|
function elementColor(element, location) {
|
|
55
60
|
return (carbonColor && element === 'C')
|
|
56
61
|
? carbonColor(location, false)
|
|
@@ -32,17 +32,20 @@ function getEntityIdSerialMap(structure) {
|
|
|
32
32
|
if (!map.has(k))
|
|
33
33
|
map.set(k, map.size);
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
var coarseHierarchy = structure.models[i].coarseHierarchy;
|
|
36
|
+
if (coarseHierarchy.isDefined) {
|
|
37
|
+
var spheres_entity_id = coarseHierarchy.spheres.entity_id;
|
|
38
|
+
for (var j = 0, jl = spheres_entity_id.rowCount; j < jl; ++j) {
|
|
39
|
+
var k = key(spheres_entity_id.value(j), i);
|
|
40
|
+
if (!map.has(k))
|
|
41
|
+
map.set(k, map.size);
|
|
42
|
+
}
|
|
43
|
+
var gaussians_entity_id = coarseHierarchy.gaussians.entity_id;
|
|
44
|
+
for (var j = 0, jl = gaussians_entity_id.rowCount; j < jl; ++j) {
|
|
45
|
+
var k = key(gaussians_entity_id.value(j), i);
|
|
46
|
+
if (!map.has(k))
|
|
47
|
+
map.set(k, map.size);
|
|
48
|
+
}
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
return map;
|
|
@@ -9,8 +9,6 @@ import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
|
9
9
|
import { ThemeDataContext } from '../theme';
|
|
10
10
|
export declare const IllustrativeColorThemeParams: {
|
|
11
11
|
style: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
12
|
-
value: Color;
|
|
13
|
-
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
14
12
|
palette: PD.NamedParams<PD.Normalize<{
|
|
15
13
|
maxCount: any;
|
|
16
14
|
hue: any;
|
|
@@ -23,18 +21,6 @@ export declare const IllustrativeColorThemeParams: {
|
|
|
23
21
|
}>, "colors">;
|
|
24
22
|
asymId: "label" | "auth";
|
|
25
23
|
}>, "chain-id"> | PD.NamedParams<PD.Normalize<{
|
|
26
|
-
saturation: number;
|
|
27
|
-
lightness: number;
|
|
28
|
-
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
29
|
-
water: any;
|
|
30
|
-
ion: any;
|
|
31
|
-
protein: any;
|
|
32
|
-
RNA: any;
|
|
33
|
-
DNA: any;
|
|
34
|
-
PNA: any;
|
|
35
|
-
saccharide: any;
|
|
36
|
-
}>, "custom">;
|
|
37
|
-
}>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
|
|
38
24
|
palette: PD.NamedParams<PD.Normalize<{
|
|
39
25
|
maxCount: any;
|
|
40
26
|
hue: any;
|
|
@@ -45,7 +31,7 @@ export declare const IllustrativeColorThemeParams: {
|
|
|
45
31
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
46
32
|
list: any;
|
|
47
33
|
}>, "colors">;
|
|
48
|
-
}>, "entity-
|
|
34
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
49
35
|
palette: PD.NamedParams<PD.Normalize<{
|
|
50
36
|
maxCount: any;
|
|
51
37
|
hue: any;
|
|
@@ -56,14 +42,26 @@ export declare const IllustrativeColorThemeParams: {
|
|
|
56
42
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
57
43
|
list: any;
|
|
58
44
|
}>, "colors">;
|
|
59
|
-
}>, "entity-
|
|
45
|
+
}>, "entity-source"> | PD.NamedParams<PD.Normalize<{
|
|
46
|
+
value: Color;
|
|
47
|
+
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
48
|
+
saturation: number;
|
|
49
|
+
lightness: number;
|
|
50
|
+
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
51
|
+
water: any;
|
|
52
|
+
ion: any;
|
|
53
|
+
protein: any;
|
|
54
|
+
RNA: any;
|
|
55
|
+
DNA: any;
|
|
56
|
+
PNA: any;
|
|
57
|
+
saccharide: any;
|
|
58
|
+
}>, "custom">;
|
|
59
|
+
}>, "molecule-type">>;
|
|
60
60
|
carbonLightness: PD.Numeric;
|
|
61
61
|
};
|
|
62
62
|
export declare type IllustrativeColorThemeParams = typeof IllustrativeColorThemeParams;
|
|
63
63
|
export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext): {
|
|
64
64
|
style: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
65
|
-
value: Color;
|
|
66
|
-
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
67
65
|
palette: PD.NamedParams<PD.Normalize<{
|
|
68
66
|
maxCount: any;
|
|
69
67
|
hue: any;
|
|
@@ -76,18 +74,6 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
|
|
|
76
74
|
}>, "colors">;
|
|
77
75
|
asymId: "label" | "auth";
|
|
78
76
|
}>, "chain-id"> | PD.NamedParams<PD.Normalize<{
|
|
79
|
-
saturation: number;
|
|
80
|
-
lightness: number;
|
|
81
|
-
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
82
|
-
water: any;
|
|
83
|
-
ion: any;
|
|
84
|
-
protein: any;
|
|
85
|
-
RNA: any;
|
|
86
|
-
DNA: any;
|
|
87
|
-
PNA: any;
|
|
88
|
-
saccharide: any;
|
|
89
|
-
}>, "custom">;
|
|
90
|
-
}>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
|
|
91
77
|
palette: PD.NamedParams<PD.Normalize<{
|
|
92
78
|
maxCount: any;
|
|
93
79
|
hue: any;
|
|
@@ -98,7 +84,7 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
|
|
|
98
84
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
99
85
|
list: any;
|
|
100
86
|
}>, "colors">;
|
|
101
|
-
}>, "entity-
|
|
87
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
102
88
|
palette: PD.NamedParams<PD.Normalize<{
|
|
103
89
|
maxCount: any;
|
|
104
90
|
hue: any;
|
|
@@ -109,7 +95,21 @@ export declare function getIllustrativeColorThemeParams(ctx: ThemeDataContext):
|
|
|
109
95
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
110
96
|
list: any;
|
|
111
97
|
}>, "colors">;
|
|
112
|
-
}>, "entity-
|
|
98
|
+
}>, "entity-source"> | PD.NamedParams<PD.Normalize<{
|
|
99
|
+
value: Color;
|
|
100
|
+
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
101
|
+
saturation: number;
|
|
102
|
+
lightness: number;
|
|
103
|
+
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
104
|
+
water: any;
|
|
105
|
+
ion: any;
|
|
106
|
+
protein: any;
|
|
107
|
+
RNA: any;
|
|
108
|
+
DNA: any;
|
|
109
|
+
PNA: any;
|
|
110
|
+
saccharide: any;
|
|
111
|
+
}>, "custom">;
|
|
112
|
+
}>, "molecule-type">>;
|
|
113
113
|
carbonLightness: PD.Numeric;
|
|
114
114
|
};
|
|
115
115
|
export declare function IllustrativeColorTheme(ctx: ThemeDataContext, props: PD.Values<IllustrativeColorThemeParams>): ColorTheme<IllustrativeColorThemeParams>;
|
|
@@ -125,7 +125,29 @@ declare namespace ColorTheme {
|
|
|
125
125
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
126
126
|
list: any;
|
|
127
127
|
}>, "colors">;
|
|
128
|
-
}>, "operator-name"
|
|
128
|
+
}>, "operator-name"> | PD.NamedParams<PD.Normalize<{
|
|
129
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
130
|
+
maxCount: any;
|
|
131
|
+
hue: any;
|
|
132
|
+
chroma: any;
|
|
133
|
+
luminance: any;
|
|
134
|
+
clusteringStepCount: any;
|
|
135
|
+
minSampleCount: any;
|
|
136
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
137
|
+
list: any;
|
|
138
|
+
}>, "colors">;
|
|
139
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
140
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
141
|
+
maxCount: any;
|
|
142
|
+
hue: any;
|
|
143
|
+
chroma: any;
|
|
144
|
+
luminance: any;
|
|
145
|
+
clusteringStepCount: any;
|
|
146
|
+
minSampleCount: any;
|
|
147
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
148
|
+
list: any;
|
|
149
|
+
}>, "colors">;
|
|
150
|
+
}>, "entity-source">>;
|
|
129
151
|
saturation: PD.Numeric;
|
|
130
152
|
lightness: PD.Numeric;
|
|
131
153
|
colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -286,8 +308,6 @@ declare namespace ColorTheme {
|
|
|
286
308
|
}, "hydrophobicity">;
|
|
287
309
|
illustrative: Provider<{
|
|
288
310
|
style: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
289
|
-
value: Color;
|
|
290
|
-
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
291
311
|
palette: PD.NamedParams<PD.Normalize<{
|
|
292
312
|
maxCount: any;
|
|
293
313
|
hue: any;
|
|
@@ -300,18 +320,6 @@ declare namespace ColorTheme {
|
|
|
300
320
|
}>, "colors">;
|
|
301
321
|
asymId: "label" | "auth";
|
|
302
322
|
}>, "chain-id"> | PD.NamedParams<PD.Normalize<{
|
|
303
|
-
saturation: number;
|
|
304
|
-
lightness: number;
|
|
305
|
-
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
306
|
-
water: any;
|
|
307
|
-
ion: any;
|
|
308
|
-
protein: any;
|
|
309
|
-
RNA: any;
|
|
310
|
-
DNA: any;
|
|
311
|
-
PNA: any;
|
|
312
|
-
saccharide: any;
|
|
313
|
-
}>, "custom">;
|
|
314
|
-
}>, "molecule-type"> | PD.NamedParams<PD.Normalize<{
|
|
315
323
|
palette: PD.NamedParams<PD.Normalize<{
|
|
316
324
|
maxCount: any;
|
|
317
325
|
hue: any;
|
|
@@ -322,7 +330,7 @@ declare namespace ColorTheme {
|
|
|
322
330
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
323
331
|
list: any;
|
|
324
332
|
}>, "colors">;
|
|
325
|
-
}>, "entity-
|
|
333
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
326
334
|
palette: PD.NamedParams<PD.Normalize<{
|
|
327
335
|
maxCount: any;
|
|
328
336
|
hue: any;
|
|
@@ -333,7 +341,21 @@ declare namespace ColorTheme {
|
|
|
333
341
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
334
342
|
list: any;
|
|
335
343
|
}>, "colors">;
|
|
336
|
-
}>, "entity-
|
|
344
|
+
}>, "entity-source"> | PD.NamedParams<PD.Normalize<{
|
|
345
|
+
value: Color;
|
|
346
|
+
}>, "uniform"> | PD.NamedParams<PD.Normalize<{
|
|
347
|
+
saturation: number;
|
|
348
|
+
lightness: number;
|
|
349
|
+
colors: PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
350
|
+
water: any;
|
|
351
|
+
ion: any;
|
|
352
|
+
protein: any;
|
|
353
|
+
RNA: any;
|
|
354
|
+
DNA: any;
|
|
355
|
+
PNA: any;
|
|
356
|
+
saccharide: any;
|
|
357
|
+
}>, "custom">;
|
|
358
|
+
}>, "molecule-type">>;
|
|
337
359
|
carbonLightness: PD.Numeric;
|
|
338
360
|
}, "illustrative">;
|
|
339
361
|
'model-index': Provider<{
|
|
@@ -168,11 +168,11 @@ function configureLocal() {
|
|
|
168
168
|
description: version_1.VOLUME_SERVER_HEADER
|
|
169
169
|
});
|
|
170
170
|
parser.add_argument('--jobs', { help: "Path to a JSON file with job specification.", required: false });
|
|
171
|
-
parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false,
|
|
171
|
+
parser.add_argument('--jobsTemplate', { help: 'Print example template for jobs.json and exit.', required: false, action: 'store_true' });
|
|
172
172
|
addJsonConfigArgs(parser);
|
|
173
173
|
addLimitsArgs(parser);
|
|
174
174
|
var config = parser.parse_args();
|
|
175
|
-
if (config.cfgTemplate
|
|
175
|
+
if (config.cfgTemplate) {
|
|
176
176
|
console.log(JSON.stringify(DefaultLimitsConfig, null, 2));
|
|
177
177
|
process.exit(0);
|
|
178
178
|
}
|
|
@@ -182,7 +182,7 @@ function configureLocal() {
|
|
|
182
182
|
var cfg = JSON.parse(fs.readFileSync(config.cfg, 'utf8'));
|
|
183
183
|
setLimitsConfig(cfg);
|
|
184
184
|
}
|
|
185
|
-
if (config.printCfg
|
|
185
|
+
if (config.printCfg) {
|
|
186
186
|
console.log(JSON.stringify(exports.LimitsConfig, null, 2));
|
|
187
187
|
process.exit(0);
|
|
188
188
|
}
|
|
@@ -14,7 +14,7 @@ var fs = (0, tslib_1.__importStar)(require("fs"));
|
|
|
14
14
|
var config_1 = require("./config");
|
|
15
15
|
var LocalApi = (0, tslib_1.__importStar)(require("./server/local-api"));
|
|
16
16
|
var config = (0, config_1.configureLocal)();
|
|
17
|
-
if (config.jobsTemplate
|
|
17
|
+
if (config.jobsTemplate) {
|
|
18
18
|
var exampleJobs = [{
|
|
19
19
|
source: {
|
|
20
20
|
filename: "g:/test/mdb/xray-1tqn.mdb",
|