@chemistry/space-groups 2.7.0 → 3.0.1

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 CHANGED
@@ -1,44 +1,47 @@
1
- # @chemistry/space-groups
2
-
3
- [![npm version](https://badge.fury.io/js/%40chemistry%2Fspace-groups.svg)](https://badge.fury.io/js/%40chemistry%2Fspace-groups)
4
- [![Build Status](https://travis-ci.com/chemistry/chem-js-lib.svg?branch=master)](https://travis-ci.org/chemistry/chem-js-lib)
5
- [![codecov](https://codecov.io/gh/chemistry/chem-js-lib/branch/master/graph/badge.svg)](https://codecov.io/gh/chemistry/chem-js-lib)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
-
8
- Crystallography: Space Groups Dictionary
9
-
10
- ## Install
11
- ```bash
12
- npm install @chemistry/space-groups
13
- ```
14
-
15
- ## Getting started:
16
- ### SpaceGroupData
17
- ```javascript
18
- import { SpaceGroupData } from '@chemistry/space-groups';
19
- /*
20
- id: Space Group number
21
- hm: Hermann Mauguin Symbol
22
- hs: Hall Symbol
23
- o: Representative Operations
24
- s: Symetry List
25
- */
26
- const sg = SpaceGroupData[2];
27
- // -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
28
- console.log(sg);
29
- ```
30
- ### SpaceGroup
31
-
32
- ```javascript
33
- import { SpaceGroup } from '@chemistry/space-groups';
34
-
35
- const sg = SpaceGroup.getByHMName('P -1');
36
-
37
- console.log(sg);
38
- // -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
39
- console.log(SpaceGroup.getCrystalSystem(sg));
40
- // -> Triclinic
41
- ```
42
-
43
- ## Commands:
44
- * Build project: `npm run build`
1
+ # @chemistry/space-groups
2
+
3
+ [![npm version](https://badge.fury.io/js/%40chemistry%2Fspace-groups.svg)](https://badge.fury.io/js/%40chemistry%2Fspace-groups)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-gren.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ Crystallography: Space Groups Dictionary
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @chemistry/space-groups
12
+ ```
13
+
14
+ ## Getting started:
15
+
16
+ ### SpaceGroupData
17
+
18
+ ```javascript
19
+ import { SpaceGroupData } from '@chemistry/space-groups';
20
+ /*
21
+ id: Space Group number
22
+ hm: Hermann Mauguin Symbol
23
+ hs: Hall Symbol
24
+ o: Representative Operations
25
+ s: Symetry List
26
+ */
27
+ const sg = SpaceGroupData[2];
28
+ // -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
29
+ console.log(sg);
30
+ ```
31
+
32
+ ### SpaceGroup
33
+
34
+ ```javascript
35
+ import { SpaceGroup } from '@chemistry/space-groups';
36
+
37
+ const sg = SpaceGroup.getByHMName('P -1');
38
+
39
+ console.log(sg);
40
+ // -> {id: 2, hm: "P -1", hs: "-P 1", o: 1, s: ["x,y,z", "-x,-y,-z"]}
41
+ console.log(SpaceGroup.getCrystalSystem(sg));
42
+ // -> Triclinic
43
+ ```
44
+
45
+ ## Commands:
46
+
47
+ - Build project: `npm run build`
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from "./space-group";
2
- export * from "./space-group-data";
1
+ export * from './space-group';
2
+ export * from './space-group-data';
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,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './space-group';
2
+ export * from './space-group-data';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1,8 +1,9 @@
1
- export interface SpaceGroupInfo {
2
- id: number;
3
- hm: string;
4
- hs: string;
5
- o: number;
6
- s: string[];
7
- }
8
- export declare const SpaceGroupsData: SpaceGroupInfo[];
1
+ export interface SpaceGroupInfo {
2
+ id: number;
3
+ hm: string;
4
+ hs: string;
5
+ o: number;
6
+ s: string[];
7
+ }
8
+ export declare const SpaceGroupsData: SpaceGroupInfo[];
9
+ //# sourceMappingURL=space-group-data.d.ts.map
@@ -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"}