@thi.ng/matrices 1.0.4 → 2.0.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +68 -97
  2. package/README.md +26 -16
  3. package/add.d.ts +1 -1
  4. package/add.js +2 -2
  5. package/addn.d.ts +1 -1
  6. package/addn.js +2 -2
  7. package/alignment-quat.d.ts +1 -1
  8. package/alignment-quat.js +5 -2
  9. package/column.d.ts +1 -1
  10. package/column.js +2 -1
  11. package/compile/emit.d.ts +4 -0
  12. package/{internal/codegen.js → compile/emit.js} +2 -1
  13. package/concat.d.ts +1 -1
  14. package/concat.js +1 -1
  15. package/conjugate.d.ts +1 -1
  16. package/conjugate.js +1 -1
  17. package/constants.d.ts +1 -1
  18. package/determinant.d.ts +1 -1
  19. package/determinant.js +1 -1
  20. package/diag.d.ts +5 -5
  21. package/diag.js +2 -1
  22. package/div.d.ts +1 -1
  23. package/div.js +2 -2
  24. package/divn.d.ts +1 -1
  25. package/divn.js +2 -2
  26. package/frustum.d.ts +1 -1
  27. package/frustum.js +2 -2
  28. package/identity.d.ts +5 -5
  29. package/identity.js +3 -3
  30. package/index.d.ts +56 -56
  31. package/index.js +56 -56
  32. package/invert.d.ts +2 -2
  33. package/invert.js +5 -2
  34. package/lookat.d.ts +2 -2
  35. package/lookat.js +5 -1
  36. package/m22-m23.d.ts +1 -1
  37. package/m22-m23.js +1 -1
  38. package/m23-m22.d.ts +1 -1
  39. package/m23-m22.js +1 -1
  40. package/m23-m44.d.ts +1 -1
  41. package/m23-m44.js +1 -1
  42. package/m33-m44.d.ts +1 -1
  43. package/m33-m44.js +1 -1
  44. package/m44-m33.d.ts +1 -1
  45. package/m44-m33.js +1 -1
  46. package/matn.d.ts +1 -1
  47. package/matn.js +1 -1
  48. package/matv.js +1 -1
  49. package/mixq.d.ts +2 -2
  50. package/mixq.js +4 -1
  51. package/mul.d.ts +1 -1
  52. package/mul.js +2 -2
  53. package/mulm.d.ts +5 -5
  54. package/mulm.js +3 -1
  55. package/muln.d.ts +1 -1
  56. package/muln.js +2 -2
  57. package/mulq.d.ts +1 -1
  58. package/mulq.js +1 -1
  59. package/mulv.d.ts +2 -2
  60. package/mulv.js +3 -1
  61. package/mulvm.d.ts +2 -2
  62. package/mulvm.js +3 -1
  63. package/normal-mat.d.ts +1 -1
  64. package/normal-mat.js +3 -3
  65. package/orthagonal.d.ts +1 -1
  66. package/orthagonal.js +2 -1
  67. package/ortho.d.ts +1 -1
  68. package/ortho.js +1 -1
  69. package/outer-product.d.ts +1 -1
  70. package/outer-product.js +2 -1
  71. package/package.json +199 -26
  72. package/perspective.d.ts +1 -1
  73. package/perspective.js +1 -1
  74. package/project.d.ts +2 -2
  75. package/project.js +3 -3
  76. package/quat-axis-angle.d.ts +1 -1
  77. package/quat-axis-angle.js +2 -2
  78. package/quat-euler.d.ts +7 -7
  79. package/quat-euler.js +3 -3
  80. package/quat-m33.d.ts +1 -1
  81. package/quat-m33.js +1 -1
  82. package/quat-m44.d.ts +3 -3
  83. package/quat-m44.js +2 -1
  84. package/rotation-around-axis.d.ts +2 -2
  85. package/rotation-around-axis.js +4 -3
  86. package/rotation.d.ts +1 -1
  87. package/rotation.js +2 -2
  88. package/row.d.ts +5 -5
  89. package/row.js +2 -1
  90. package/scale-center.d.ts +2 -2
  91. package/scale-center.js +4 -4
  92. package/scale.d.ts +1 -1
  93. package/scale.js +2 -2
  94. package/set.d.ts +1 -1
  95. package/set.js +3 -1
  96. package/shear.d.ts +1 -1
  97. package/shear.js +1 -1
  98. package/skew.d.ts +1 -1
  99. package/skew.js +1 -1
  100. package/sub.d.ts +1 -1
  101. package/sub.js +2 -2
  102. package/subn.d.ts +1 -1
  103. package/subn.js +2 -2
  104. package/trace.d.ts +1 -1
  105. package/trace.js +2 -2
  106. package/transform.d.ts +1 -1
  107. package/transform.js +7 -7
  108. package/translation.d.ts +2 -2
  109. package/translation.js +1 -1
  110. package/transpose.d.ts +1 -1
  111. package/transpose.js +1 -1
  112. package/viewport.d.ts +1 -1
  113. package/viewport.js +3 -3
  114. package/internal/codegen.d.ts +0 -4
  115. package/lib/index.js +0 -733
  116. package/lib/index.js.map +0 -1
  117. package/lib/index.umd.js +0 -1
  118. package/lib/index.umd.js.map +0 -1
package/viewport.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Mat } from "./api";
1
+ import type { Mat } from "./api.js";
2
2
  /**
3
3
  * Produces a 2x3 viewport matrix to transform projected coordinates to
4
4
  * screen space.
package/viewport.js CHANGED
@@ -1,6 +1,6 @@
1
- import { mulM23 } from "./mulm";
2
- import { scale23 } from "./scale";
3
- import { translation23 } from "./translation";
1
+ import { mulM23 } from "./mulm.js";
2
+ import { scale23 } from "./scale.js";
3
+ import { translation23 } from "./translation.js";
4
4
  /**
5
5
  * Produces a 2x3 viewport matrix to transform projected coordinates to
6
6
  * screen space.
@@ -1,4 +0,0 @@
1
- import type { MultiMatOpMM, MultiMatOpMN } from "../api";
2
- export declare const defMath: (fn: MultiMatOpMM, op: string, sizes?: number[]) => import("../api").MatOpMM[];
3
- export declare const defMathN: (fn: MultiMatOpMN, op: string, sizes?: number[]) => import("../api").MatOpMN[];
4
- //# sourceMappingURL=codegen.d.ts.map