1 | import type { ISize, Rectangle } from '@pixi/math';
|
2 | /**
|
3 | * Stores a texture's frame in UV coordinates, in
|
4 | * which everything lies in the rectangle `[(0,0), (1,0),
|
5 | * (1,1), (0,1)]`.
|
6 | *
|
7 | * | Corner | Coordinates |
|
8 | * |--------------|-------------|
|
9 | * | Top-Left | `(x0,y0)` |
|
10 | * | Top-Right | `(x1,y1)` |
|
11 | * | Bottom-Right | `(x2,y2)` |
|
12 | * | Bottom-Left | `(x3,y3)` |
|
13 | * @protected
|
14 | * @memberof PIXI
|
15 | */
|
16 | export declare class TextureUvs {
|
17 | /** X-component of top-left corner `(x0,y0)`. */
|
18 | x0: number;
|
19 | /** Y-component of top-left corner `(x0,y0)`. */
|
20 | y0: number;
|
21 | /** X-component of top-right corner `(x1,y1)`. */
|
22 | x1: number;
|
23 | /** Y-component of top-right corner `(x1,y1)`. */
|
24 | y1: number;
|
25 | /** X-component of bottom-right corner `(x2,y2)`. */
|
26 | x2: number;
|
27 | /** Y-component of bottom-right corner `(x2,y2)`. */
|
28 | y2: number;
|
29 | /** X-component of bottom-left corner `(x3,y3)`. */
|
30 | x3: number;
|
31 | /** Y-component of bottom-right corner `(x3,y3)`. */
|
32 | y3: number;
|
33 | uvsFloat32: Float32Array;
|
34 | constructor();
|
35 | /**
|
36 | * Sets the texture Uvs based on the given frame information.
|
37 | * @protected
|
38 | * @param frame - The frame of the texture
|
39 | * @param baseFrame - The base frame of the texture
|
40 | * @param rotate - Rotation of frame, see { PIXI.groupD8}
|
41 | */
|
42 | set(frame: Rectangle, baseFrame: ISize, rotate: number): void;
|
43 | toString(): string;
|
44 | }
|