feat: Reinitialize frontend with SvelteKit and TypeScript

- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
This commit is contained in:
2026-02-17 16:19:59 -05:00
parent 54df6018f5
commit de2d83092e
28274 changed files with 3816354 additions and 90 deletions

View File

@@ -0,0 +1,296 @@
import DOMMatrixReadOnly from './DOMMatrixReadOnly.js';
import IDOMMatrixCompatibleObject from './IDOMMatrixCompatibleObject.js';
import TDOMMatrixInit from './TDOMMatrixInit.js';
/**
* DOM Matrix.
*
* Based on:
* - https://github.com/thednp/dommatrix/tree/master
* - https://github.com/trusktr/geometry-interfaces
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix
*/
export default class DOMMatrix extends DOMMatrixReadOnly {
/**
* Returns the `a` value of the matrix.
*/
get a(): number;
/**
* Sets the `a` value of the matrix.
*/
set a(value: number);
/**
* Returns the `b` value of the matrix.
*/
get b(): number;
/**
* Sets the `b` value of the matrix.
*/
set b(value: number);
/**
* Returns the `c` value of the matrix.
*/
get c(): number;
/**
* Sets the `c` value of the matrix.
*/
set c(value: number);
/**
* Returns the `d` value of the matrix.
*/
get d(): number;
/**
* Sets the `d` value of the matrix.
*/
set d(value: number);
/**
* Returns the `e` value of the matrix.
*/
get e(): number;
/**
* Sets the `e` value of the matrix.
*/
set e(value: number);
/**
* Returns the `f` value of the matrix.
*/
get f(): number;
/**
* Sets the `f` value of the matrix.
*/
set f(value: number);
/**
* Returns the `m11` value of the matrix.
*/
get m11(): number;
/**
* Sets the `m11` value of the matrix.
*/
set m11(value: number);
/**
* Returns the `m12` value of the matrix.
*/
get m12(): number;
/**
* Sets the `m12` value of the matrix.
*/
set m12(value: number);
/**
* Returns the `m13` value of the matrix.
*/
get m13(): number;
/**
* Sets the `m13` value of the matrix.
*/
set m13(value: number);
/**
* Returns the `m14` value of the matrix.
*/
get m14(): number;
/**
* Sets the `m14` value of the matrix.
*/
set m14(value: number);
/**
* Returns the `m21` value of the matrix.
*/
get m21(): number;
/**
* Sets the `m21` value of the matrix.
*/
set m21(value: number);
/**
* Returns the `m22` value of the matrix.
*/
get m22(): number;
/**
* Sets the `m22` value of the matrix.
*/
set m22(value: number);
/**
* Returns the `m23` value of the matrix.
*/
get m23(): number;
/**
* Sets the `m23` value of the matrix.
*/
set m23(value: number);
/**
* Returns the `m24` value of the matrix.
*/
get m24(): number;
/**
* Sets the `m24` value of the matrix.
*/
set m24(value: number);
/**
* Returns the `m31` value of the matrix.
*/
get m31(): number;
/**
* Sets the `m31` value of the matrix.
*/
set m31(value: number);
/**
* Returns the `m32` value of the matrix.
*/
get m32(): number;
/**
* Sets the `m32` value of the matrix.
*/
set m32(value: number);
/**
* Returns the `m33` value of the matrix.
*/
get m33(): number;
/**
* Sets the `m33` value of the matrix.
*/
set m33(value: number);
/**
* Returns the `m34` value of the matrix.
*/
get m34(): number;
/**
* Sets the `m34` value of the matrix.
*/
set m34(value: number);
/**
* Returns the `m41` value of the matrix.
*/
get m41(): number;
/**
* Sets the `m41` value of the matrix.
*/
set m41(value: number);
/**
* Returns the `m42` value of the matrix.
*/
get m42(): number;
/**
* Sets the `m42` value of the matrix.
*/
set m42(value: number);
/**
* Returns the `m43` value of the matrix.
*/
get m43(): number;
/**
* Sets the `m43` value of the matrix.
*/
set m43(value: number);
/**
* Returns the `m44` value of the matrix.
*/
get m44(): number;
/**
* Sets the `m44` value of the matrix.
*/
set m44(value: number);
/**
* The `setMatrixValue` method replaces the existing matrix with one computed in the browser (e.g.`matrix(1,0.25,-0.25,1,0,0)`).
*
* @param source A `DOMMatrix`, `Float32Array`, `Float64Array`, `Array`, or DOMMatrix compatible object to set the matrix values from.
* @returns Self.
*/
setMatrixValue(source?: TDOMMatrixInit): DOMMatrix;
/**
* Sets self to be multiplied by the passed matrix.
*
* @param secondMatrix DOMMatrix
* @returns Self.
*/
multiplySelf(secondMatrix: IDOMMatrixCompatibleObject): DOMMatrix;
/**
* Sets self to multiplied by a translation matrix containing the passed values.
*
* @param [x=0] X component of the translation value.
* @param [y=0] Y component of the translation value.
* @param [z=0] Z component of the translation value.
* @returns Self.
*/
translateSelf(x?: number, y?: number, z?: number): DOMMatrix;
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @param [scaleZ] Z-Axis scale.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns Self.
*/
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scale] The scale factor.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns Self.
*/
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @returns Self.
*/
scaleNonUniformSelf(scaleX?: number, scaleY?: number): DOMMatrix;
/**
* Sets self to be multiplied by a rotation matrix with the given axis and `angle`.
*
* @param [x] The X component of the axis vector.
* @param [y] The Y component of the axis vector.
* @param [z] The Z component of the axis vector.
* @param [angle] Angle of rotation about the axis vector, in degrees.
* @returns Self.
*/
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrixReadOnly;
/**
* Set self to be multiplied by each of 3 rotation matrices about the major axes, first X, then Y, then Z.
*
* @param [x] X component of the rotation, or Z if Y and Z are null.
* @param [y] Y component of the rotation value.
* @param [z] Z component of the rotation value.
* @returns Self.
*/
rotateSelf(x?: number, y?: number, z?: number): DOMMatrixReadOnly;
/**
* Sets self to be multiplied by a skew matrix along the X axis by the given angle.
*
* @param [x] X-Axis skew.
* @param [y] Y-Axis skew.
*/
rotateFromVectorSelf(x?: number, y?: number): DOMMatrixReadOnly;
/**
* Set self to be specified as a skew transformation along X-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns Self.
*/
skewXSelf(angle: number): DOMMatrixReadOnly;
/**
* Set self to be specified as a skew transformation along Y-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns Self.
*/
skewYSelf(angle: number): DOMMatrixReadOnly;
/**
* Set self to be specified as matrix flipped on X-axis.
*/
flipXSelf(): DOMMatrixReadOnly;
/**
* Set self to be specified as matrix flipped on Y-axis.
*/
flipYSelf(): DOMMatrixReadOnly;
/**
* Set self to be specified as matrix inverted.
*/
invertSelf(): DOMMatrixReadOnly;
}
//# sourceMappingURL=DOMMatrix.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DOMMatrix.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/DOMMatrix.ts"],"names":[],"mappings":"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"}

