@chemistry/space-groups 2.9.0 → 3.0.2
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/README.md +8 -5
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/space-group-data.d.ts +1 -0
- package/dist/space-group-data.d.ts.map +1 -0
- package/dist/space-group-data.js +10533 -0
- package/dist/space-group-data.js.map +1 -0
- package/dist/space-group.d.ts +17 -16
- package/dist/space-group.d.ts.map +1 -0
- package/dist/space-group.js +142 -0
- package/dist/space-group.js.map +1 -0
- package/dist/space-groups.d.ts +3 -0
- package/dist/space-groups.d.ts.map +1 -0
- package/dist/space-groups.js +2 -1
- package/dist/space-groups.js.map +1 -1
- package/package.json +48 -37
- package/LICENSE.md +0 -22
- package/package-lock.json +0 -5
package/README.md
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
# @chemistry/space-groups
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/%40chemistry%2Fspace-groups)
|
|
4
|
-
[](https://travis-ci.org/chemistry/chemical-libraries)
|
|
5
|
-
[](https://codecov.io/gh/chemistry/chemical-libraries)
|
|
6
4
|
[](https://opensource.org/licenses/MIT)
|
|
7
5
|
|
|
8
6
|
Crystallography: Space Groups Dictionary
|
|
9
7
|
|
|
10
8
|
## Install
|
|
9
|
+
|
|
11
10
|
```bash
|
|
12
11
|
npm install @chemistry/space-groups
|
|
13
12
|
```
|
|
14
13
|
|
|
15
14
|
## Getting started:
|
|
15
|
+
|
|
16
16
|
### SpaceGroupData
|
|
17
|
+
|
|
17
18
|
```javascript
|
|
18
|
-
import { SpaceGroupData }
|
|
19
|
+
import { SpaceGroupData } from '@chemistry/space-groups';
|
|
19
20
|
/*
|
|
20
21
|
id: Space Group number
|
|
21
22
|
hm: Hermann Mauguin Symbol
|
|
@@ -27,10 +28,11 @@ const sg = SpaceGroupData[2];
|
|
|
27
28
|
// -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
|
|
28
29
|
console.log(sg);
|
|
29
30
|
```
|
|
31
|
+
|
|
30
32
|
### SpaceGroup
|
|
31
33
|
|
|
32
34
|
```javascript
|
|
33
|
-
import { SpaceGroup }
|
|
35
|
+
import { SpaceGroup } from '@chemistry/space-groups';
|
|
34
36
|
|
|
35
37
|
const sg = SpaceGroup.getByHMName('P -1');
|
|
36
38
|
|
|
@@ -41,4 +43,5 @@ console.log(SpaceGroup.getCrystalSystem(sg));
|
|
|
41
43
|
```
|
|
42
44
|
|
|
43
45
|
## Commands:
|
|
44
|
-
|
|
46
|
+
|
|
47
|
+
- Build project: `npm run build`
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './space-group.js';
|
|
2
|
+
export * from './space-group-data.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space-group-data.d.ts","sourceRoot":"","sources":["../src/space-group-data.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,EAAE,CAAC;CACb;AACD,eAAO,MAAM,eAAe,EAAE,cAAc,EAmyU3C,CAAC"}
|