bravais 0.1.1 → 0.1.3
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 +28 -4
- package/THIRD_PARTY_NOTICES.md +11 -3
- package/dist/bravais.js +665 -976
- package/dist/bravais.js.map +1 -1
- package/dist/moyo-wasm.js +367 -0
- package/dist/moyo-wasm.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/render/model.d.ts +7 -2
- package/dist/types/render/view-state.d.ts +1 -1
- package/dist/types/scene/build.d.ts +6 -1
- package/dist/types/structure/bonds.d.ts +2 -1
- package/dist/types/structure/fractional.d.ts +16 -0
- package/dist/types/symmetry/moyo-loader.d.ts +8 -0
- package/dist/types/symmetry/moyo-wasm.d.ts +3 -0
- package/dist/types/symmetry/moyo.d.ts +5 -4
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3 - 2026-10-19
|
|
4
|
+
|
|
5
|
+
- A layer at opacity 0 is no longer drawn but still frames the view, so a
|
|
6
|
+
viewer switching between two states of a structure keeps one centre and
|
|
7
|
+
scale.
|
|
8
|
+
- moyo is a separate file, `dist/moyo-wasm.js`, loaded the first time a
|
|
9
|
+
structure needs it, so `dist/bravais.js` shrinks from 1.1 MB to 87 kB. A
|
|
10
|
+
CIF with an operator loop never loads it.
|
|
11
|
+
- Large structures read, expand and bond in about linear time: a P1 cell of
|
|
12
|
+
27,000 atoms reads in 0.1 s instead of 5.6 s and expands in 0.03 s
|
|
13
|
+
instead of 12 s.
|
|
14
|
+
- Bonds are listed by `start`, then `end`.
|
|
15
|
+
- `latticeFromParameters` and `latticeFromVectors` are exported, to build a
|
|
16
|
+
structure from cell parameters or vectors.
|
|
17
|
+
- A thumbnail centres on its view's target when the target is not the
|
|
18
|
+
origin.
|
|
19
|
+
- If three.js drops or renames a shader include that bravais patches, drawing
|
|
20
|
+
fails with an error naming the include, instead of showing flat squares.
|
|
21
|
+
- `package.json` marks the package free of side effects and exports itself.
|
|
22
|
+
- The third-party notices credit three.js for the bundled TrackballControls
|
|
23
|
+
addon.
|
|
24
|
+
|
|
25
|
+
## 0.1.2 - 2026-10-16
|
|
26
|
+
|
|
27
|
+
- README revised.
|
|
28
|
+
|
|
3
29
|
## 0.1.1 - 2026-10-16
|
|
4
30
|
|
|
5
|
-
- The TrackballControls addon is bundled, so the module
|
|
6
|
-
|
|
7
|
-
Electron app packaged with electron-builder, which drops every dependency's
|
|
8
|
-
`examples` folder, no longer loses the addon.
|
|
31
|
+
- The TrackballControls addon is bundled, so the module's only bare import is
|
|
32
|
+
`three`.
|
|
9
33
|
|
|
10
34
|
## 0.1.0 - 2026-10-15
|
|
11
35
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
3
|
bravais is MIT licensed (see [LICENSE](LICENSE)). It ships material from the
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
four MIT-licensed projects below, bundled into `dist/`. Each is reproduced
|
|
5
|
+
with its copyright notice, and the MIT permission notice at the end applies
|
|
6
|
+
to all four.
|
|
7
|
+
|
|
8
|
+
## three.js
|
|
9
|
+
|
|
10
|
+
The TrackballControls addon of [three.js](https://github.com/mrdoob/three.js)
|
|
11
|
+
is bundled, used under its MIT licence. three.js itself is a peer dependency
|
|
12
|
+
and is not bundled.
|
|
13
|
+
|
|
14
|
+
Copyright © 2010-2026 three.js authors
|
|
7
15
|
|
|
8
16
|
## moyo
|
|
9
17
|
|