laymur 0.19.1 → 0.19.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.
|
@@ -44,7 +44,7 @@ export declare class UIGraphics extends UIElement {
|
|
|
44
44
|
* @param points - Array of [x, y] pairs
|
|
45
45
|
* @param lineWidth - Line width in pixels
|
|
46
46
|
*/
|
|
47
|
-
drawPolyline(points: [number, number][], color:
|
|
47
|
+
drawPolyline(points: [number, number][], color: UIColorConfig, lineWidth?: number): this;
|
|
48
48
|
/** Removes element and frees resources */
|
|
49
49
|
destroy(): void;
|
|
50
50
|
protected onWillRender(renderer: WebGLRenderer, deltaTime: number): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Texture } from "three";
|
|
2
1
|
import type { UILayer } from "../../layers/UILayer/UILayer";
|
|
3
2
|
import { UIColor } from "../../miscellaneous/color/UIColor";
|
|
4
3
|
import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
|
|
5
4
|
import type { UIProgressMaskFunction } from "../../miscellaneous/mask-function/UIProgressMaskFunction";
|
|
6
5
|
import { UITextureView } from "../../miscellaneous/texture/UITextureView";
|
|
6
|
+
import type { UITextureConfig } from "../../miscellaneous/texture/UITextureView.Internal";
|
|
7
7
|
import { UIElement } from "../UIElement/UIElement";
|
|
8
8
|
import type { UIProgressOptions } from "./UIProgress.Internal";
|
|
9
9
|
/** Progress bar with customizable fill direction */
|
|
@@ -26,7 +26,7 @@ export declare class UIProgress extends UIElement {
|
|
|
26
26
|
* @param texture - Texture to display
|
|
27
27
|
* @param options - Configuration options
|
|
28
28
|
*/
|
|
29
|
-
constructor(layer: UILayer, texture:
|
|
29
|
+
constructor(layer: UILayer, texture: UITextureConfig, options?: Partial<UIProgressOptions>);
|
|
30
30
|
/** Multiplicative tint. Alpha channel controls opacity. */
|
|
31
31
|
get color(): UIColor;
|
|
32
32
|
/** Function controlling fill direction and shape */
|