View File

@@ -0,0 +1,425 @@
import * as PropertySymbol from '../../PropertySymbol.js';
import DOMMatrixReadOnly from './DOMMatrixReadOnly.js';
/**
* DOM Matrix.
*
* Based on:
* - https://github.com/thednp/dommatrix/tree/master
* - https://github.com/trusktr/geometry-interfaces
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix
*/
export default class DOMMatrix extends DOMMatrixReadOnly {
/**
* Returns the `a` value of the matrix.
*/
get a() {
return this[PropertySymbol.m11];
}
/**
* Sets the `a` value of the matrix.
*/
set a(value) {
this[PropertySymbol.m11] = value;
}
/**
* Returns the `b` value of the matrix.
*/
get b() {
return this[PropertySymbol.m12];
}
/**
* Sets the `b` value of the matrix.
*/
set b(value) {
this[PropertySymbol.m12] = value;
}
/**
* Returns the `c` value of the matrix.
*/
get c() {
return this[PropertySymbol.m21];
}
/**
* Sets the `c` value of the matrix.
*/
set c(value) {
this[PropertySymbol.m21] = value;
}
/**
* Returns the `d` value of the matrix.
*/
get d() {
return this[PropertySymbol.m22];
}
/**
* Sets the `d` value of the matrix.
*/
set d(value) {
this[PropertySymbol.m22] = value;
}
/**
* Returns the `e` value of the matrix.
*/
get e() {
return this[PropertySymbol.m41];
}
/**
* Sets the `e` value of the matrix.
*/
set e(value) {
this[PropertySymbol.m41] = value;
}
/**
* Returns the `f` value of the matrix.
*/
get f() {
return this[PropertySymbol.m42];
}
/**
* Sets the `f` value of the matrix.
*/
set f(value) {
this[PropertySymbol.m42] = value;
}
/**
* Returns the `m11` value of the matrix.
*/
get m11() {
return this[PropertySymbol.m11];
}
/**
* Sets the `m11` value of the matrix.
*/
set m11(value) {
this[PropertySymbol.m11] = value;
}
/**
* Returns the `m12` value of the matrix.
*/
get m12() {
return this[PropertySymbol.m12];
}
/**
* Sets the `m12` value of the matrix.
*/
set m12(value) {
this[PropertySymbol.m12] = value;
}
/**
* Returns the `m13` value of the matrix.
*/
get m13() {
return this[PropertySymbol.m13];
}
/**
* Sets the `m13` value of the matrix.
*/
set m13(value) {
this[PropertySymbol.m13] = value;
}
/**
* Returns the `m14` value of the matrix.
*/
get m14() {
return this[PropertySymbol.m14];
}
/**
* Sets the `m14` value of the matrix.
*/
set m14(value) {
this[PropertySymbol.m14] = value;
}
/**
* Returns the `m21` value of the matrix.
*/
get m21() {
return this[PropertySymbol.m21];
}
/**
* Sets the `m21` value of the matrix.
*/
set m21(value) {
this[PropertySymbol.m21] = value;
}
/**
* Returns the `m22` value of the matrix.
*/
get m22() {
return this[PropertySymbol.m22];
}
/**
* Sets the `m22` value of the matrix.
*/
set m22(value) {
this[PropertySymbol.m22] = value;
}
/**
* Returns the `m23` value of the matrix.
*/
get m23() {
return this[PropertySymbol.m23];
}
/**
* Sets the `m23` value of the matrix.
*/
set m23(value) {
this[PropertySymbol.m23] = value;
}
/**
* Returns the `m24` value of the matrix.
*/
get m24() {
return this[PropertySymbol.m24];
}
/**
* Sets the `m24` value of the matrix.
*/
set m24(value) {
this[PropertySymbol.m24] = value;
}
/**
* Returns the `m31` value of the matrix.
*/
get m31() {
return this[PropertySymbol.m31];
}
/**
* Sets the `m31` value of the matrix.
*/
set m31(value) {
this[PropertySymbol.m31] = value;
}
/**
* Returns the `m32` value of the matrix.
*/
get m32() {
return this[PropertySymbol.m32];
}
/**
* Sets the `m32` value of the matrix.
*/
set m32(value) {
this[PropertySymbol.m32] = value;
}
/**
* Returns the `m33` value of the matrix.
*/
get m33() {
return this[PropertySymbol.m33];
}
/**
* Sets the `m33` value of the matrix.
*/
set m33(value) {
this[PropertySymbol.m33] = value;
}
/**
* Returns the `m34` value of the matrix.
*/
get m34() {
return this[PropertySymbol.m34];
}
/**
* Sets the `m34` value of the matrix.
*/
set m34(value) {
this[PropertySymbol.m34] = value;
}
/**
* Returns the `m41` value of the matrix.
*/
get m41() {
return this[PropertySymbol.m41];
}
/**
* Sets the `m41` value of the matrix.
*/
set m41(value) {
this[PropertySymbol.m41] = value;
}
/**
* Returns the `m42` value of the matrix.
*/
get m42() {
return this[PropertySymbol.m42];
}
/**
* Sets the `m42` value of the matrix.
*/
set m42(value) {
this[PropertySymbol.m42] = value;
}
/**
* Returns the `m43` value of the matrix.
*/
get m43() {
return this[PropertySymbol.m43];
}
/**
* Sets the `m43` value of the matrix.
*/
set m43(value) {
this[PropertySymbol.m43] = value;
}
/**
* Returns the `m44` value of the matrix.
*/
get m44() {
return this[PropertySymbol.m44];
}
/**
* Sets the `m44` value of the matrix.
*/
set m44(value) {
this[PropertySymbol.m44] = value;
}
/**
* The `setMatrixValue` method replaces the existing matrix with one computed in the browser (e.g.`matrix(1,0.25,-0.25,1,0,0)`).
*
* @param source A `DOMMatrix`, `Float32Array`, `Float64Array`, `Array`, or DOMMatrix compatible object to set the matrix values from.
* @returns Self.
*/
setMatrixValue(source) {
this[PropertySymbol.setMatrixValue](source);
return this;
}
/**
* Sets self to be multiplied by the passed matrix.
*
* @param secondMatrix DOMMatrix
* @returns Self.
*/
multiplySelf(secondMatrix) {
this[PropertySymbol.multiplySelf](secondMatrix);
return this;
}
/**
* Sets self to multiplied by a translation matrix containing the passed values.
*
* @param [x=0] X component of the translation value.
* @param [y=0] Y component of the translation value.
* @param [z=0] Z component of the translation value.
* @returns Self.
*/
translateSelf(x = 0, y = 0, z = 0) {
this[PropertySymbol.translateSelf](x, y, z);
return this;
}
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @param [scaleZ] Z-Axis scale.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns Self.
*/
scaleSelf(scaleX, scaleY, scaleZ = 1, originX = 0, originY = 0, originZ = 0) {
this[PropertySymbol.scaleSelf](scaleX, scaleY, scaleZ, originX, originY, originZ);
return this;
}
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scale] The scale factor.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns Self.
*/
scale3dSelf(scale = 1, originX = 0, originY = 0, originZ = 0) {
this[PropertySymbol.scale3dSelf](scale, originX, originY, originZ);
return this;
}
/**
* Sets self to be multiplied by a scale matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @returns Self.
*/
scaleNonUniformSelf(scaleX = 1, scaleY = 1) {
this[PropertySymbol.scaleNonUniformSelf](scaleX, scaleY);
return this;
}
/**
* Sets self to be multiplied by a rotation matrix with the given axis and `angle`.
*
* @param [x] The X component of the axis vector.
* @param [y] The Y component of the axis vector.
* @param [z] The Z component of the axis vector.
* @param [angle] Angle of rotation about the axis vector, in degrees.
* @returns Self.
*/
rotateAxisAngleSelf(x = 0, y = 0, z = 0, angle = 0) {
this[PropertySymbol.rotateAxisAngleSelf](x, y, z, angle);
return this;
}
/**
* Set self to be multiplied by each of 3 rotation matrices about the major axes, first X, then Y, then Z.
*
* @param [x] X component of the rotation, or Z if Y and Z are null.
* @param [y] Y component of the rotation value.
* @param [z] Z component of the rotation value.
* @returns Self.
*/
rotateSelf(x = 0, y, z) {
this[PropertySymbol.rotateSelf](x, y, z);
return this;
}
/**
* Sets self to be multiplied by a skew matrix along the X axis by the given angle.
*
* @param [x] X-Axis skew.
* @param [y] Y-Axis skew.
*/
rotateFromVectorSelf(x = 0, y = 0) {
this[PropertySymbol.rotateFromVectorSelf](x, y);
return this;
}
/**
* Set self to be specified as a skew transformation along X-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns Self.
*/
skewXSelf(angle) {
this[PropertySymbol.skewXSelf](angle);
return this;
}
/**
* Set self to be specified as a skew transformation along Y-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns Self.
*/
skewYSelf(angle) {
this[PropertySymbol.skewYSelf](angle);
return this;
}
/**
* Set self to be specified as matrix flipped on X-axis.
*/
flipXSelf() {
this[PropertySymbol.flipXSelf]();
return this;
}
/**
* Set self to be specified as matrix flipped on Y-axis.
*/
flipYSelf() {
this[PropertySymbol.flipYSelf]();
return this;
}
/**
* Set self to be specified as matrix inverted.
*/
invertSelf() {
this[PropertySymbol.invertSelf]();
return this;
}
}
//# sourceMappingURL=DOMMatrix.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,485 @@
import DOMPoint from '../DOMPoint.js';
import IDOMPointInit from '../IDOMPointInit.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import TDOMMatrixInit from './TDOMMatrixInit.js';
import TDOMMatrix2DArray from './TDOMMatrix2DArray.js';
import TDOMMatrix3DArray from './TDOMMatrix3DArray.js';
import IDOMMatrixJSON from './IDOMMatrixJSON.js';
import IDOMMatrixCompatibleObject from './IDOMMatrixCompatibleObject.js';
/**
* DOM Matrix.
*
* Based on:
* - https://github.com/trusktr/geometry-interfaces
* - https://github.com/thednp/dommatrix/tree/master
* - https://github.com/jarek-foksa/geometry-polyfill/blob/master/geometry-polyfill.js
* - https://github.com/Automattic/node-canvas/blob/master/lib/DOMMatrix.js
*
*
* 3D Matrix:
* _________________________
* | m11 | m21 | m31 | m41 |
* | m12 | m22 | m32 | m42 |
* | m13 | m23 | m33 | m43 |
* | m14 | m24 | m34 | m44 |
* -------------------------̣
*
* 2D Matrix:
* _________________________
* | m11 | m21 | 0 | m41 |
* | m12 | m22 | 0 | m42 |
* | 0 | 0 | 1 | 0 |
* | 0 | 0 | 0 | 1 |
* -------------------------
*
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly
*/
export default class DOMMatrixReadOnly {
#private;
[PropertySymbol.m11]: number;
[PropertySymbol.m12]: number;
[PropertySymbol.m13]: number;
[PropertySymbol.m14]: number;
[PropertySymbol.m21]: number;
[PropertySymbol.m22]: number;
[PropertySymbol.m23]: number;
[PropertySymbol.m24]: number;
[PropertySymbol.m31]: number;
[PropertySymbol.m32]: number;
[PropertySymbol.m33]: number;
[PropertySymbol.m34]: number;
[PropertySymbol.m41]: number;
[PropertySymbol.m42]: number;
[PropertySymbol.m43]: number;
[PropertySymbol.m44]: number;
/**
* Constructor.
*
* @param init Init parameter.
*/
constructor(init?: TDOMMatrixInit);
/**
* Returns the `a` value of the matrix.
*/
get a(): number;
/**
* Returns the `b` value of the matrix.
*/
get b(): number;
/**
* Returns the `c` value of the matrix.
*/
get c(): number;
/**
* Returns the `d` value of the matrix.
*/
get d(): number;
/**
* Returns the `e` value of the matrix.
*/
get e(): number;
/**
* Returns the `f` value of the matrix.
*/
get f(): number;
/**
* Returns the `m11` value of the matrix.
*/
get m11(): number;
/**
* Returns the `m12` value of the matrix.
*/
get m12(): number;
/**
* Returns the `m13` value of the matrix.
*/
get m13(): number;
/**
* Returns the `m14` value of the matrix.
*/
get m14(): number;
/**
* Returns the `m21` value of the matrix.
*/
get m21(): number;
/**
* Returns the `m22` value of the matrix.
*/
get m22(): number;
/**
* Returns the `m23` value of the matrix.
*/
get m23(): number;
/**
* Returns the `m24` value of the matrix.
*/
get m24(): number;
/**
* Returns the `m31` value of the matrix.
*/
get m31(): number;
/**
* Returns the `m32` value of the matrix.
*/
get m32(): number;
/**
* Returns the `m33` value of the matrix.
*/
get m33(): number;
/**
* Returns the `m34` value of the matrix.
*/
get m34(): number;
/**
* Returns the `m41` value of the matrix.
*/
get m41(): number;
/**
* Returns the `m42` value of the matrix.
*/
get m42(): number;
/**
* Returns the `m43` value of the matrix.
*/
get m43(): number;
/**
* Returns the `m44` value of the matrix.
*/
get m44(): number;
/**
* A `Boolean` whose value is `true` if the matrix is the identity matrix.
*
* The identity matrix is one in which every value is 0 except those on the main diagonal from top-left to bottom-right corner (in other words, where the offsets in each direction are equal).
*
* @returns "true" if the matrix is the identity matrix.
*/
get isIdentity(): boolean;
/**
* A `Boolean` flag whose value is `true` if the matrix is a 2D matrix and `false` if the matrix is 3D.
*
* @returns "true" if the matrix is a 2D matrix.
*/
get is2D(): boolean;
/**
* Returns a *Float32Array* containing elements which comprise the matrix.
*
* The method can return either the 16 elements or the 6 elements depending on the value of the `is2D` parameter.
*
* @param [is2D] Set to `true` to return a 2D matrix.
* @returns An *Array* representation of the matrix.
*/
toFloat32Array(is2D?: boolean): Float32Array;
/**
* Returns a *Float64Array* containing elements which comprise the matrix.
*
* The method can return either the 16 elements or the 6 elements depending on the value of the `is2D` parameter.
*
* @param [is2D] Set to `true` to return a 2D matrix.
* @returns An *Array* representation of the matrix
*/
toFloat64Array(is2D?: boolean): Float64Array;
/**
* Returns a string representation of the matrix in `CSS` matrix syntax, using the appropriate `CSS` matrix notation.
*
* Examples:
* - `matrix3d(m11, m12, m13, m14, m21, ...)`
* - `matrix(a, b, c, d, e, f)`
*
* @returns A string representation of the matrix.
*/
toString(): string;
/**
* Returns an Object that can be serialized to a JSON string.
*
* The result can be used as a second parameter for the `fromMatrix` static method to load values into another matrix instance.
*
* @returns An *Object* with matrix values.
*/
toJSON(): IDOMMatrixJSON;
/**
* Returns a new DOMMatrix instance which is the result of this matrix multiplied by the passed matrix.
*
* @param secondMatrix DOMMatrix
* @returns A new DOMMatrix object.
*/
multiply(secondMatrix: IDOMMatrixCompatibleObject): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a translation matrix containing the passed values.
*
* @param [x=0] X component of the translation value.
* @param [y=0] Y component of the translation value.
* @param [z=0] Z component of the translation value.
* @returns The resulted matrix
*/
translate(x?: number, y?: number, z?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a scale 2D matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @param [scaleZ] Z-Axis scale.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns The resulted matrix
*/
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a scale 3D matrix containing the passed values.
*
* @param [scale] The scale factor.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
* @returns The resulted matrix
*/
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a scale 3D matrix containing the passed values.
*
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @returns The resulted matrix
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a rotation matrix with the given axis and `angle`.
*
* @param [x] The X component of the axis vector.
* @param [y] The Y component of the axis vector.
* @param [z] The Z component of the axis vector.
* @param [angle] Angle of rotation about the axis vector, in degrees.
* @returns The resulted matrix
*/
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by each of 3 rotation matrices about the major axes, first X, then Y, then Z.
*
* @param [x] X component of the rotation, or Z if Y and Z are null.
* @param [y] Y component of the rotation value.
* @param [z] Z component of the rotation value.
* @returns The resulted matrix
*/
rotate(x?: number, y?: number, z?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix post multiplied by a rotation matrix with the angle between the specified vector and (1, 0).
*
* @param [x] X-Axis skew.
* @param [y] Y-Axis skew.
*/
rotateFromVector(x?: number, y?: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance that specifies a skew transformation along X-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns The resulted matrix
*/
skewX(angle: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance that specifies a skew transformation along Y-Axis by the given angle.
*
* @param angle Angle amount in degrees to skew.
* @returns The resulted matrix
*/
skewY(angle: number): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix flipped on X-axis.
*/
flipX(): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix flipped on Y-axis.
*/
flipY(): DOMMatrixReadOnly;
/**
* Returns a new DOMMatrix instance which is this matrix inversed.
*/
inverse(): DOMMatrixReadOnly;
/**
* Returns a new DOMPoint instance with the vector transformed using the matrix.
*
* @param domPoint DOM point compatible object.
* @returns A new DOMPoint object.
*/
transformPoint(domPoint: IDOMPointInit): DOMPoint;
/**
* The `setMatrixValue` method replaces the existing matrix with one computed in the browser (e.g.`matrix(1,0.25,-0.25,1,0,0)`).
*
* @param source A `DOMMatrix`, `Float32Array`, `Float64Array`, `Array`, or DOMMatrix compatible object to set the matrix values from.
*/
[PropertySymbol.setMatrixValue](source?: TDOMMatrixInit): void;
/**
* Applies a multiply operation to the current matrix.
*
* @param matrix Second matrix.
*/
[PropertySymbol.multiplySelf](matrix: IDOMMatrixCompatibleObject): void;
/**
* Applies translate to the matrix.
*
* This method is equivalent to the CSS `translate3d()` function.
*
* @see https://drafts.csswg.org/css-transforms-1/#TranslateDefined
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate3d
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param [x] X-Axis position.
* @param [y] Y-Axis position.
* @param [z] Z-Axis position.
*/
[PropertySymbol.translateSelf](x?: number, y?: number, z?: number): void;
/**
* Applies a scale to the matrix.
*
* This method is equivalent to the CSS `scale()` function.
*
* @see https://drafts.csswg.org/css-transforms-1/#ScaleDefined
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
* @param [scaleZ] Z-Axis scale.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
*/
[PropertySymbol.scaleSelf](scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): void;
/**
* Applies a scale to the matrix.
*
* This method is equivalent to the CSS `scale()` function.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale3d
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param [scale] The scale factor.
* @param [originX] X-Axis scale.
* @param [originY] Y-Axis scale.
* @param [originZ] Z-Axis scale.
*/
[PropertySymbol.scale3dSelf](scale?: number, originX?: number, originY?: number, originZ?: number): void;
/**
* Applies a scale to the matrix.
*
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param [scaleX] X-Axis scale.
* @param [scaleY] Y-Axis scale.
*/
[PropertySymbol.scaleNonUniformSelf](scaleX?: number, scaleY?: number): void;
/**
* Applies a rotation to the matrix.
*
* This method is equivalent to the CSS `rotate3d()` function.
*
* @see https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-rotateaxisangleself
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d
* @param [x] X-Axis vector.
* @param [y] Y-Axis vector.
* @param [z] Z-Axis vector.
* @param [angle] Angle in degrees of the rotation.
*/
[PropertySymbol.rotateAxisAngleSelf](x?: number, y?: number, z?: number, angle?: number): void;
/**
* Applies a rotation to the matrix.
*
* @see http://en.wikipedia.org/wiki/Rotation_matrix
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param [x] X-Axis rotation in degrees.
* @param [y] Y-Axis rotation in degrees.
* @param [z] Z-Axis rotation in degrees.
*/
[PropertySymbol.rotateSelf](x?: number, y?: number, z?: number): void;
/**
* Modifies the matrix by rotating it by the angle between the specified vector and (1, 0).
*
* @param x The X component of the axis vector.
* @param y The Y component of the axis vector.
*/
[PropertySymbol.rotateFromVectorSelf](x?: number, y?: number): void;
/**
* Applies a skew operation to the matrix on the X axis.
*
* This method is equivalent to the CSS `skewX()` function.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skewX
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param angle Angle in degrees.
*/
[PropertySymbol.skewXSelf](angle: number): void;
/**
* Applies a skew operation to the matrix on the Y axis.
*
* This method is equivalent to the CSS `skewY()` function.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skewY
* @see https://www.w3.org/TR/css-transforms-1/#transform-functions
* @param angle Angle in degrees.
*/
[PropertySymbol.skewYSelf](angle: number): void;
/**
* Applies a flip operation to the matrix on the X axis.
*/
[PropertySymbol.flipXSelf](): void;
/**
* Applies a flip operation to the matrix on the Y axis.
*/
[PropertySymbol.flipYSelf](): void;
/**
* Applies an inversion operation to the matrix.
*/
[PropertySymbol.invertSelf](): void;
/**
* Returns an *Array* containing elements which comprise the matrix.
*
* @param matrix Matrix to convert.
* @param [is2D] If the matrix is 2D.
* @returns Array representation of the matrix.
*/
[PropertySymbol.toArray](is2D?: boolean): TDOMMatrix2DArray | TDOMMatrix3DArray;
/**
* Returns a new `DOMMatrix` instance given an existing matrix.
*
* @param matrix Matrix.
*/
static fromMatrix(matrix: IDOMMatrixCompatibleObject): DOMMatrixReadOnly;
/**
* Returns a new `DOMMatrix` instance given an array of 16/6 floating point values.
*
* @param array An `Array` to feed values from.
* @returns DOMMatrix instance.
*/
static fromFloat32Array(array: Float32Array): DOMMatrixReadOnly;
/**
* Returns a new `DOMMatrix` instance given an array of 16/6 floating point values.
*
* @param array An `Array` to feed values from.
* @returns DOMMatrix instance.
*/
static fromFloat64Array(array: Float64Array): DOMMatrixReadOnly;
/**
* Returns a new `DOMMatrix` instance given an array of 16/6 floating point values.
*
* Conditions:
* - If the array has six values, the result is a 2D matrix.
* - If the array has 16 values, the result is a 3D matrix.
* - Otherwise, a TypeError exception is thrown.
*
* @param array An `Array` to feed values from.
* @returns DOMMatrix instance.
*/
static [PropertySymbol.fromArray](array: any[] | Float32Array | Float64Array): DOMMatrixReadOnly;
/**
* Returns a new `DOMMatrix` instance from a DOM transform string.
*
* @param source valid CSS transform string syntax.
* @returns DOMMatrix instance.
*/
static [PropertySymbol.fromString](source: string): DOMMatrixReadOnly;
/**
* Returns length.
*
* @param length Length to convert.
* @returns Length.
*/
private static [PropertySymbol.getLength];
}
//# sourceMappingURL=DOMMatrixReadOnly.d.ts.map

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,25 @@
export default interface IDOMMatrixCompatibleObject {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m13?: number;
m14?: number;
m21?: number;
m22?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m41?: number;
m42?: number;
m43?: number;
m44?: number;
}
//# sourceMappingURL=IDOMMatrixCompatibleObject.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"IDOMMatrixCompatibleObject.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/IDOMMatrixCompatibleObject.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,0BAA0B;IAClD,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=IDOMMatrixCompatibleObject.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"IDOMMatrixCompatibleObject.js","sourceRoot":"","sources":["../../../src/dom/dom-matrix/IDOMMatrixCompatibleObject.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,27 @@
export default interface IDOMMatrixJSON {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
is2D: boolean;
isIdentity: boolean;
}
//# sourceMappingURL=IDOMMatrixJSON.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"IDOMMatrixJSON.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/IDOMMatrixJSON.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,cAAc;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACpB"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=IDOMMatrixJSON.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"IDOMMatrixJSON.js","sourceRoot":"","sources":["../../../src/dom/dom-matrix/IDOMMatrixJSON.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,4 @@
/** An array of 6 numbers representing a 2D matrix. */
type TDOMMatrix2DArray = [number, number, number, number, number, number];
export default TDOMMatrix2DArray;
//# sourceMappingURL=TDOMMatrix2DArray.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrix2DArray.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrix2DArray.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1E,eAAe,iBAAiB,CAAC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=TDOMMatrix2DArray.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrix2DArray.js","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrix2DArray.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,21 @@
/** An array of 16 numbers representing a 3D matrix. */
type TDOMMatrix3DArray = [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number
];
export default TDOMMatrix3DArray;
//# sourceMappingURL=TDOMMatrix3DArray.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrix3DArray.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrix3DArray.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,KAAK,iBAAiB,GAAG;IACxB,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;CACN,CAAC;AACF,eAAe,iBAAiB,CAAC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=TDOMMatrix3DArray.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrix3DArray.js","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrix3DArray.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,4 @@
import IDOMMatrixCompatibleObject from './IDOMMatrixCompatibleObject.js';
type TDOMMatrixInit = string | any[] | IDOMMatrixCompatibleObject | Float32Array | Float64Array;
export default TDOMMatrixInit;
//# sourceMappingURL=TDOMMatrixInit.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrixInit.d.ts","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrixInit.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AAEzE,KAAK,cAAc,GAAG,MAAM,GAAG,GAAG,EAAE,GAAG,0BAA0B,GAAG,YAAY,GAAG,YAAY,CAAC;AAChG,eAAe,cAAc,CAAC"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=TDOMMatrixInit.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TDOMMatrixInit.js","sourceRoot":"","sources":["../../../src/dom/dom-matrix/TDOMMatrixInit.ts"],"names":[],"mappings":""}