@galacean/engine-math 1.0.0-beta.15 → 1.0.0-beta.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-math",
3
- "version": "1.0.0-beta.15",
3
+ "version": "1.0.0-beta.17",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
package/types/Rect.d.ts CHANGED
@@ -1,14 +1,26 @@
1
1
  import { IClone } from "./IClone";
2
2
  import { ICopy } from "./ICopy";
3
3
  export declare class Rect implements IClone<Rect>, ICopy<Rect, Rect> {
4
- /** The x coordinate of the rectangle. */
5
- x: number;
6
- /** The y coordinate of the rectangle. */
7
- y: number;
8
- /** The width of the rectangle, measured from the x position. */
9
- width: number;
10
- /** The height of the rectangle, measured from the y position. */
11
- height: number;
4
+ /**
5
+ * The x coordinate of the rectangle.
6
+ */
7
+ get x(): number;
8
+ set x(value: number);
9
+ /**
10
+ * The y coordinate of the rectangle.
11
+ */
12
+ get y(): number;
13
+ set y(value: number);
14
+ /**
15
+ * The width of the rectangle, measured from the x position.
16
+ */
17
+ get width(): number;
18
+ set width(value: number);
19
+ /**
20
+ * The height of the rectangle, measured from the y position.
21
+ */
22
+ get height(): number;
23
+ set height(value: number);
12
24
  /**
13
25
  * Constructor of Rect.
14
26
  * @param x - The x coordinate of the rectangle, default 0