molstar 3.0.0-dev.5 → 3.0.0-dev.6

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.
Files changed (168) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +187 -187
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +102 -95
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.d.ts +2 -1
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/docking-viewer/index.js +87 -74
  9. package/lib/apps/viewer/embedded.html +43 -43
  10. package/lib/apps/viewer/index.d.ts +36 -215
  11. package/lib/apps/viewer/index.html +102 -95
  12. package/lib/apps/viewer/index.js +139 -52
  13. package/lib/cli/cifschema/index.d.ts +1 -1
  14. package/lib/cli/cifschema/index.js +15 -35
  15. package/lib/commonjs/apps/docking-viewer/index.d.ts +2 -1
  16. package/lib/commonjs/apps/docking-viewer/index.js +86 -73
  17. package/lib/commonjs/apps/viewer/index.d.ts +36 -215
  18. package/lib/commonjs/apps/viewer/index.js +139 -52
  19. package/lib/commonjs/cli/cifschema/index.d.ts +1 -1
  20. package/lib/commonjs/cli/cifschema/index.js +15 -35
  21. package/lib/commonjs/examples/alpha-orbitals/index.js +2 -3
  22. package/lib/commonjs/examples/basic-wrapper/index.js +23 -11
  23. package/lib/commonjs/examples/lighting/index.d.ts +1 -1
  24. package/lib/commonjs/examples/lighting/index.js +57 -41
  25. package/lib/commonjs/examples/proteopedia-wrapper/index.js +26 -14
  26. package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +0 -1
  27. package/lib/commonjs/extensions/alpha-orbitals/transforms.js +1 -14
  28. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
  29. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.js +236 -0
  30. package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
  31. package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +125 -0
  32. package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
  33. package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +111 -0
  34. package/lib/commonjs/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
  35. package/lib/commonjs/extensions/model-archive/quality-assessment/prop.js +130 -0
  36. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
  37. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +1 -1
  38. package/lib/commonjs/extensions/rcsb/validation-report/prop.js +1 -1
  39. package/lib/commonjs/mol-canvas3d/canvas3d.js +7 -1
  40. package/lib/commonjs/mol-canvas3d/passes/multi-sample.d.ts +2 -1
  41. package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +4 -2
  42. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  43. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
  44. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  45. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  46. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  47. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
  48. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +326 -1
  49. package/lib/commonjs/mol-math/geometry/symmetry-operator.js +3 -2
  50. package/lib/commonjs/mol-model/structure/model/model.d.ts +1 -0
  51. package/lib/commonjs/mol-model/structure/model/model.js +8 -2
  52. package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
  53. package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
  54. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
  55. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +4 -1
  56. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
  57. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
  58. package/lib/commonjs/mol-model/structure/model/types.js +9 -0
  59. package/lib/commonjs/mol-model/structure/structure/unit/rings.js +2 -0
  60. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  61. package/lib/commonjs/mol-plugin/config.d.ts +1 -0
  62. package/lib/commonjs/mol-plugin/config.js +1 -0
  63. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +7 -1
  64. package/lib/commonjs/mol-plugin-state/actions/structure.js +150 -72
  65. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
  66. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +13 -8
  67. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
  68. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +33 -19
  69. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +1 -1
  70. package/lib/commonjs/mol-plugin-ui/index.d.ts +4 -4
  71. package/lib/commonjs/mol-plugin-ui/index.js +13 -16
  72. package/lib/commonjs/mol-plugin-ui/plugin.js +1 -1
  73. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
  74. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
  75. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
  76. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +1 -1
  77. package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
  78. package/lib/examples/alpha-orbitals/index.html +61 -60
  79. package/lib/examples/alpha-orbitals/index.js +3 -4
  80. package/lib/examples/basic-wrapper/index.html +137 -136
  81. package/lib/examples/basic-wrapper/index.js +24 -12
  82. package/lib/examples/lighting/index.d.ts +1 -1
  83. package/lib/examples/lighting/index.html +88 -86
  84. package/lib/examples/lighting/index.js +58 -42
  85. package/lib/examples/proteopedia-wrapper/index.html +236 -235
  86. package/lib/examples/proteopedia-wrapper/index.js +27 -15
  87. package/lib/extensions/alpha-orbitals/transforms.d.ts +0 -1
  88. package/lib/extensions/alpha-orbitals/transforms.js +1 -14
  89. package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
  90. package/lib/extensions/model-archive/quality-assessment/behavior.js +233 -0
  91. package/lib/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
  92. package/lib/extensions/model-archive/quality-assessment/color/plddt.js +120 -0
  93. package/lib/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
  94. package/lib/extensions/model-archive/quality-assessment/color/qmean.js +106 -0
  95. package/lib/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
  96. package/lib/extensions/model-archive/quality-assessment/prop.js +127 -0
  97. package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
  98. package/lib/extensions/rcsb/assembly-symmetry/prop.js +1 -1
  99. package/lib/extensions/rcsb/validation-report/prop.js +1 -1
  100. package/lib/mol-canvas3d/canvas3d.js +7 -1
  101. package/lib/mol-canvas3d/passes/multi-sample.d.ts +2 -1
  102. package/lib/mol-canvas3d/passes/multi-sample.js +4 -2
  103. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  104. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
  105. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  106. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  107. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  108. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
  109. package/lib/mol-io/reader/cif/schema/mmcif.js +326 -1
  110. package/lib/mol-math/geometry/symmetry-operator.js +3 -2
  111. package/lib/mol-model/structure/model/model.d.ts +1 -0
  112. package/lib/mol-model/structure/model/model.js +8 -2
  113. package/lib/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
  114. package/lib/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
  115. package/lib/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
  116. package/lib/mol-model/structure/model/properties/utils/atomic-derived.js +5 -2
  117. package/lib/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
  118. package/lib/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
  119. package/lib/mol-model/structure/model/types.js +9 -0
  120. package/lib/mol-model/structure/structure/unit/rings.js +2 -0
  121. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  122. package/lib/mol-plugin/config.d.ts +1 -0
  123. package/lib/mol-plugin/config.js +1 -0
  124. package/lib/mol-plugin/version.js +2 -2
  125. package/lib/mol-plugin-state/actions/structure.d.ts +7 -1
  126. package/lib/mol-plugin-state/actions/structure.js +150 -72
  127. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
  128. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.js +14 -9
  129. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
  130. package/lib/mol-plugin-state/helpers/structure-selection-query.js +34 -20
  131. package/lib/mol-plugin-state/manager/structure/component.js +2 -2
  132. package/lib/mol-plugin-ui/index.d.ts +4 -4
  133. package/lib/mol-plugin-ui/index.js +11 -13
  134. package/lib/mol-plugin-ui/plugin.js +1 -1
  135. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  136. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  137. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  138. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  139. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  140. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  141. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
  142. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  143. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  144. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  145. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  146. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  147. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  148. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  149. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  150. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  151. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  152. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  153. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  154. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  155. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  156. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  157. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  158. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  159. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  160. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  161. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  162. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  163. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
  164. package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
  165. package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
  166. package/lib/mol-repr/structure/visual/util/bond.js +1 -1
  167. package/lib/mol-script/language/builder.d.ts +0 -1
  168. package/package.json +162 -162
