diff --git a/packages/@dcl/inspector/package-lock.json b/packages/@dcl/inspector/package-lock.json index 2f853c880..bce6ee3da 100644 --- a/packages/@dcl/inspector/package-lock.json +++ b/packages/@dcl/inspector/package-lock.json @@ -18,7 +18,7 @@ "@babylonjs/loaders": "~6.18.0", "@babylonjs/materials": "~6.18.0", "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/mini-rpc": "^1.0.7", "@dcl/rpc": "^1.1.1", "@dcl/schemas": "^8.2.3-20230718182824.commit-356025c", @@ -308,9 +308,9 @@ "link": true }, "node_modules/@dcl/ecs-math": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@dcl/ecs-math/-/ecs-math-2.0.2.tgz", - "integrity": "sha512-w01+a3mpHvxGPHepu0hAAX8OfpBSQEqBbC1+U8o+5SBSQVXHiRwt3P4cK20yM8QCgZe3enPttmpqePnjTliTig==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@dcl/ecs-math/-/ecs-math-2.1.0.tgz", + "integrity": "sha512-tXoLKwKaWLJR9z9Iq29eMMttBovc/U8J0wkwTwZUJgCDSFhwjuN10HqpKuzr7ziC6npATpyga9fFBzjsgYkeyw==", "dev": true }, "node_modules/@dcl/js-runtime": { diff --git a/packages/@dcl/inspector/package.json b/packages/@dcl/inspector/package.json index 6c0ebce11..9184d5a29 100644 --- a/packages/@dcl/inspector/package.json +++ b/packages/@dcl/inspector/package.json @@ -12,7 +12,7 @@ "@babylonjs/loaders": "~6.18.0", "@babylonjs/materials": "~6.18.0", "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/mini-rpc": "^1.0.7", "@dcl/rpc": "^1.1.1", "@dcl/schemas": "^8.2.3-20230718182824.commit-356025c", diff --git a/packages/@dcl/playground-assets/etc/playground-assets.api.md b/packages/@dcl/playground-assets/etc/playground-assets.api.md index 5560ba59a..ab07bea40 100644 --- a/packages/@dcl/playground-assets/etc/playground-assets.api.md +++ b/packages/@dcl/playground-assets/etc/playground-assets.api.md @@ -4235,13 +4235,34 @@ export type ValueSetOptions = { maxElements: number; }; +// @public +export type Vector2 = Vector2.ReadonlyVector2; + +// @public +export namespace Vector2 { + export function create( + x?: number, + y?: number): MutableVector2; + export type Mutable = MutableVector2; + export type MutableVector2 = { + x: number; + y: number; + }; + export function One(): MutableVector2; + export type ReadonlyVector2 = { + readonly x: number; + readonly y: number; + }; + export function Zero(): MutableVector2; +} + // @public export type Vector3 = Vector3.ReadonlyVector3; // @public export namespace Vector3 { export function add(vector1: ReadonlyVector3, vector2: ReadonlyVector3): MutableVector3; - export function addToRef(vector1: ReadonlyVector3, vector2: ReadonlyVector3, result: MutableVector3): void; + export function addToRef(vectorA: ReadonlyVector3, vectorB: ReadonlyVector3, result: MutableVector3): void; export function applyMatrix4(vector: ReadonlyVector3, matrix: Matrix.ReadonlyMatrix): MutableVector3; export function applyMatrix4ToRef(vector: ReadonlyVector3, matrix: Matrix.ReadonlyMatrix, result: MutableVector3): void; export function Backward(): MutableVector3; @@ -4319,7 +4340,7 @@ export namespace Vector3 { export function scaleToRef(vector: ReadonlyVector3, scale: number, result: MutableVector3): void; export function subtract(vector1: ReadonlyVector3, vector2: ReadonlyVector3): MutableVector3; export function subtractFromFloatsToRef(vector1: ReadonlyVector3, x: number, y: number, z: number, result: MutableVector3): void; - export function subtractToRef(vector1: ReadonlyVector3, vector2: ReadonlyVector3, result: MutableVector3): void; + export function subtractToRef(vectorA: ReadonlyVector3, vectorB: ReadonlyVector3, result: MutableVector3): void; export function toString(vector: ReadonlyVector3): string; export function transformCoordinates(vector: ReadonlyVector3, transformation: Matrix.ReadonlyMatrix): MutableVector3; export function transformCoordinatesFromFloatsToRef(x: number, y: number, z: number, transformation: Matrix.ReadonlyMatrix, result: MutableVector3): void; diff --git a/packages/@dcl/sdk-commands/package-lock.json b/packages/@dcl/sdk-commands/package-lock.json index 2e1fcf497..d4487cfa7 100644 --- a/packages/@dcl/sdk-commands/package-lock.json +++ b/packages/@dcl/sdk-commands/package-lock.json @@ -75,7 +75,7 @@ "@babylonjs/loaders": "~6.18.0", "@babylonjs/materials": "~6.18.0", "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/mini-rpc": "^1.0.7", "@dcl/rpc": "^1.1.1", "@dcl/schemas": "^8.2.3-20230718182824.commit-356025c", @@ -3141,7 +3141,7 @@ "@babylonjs/materials": "~6.18.0", "@dcl/asset-packs": "1.20.2", "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/mini-rpc": "^1.0.7", "@dcl/rpc": "^1.1.1", "@dcl/schemas": "^8.2.3-20230718182824.commit-356025c", diff --git a/packages/@dcl/sdk/package.json b/packages/@dcl/sdk/package.json index bb42adf69..20e9f09e2 100644 --- a/packages/@dcl/sdk/package.json +++ b/packages/@dcl/sdk/package.json @@ -5,7 +5,7 @@ "author": "Decentraland", "dependencies": { "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/explorer": "1.0.164509-20240802172549.commit-fb95b9b", "@dcl/js-runtime": "file:../js-runtime", "@dcl/react-ecs": "file:../react-ecs", diff --git a/test/build-ecs/fixtures/ecs7-scene/package.json b/test/build-ecs/fixtures/ecs7-scene/package.json index 4776b3051..a7cf98308 100644 --- a/test/build-ecs/fixtures/ecs7-scene/package.json +++ b/test/build-ecs/fixtures/ecs7-scene/package.json @@ -20,6 +20,6 @@ "@dcl/sdk-commands": "file:../../../../packages/@dcl/sdk-commands" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb" + "@dcl/ecs-math": "2.1.0" } } diff --git a/test/build-ecs/fixtures/sdk7-smart-wearable/package.json b/test/build-ecs/fixtures/sdk7-smart-wearable/package.json index 4776b3051..a7cf98308 100644 --- a/test/build-ecs/fixtures/sdk7-smart-wearable/package.json +++ b/test/build-ecs/fixtures/sdk7-smart-wearable/package.json @@ -20,6 +20,6 @@ "@dcl/sdk-commands": "file:../../../../packages/@dcl/sdk-commands" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb" + "@dcl/ecs-math": "2.1.0" } } diff --git a/test/build-ecs/fixtures/side-effect-free-build/package.json b/test/build-ecs/fixtures/side-effect-free-build/package.json index dcf0ea819..bf086166c 100644 --- a/test/build-ecs/fixtures/side-effect-free-build/package.json +++ b/test/build-ecs/fixtures/side-effect-free-build/package.json @@ -16,10 +16,10 @@ "devDependencies": { "@dcl/ecs": "file:../../../../packages/@dcl/ecs", "@dcl/js-runtime": "file:../../../../packages/@dcl/js-runtime", - "@dcl/sdk-commands": "file:../../../../packages/@dcl/sdk-commands", - "@dcl/sdk": "file:../../../../packages/@dcl/sdk" + "@dcl/sdk": "file:../../../../packages/@dcl/sdk", + "@dcl/sdk-commands": "file:../../../../packages/@dcl/sdk-commands" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb" + "@dcl/ecs-math": "2.1.0" } } diff --git a/test/build-ecs/fixtures/simple-scene-with-bundled/package.json b/test/build-ecs/fixtures/simple-scene-with-bundled/package.json index a0d1b114e..300a4797a 100644 --- a/test/build-ecs/fixtures/simple-scene-with-bundled/package.json +++ b/test/build-ecs/fixtures/simple-scene-with-bundled/package.json @@ -21,7 +21,7 @@ "dcl-test-lib-integration": "file:../dcl-test-lib-integration" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb", + "@dcl/ecs-math": "2.1.0", "eth-connect": "^6.0.3" }, "bundleDependencies": [ diff --git a/test/build-ecs/fixtures/simple-scene-with-library/package.json b/test/build-ecs/fixtures/simple-scene-with-library/package.json index a0d1b114e..300a4797a 100644 --- a/test/build-ecs/fixtures/simple-scene-with-library/package.json +++ b/test/build-ecs/fixtures/simple-scene-with-library/package.json @@ -21,7 +21,7 @@ "dcl-test-lib-integration": "file:../dcl-test-lib-integration" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb", + "@dcl/ecs-math": "2.1.0", "eth-connect": "^6.0.3" }, "bundleDependencies": [ diff --git a/test/build-ecs/fixtures/simple-scene/package.json b/test/build-ecs/fixtures/simple-scene/package.json index a38fabecc..dd73533ff 100644 --- a/test/build-ecs/fixtures/simple-scene/package.json +++ b/test/build-ecs/fixtures/simple-scene/package.json @@ -20,6 +20,6 @@ "@dcl/sdk-commands": "file:../../../../packages/@dcl/sdk-commands" }, "dependencies": { - "@dcl/ecs-math": "^2.0.1-20221108141807.commit-a1344cb" + "@dcl/ecs-math": "2.1.0" } }