bravais 0.1.4 → 0.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/CHANGELOG.md +12 -0
- package/README.md +10 -1
- package/THIRD_PARTY_NOTICES.md +11 -3
- package/dist/bravais.js +558 -493
- package/dist/bravais.js.map +1 -1
- package/dist/types/render/model.d.ts +9 -0
- package/dist/types/render/viewer.d.ts +4 -2
- package/examples/CoO.cif +254 -0
- package/package.json +2 -1
|
@@ -22,3 +22,12 @@ export declare function cellCenter(cell: Mat3): Vec3;
|
|
|
22
22
|
* bounds and the span.
|
|
23
23
|
*/
|
|
24
24
|
export declare function createSceneModel(layers: SceneLayer[]): SceneModel;
|
|
25
|
+
/**
|
|
26
|
+
* A placeholder atom, bond and cell frame in every material a structure is
|
|
27
|
+
* drawn with, opaque and see-through, so their shaders can compile before
|
|
28
|
+
* the first structure arrives. It gives no element a colour.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createShaderWarmup(): {
|
|
31
|
+
group: Group;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
};
|
|
@@ -22,7 +22,7 @@ export interface Viewer {
|
|
|
22
22
|
resetView(): void;
|
|
23
23
|
/** Fit the canvas to the container again; the viewer does this itself when the container resizes. */
|
|
24
24
|
resize(): void;
|
|
25
|
-
/** Draw a frame now. */
|
|
25
|
+
/** Draw a frame now, or as soon as the shaders finish compiling. */
|
|
26
26
|
render(): void;
|
|
27
27
|
/** Call `listener` when the user rotates or zooms. Returns a function that removes it. */
|
|
28
28
|
onInteraction(listener: () => void): () => void;
|
|
@@ -32,6 +32,8 @@ export interface Viewer {
|
|
|
32
32
|
/**
|
|
33
33
|
* Create a viewer inside `container`. It fills the container and follows
|
|
34
34
|
* its size, so give the container a height. Adds the class `bravais-viewer`
|
|
35
|
-
* to the container and one small stylesheet to the page.
|
|
35
|
+
* to the container and one small stylesheet to the page. Its shaders start
|
|
36
|
+
* compiling in the background at once, and drawing waits until they are
|
|
37
|
+
* ready.
|
|
36
38
|
*/
|
|
37
39
|
export declare function createViewer(container: HTMLElement, options?: ViewerOptions): Viewer;
|
package/examples/CoO.cif
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
#------------------------------------------------------------------------------
|
|
2
|
+
#$Date: 2024-05-06 10:39:41 +0300 (Mon, 06 May 2024) $
|
|
3
|
+
#$Revision: 291735 $
|
|
4
|
+
#$URL: file:///home/coder/svn-repositories/_RELOADED_COD/cod-reloaded/cif/9/00/86/9008618.cif $
|
|
5
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
#
|
|
7
|
+
# This file is available in the Crystallography Open Database (COD),
|
|
8
|
+
# http://www.crystallography.net/. The original data for this entry
|
|
9
|
+
# were provided the American Mineralogist Crystal Structure Database,
|
|
10
|
+
# http://rruff.geo.arizona.edu/AMS/amcsd.php
|
|
11
|
+
#
|
|
12
|
+
# The file may be used within the scientific community so long as
|
|
13
|
+
# proper attribution is given to the journal article from which the
|
|
14
|
+
# data were obtained.
|
|
15
|
+
#
|
|
16
|
+
data_9008618
|
|
17
|
+
loop_
|
|
18
|
+
_publ_author_name
|
|
19
|
+
'Wyckoff, R. W. G.'
|
|
20
|
+
_publ_section_title
|
|
21
|
+
;
|
|
22
|
+
Second edition. Interscience Publishers, New York, New York
|
|
23
|
+
rocksalt structure
|
|
24
|
+
;
|
|
25
|
+
_journal_name_full 'Crystal Structures'
|
|
26
|
+
_journal_page_first 85
|
|
27
|
+
_journal_page_last 237
|
|
28
|
+
_journal_volume 1
|
|
29
|
+
_journal_year 1963
|
|
30
|
+
_chemical_formula_structural CoO
|
|
31
|
+
_chemical_formula_sum 'Co O'
|
|
32
|
+
_space_group_IT_number 225
|
|
33
|
+
_symmetry_space_group_name_Hall '-F 4 2 3'
|
|
34
|
+
_symmetry_space_group_name_H-M 'F m -3 m'
|
|
35
|
+
_cell_angle_alpha 90
|
|
36
|
+
_cell_angle_beta 90
|
|
37
|
+
_cell_angle_gamma 90
|
|
38
|
+
_cell_length_a 4.2667
|
|
39
|
+
_cell_length_b 4.2667
|
|
40
|
+
_cell_length_c 4.2667
|
|
41
|
+
_cell_formula_units_Z 4
|
|
42
|
+
_cell_volume 77.674
|
|
43
|
+
_database_code_amcsd 0011296
|
|
44
|
+
_exptl_crystal_density_diffrn 6.408
|
|
45
|
+
_cod_original_sg_symbol_H-M 'F m 3 m'
|
|
46
|
+
_cod_database_code 9008618
|
|
47
|
+
_amcsd_formula_title CoO
|
|
48
|
+
loop_
|
|
49
|
+
_space_group_symop_operation_xyz
|
|
50
|
+
x,y,z
|
|
51
|
+
x,1/2+y,1/2+z
|
|
52
|
+
1/2+x,y,1/2+z
|
|
53
|
+
1/2+x,1/2+y,z
|
|
54
|
+
z,-x,y
|
|
55
|
+
z,1/2-x,1/2+y
|
|
56
|
+
1/2+z,-x,1/2+y
|
|
57
|
+
1/2+z,1/2-x,y
|
|
58
|
+
-y,z,-x
|
|
59
|
+
-y,1/2+z,1/2-x
|
|
60
|
+
1/2-y,z,1/2-x
|
|
61
|
+
1/2-y,1/2+z,-x
|
|
62
|
+
x,-y,z
|
|
63
|
+
x,1/2-y,1/2+z
|
|
64
|
+
1/2+x,-y,1/2+z
|
|
65
|
+
1/2+x,1/2-y,z
|
|
66
|
+
-z,x,-y
|
|
67
|
+
-z,1/2+x,1/2-y
|
|
68
|
+
1/2-z,x,1/2-y
|
|
69
|
+
1/2-z,1/2+x,-y
|
|
70
|
+
y,-z,x
|
|
71
|
+
y,1/2-z,1/2+x
|
|
72
|
+
1/2+y,-z,1/2+x
|
|
73
|
+
1/2+y,1/2-z,x
|
|
74
|
+
-x,y,-z
|
|
75
|
+
-x,1/2+y,1/2-z
|
|
76
|
+
1/2-x,y,1/2-z
|
|
77
|
+
1/2-x,1/2+y,-z
|
|
78
|
+
x,-z,-y
|
|
79
|
+
x,1/2-z,1/2-y
|
|
80
|
+
1/2+x,-z,1/2-y
|
|
81
|
+
1/2+x,1/2-z,-y
|
|
82
|
+
-z,y,x
|
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,x
|
|
218
|
+
y,x,-z
|
|
219
|
+
y,1/2+x,1/2-z
|
|
220
|
+
1/2+y,x,1/2-z
|
|
221
|
+
1/2+y,1/2+x,-z
|
|
222
|
+
-z,-x,-y
|
|
223
|
+
-z,1/2-x,1/2-y
|
|
224
|
+
1/2-z,-x,1/2-y
|
|
225
|
+
1/2-z,1/2-x,-y
|
|
226
|
+
y,z,x
|
|
227
|
+
y,1/2+z,1/2+x
|
|
228
|
+
1/2+y,z,1/2+x
|
|
229
|
+
1/2+y,1/2+z,x
|
|
230
|
+
-x,-y,-z
|
|
231
|
+
-x,1/2-y,1/2-z
|
|
232
|
+
1/2-x,-y,1/2-z
|
|
233
|
+
1/2-x,1/2-y,-z
|
|
234
|
+
z,x,y
|
|
235
|
+
z,1/2+x,1/2+y
|
|
236
|
+
1/2+z,x,1/2+y
|
|
237
|
+
1/2+z,1/2+x,y
|
|
238
|
+
-y,-z,-x
|
|
239
|
+
-y,1/2-z,1/2-x
|
|
240
|
+
1/2-y,-z,1/2-x
|
|
241
|
+
1/2-y,1/2-z,-x
|
|
242
|
+
loop_
|
|
243
|
+
_atom_site_label
|
|
244
|
+
_atom_site_fract_x
|
|
245
|
+
_atom_site_fract_y
|
|
246
|
+
_atom_site_fract_z
|
|
247
|
+
Co 0.00000 0.00000 0.00000
|
|
248
|
+
O 0.50000 0.50000 0.50000
|
|
249
|
+
loop_
|
|
250
|
+
_cod_related_entry_id
|
|
251
|
+
_cod_related_entry_database
|
|
252
|
+
_cod_related_entry_code
|
|
253
|
+
1 ChemSpider 8117730
|
|
254
|
+
2 AMCSD 0011296
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bravais",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A minimal crystal structure viewer for the web: reads CIF files and draws them with three.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jiacheng Wang",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
|
+
"examples/CoO.cif",
|
|
39
40
|
"CHANGELOG.md",
|
|
40
41
|
"THIRD_PARTY_NOTICES.md"
|
|
41
42
|
],
|