@@ -24,7 +24,7 @@ export { PLUGIN_VERSION as version } from '../../mol-plugin/version';
24
24
  export { setDebugMode, setProductionMode } from '../../mol-util/debug';
25
25
  declare const DefaultViewerOptions: {
26
26
  customFormats: [string, DataFormatProvider<any, any, any>][];
27
- extensions: ("cellpack" | "g3d" | "geo-export" | "mp4-export" | "pdbe-structure-quality-report" | "dnatco-confal-pyramids" | "rcsb-assembly-symmetry" | "rcsb-validation-report" | "anvil-membrane-orientation")[];
27
+ extensions: ("cellpack" | "g3d" | "geo-export" | "mp4-export" | "pdbe-structure-quality-report" | "dnatco-confal-pyramids" | "rcsb-assembly-symmetry" | "rcsb-validation-report" | "anvil-membrane-orientation" | "ma-quality-assessment")[];
28
28
  layoutIsExpanded: boolean;
29
29
  layoutShowControls: boolean;
30
30
  layoutShowRemoteState: boolean;
@@ -53,7 +53,8 @@ declare const DefaultViewerOptions: {
53
53
  declare type ViewerOptions = typeof DefaultViewerOptions;
54
54
  export declare class Viewer {
55
55
  plugin: PluginUIContext;
56
- constructor(elementOrId: string | HTMLElement, options?: Partial<ViewerOptions>);
56
+ constructor(plugin: PluginUIContext);
57
+ static create(elementOrId: string | HTMLElement, options?: Partial<ViewerOptions>): Promise<Viewer>;
57
58
  setRemoteSnapshot(id: string): Promise<void>;
58
59
  loadSnapshotFromUrl(url: string, type: PluginState.SnapshotType): Promise<void>;
59
60
  loadStructureFromUrl(url: string, format?: BuiltInTrajectoryFormat, isBinary?: boolean, options?: LoadStructureOptions): Promise<void>;
@@ -66,6 +67,8 @@ export declare class Viewer {
66
67
  loadEmdb(emdb: string, options?: {
67
68
  detail?: number;
68
69
  }): Promise<void>;
70
+ loadAlphaFoldDb(afdb: string): Promise<void>;
71
+ loadModelArchive(id: string): Promise<void>;
69
72
  /**
70
73
  * @example Load X-ray density from volume server
71
74
  viewer.loadVolumeFromUrl({
@@ -130,77 +133,7 @@ export declare class Viewer {
130
133
  unitcell: StateObjectSelector<PluginStateObject.Shape.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
131
134
  structure: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
132
135
  structureProperties: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
133
- representation: {} | {
134
- components?: undefined;
135
- representations?: undefined;
136
- } | {
137
- components: {
138
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
139
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
140
- };
141
- representations: {
142
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
143
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
144
- };
145
- } | {
146
- components?: undefined;
147
- representations?: undefined;
148
- } | {
149
- components: {
150
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
151
- };
152
- representations: {
153
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
154
- };
155
- } | {
156
- components?: undefined;
157
- representations?: undefined;
158
- } | {
159
- components: {
160
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
161
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
162
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
163
- branched: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
164
- water: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
165
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
166
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
167
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
168
- };
169
- representations: {
170
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
171
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
172
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
173
- branchedBallAndStick: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
174
- branchedSnfg3d: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
175
- water: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
176
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
177
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
178
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
179
- };
180
- } | {
181
- components?: undefined;
182
- representations?: undefined;
183
- } | {
184
- components: {
185
- all: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
186
- branched: undefined;
187
- };
188
- representations: {
189
- all: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
190
- };
191
- } | {
192
- components?: undefined;
193
- representations?: undefined;
194
- } | {
195
- components: {
196
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
197
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
198
- };
199
- representations: {
200
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
201
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
202
- };
203
- } | undefined;
136
+ representation: any;
204
137
  } | {
205
138
  models?: undefined;
206
139
  structures?: undefined;
@@ -213,154 +146,14 @@ export declare class Viewer {
213
146
  unitcell: StateObjectSelector<PluginStateObject.Shape.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
214
147
  structure: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
215
148
  structureProperties: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
216
- representation: {} | {
217
- components?: undefined;
218
- representations?: undefined;
219
- } | {
220
- components: {
221
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
222
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
223
- };
224
- representations: {
225
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
226
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
227
- };
228
- } | {
229
- components?: undefined;
230
- representations?: undefined;
231
- } | {
232
- components: {
233
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
234
- };
235
- representations: {
236
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
237
- };
238
- } | {
239
- components?: undefined;
240
- representations?: undefined;
241
- } | {
242
- components: {
243
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
244
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
245
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
246
- branched: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
247
- water: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
248
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
249
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
250
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
251
- };
252
- representations: {
253
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
254
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
255
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
256
- branchedBallAndStick: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
257
- branchedSnfg3d: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
258
- water: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
259
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
260
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
261
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
262
- };
263
- } | {
264
- components?: undefined;
265
- representations?: undefined;
266
- } | {
267
- components: {
268
- all: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
269
- branched: undefined;
270
- };
271
- representations: {
272
- all: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
273
- };
274
- } | {
275
- components?: undefined;
276
- representations?: undefined;
277
- } | {
278
- components: {
279
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
280
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
281
- };
282
- representations: {
283
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
284
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
285
- };
286
- } | undefined;
149
+ representation: any;
287
150
  } | {
288
151
  model: StateObjectSelector<PluginStateObject.Molecule.Model, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
289
152
  modelProperties: StateObjectSelector<PluginStateObject.Molecule.Model, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
290
153
  unitcell: StateObjectSelector<PluginStateObject.Shape.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
291
154
  structure: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
292
155
  structureProperties: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
293
- representation: {} | {
294
- components?: undefined;
295
- representations?: undefined;
296
- } | {
297
- components: {
298
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
299
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
300
- };
301
- representations: {
302
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
303
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
304
- };
305
- } | {
306
- components?: undefined;
307
- representations?: undefined;
308
- } | {
309
- components: {
310
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
311
- };
312
- representations: {
313
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
314
- };
315
- } | {
316
- components?: undefined;
317
- representations?: undefined;
318
- } | {
319
- components: {
320
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
321
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
322
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
323
- branched: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
324
- water: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
325
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
326
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
327
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
328
- };
329
- representations: {
330
- polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
331
- ligand: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
332
- nonStandard: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
333
- branchedBallAndStick: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
334
- branchedSnfg3d: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
335
- water: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
336
- ion: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
337
- lipid: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
338
- coarse: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
339
- };
340
- } | {
341
- components?: undefined;
342
- representations?: undefined;
343
- } | {
344
- components: {
345
- all: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
346
- branched: undefined;
347
- };
348
- representations: {
349
- all: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
350
- };
351
- } | {
352
- components?: undefined;
353
- representations?: undefined;
354
- } | {
355
- components: {
356
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
357
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
358
- };
359
- representations: {
360
- protein: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
361
- nucleic: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
362
- };
363
- } | undefined;
156
+ representation: any;
364
157
  } | undefined;
365
158
  }>;
366
159
  handleResize(): void;
@@ -409,3 +202,31 @@ export interface LoadTrajectoryParams {
409
202
  coordinatesLabel?: string;
410
203
  preset?: keyof PresetTrajectoryHierarchy;
411
204
  }
205
+ export declare const ViewerAutoPreset: StructureRepresentationPresetProvider<{
206
+ ignoreHydrogens: boolean | undefined;
207
+ quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
208
+ theme: import("../../mol-util/param-definition").ParamDefinition.Normalize<{
209
+ globalName: any;
210
+ carbonColor: any;
211
+ symmetryColor: any;
212
+ focus: any;
213
+ }> | undefined;
214
+ }, {
215
+ components?: undefined;
216
+ representations?: undefined;
217
+ } | {
218
+ components: {
219
+ polymer: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
220
+ };
221
+ representations: {
222
+ polymer: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
223
+ };
224
+ } | {
225
+ components: {
226
+ all: StateObjectSelector<PluginStateObject.Molecule.Structure, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
227
+ branched: undefined;
228
+ };
229
+ representations: {
230
+ all: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>;
231
+ };
232
+ }>;
@@ -6,18 +6,22 @@
6
6
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Viewer = exports.setProductionMode = exports.setDebugMode = exports.version = void 0;
9
+ exports.ViewerAutoPreset = exports.Viewer = exports.setProductionMode = exports.setDebugMode = exports.version = void 0;
10
10
  var tslib_1 = require("tslib");
11
11
  var behavior_1 = require("../../extensions/anvil/behavior");
12
12
  var cellpack_1 = require("../../extensions/cellpack");
13
13
  var dnatco_1 = require("../../extensions/dnatco");
14
14
  var format_1 = require("../../extensions/g3d/format");
15
15
  var geo_export_1 = require("../../extensions/geo-export");
16
+ var behavior_2 = require("../../extensions/model-archive/quality-assessment/behavior");
17
+ var behavior_3 = require("../../extensions/model-archive/quality-assessment/behavior");
18
+ var prop_1 = require("../../extensions/model-archive/quality-assessment/prop");
16
19
  var mp4_export_1 = require("../../extensions/mp4-export");
17
20
  var pdbe_1 = require("../../extensions/pdbe");
18
21
  var rcsb_1 = require("../../extensions/rcsb");
19
22
  var structure_1 = require("../../mol-plugin-state/actions/structure");
20
23
  var volume_1 = require("../../mol-plugin-state/actions/volume");
24
+ var representation_preset_1 = require("../../mol-plugin-state/builder/structure/representation-preset");
21
25
  var volume_representation_params_1 = require("../../mol-plugin-state/helpers/volume-representation-params");
22
26
  var transforms_1 = require("../../mol-plugin-state/transforms");
23
27
  var model_1 = require("../../mol-plugin-state/transforms/model");
@@ -26,6 +30,7 @@ var spec_1 = require("../../mol-plugin-ui/spec");
26
30
  var commands_1 = require("../../mol-plugin/commands");
27
31
  var config_1 = require("../../mol-plugin/config");
28
32
  var spec_2 = require("../../mol-plugin/spec");
33
+ var mol_state_1 = require("../../mol-state");
29
34
  var assets_1 = require("../../mol-util/assets");
30
35
  require("../../mol-util/polyfill");
31
36
  var type_helpers_1 = require("../../mol-util/type-helpers");
@@ -50,7 +55,8 @@ var Extensions = {
50
55
  'anvil-membrane-orientation': spec_2.PluginSpec.Behavior(behavior_1.ANVILMembraneOrientation),
51
56
  'g3d': spec_2.PluginSpec.Behavior(format_1.G3DFormat),
52
57
  'mp4-export': spec_2.PluginSpec.Behavior(mp4_export_1.Mp4Export),
53
- 'geo-export': spec_2.PluginSpec.Behavior(geo_export_1.GeometryExport)
58
+ 'geo-export': spec_2.PluginSpec.Behavior(geo_export_1.GeometryExport),
59
+ 'ma-quality-assessment': spec_2.PluginSpec.Behavior(behavior_2.MAQualityAssessment),
54
60
  };
55
61
  var DefaultViewerOptions = {
56
62
  customFormats: CustomFormats,
@@ -81,57 +87,78 @@ var DefaultViewerOptions = {
81
87
  emdbProvider: config_1.PluginConfig.Download.DefaultEmdbProvider.defaultValue,
82
88
  };
83
89
  var Viewer = /** @class */ (function () {
84
- function Viewer(elementOrId, options) {
85
- if (options === void 0) { options = {}; }
86
- var _a;
87
- var o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, DefaultViewerOptions), options);
88
- var defaultSpec = (0, spec_1.DefaultPluginUISpec)();
89
- var spec = {
90
- actions: defaultSpec.actions,
91
- behaviors: (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], defaultSpec.behaviors, true), o.extensions.map(function (e) { return Extensions[e]; }), true),
92
- animations: (0, tslib_1.__spreadArray)([], defaultSpec.animations || [], true),
93
- customParamEditors: defaultSpec.customParamEditors,
94
- customFormats: o === null || o === void 0 ? void 0 : o.customFormats,
95
- layout: {
96
- initial: {
97
- isExpanded: o.layoutIsExpanded,
98
- showControls: o.layoutShowControls,
99
- controlsDisplay: o.layoutControlsDisplay,
100
- regionState: {
101
- bottom: 'full',
102
- left: o.collapseLeftPanel ? 'collapsed' : 'full',
103
- right: o.collapseRightPanel ? 'hidden' : 'full',
104
- top: 'full',
105
- }
106
- },
107
- },
108
- components: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, defaultSpec.components), { controls: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (_a = defaultSpec.components) === null || _a === void 0 ? void 0 : _a.controls), { top: o.layoutShowSequence ? undefined : 'none', bottom: o.layoutShowLog ? undefined : 'none', left: o.layoutShowLeftPanel ? undefined : 'none' }), remoteState: o.layoutShowRemoteState ? 'default' : 'none' }),
109
- config: [
110
- [config_1.PluginConfig.General.DisableAntialiasing, o.disableAntialiasing],
111
- [config_1.PluginConfig.General.PixelScale, o.pixelScale],
112
- [config_1.PluginConfig.General.PickScale, o.pickScale],
113
- [config_1.PluginConfig.General.PickPadding, o.pickPadding],
114
- [config_1.PluginConfig.General.EnableWboit, o.enableWboit],
115
- [config_1.PluginConfig.Viewport.ShowExpand, o.viewportShowExpand],
116
- [config_1.PluginConfig.Viewport.ShowControls, o.viewportShowControls],
117
- [config_1.PluginConfig.Viewport.ShowSettings, o.viewportShowSettings],
118
- [config_1.PluginConfig.Viewport.ShowSelectionMode, o.viewportShowSelectionMode],
119
- [config_1.PluginConfig.Viewport.ShowAnimation, o.viewportShowAnimation],
120
- [config_1.PluginConfig.State.DefaultServer, o.pluginStateServer],
121
- [config_1.PluginConfig.State.CurrentServer, o.pluginStateServer],
122
- [config_1.PluginConfig.VolumeStreaming.DefaultServer, o.volumeStreamingServer],
123
- [config_1.PluginConfig.VolumeStreaming.Enabled, !o.volumeStreamingDisabled],
124
- [config_1.PluginConfig.Download.DefaultPdbProvider, o.pdbProvider],
125
- [config_1.PluginConfig.Download.DefaultEmdbProvider, o.emdbProvider]
126
- ]
127
- };
128
- var element = typeof elementOrId === 'string'
129
- ? document.getElementById(elementOrId)
130
- : elementOrId;
131
- if (!element)
132
- throw new Error("Could not get element with id '".concat(elementOrId, "'"));
133
- this.plugin = (0, mol_plugin_ui_1.createPlugin)(element, spec);
90
+ function Viewer(plugin) {
91
+ this.plugin = plugin;
134
92
  }
