-
Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathngl.ts
321 lines (280 loc) · 10.7 KB
/
ngl.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
/**
* @file ngl
* @private
* @author Alexander Rose <[email protected]>
*/
/**
* The NGL module. These members are available in the `NGL` namespace when using the {@link https://github.com/umdjs/umd|UMD} build in the `ngl.js` file.
* @module NGL
*/
export {
Debug, setDebug,
MeasurementDefaultParams, setMeasurementDefaultParams,
ScriptExtensions, ColormakerRegistry,
DatasourceRegistry, DecompressorRegistry,
ParserRegistry, RepresentationRegistry,
setListingDatasource, setTrajectoryDatasource,
ListingDatasource, TrajectoryDatasource
} from './globals'
export { autoLoad, getDataInfo, getFileInfo } from './loader/loader-utils'
import Selection from './selection/selection'
import PdbWriter from './writer/pdb-writer'
import SdfWriter from './writer/sdf-writer'
import StlWriter from './writer/stl-writer'
import Stage from './stage/stage'
import Viewer from './viewer/viewer'
import Collection from './component/collection'
import ComponentCollection from './component/component-collection'
import Component from './component/component'
import ShapeComponent from './component/shape-component'
import StructureComponent, {StructureRepresentationType} from './component/structure-component'
import SurfaceComponent from './component/surface-component'
import VolumeComponent, {VolumeRepresentationType} from './component/volume-component'
import RepresentationCollection from './component/representation-collection'
import RepresentationElement from './component/representation-element'
import Assembly from './symmetry/assembly'
import TrajectoryPlayer from './trajectory/trajectory-player'
import Superposition from './align/superposition'
export { superpose } from './align/align-utils'
export { guessElement, concatStructures } from './structure/structure-utils'
export { flatten, throttle, download, getQuery, uniqueArray } from './utils'
import Queue from './utils/queue'
import Counter from './utils/counter'
import Frames from './trajectory/frames'
//
import Colormaker from './color/colormaker'
import './color/atomindex-colormaker'
import './color/bfactor-colormaker'
import './color/chainid-colormaker'
import './color/chainindex-colormaker'
import './color/chainname-colormaker'
import './color/densityfit-colormaker'
import './color/electrostatic-colormaker'
import './color/element-colormaker'
import './color/entityindex-colormaker'
import './color/entitytype-colormaker'
import './color/geoquality-colormaker'
import './color/hydrophobicity-colormaker'
import './color/modelindex-colormaker'
import './color/moleculetype-colormaker'
import './color/occupancy-colormaker'
import './color/partialcharge-colormaker'
import './color/random-colormaker'
import './color/randomcoilindex-colormaker'
import './color/residueindex-colormaker'
import './color/resname-colormaker'
import './color/sstruc-colormaker'
import './color/structuredata-colormaker'
import './color/uniform-colormaker'
import './color/value-colormaker'
import './color/volume-colormaker'
//
import './component/shape-component'
import './component/structure-component'
import './component/surface-component'
import './component/volume-component'
//
import AngleRepresentation, {AngleRepresentationParameters} from './representation/angle-representation'
import AxesRepresentation, {AxesRepresentationParameters} from './representation/axes-representation'
import BackboneRepresentation from './representation/backbone-representation'
import BallAndStickRepresentation, {BallAndStickRepresentationParameters} from './representation/ballandstick-representation'
import BaseRepresentation from './representation/base-representation'
import CartoonRepresentation, {CartoonRepresentationParameters} from './representation/cartoon-representation'
import ContactRepresentation, {ContactRepresentationParameters} from './representation/contact-representation'
import DihedralRepresentation, {DihedralRepresentationParameters} from './representation/dihedral-representation'
import DihedralHistogramRepresentation, {DihedralHistogramRepresentationParameters} from './representation/dihedral-histogram-representation'
import DistanceRepresentation, {DistanceRepresentationParameters} from './representation/distance-representation'
import HelixorientRepresentation from './representation/helixorient-representation'
import HyperballRepresentation, {HyperballRepresentationParameters} from './representation/hyperball-representation'
import LabelRepresentation, {LabelRepresentationParameters} from './representation/label-representation'
import LicoriceRepresentation from './representation/licorice-representation'
import LineRepresentation, {LineRepresentationParameters} from './representation/line-representation'
import MolecularSurfaceRepresentation, {MolecularSurfaceRepresentationParameters} from './representation/molecularsurface-representation'
import PointRepresentation, {PointRepresentationParameters} from './representation/point-representation'
import RibbonRepresentation, {RibbonRepresentationParameters} from './representation/ribbon-representation'
import RocketRepresentation, {RocketRepresentationParameters} from './representation/rocket-representation'
import RopeRepresentation from './representation/rope-representation'
import SpacefillRepresentation from './representation/spacefill-representation'
import StructureRepresentation, {StructureRepresentationParameters} from './representation/structure-representation'
import TraceRepresentation, {TraceRepresentationParameters} from './representation/trace-representation'
import TubeRepresentation from './representation/tube-representation'
import UnitcellRepresentation, {UnitcellRepresentationParameters} from './representation/unitcell-representation'
import ValidationRepresentation from './representation/validation-representation'
import BufferRepresentation from './representation/buffer-representation'
import ArrowBuffer from './buffer/arrow-buffer'
import BoxBuffer from './buffer/box-buffer'
import ConeBuffer from './buffer/cone-buffer'
import CylinderBuffer from './buffer/cylinder-buffer'
import EllipsoidBuffer from './buffer/ellipsoid-buffer'
import MeshBuffer from './buffer/mesh-buffer'
import OctahedronBuffer from './buffer/octahedron-buffer'
import PointBuffer from './buffer/point-buffer'
import SphereBuffer from './buffer/sphere-buffer'
import TetrahedronBuffer from './buffer/tetrahedron-buffer'
import TextBuffer from './buffer/text-buffer'
import TorusBuffer from './buffer/torus-buffer'
import WidelineBuffer from './buffer/wideline-buffer'
//
import './parser/cif-parser'
import './parser/gro-parser'
import './parser/mmtf-parser'
import './parser/mol2-parser'
import './parser/pdb-parser'
import './parser/pdbqt-parser'
import './parser/pqr-parser'
import './parser/sdf-parser'
import './parser/prmtop-parser'
import './parser/psf-parser'
import './parser/top-parser'
import './parser/dcd-parser'
import './parser/nctraj-parser'
import './parser/trr-parser'
import './parser/xtc-parser'
import './parser/cube-parser'
import './parser/dsn6-parser'
import './parser/dx-parser'
import './parser/dxbin-parser'
import './parser/mrc-parser'
import './parser/xplor-parser'
import './parser/kin-parser'
import './parser/obj-parser'
import './parser/ply-parser'
import './parser/csv-parser'
import './parser/json-parser'
import './parser/msgpack-parser'
import './parser/netcdf-parser'
import './parser/text-parser'
import './parser/xml-parser'
import './parser/validation-parser'
//
import Shape from './geometry/shape'
import Kdtree from './geometry/kdtree'
import SpatialHash from './geometry/spatial-hash'
import Structure from './structure/structure'
import MolecularSurface from './surface/molecular-surface'
import Volume from './surface/volume'
//
import './utils/gzip-decompressor'
//
import './datasource/rcsb-datasource'
import './datasource/pdbe-datasource'
import './datasource/pubchem-datasource'
import './datasource/passthrough-datasource'
import './datasource/alphafold-datasource'
import StaticDatasource from './datasource/static-datasource'
import MdsrvDatasource from './datasource/mdsrv-datasource'
//
export {
LeftMouseButton, MiddleMouseButton, RightMouseButton
} from './constants'
export {MouseActionCallback} from './controls/mouse-actions'
import MouseActions from './controls/mouse-actions'
import KeyActions from './controls/key-actions'
import PickingProxy from './controls/picking-proxy'
//
export { Signal } from 'signals'
export {
Matrix3, Matrix4, Vector2, Vector3, Box3, Quaternion, Euler, Plane, Color
} from 'three'
//
export { UIStageParameters } from './ui/parameters'
export { StageParameters } from './stage/stage'
export { StructureComponentDefaultParameters } from './component/structure-component'
//
import Version from './version'
export {
Version,
StaticDatasource,
MdsrvDatasource,
Colormaker,
Selection,
PdbWriter,
SdfWriter,
StlWriter,
Stage,
Viewer,
Collection,
ComponentCollection,
RepresentationCollection,
RepresentationElement,
Component,
ShapeComponent,
StructureComponent,
SurfaceComponent,
VolumeComponent,
StructureRepresentationType,
VolumeRepresentationType,
Assembly,
TrajectoryPlayer,
Superposition,
Frames,
Queue,
Counter,
AngleRepresentation,
AngleRepresentationParameters,
AxesRepresentation,
AxesRepresentationParameters,
BackboneRepresentation,
BallAndStickRepresentation,
BallAndStickRepresentationParameters,
BaseRepresentation,
CartoonRepresentation,
CartoonRepresentationParameters,
ContactRepresentation,
ContactRepresentationParameters,
DihedralRepresentation,
DihedralRepresentationParameters,
DihedralHistogramRepresentation,
DihedralHistogramRepresentationParameters,
DistanceRepresentation,
DistanceRepresentationParameters,
HelixorientRepresentation,
HyperballRepresentation,
HyperballRepresentationParameters,
LabelRepresentation,
LabelRepresentationParameters,
LicoriceRepresentation,
LineRepresentation,
LineRepresentationParameters,
MolecularSurfaceRepresentation,
MolecularSurfaceRepresentationParameters,
PointRepresentation,
PointRepresentationParameters,
RibbonRepresentation,
RibbonRepresentationParameters,
RocketRepresentation,
RocketRepresentationParameters,
RopeRepresentation,
SpacefillRepresentation,
StructureRepresentation,
StructureRepresentationParameters,
TraceRepresentation,
TraceRepresentationParameters,
TubeRepresentation,
UnitcellRepresentation,
UnitcellRepresentationParameters,
ValidationRepresentation,
BufferRepresentation,
ArrowBuffer,
BoxBuffer,
ConeBuffer,
CylinderBuffer,
EllipsoidBuffer,
MeshBuffer,
OctahedronBuffer,
PointBuffer,
SphereBuffer,
TetrahedronBuffer,
TextBuffer,
TorusBuffer,
WidelineBuffer,
Shape,
Structure,
Kdtree,
SpatialHash,
MolecularSurface,
Volume,
MouseActions,
KeyActions,
PickingProxy
}