@mat3ra/made 2024.10.29-1 → 2024.11.1-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/dist/js/tools/surface.js
CHANGED
|
@@ -100,7 +100,7 @@ function getMillerScalingMatrix(cell, millerIndices, tol = 1e-8) {
|
|
|
100
100
|
* @return {Number[][]}
|
|
101
101
|
*/
|
|
102
102
|
function getDimensionsScalingMatrix(bulkCell, surfaceCell, outOfPlaneAxisIndex, thickness, vx, vy) {
|
|
103
|
-
const transformationMatrix = math_1.default.
|
|
103
|
+
const transformationMatrix = math_1.default.identity(3).toArray();
|
|
104
104
|
const vxIndex = outOfPlaneAxisIndex === 2 ? 0 : outOfPlaneAxisIndex + 1;
|
|
105
105
|
const vyIndex = vxIndex === 2 ? 0 : vxIndex + 1;
|
|
106
106
|
transformationMatrix[outOfPlaneAxisIndex] = MULT(thickness, transformationMatrix[outOfPlaneAxisIndex]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/made",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.11.1-0",
|
|
4
4
|
"description": "MAterials DEsign library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint --cache src/js tests/js && prettier --write src/js tests/js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@babel/register": "^7.22.15",
|
|
34
34
|
"@babel/runtime-corejs3": "^7.16.8",
|
|
35
35
|
"@exabyte-io/eslint-config": "^2023.8.29-1",
|
|
36
|
-
"@mat3ra/code": "2024.
|
|
36
|
+
"@mat3ra/code": "2024.10.4-0",
|
|
37
37
|
"@mat3ra/esse": "2024.6.4-1",
|
|
38
38
|
"@mat3ra/tsconfig": "2024.6.3-0",
|
|
39
39
|
"@types/crypto-js": "^4.2.2",
|
package/src/js/tools/surface.js
CHANGED
|
@@ -107,7 +107,7 @@ function getMillerScalingMatrix(cell, millerIndices, tol = 1e-8) {
|
|
|
107
107
|
* @return {Number[][]}
|
|
108
108
|
*/
|
|
109
109
|
function getDimensionsScalingMatrix(bulkCell, surfaceCell, outOfPlaneAxisIndex, thickness, vx, vy) {
|
|
110
|
-
const transformationMatrix = math.
|
|
110
|
+
const transformationMatrix = math.identity(3).toArray();
|
|
111
111
|
const vxIndex = outOfPlaneAxisIndex === 2 ? 0 : outOfPlaneAxisIndex + 1;
|
|
112
112
|
const vyIndex = vxIndex === 2 ? 0 : vxIndex + 1;
|
|
113
113
|
|