93
+ Viewer.create = function (elementOrId, options) {
94
+ var _a;
95
+ if (options === void 0) { options = {}; }
96
+ return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
97
+ var o, defaultSpec, spec, element, plugin;
98
+ return (0, tslib_1.__generator)(this, function (_b) {
99
+ switch (_b.label) {
100
+ case 0:
101
+ o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, DefaultViewerOptions), options);
102
+ defaultSpec = (0, spec_1.DefaultPluginUISpec)();
103
+ spec = {
104
+ actions: defaultSpec.actions,
105
+ behaviors: (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], defaultSpec.behaviors, true), o.extensions.map(function (e) { return Extensions[e]; }), true),
106
+ animations: (0, tslib_1.__spreadArray)([], defaultSpec.animations || [], true),
107
+ customParamEditors: defaultSpec.customParamEditors,
108
+ customFormats: o === null || o === void 0 ? void 0 : o.customFormats,
109
+ layout: {
110
+ initial: {
111
+ isExpanded: o.layoutIsExpanded,
112
+ showControls: o.layoutShowControls,
113
+ controlsDisplay: o.layoutControlsDisplay,
114
+ regionState: {
115
+ bottom: 'full',
116
+ left: o.collapseLeftPanel ? 'collapsed' : 'full',
117
+ right: o.collapseRightPanel ? 'hidden' : 'full',
118
+ top: 'full',
119
+ }
120
+ },
121
+ },
122
+ components: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, defaultSpec.components), { controls: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (_a = defaultSpec.components) === null || _a === void 0 ? void 0 : _a.controls), { top: o.layoutShowSequence ? undefined : 'none', bottom: o.layoutShowLog ? undefined : 'none', left: o.layoutShowLeftPanel ? undefined : 'none' }), remoteState: o.layoutShowRemoteState ? 'default' : 'none' }),
123
+ config: [
124
+ [config_1.PluginConfig.General.DisableAntialiasing, o.disableAntialiasing],
125
+ [config_1.PluginConfig.General.PixelScale, o.pixelScale],
126
+ [config_1.PluginConfig.General.PickScale, o.pickScale],
127
+ [config_1.PluginConfig.General.PickPadding, o.pickPadding],
128
+ [config_1.PluginConfig.General.EnableWboit, o.enableWboit],
129
+ [config_1.PluginConfig.Viewport.ShowExpand, o.viewportShowExpand],
130
+ [config_1.PluginConfig.Viewport.ShowControls, o.viewportShowControls],
131
+ [config_1.PluginConfig.Viewport.ShowSettings, o.viewportShowSettings],
132
+ [config_1.PluginConfig.Viewport.ShowSelectionMode, o.viewportShowSelectionMode],
133
+ [config_1.PluginConfig.Viewport.ShowAnimation, o.viewportShowAnimation],
134
+ [config_1.PluginConfig.State.DefaultServer, o.pluginStateServer],
135
+ [config_1.PluginConfig.State.CurrentServer, o.pluginStateServer],
136
+ [config_1.PluginConfig.VolumeStreaming.DefaultServer, o.volumeStreamingServer],
137
+ [config_1.PluginConfig.VolumeStreaming.Enabled, !o.volumeStreamingDisabled],
138
+ [config_1.PluginConfig.Download.DefaultPdbProvider, o.pdbProvider],
139
+ [config_1.PluginConfig.Download.DefaultEmdbProvider, o.emdbProvider],
140
+ [config_1.PluginConfig.Structure.DefaultRepresentationPreset, exports.ViewerAutoPreset.id],
141
+ ]
142
+ };
143
+ element = typeof elementOrId === 'string'
144
+ ? document.getElementById(elementOrId)
145
+ : elementOrId;
146
+ if (!element)
147
+ throw new Error("Could not get element with id '".concat(elementOrId, "'"));
148
+ return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(element, spec, {
149
+ onBeforeUIRender: function (plugin) {
150
+ // the preset needs to be added before the UI renders otherwise
151
+ // "Download Structure" wont be able to pick it up
152
+ plugin.builders.structure.representation.registerPreset(exports.ViewerAutoPreset);
153
+ }
154
+ })];
155
+ case 1:
156
+ plugin = _b.sent();
157
+ return [2 /*return*/, new Viewer(plugin)];
158
+ }
159
+ });
160
+ });
161
+ };
135
162
  Viewer.prototype.setRemoteSnapshot = function (id) {
136
163
  var url = "".concat(this.plugin.config.get(config_1.PluginConfig.State.CurrentServer), "/get/").concat(id);
137
164
  return commands_1.PluginCommands.State.Snapshots.Fetch(this.plugin, { url: url });
@@ -247,6 +274,30 @@ var Viewer = /** @class */ (function () {
247
274
  }
248
275
  }));
