laymur 0.0.6 → 0.0.9
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/dist/Elements/UIImage.d.ts +2 -1
- package/dist/Elements/UIText.d.ts +2 -1
- package/dist/Materials/UIEnhancedMaterial.d.ts +17 -0
- package/dist/Materials/UIMaterial.d.ts +5 -0
- package/dist/Miscellaneous/symbols.d.ts +1 -0
- package/dist/index.js +3688 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Texture } from "three";
|
|
2
2
|
import type { UILayer } from "../Layers/UILayer";
|
|
3
|
+
import { UIEnhancedMaterial } from "../Materials/UIEnhancedMaterial";
|
|
3
4
|
import { UIElement } from "./UIElement";
|
|
4
5
|
export declare class UIImage extends UIElement {
|
|
5
|
-
|
|
6
|
+
readonly material: UIEnhancedMaterial;
|
|
6
7
|
constructor(layer: UILayer, texture: Texture);
|
|
7
8
|
destroy(): void;
|
|
8
9
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UILayer } from "../Layers/UILayer";
|
|
2
|
+
import { UIEnhancedMaterial } from "../Materials/UIEnhancedMaterial";
|
|
2
3
|
import { flushTransformSymbol } from "../Miscellaneous/symbols";
|
|
3
4
|
import { UIElement } from "./UIElement";
|
|
4
5
|
import type { UITextPadding, UITextSpan, UITextStyle } from "./UITextInterfaces";
|
|
@@ -8,10 +9,10 @@ export interface UITextParameters {
|
|
|
8
9
|
defaultStyle: Partial<UITextStyle>;
|
|
9
10
|
}
|
|
10
11
|
export declare class UIText extends UIElement {
|
|
12
|
+
readonly material: UIEnhancedMaterial;
|
|
11
13
|
private readonly canvas;
|
|
12
14
|
private readonly context;
|
|
13
15
|
private readonly texture;
|
|
14
|
-
private readonly material;
|
|
15
16
|
private readonly textBlockSize;
|
|
16
17
|
private readonly padding;
|
|
17
18
|
private lastSuggestedAspect;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Texture } from "three";
|
|
2
|
+
import { Color, ShaderMaterial } from "three";
|
|
3
|
+
import { materialSymbol } from "../Miscellaneous/symbols";
|
|
4
|
+
export declare class UIEnhancedMaterial {
|
|
5
|
+
readonly [materialSymbol]: ShaderMaterial;
|
|
6
|
+
constructor(texture: Texture);
|
|
7
|
+
get color(): Color;
|
|
8
|
+
get opacity(): number;
|
|
9
|
+
get saturation(): number;
|
|
10
|
+
get brightness(): number;
|
|
11
|
+
get hue(): number;
|
|
12
|
+
set color(value: Color);
|
|
13
|
+
set saturation(value: number);
|
|
14
|
+
set brightness(value: number);
|
|
15
|
+
set hue(value: number);
|
|
16
|
+
set opacity(value: number);
|
|
17
|
+
}
|
|
@@ -16,3 +16,4 @@ export declare const enableConstraintSymbol: unique symbol;
|
|
|
16
16
|
export declare const needsRecalculation: unique symbol;
|
|
17
17
|
export declare const flushTransformSymbol: unique symbol;
|
|
18
18
|
export declare const clickSymbol: unique symbol;
|
|
19
|
+
export declare const materialSymbol: unique symbol;
|