geometrix 0.5.54 → 0.5.56

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/index.d.ts CHANGED
@@ -640,8 +640,8 @@ type tT3dMatrix = [tVec4, tVec4, tVec4, tVec4];
640
640
  declare class Transform3d {
641
641
  mmat: tT3dMatrix;
642
642
  constructor(iMat: tT3dMatrix);
643
- addRotation(ax: number, ay: number, az: number): void;
644
- addTranslation(ax: number, ay: number, az: number): void;
643
+ addRotation(ax: number, ay: number, az: number): Transform3d;
644
+ addTranslation(ax: number, ay: number, az: number): Transform3d;
645
645
  getMatrix(): tT3dMatrix;
646
646
  getRotation(): tVec3;
647
647
  getTranslation(): tVec3;
package/dist/index.js CHANGED
@@ -4552,10 +4552,12 @@ var Transform3d = class {
4552
4552
  addRotation(ax, ay, az) {
4553
4553
  const mR = t3dRotate(ax, ay, az);
4554
4554
  this.mmat = t3dCombine([this.mmat, mR]);
4555
+ return this;
4555
4556
  }
4556
4557
  addTranslation(ax, ay, az) {
4557
4558
  const mT = t3dTranslate(ax, ay, az);
4558
4559
  this.mmat = t3dCombine([this.mmat, mT]);
4560
+ return this;
4559
4561
  }
4560
4562
  getMatrix() {
4561
4563
  return this.mmat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geometrix",
3
- "version": "0.5.54",
3
+ "version": "0.5.56",
4
4
  "description": "The 2D geometry engine of the parametrix",
5
5
  "private": false,
6
6
  "repository": {
@@ -77,7 +77,7 @@
77
77
  "rimraf": "^6.0.1",
78
78
  "tsup": "^8.3.5",
79
79
  "typescript": "^5.6.3",
80
- "typescript-eslint": "^8.13.0",
81
- "vitest": "^2.1.4"
80
+ "typescript-eslint": "^8.14.0",
81
+ "vitest": "^2.1.5"
82
82
  }
83
83
  }