249
276
  };
277
+ Viewer.prototype.loadAlphaFoldDb = function (afdb) {
278
+ var params = structure_1.DownloadStructure.createDefaultParams(this.plugin.state.data.root.obj, this.plugin);
279
+ return this.plugin.runTask(this.plugin.state.data.applyAction(structure_1.DownloadStructure, {
280
+ source: {
281
+ name: 'alphafolddb',
282
+ params: {
283
+ id: afdb,
284
+ options: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, params.source.params.options), { representation: 'preset-structure-representation-ma-quality-assessment-plddt' }),
285
+ }
286
+ }
287
+ }));
288
+ };
289
+ Viewer.prototype.loadModelArchive = function (id) {
290
+ var params = structure_1.DownloadStructure.createDefaultParams(this.plugin.state.data.root.obj, this.plugin);
291
+ return this.plugin.runTask(this.plugin.state.data.applyAction(structure_1.DownloadStructure, {
292
+ source: {
293
+ name: 'modelarchive',
294
+ params: {
295
+ id: id,
296
+ options: params.source.params.options,
297
+ }
298
+ }
299
+ }));
300
+ };
250
301
  /**
251
302
  * @example Load X-ray density from volume server
252
303
  viewer.loadVolumeFromUrl({
@@ -433,4 +484,40 @@ var Viewer = /** @class */ (function () {
433
484
  return Viewer;
434
485
  }());
