laymur 0.1.44 → 0.1.46
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/Constraints/UIAspectConstraint.d.ts +36 -3
- package/dist/Constraints/UIConstraint.d.ts +23 -4
- package/dist/Constraints/UIConstraintPower.d.ts +44 -0
- package/dist/Constraints/UIConstraintRule.d.ts +37 -0
- package/dist/Constraints/UICoverConstraint.d.ts +48 -3
- package/dist/Constraints/UIFitConstraint.d.ts +48 -3
- package/dist/Constraints/UIHeightConstraint.d.ts +35 -3
- package/dist/Constraints/UIHorizontalDistanceConstraint.d.ts +38 -3
- package/dist/Constraints/UIHorizontalProportionConstraint.d.ts +36 -3
- package/dist/Constraints/UIVerticalDistanceConstraint.d.ts +38 -3
- package/dist/Constraints/UIVerticalProportionConstraint.d.ts +36 -3
- package/dist/Constraints/UIWidthConstraint.d.ts +35 -3
- package/dist/Elements/UIDummy.d.ts +15 -0
- package/dist/Elements/UIElement.d.ts +90 -3
- package/dist/Elements/UIImage.d.ts +33 -0
- package/dist/Elements/UIProgress.d.ts +84 -0
- package/dist/Elements/UIScene.d.ts +90 -0
- package/dist/Elements/UIText.d.ts +51 -1
- package/dist/Miscellaneous/UIMicro.d.ts +142 -0
- package/dist/Miscellaneous/UIMode.d.ts +20 -0
- package/dist/Miscellaneous/UIOrientation.d.ts +30 -0
- package/dist/Miscellaneous/symbols.d.ts +1 -18
- package/dist/Miscellaneous/textTools.d.ts +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/Builders/UICommonDoubleElementConstraintDescriptionInterfaces.d.ts +0 -55
- package/dist/Builders/UICommonSingleElementConstraintDescriptionInterfaces.d.ts +0 -27
- package/dist/Builders/UIConstraintBuilder.d.ts +0 -14
- package/dist/Builders/UIElementBuilder.d.ts +0 -7
- package/dist/Builders/UIElementBuilderInterfaces.d.ts +0 -27
- /package/dist/{Elements → Miscellaneous}/UITextInterfaces.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type UIConstraintPower } from "../Constraints/UIConstraintPower";
|
|
2
|
-
import { type UIConstraintRule } from "../Constraints/UIConstraintRule";
|
|
3
|
-
import { UIElement } from "../Elements/UIElement";
|
|
4
|
-
import { UILayer } from "../Layers/UILayer";
|
|
5
|
-
import type { UIOrientation } from "../Miscellaneous/UIOrientation";
|
|
6
|
-
export type AtLeastOneNumber = {
|
|
7
|
-
x?: number;
|
|
8
|
-
y: number;
|
|
9
|
-
} | {
|
|
10
|
-
x: number;
|
|
11
|
-
y?: number;
|
|
12
|
-
};
|
|
13
|
-
export type AtLeastOnePower = {
|
|
14
|
-
x?: UIConstraintPower;
|
|
15
|
-
y: UIConstraintPower;
|
|
16
|
-
} | {
|
|
17
|
-
x: UIConstraintPower;
|
|
18
|
-
y?: UIConstraintPower;
|
|
19
|
-
};
|
|
20
|
-
export type AtLeastOneRule = {
|
|
21
|
-
x?: UIConstraintRule;
|
|
22
|
-
y: UIConstraintRule;
|
|
23
|
-
} | {
|
|
24
|
-
x: UIConstraintRule;
|
|
25
|
-
y?: UIConstraintRule;
|
|
26
|
-
};
|
|
27
|
-
export interface UICommonDoubleElementConstraintDescription {
|
|
28
|
-
elementOne: UIElement | UILayer;
|
|
29
|
-
elementTwo: UIElement;
|
|
30
|
-
}
|
|
31
|
-
export interface UICommonProportionalConstraintDescription extends UICommonDoubleElementConstraintDescription {
|
|
32
|
-
proportion: AtLeastOneNumber;
|
|
33
|
-
power?: AtLeastOnePower;
|
|
34
|
-
rule?: AtLeastOneRule;
|
|
35
|
-
orientation?: UIOrientation;
|
|
36
|
-
}
|
|
37
|
-
export interface UICommonDistanceConstraintDescription extends UICommonDoubleElementConstraintDescription {
|
|
38
|
-
distance: AtLeastOneNumber;
|
|
39
|
-
anchorOne?: AtLeastOneNumber;
|
|
40
|
-
anchorTwo?: AtLeastOneNumber;
|
|
41
|
-
power?: AtLeastOnePower;
|
|
42
|
-
rule?: AtLeastOneRule;
|
|
43
|
-
orientation?: UIOrientation;
|
|
44
|
-
}
|
|
45
|
-
export interface UICommonCoverConstraintDescription extends UICommonDoubleElementConstraintDescription {
|
|
46
|
-
isStrict: boolean;
|
|
47
|
-
anchor?: AtLeastOneNumber;
|
|
48
|
-
}
|
|
49
|
-
export declare function isAtLeastOneNumber(obj: unknown): obj is AtLeastOneNumber;
|
|
50
|
-
export declare function isAtLeastOnePower(obj: unknown): obj is AtLeastOnePower;
|
|
51
|
-
export declare function isAtLeastOneRule(obj: unknown): obj is AtLeastOneRule;
|
|
52
|
-
export declare function isUICommonDoubleElementConstraintDescription(obj: unknown): obj is UICommonDoubleElementConstraintDescription;
|
|
53
|
-
export declare function isUICommonDistanceConstraintDescription(obj: unknown): obj is UICommonDistanceConstraintDescription;
|
|
54
|
-
export declare function isUICommonProportionalConstraintDescription(obj: unknown): obj is UICommonProportionalConstraintDescription;
|
|
55
|
-
export declare function isUICommonCoverConstraintDescription(obj: unknown): obj is UICommonCoverConstraintDescription;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { UIConstraintPower } from "../Constraints/UIConstraintPower";
|
|
2
|
-
import type { UIConstraintRule } from "../Constraints/UIConstraintRule";
|
|
3
|
-
import { UIElement } from "../Elements/UIElement";
|
|
4
|
-
import type { UIOrientation } from "../Miscellaneous/UIOrientation";
|
|
5
|
-
export interface UICommonSingleElementConstraintDescription {
|
|
6
|
-
element: UIElement;
|
|
7
|
-
power?: UIConstraintPower;
|
|
8
|
-
rule?: UIConstraintRule;
|
|
9
|
-
orientation?: UIOrientation;
|
|
10
|
-
}
|
|
11
|
-
export interface UIWidthConstraintDescription extends UICommonSingleElementConstraintDescription {
|
|
12
|
-
width: number;
|
|
13
|
-
}
|
|
14
|
-
export interface UIHeightConstraintDescription extends UICommonSingleElementConstraintDescription {
|
|
15
|
-
height: number;
|
|
16
|
-
}
|
|
17
|
-
export interface UIKeepAspectConstraintDescription extends UICommonSingleElementConstraintDescription {
|
|
18
|
-
keepAspect: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface UIKeepSizeConstraintDescription extends UICommonSingleElementConstraintDescription {
|
|
21
|
-
keepSize: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function isUICommonSingleElementConstraintDescription(obj: unknown): obj is UICommonSingleElementConstraintDescription;
|
|
24
|
-
export declare function isUIWidthConstraintDescription(obj: unknown): obj is UIWidthConstraintDescription;
|
|
25
|
-
export declare function isUIHeightConstraintDescription(obj: unknown): obj is UIHeightConstraintDescription;
|
|
26
|
-
export declare function isUIKeepAspectConstraintDescription(obj: unknown): obj is UIKeepAspectConstraintDescription;
|
|
27
|
-
export declare function isUIKeepSizeConstraintDescription(obj: unknown): obj is UIKeepSizeConstraintDescription;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UIConstraint } from "../Constraints/UIConstraint";
|
|
2
|
-
import type { UICommonCoverConstraintDescription, UICommonDistanceConstraintDescription, UICommonProportionalConstraintDescription } from "./UICommonDoubleElementConstraintDescriptionInterfaces";
|
|
3
|
-
import type { UIHeightConstraintDescription, UIKeepAspectConstraintDescription, UIKeepSizeConstraintDescription, UIWidthConstraintDescription } from "./UICommonSingleElementConstraintDescriptionInterfaces";
|
|
4
|
-
export type UIAnyCommonConstraintDescription = UICommonProportionalConstraintDescription | UICommonDistanceConstraintDescription | UICommonCoverConstraintDescription | UIWidthConstraintDescription | UIHeightConstraintDescription | UIKeepAspectConstraintDescription | UIKeepSizeConstraintDescription;
|
|
5
|
-
export declare class UIConstraintBuilder {
|
|
6
|
-
static fromDescription(description: Map<string, UIAnyCommonConstraintDescription> | Record<string, UIAnyCommonConstraintDescription>): Record<string, UIConstraint>;
|
|
7
|
-
private static buildWidthConstraint;
|
|
8
|
-
private static buildHeightConstraint;
|
|
9
|
-
private static buildKeepAspectConstraint;
|
|
10
|
-
private static buildKeepSizeConstraint;
|
|
11
|
-
private static buildDistanceConstraint;
|
|
12
|
-
private static buildProportionalConstraint;
|
|
13
|
-
private static buildCoverConstraint;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Texture } from "three";
|
|
2
|
-
import type { UIElement } from "../Elements/UIElement";
|
|
3
|
-
import type { UILayer } from "../Layers/UILayer";
|
|
4
|
-
import type { UIAnyElementDescription } from "./UIElementBuilderInterfaces";
|
|
5
|
-
export declare class UIElementBuilder {
|
|
6
|
-
static fromDescription(layer: UILayer, description: Map<string, UIAnyElementDescription | Texture | String> | Record<string, UIAnyElementDescription | Texture | String>): Record<string, UIElement>;
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Texture } from "three";
|
|
2
|
-
import type { UITextSpan, UITextStyle } from "../Elements/UITextInterfaces";
|
|
3
|
-
export interface UIImageDescription {
|
|
4
|
-
texture: Texture;
|
|
5
|
-
}
|
|
6
|
-
export interface UIProgressDescription {
|
|
7
|
-
background: Texture;
|
|
8
|
-
foreground: Texture;
|
|
9
|
-
}
|
|
10
|
-
export interface UITextDescription {
|
|
11
|
-
text: string;
|
|
12
|
-
style?: Partial<UITextStyle>;
|
|
13
|
-
}
|
|
14
|
-
export interface UITextMultiSpanDescription {
|
|
15
|
-
spans: (UITextSpan | string)[];
|
|
16
|
-
defaultStyle?: Partial<UITextStyle>;
|
|
17
|
-
}
|
|
18
|
-
export interface UIDummyDescription {
|
|
19
|
-
width?: number;
|
|
20
|
-
height?: number;
|
|
21
|
-
}
|
|
22
|
-
export type UIAnyElementDescription = UIImageDescription | UIProgressDescription | UITextDescription | UITextMultiSpanDescription | UIDummyDescription;
|
|
23
|
-
export declare function isUIImageDescription(obj: unknown): obj is UIImageDescription;
|
|
24
|
-
export declare function isUIProgressDescription(obj: unknown): obj is UIProgressDescription;
|
|
25
|
-
export declare function isUITextDescription(obj: unknown): obj is UITextDescription;
|
|
26
|
-
export declare function isUITextMultiSpanDescription(obj: unknown): obj is UITextMultiSpanDescription;
|
|
27
|
-
export declare function isUIDummyDescription(obj: unknown): obj is UIDummyDescription;
|
|
File without changes
|