@mat3ra/made 2026.9.15-0 → 2026.11.2-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/basis/basis.js +1 -2
- package/package.json +1 -1
package/dist/js/basis/basis.js
CHANGED
|
@@ -287,12 +287,11 @@ class Basis extends entity_1.InMemoryEntity {
|
|
|
287
287
|
*/
|
|
288
288
|
getAsSortedString() {
|
|
289
289
|
const clsInstance = this.clone();
|
|
290
|
-
clsInstance.toStandardRepresentation();
|
|
291
290
|
const standardRep = clsInstance.elementsAndCoordinatesAndLabelsArray.map((entry) => {
|
|
292
291
|
const element = entry[0];
|
|
293
292
|
const coordinate = entry[1];
|
|
294
293
|
const atomicLabel = entry[2];
|
|
295
|
-
const toleratedCoordinate = coordinate.map((x) => utils_1.Utils.math.roundCustom(x, constants_1.HASH_TOLERANCE));
|
|
294
|
+
const toleratedCoordinate = coordinate.map((x) => utils_1.Utils.math.mod(utils_1.Utils.math.roundCustom(utils_1.Utils.math.mod(x, 0), constants_1.HASH_TOLERANCE), 0));
|
|
296
295
|
return `${element}${atomicLabel} ${toleratedCoordinate.join()}`;
|
|
297
296
|
});
|
|
298
297
|
return `${standardRep.sort().join(";")};`;
|