435
486
  exports.Viewer = Viewer;
487
+ exports.ViewerAutoPreset = (0, representation_preset_1.StructureRepresentationPresetProvider)({
488
+ id: 'preset-structure-representation-viewer-auto',
489
+ display: {
490
+ name: 'Automatic (w/ Annotation)', group: 'Annotation',
491
+ description: 'Show standard automatic representation but colored by quality assessment (if available in the model).'
492
+ },
493
+ isApplicable: function (a) {
494
+ return (!!a.data.models.some(function (m) { return prop_1.QualityAssessment.isApplicable(m, 'pLDDT'); }) ||
495
+ !!a.data.models.some(function (m) { return prop_1.QualityAssessment.isApplicable(m, 'qmean'); }));
496
+ },
497
+ params: function () { return representation_preset_1.StructureRepresentationPresetProvider.CommonParams; },
498
+ apply: function (ref, params, plugin) {
499
+ var _a;
500
+ return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
501
+ var structureCell, structure;
502
+ return (0, tslib_1.__generator)(this, function (_b) {
503
+ switch (_b.label) {
504
+ case 0:
505
+ structureCell = mol_state_1.StateObjectRef.resolveAndCheck(plugin.state.data, ref);
506
+ structure = (_a = structureCell === null || structureCell === void 0 ? void 0 : structureCell.obj) === null || _a === void 0 ? void 0 : _a.data;
507
+ if (!structureCell || !structure)
508
+ return [2 /*return*/, {}];
509
+ if (!!!structure.models.some(function (m) { return prop_1.QualityAssessment.isApplicable(m, 'pLDDT'); })) return [3 /*break*/, 2];
510
+ return [4 /*yield*/, behavior_3.QualityAssessmentPLDDTPreset.apply(ref, params, plugin)];
511
+ case 1: return [2 /*return*/, _b.sent()];
512
+ case 2:
513
+ if (!!!structure.models.some(function (m) { return prop_1.QualityAssessment.isApplicable(m, 'qmean'); })) return [3 /*break*/, 4];
514
+ return [4 /*yield*/, behavior_3.QualityAssessmentQmeanPreset.apply(ref, params, plugin)];
515
+ case 3: return [2 /*return*/, _b.sent()];
516
+ case 4: return [4 /*yield*/, representation_preset_1.PresetStructureRepresentations.auto.apply(ref, params, plugin)];
517
+ case 5: return [2 /*return*/, _b.sent()];
518
+ }
519
+ });
520
+ });
521
+ }
522
+ });
436
523
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Copyright (c) 2017-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */