@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 CHANGED
@@ -1,21 +1,22 @@
1
1
  # @chemistry/space-groups
2
2
 
3
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/chemical-libraries.svg?branch=master)](https://travis-ci.org/chemistry/chemical-libraries)
5
- [![codecov](https://codecov.io/gh/chemistry/chemical-libraries/branch/master/graph/badge.svg)](https://codecov.io/gh/chemistry/chemical-libraries)
6
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-gren.svg)](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 } from '@chemistry/space-groups';
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 } from '@chemistry/space-groups';
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
- * Build project: `npm run build`
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.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,3 @@
1
+ export * from './space-group.js';
2
+ export * from './space-group-data.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
@@ -6,3 +6,4 @@ export interface SpaceGroupInfo {
6
6
  s: string[];
7
7
  }
8
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"}