hudini 0.17.1 → 0.18.0
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/components/card/card.d.ts +34 -9
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +117 -49
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/card.spec.js +28 -1
- package/dist/components/card/card.spec.js.map +1 -1
- package/dist/components/circular-progress/circular-progress.d.ts +4 -4
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
- package/dist/components/circular-progress/circular-progress.js +9 -8
- package/dist/components/circular-progress/circular-progress.js.map +1 -1
- package/dist/components/circular-progress/circular-progress.spec.js +4 -4
- package/dist/components/circular-progress/circular-progress.spec.js.map +1 -1
- package/dist/components/container-interactive/container-interactive.d.ts +65 -0
- package/dist/components/container-interactive/container-interactive.d.ts.map +1 -0
- package/dist/components/container-interactive/container-interactive.js +99 -0
- package/dist/components/container-interactive/container-interactive.js.map +1 -0
- package/dist/components/container-interactive/index.d.ts +2 -0
- package/dist/components/container-interactive/index.d.ts.map +1 -0
- package/dist/components/container-interactive/index.js +2 -0
- package/dist/components/container-interactive/index.js.map +1 -0
- package/dist/components/flat-icon-button/flat-icon-button.d.ts +3 -0
- package/dist/components/flat-icon-button/flat-icon-button.d.ts.map +1 -1
- package/dist/components/flat-icon-button/flat-icon-button.js +110 -19
- package/dist/components/flat-icon-button/flat-icon-button.js.map +1 -1
- package/dist/components/flat-section-header/flat-section-header.d.ts +143 -0
- package/dist/components/flat-section-header/flat-section-header.d.ts.map +1 -0
- package/dist/components/flat-section-header/flat-section-header.js +275 -0
- package/dist/components/flat-section-header/flat-section-header.js.map +1 -0
- package/dist/components/flat-section-header/flat-section-header.spec.d.ts +2 -0
- package/dist/components/flat-section-header/flat-section-header.spec.d.ts.map +1 -0
- package/dist/components/flat-section-header/flat-section-header.spec.js +255 -0
- package/dist/components/flat-section-header/flat-section-header.spec.js.map +1 -0
- package/dist/components/flat-section-header/index.d.ts +2 -0
- package/dist/components/flat-section-header/index.d.ts.map +1 -0
- package/dist/components/flat-section-header/index.js +2 -0
- package/dist/components/flat-section-header/index.js.map +1 -0
- package/dist/components/flat-text-button/flat-text-button.d.ts +165 -0
- package/dist/components/flat-text-button/flat-text-button.d.ts.map +1 -0
- package/dist/components/flat-text-button/flat-text-button.js +325 -0
- package/dist/components/flat-text-button/flat-text-button.js.map +1 -0
- package/dist/components/flat-text-button/flat-text-button.spec.d.ts +2 -0
- package/dist/components/flat-text-button/flat-text-button.spec.d.ts.map +1 -0
- package/dist/components/flat-text-button/flat-text-button.spec.js +243 -0
- package/dist/components/flat-text-button/flat-text-button.spec.js.map +1 -0
- package/dist/components/flat-text-button/index.d.ts +2 -0
- package/dist/components/flat-text-button/index.d.ts.map +1 -0
- package/dist/components/flat-text-button/index.js +2 -0
- package/dist/components/flat-text-button/index.js.map +1 -0
- package/dist/components/icon-button/icon-button.d.ts +11 -3
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +124 -70
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/panel/panel.d.ts +0 -1
- package/dist/components/panel/panel.d.ts.map +1 -1
- package/dist/components/panel/panel.js +7 -10
- package/dist/components/panel/panel.js.map +1 -1
- package/dist/components/section-header/section-header.d.ts +33 -39
- package/dist/components/section-header/section-header.d.ts.map +1 -1
- package/dist/components/section-header/section-header.js +124 -155
- package/dist/components/section-header/section-header.js.map +1 -1
- package/dist/components/section-header/section-header.spec.js +57 -17
- package/dist/components/section-header/section-header.spec.js.map +1 -1
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +2 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +45 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.js +35 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text-button/text-button.d.ts +26 -23
- package/dist/components/text-button/text-button.d.ts.map +1 -1
- package/dist/components/text-button/text-button.js +114 -88
- package/dist/components/text-button/text-button.js.map +1 -1
- package/dist/components/text-button/text-button.spec.js +98 -8
- package/dist/components/text-button/text-button.spec.js.map +1 -1
- package/dist/hudini.js +4166 -460
- package/dist/hudini.min.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/loaders/index.d.ts +2 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/index.js +2 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/loaders/load-fonts.d.ts +8 -0
- package/dist/loaders/load-fonts.d.ts.map +1 -0
- package/dist/loaders/load-fonts.js +41 -0
- package/dist/loaders/load-fonts.js.map +1 -0
- package/dist/test-setup.js +8 -2
- package/dist/test-setup.js.map +1 -1
- package/dist/utils/color-variants.d.ts +38 -0
- package/dist/utils/color-variants.d.ts.map +1 -0
- package/dist/utils/color-variants.js +59 -0
- package/dist/utils/color-variants.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parameters for creating a {@link Text} object.
|
|
3
|
+
*/
|
|
4
|
+
export type TextParams = {
|
|
5
|
+
/**
|
|
6
|
+
* The Phaser scene where the text will be added.
|
|
7
|
+
*/
|
|
8
|
+
scene: Phaser.Scene;
|
|
9
|
+
/**
|
|
10
|
+
* The X coordinate for the text object.
|
|
11
|
+
*/
|
|
12
|
+
x: number;
|
|
13
|
+
/**
|
|
14
|
+
* The Y coordinate for the text object.
|
|
15
|
+
*/
|
|
16
|
+
y: number;
|
|
17
|
+
/**
|
|
18
|
+
* The displayed string for the text object.
|
|
19
|
+
*/
|
|
20
|
+
text: string;
|
|
21
|
+
/**
|
|
22
|
+
* (Optional) Font size in pixels.
|
|
23
|
+
* @defaultValue 16
|
|
24
|
+
*/
|
|
25
|
+
size?: number;
|
|
26
|
+
/**
|
|
27
|
+
* (Optional) The font family to use.
|
|
28
|
+
* @defaultValue 'monospace'
|
|
29
|
+
*/
|
|
30
|
+
fontFamily?: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A simple customizable text component using Phaser's GameObjects.Text.
|
|
34
|
+
*
|
|
35
|
+
* Applies default shadow, stroke, and color styles.
|
|
36
|
+
*/
|
|
37
|
+
export declare class Text extends Phaser.GameObjects.Text {
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new {@link Text} object.
|
|
40
|
+
*
|
|
41
|
+
* @param params - Parameters for the text object.
|
|
42
|
+
*/
|
|
43
|
+
constructor({ scene, x, y, text, size, fontFamily, }: TextParams);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;IACpB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,IAAK,SAAQ,MAAM,CAAC,WAAW,CAAC,IAAI;IAC/C;;;;OAIG;gBACS,EACV,KAAK,EACL,CAAC,EACD,CAAC,EACD,IAAI,EACJ,IAAwB,EACxB,UAAyB,GAC1B,EAAE,UAAU;CAgBd"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Color } from 'hudini';
|
|
2
|
+
/**
|
|
3
|
+
* The default font size for the Text component.
|
|
4
|
+
* @constant
|
|
5
|
+
*/
|
|
6
|
+
const DEFAULT_FONT_SIZE = 22;
|
|
7
|
+
/**
|
|
8
|
+
* A simple customizable text component using Phaser's GameObjects.Text.
|
|
9
|
+
*
|
|
10
|
+
* Applies default shadow, stroke, and color styles.
|
|
11
|
+
*/
|
|
12
|
+
export class Text extends Phaser.GameObjects.Text {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new {@link Text} object.
|
|
15
|
+
*
|
|
16
|
+
* @param params - Parameters for the text object.
|
|
17
|
+
*/
|
|
18
|
+
constructor({ scene, x, y, text, size = DEFAULT_FONT_SIZE, fontFamily = 'Bebas Neue', }) {
|
|
19
|
+
super(scene, x, y, text, {
|
|
20
|
+
font: `${size}px "${fontFamily}"`,
|
|
21
|
+
color: Color.white(),
|
|
22
|
+
stroke: Color.black(),
|
|
23
|
+
strokeThickness: 2,
|
|
24
|
+
shadow: {
|
|
25
|
+
offsetX: 0,
|
|
26
|
+
offsetY: 3,
|
|
27
|
+
color: Color.black(),
|
|
28
|
+
blur: 0,
|
|
29
|
+
stroke: true,
|
|
30
|
+
fill: true,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/components/text/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B;;;GAGG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAkC7B;;;;GAIG;AACH,MAAM,OAAO,IAAK,SAAQ,MAAM,CAAC,WAAW,CAAC,IAAI;IAC/C;;;;OAIG;IACH,YAAY,EACV,KAAK,EACL,CAAC,EACD,CAAC,EACD,IAAI,EACJ,IAAI,GAAG,iBAAiB,EACxB,UAAU,GAAG,YAAY,GACd;QACX,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE;YACvB,IAAI,EAAE,GAAG,IAAI,OAAO,UAAU,GAAG;YACjC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;YACpB,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE;YACrB,eAAe,EAAE,CAAC;YAClB,MAAM,EAAE;gBACN,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;gBACpB,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,IAAI;aACX;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GameObjects, Scene } from 'phaser';
|
|
2
2
|
import { type ColorKey, type FontKey, type FontSizeKey, type RadiusKey, type SpacingKey } from 'phaser-wind';
|
|
3
|
+
import { ContainerInteractive } from '../container-interactive';
|
|
3
4
|
/**
|
|
4
5
|
* Parameters for creating a TextButton.
|
|
5
6
|
*/
|
|
@@ -24,7 +25,7 @@ export type TextButtonParams = {
|
|
|
24
25
|
/**
|
|
25
26
|
* Background color. Defaults to 'blue'.
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
+
color?: ColorKey | string;
|
|
28
29
|
/**
|
|
29
30
|
* Text color. Defaults to 'white'.
|
|
30
31
|
*/
|
|
@@ -35,10 +36,10 @@ export type TextButtonParams = {
|
|
|
35
36
|
*/
|
|
36
37
|
borderRadius?: RadiusKey | number;
|
|
37
38
|
/**
|
|
38
|
-
*
|
|
39
|
+
* Padding in px (number) or a Phaser Wind spacing token (string).
|
|
39
40
|
* Defaults to 'md'.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
padding?: SpacingKey | number;
|
|
42
43
|
/**
|
|
43
44
|
* Callback function for click event.
|
|
44
45
|
*/
|
|
@@ -48,26 +49,28 @@ export type TextButtonParams = {
|
|
|
48
49
|
* A customizable text button component for Phaser, supporting auto-sizing,
|
|
49
50
|
* design tokens, and interactive effects.
|
|
50
51
|
*/
|
|
51
|
-
export declare class TextButton extends GameObjects.
|
|
52
|
+
export declare class TextButton extends ContainerInteractive<Phaser.GameObjects.Sprite> {
|
|
52
53
|
/** The background sprite of the button. */
|
|
53
54
|
backgroundSprite: GameObjects.Sprite;
|
|
54
|
-
/** The
|
|
55
|
-
|
|
55
|
+
/** The white border sprite of the button. */
|
|
56
|
+
whiteBorderSprite: GameObjects.Sprite;
|
|
56
57
|
/** The text object of the button. */
|
|
57
58
|
buttonText: GameObjects.Text;
|
|
58
59
|
private pw;
|
|
59
60
|
private fontSizePx;
|
|
60
|
-
private
|
|
61
|
+
private paddingPx;
|
|
61
62
|
private borderRadiusPx;
|
|
62
|
-
private
|
|
63
|
+
private colorButton;
|
|
64
|
+
private lightColorButton;
|
|
65
|
+
private darkColorButton;
|
|
63
66
|
private textColorValue;
|
|
64
|
-
private
|
|
67
|
+
private fontFamily;
|
|
65
68
|
private textValue;
|
|
66
69
|
/**
|
|
67
70
|
* Creates a new TextButton instance.
|
|
68
71
|
* @param params TextButtonParams
|
|
69
72
|
*/
|
|
70
|
-
constructor({ scene, x, y, text, fontSize, font,
|
|
73
|
+
constructor({ scene, x, y, text, fontSize, font, color, textColor, borderRadius, padding, onClick, }: TextButtonParams);
|
|
71
74
|
/**
|
|
72
75
|
* Sets the button text.
|
|
73
76
|
* @param text The new text.
|
|
@@ -91,7 +94,7 @@ export declare class TextButton extends GameObjects.Container {
|
|
|
91
94
|
* @param color Color as token or CSS string.
|
|
92
95
|
* @returns This TextButton instance.
|
|
93
96
|
*/
|
|
94
|
-
|
|
97
|
+
setColor(color: ColorKey | string): this;
|
|
95
98
|
/**
|
|
96
99
|
* Sets the text color.
|
|
97
100
|
* @param color Color as token or CSS string.
|
|
@@ -105,21 +108,21 @@ export declare class TextButton extends GameObjects.Container {
|
|
|
105
108
|
*/
|
|
106
109
|
setBorderRadius(borderRadius: RadiusKey | number): this;
|
|
107
110
|
/**
|
|
108
|
-
* Sets the
|
|
109
|
-
* @param
|
|
111
|
+
* Sets the padding.
|
|
112
|
+
* @param padding Padding in px or token.
|
|
110
113
|
* @returns This TextButton instance.
|
|
111
114
|
*/
|
|
112
|
-
|
|
115
|
+
setPadding(padding: SpacingKey | number): this;
|
|
113
116
|
/**
|
|
114
117
|
* Creates the button text GameObject.
|
|
115
118
|
* @param scene Phaser scene.
|
|
116
119
|
*/
|
|
117
120
|
private createButtonText;
|
|
118
121
|
/**
|
|
119
|
-
* Creates the
|
|
122
|
+
* Creates the white border sprite for the button.
|
|
120
123
|
* @param scene Phaser scene.
|
|
121
124
|
*/
|
|
122
|
-
private
|
|
125
|
+
private createWhiteBorderSprite;
|
|
123
126
|
/**
|
|
124
127
|
* Creates the background sprite for the button.
|
|
125
128
|
* @param scene Phaser scene.
|
|
@@ -135,17 +138,22 @@ export declare class TextButton extends GameObjects.Container {
|
|
|
135
138
|
*/
|
|
136
139
|
private getButtonDimensions;
|
|
137
140
|
/**
|
|
138
|
-
* Creates a texture for the button's
|
|
141
|
+
* Creates a texture for the button's white border.
|
|
139
142
|
* @param scene Phaser scene.
|
|
140
143
|
* @returns The texture key.
|
|
141
144
|
*/
|
|
142
|
-
private
|
|
145
|
+
private createWhiteBorderTexture;
|
|
143
146
|
/**
|
|
144
147
|
* Creates a texture for the button's background.
|
|
145
148
|
* @param scene Phaser scene.
|
|
146
149
|
* @returns The texture key.
|
|
147
150
|
*/
|
|
148
151
|
private createBackgroundTexture;
|
|
152
|
+
/**
|
|
153
|
+
* Draws gradient using white/black overlays on CSS color.
|
|
154
|
+
* Uses a mask to ensure overlays respect the button's rounded corners.
|
|
155
|
+
*/
|
|
156
|
+
private drawCssColorGradient;
|
|
149
157
|
/**
|
|
150
158
|
* Adds the button's visual elements to the container.
|
|
151
159
|
*/
|
|
@@ -155,10 +163,5 @@ export declare class TextButton extends GameObjects.Container {
|
|
|
155
163
|
* @param onClick Optional click callback.
|
|
156
164
|
*/
|
|
157
165
|
private setupInteractivity;
|
|
158
|
-
/**
|
|
159
|
-
* Gets the interactive sprite of the icon button
|
|
160
|
-
* @returns The interactive sprite
|
|
161
|
-
*/
|
|
162
|
-
get interactive(): Pick<GameObjects.Sprite, 'on' | 'off' | 'setInteractive' | 'setInteractive' | 'once'>;
|
|
163
166
|
}
|
|
164
167
|
//# sourceMappingURL=text-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-button.d.ts","sourceRoot":"","sources":["../../../src/components/text-button/text-button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-button.d.ts","sourceRoot":"","sources":["../../../src/components/text-button/text-button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mDAAmD;IACnD,KAAK,EAAE,KAAK,CAAC;IACb,gCAAgC;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,gCAAgC;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM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;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI;IAQ/C;;;;OAIG;IACI,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI;IAMnD;;;;OAIG;IACI,eAAe,CAAC,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI;IAS9D;;;;OAIG;IACI,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI;IASrD;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAM/B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAM9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAO3B;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAmChC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAsB/B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAkC5B;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;CA8C3B"}
|
|
@@ -1,39 +1,50 @@
|
|
|
1
|
-
import { GameObjects } from 'phaser';
|
|
2
1
|
import { Color, } from 'phaser-wind';
|
|
2
|
+
import { getColorVariant } from '../../utils/color-variants';
|
|
3
3
|
import { getPWFromScene } from '../../utils/get-pw-from-scene';
|
|
4
|
+
import { ContainerInteractive } from '../container-interactive';
|
|
5
|
+
import { Text } from '../text';
|
|
4
6
|
const durations = {
|
|
5
|
-
click:
|
|
6
|
-
hover:
|
|
7
|
+
click: 60,
|
|
8
|
+
hover: 100,
|
|
7
9
|
};
|
|
8
10
|
const HOVER_SCALE = 1.05;
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
11
|
+
const POINTER_DOWN_SCALE = 0.95;
|
|
12
|
+
const TOKEN_LIGHTER_DIFF = -100;
|
|
13
|
+
const TOKEN_DARKER_DIFF = 100;
|
|
14
|
+
const COLOR_LIGHTER_AMOUNT = 30;
|
|
15
|
+
const COLOR_DARKER_AMOUNT = -30;
|
|
16
|
+
// Border constants
|
|
17
|
+
const BLACK_BORDER_THICKNESS = 2;
|
|
18
|
+
const WHITE_BORDER_EXTRA_PIXELS_PER_SIDE = 2;
|
|
19
|
+
const WHITE_BORDER_TOTAL_EXTRA_PIXELS = WHITE_BORDER_EXTRA_PIXELS_PER_SIDE * 2; // 4 pixels total
|
|
20
|
+
const WHITE_BORDER_RADIUS_EXTRA = 2;
|
|
12
21
|
/**
|
|
13
22
|
* A customizable text button component for Phaser, supporting auto-sizing,
|
|
14
23
|
* design tokens, and interactive effects.
|
|
15
24
|
*/
|
|
16
|
-
export class TextButton extends
|
|
25
|
+
export class TextButton extends ContainerInteractive {
|
|
17
26
|
/** The background sprite of the button. */
|
|
18
27
|
backgroundSprite;
|
|
19
|
-
/** The
|
|
20
|
-
|
|
28
|
+
/** The white border sprite of the button. */
|
|
29
|
+
whiteBorderSprite;
|
|
21
30
|
/** The text object of the button. */
|
|
22
31
|
buttonText;
|
|
23
32
|
pw;
|
|
24
33
|
fontSizePx;
|
|
25
|
-
|
|
34
|
+
paddingPx;
|
|
26
35
|
borderRadiusPx;
|
|
27
|
-
|
|
36
|
+
colorButton;
|
|
37
|
+
lightColorButton;
|
|
38
|
+
darkColorButton;
|
|
28
39
|
textColorValue;
|
|
29
|
-
|
|
40
|
+
fontFamily;
|
|
30
41
|
textValue;
|
|
31
42
|
/**
|
|
32
43
|
* Creates a new TextButton instance.
|
|
33
44
|
* @param params TextButtonParams
|
|
34
45
|
*/
|
|
35
|
-
constructor({ scene, x, y, text, fontSize, font,
|
|
36
|
-
super(scene, x, y);
|
|
46
|
+
constructor({ scene, x, y, text, fontSize = 'lg', font, color = 'blue', textColor = 'white', borderRadius = 'md', padding = '4', onClick, }) {
|
|
47
|
+
super({ scene, x, y });
|
|
37
48
|
this.pw = getPWFromScene(scene);
|
|
38
49
|
// Store values
|
|
39
50
|
this.textValue = text;
|
|
@@ -41,27 +52,26 @@ export class TextButton extends GameObjects.Container {
|
|
|
41
52
|
typeof fontSize === 'number'
|
|
42
53
|
? fontSize
|
|
43
54
|
: this.pw.fontSize.px(fontSize ?? 'md');
|
|
44
|
-
this.
|
|
45
|
-
typeof
|
|
46
|
-
?
|
|
47
|
-
: this.pw.spacing.px(
|
|
55
|
+
this.paddingPx =
|
|
56
|
+
typeof padding === 'number'
|
|
57
|
+
? padding
|
|
58
|
+
: this.pw.spacing.px(padding ?? '4');
|
|
48
59
|
this.borderRadiusPx =
|
|
49
60
|
typeof borderRadius === 'number'
|
|
50
61
|
? borderRadius
|
|
51
62
|
: this.pw.radius.px(borderRadius ?? 'md');
|
|
52
|
-
this.
|
|
63
|
+
this.colorButton = Color.rgb(color);
|
|
64
|
+
this.lightColorButton = getColorVariant(color, TOKEN_LIGHTER_DIFF, COLOR_LIGHTER_AMOUNT);
|
|
65
|
+
this.darkColorButton = getColorVariant(color, TOKEN_DARKER_DIFF, COLOR_DARKER_AMOUNT);
|
|
53
66
|
this.textColorValue = Color.rgb(textColor);
|
|
54
|
-
this.
|
|
55
|
-
typeof font === 'string'
|
|
56
|
-
? font
|
|
57
|
-
: this.pw.font.family(font ?? 'primary');
|
|
67
|
+
this.fontFamily = font ? (typeof font === 'string' ? font : this.pw.font.family(font)) : 'Bebas Neue';
|
|
58
68
|
this.createButtonText(scene);
|
|
59
|
-
this.
|
|
69
|
+
this.createWhiteBorderSprite(scene);
|
|
60
70
|
this.createBackgroundSprite(scene);
|
|
61
71
|
this.setupContainer();
|
|
62
72
|
this.setupInteractivity(onClick);
|
|
73
|
+
this.hitArea = this.backgroundSprite;
|
|
63
74
|
}
|
|
64
|
-
// API Methods
|
|
65
75
|
/**
|
|
66
76
|
* Sets the button text.
|
|
67
77
|
* @param text The new text.
|
|
@@ -93,11 +103,11 @@ export class TextButton extends GameObjects.Container {
|
|
|
93
103
|
* @returns This TextButton instance.
|
|
94
104
|
*/
|
|
95
105
|
setFont(font) {
|
|
96
|
-
this.
|
|
106
|
+
this.fontFamily =
|
|
97
107
|
typeof font === 'string'
|
|
98
108
|
? font
|
|
99
109
|
: this.pw.font.family(font ?? 'primary');
|
|
100
|
-
this.buttonText.setFontFamily(this.
|
|
110
|
+
this.buttonText.setFontFamily(this.fontFamily);
|
|
101
111
|
this.regenerateSprites();
|
|
102
112
|
return this;
|
|
103
113
|
}
|
|
@@ -106,8 +116,10 @@ export class TextButton extends GameObjects.Container {
|
|
|
106
116
|
* @param color Color as token or CSS string.
|
|
107
117
|
* @returns This TextButton instance.
|
|
108
118
|
*/
|
|
109
|
-
|
|
110
|
-
this.
|
|
119
|
+
setColor(color) {
|
|
120
|
+
this.colorButton = Color.rgb(color);
|
|
121
|
+
this.lightColorButton = getColorVariant(color, TOKEN_LIGHTER_DIFF, COLOR_LIGHTER_AMOUNT);
|
|
122
|
+
this.darkColorButton = getColorVariant(color, TOKEN_DARKER_DIFF, COLOR_DARKER_AMOUNT);
|
|
111
123
|
this.regenerateSprites();
|
|
112
124
|
return this;
|
|
113
125
|
}
|
|
@@ -135,15 +147,15 @@ export class TextButton extends GameObjects.Container {
|
|
|
135
147
|
return this;
|
|
136
148
|
}
|
|
137
149
|
/**
|
|
138
|
-
* Sets the
|
|
139
|
-
* @param
|
|
150
|
+
* Sets the padding.
|
|
151
|
+
* @param padding Padding in px or token.
|
|
140
152
|
* @returns This TextButton instance.
|
|
141
153
|
*/
|
|
142
|
-
|
|
143
|
-
this.
|
|
144
|
-
typeof
|
|
145
|
-
?
|
|
146
|
-
: this.pw.spacing.px(
|
|
154
|
+
setPadding(padding) {
|
|
155
|
+
this.paddingPx =
|
|
156
|
+
typeof padding === 'number'
|
|
157
|
+
? padding
|
|
158
|
+
: this.pw.spacing.px(padding ?? '4');
|
|
147
159
|
this.regenerateSprites();
|
|
148
160
|
return this;
|
|
149
161
|
}
|
|
@@ -152,21 +164,24 @@ export class TextButton extends GameObjects.Container {
|
|
|
152
164
|
* @param scene Phaser scene.
|
|
153
165
|
*/
|
|
154
166
|
createButtonText(scene) {
|
|
155
|
-
this.buttonText =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
167
|
+
this.buttonText = new Text({
|
|
168
|
+
scene,
|
|
169
|
+
x: 0,
|
|
170
|
+
y: 0,
|
|
171
|
+
text: this.textValue,
|
|
172
|
+
size: this.fontSizePx,
|
|
173
|
+
fontFamily: this.fontFamily,
|
|
159
174
|
});
|
|
160
175
|
this.buttonText.setOrigin(0.5, 0.5);
|
|
161
176
|
}
|
|
162
177
|
/**
|
|
163
|
-
* Creates the
|
|
178
|
+
* Creates the white border sprite for the button.
|
|
164
179
|
* @param scene Phaser scene.
|
|
165
180
|
*/
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
181
|
+
createWhiteBorderSprite(scene) {
|
|
182
|
+
const whiteBorderTexture = this.createWhiteBorderTexture(scene);
|
|
183
|
+
this.whiteBorderSprite = scene.add.sprite(0, 0, whiteBorderTexture);
|
|
184
|
+
this.whiteBorderSprite.setOrigin(0.5, 0.5);
|
|
170
185
|
}
|
|
171
186
|
/**
|
|
172
187
|
* Creates the background sprite for the button.
|
|
@@ -184,9 +199,9 @@ export class TextButton extends GameObjects.Container {
|
|
|
184
199
|
// Update text bounds after text/font changes
|
|
185
200
|
this.buttonText.setText(this.textValue);
|
|
186
201
|
// Regenerate textures
|
|
187
|
-
const
|
|
202
|
+
const whiteBorderTexture = this.createWhiteBorderTexture(this.scene);
|
|
188
203
|
const backgroundTexture = this.createBackgroundTexture(this.scene);
|
|
189
|
-
this.
|
|
204
|
+
this.whiteBorderSprite.setTexture(whiteBorderTexture);
|
|
190
205
|
this.backgroundSprite.setTexture(backgroundTexture);
|
|
191
206
|
}
|
|
192
207
|
/**
|
|
@@ -195,29 +210,32 @@ export class TextButton extends GameObjects.Container {
|
|
|
195
210
|
*/
|
|
196
211
|
getButtonDimensions() {
|
|
197
212
|
const textBounds = this.buttonText.getBounds();
|
|
198
|
-
const width = textBounds.width + this.
|
|
199
|
-
const height = textBounds.height + this.
|
|
213
|
+
const width = textBounds.width + this.paddingPx * 2;
|
|
214
|
+
const height = textBounds.height + this.paddingPx * 2;
|
|
200
215
|
return { width, height };
|
|
201
216
|
}
|
|
202
217
|
/**
|
|
203
|
-
* Creates a texture for the button's
|
|
218
|
+
* Creates a texture for the button's white border.
|
|
204
219
|
* @param scene Phaser scene.
|
|
205
220
|
* @returns The texture key.
|
|
206
221
|
*/
|
|
207
|
-
|
|
222
|
+
createWhiteBorderTexture(scene) {
|
|
208
223
|
const { width, height } = this.getButtonDimensions();
|
|
209
|
-
const textureKey = `
|
|
210
|
-
//
|
|
211
|
-
const
|
|
212
|
-
const
|
|
213
|
-
|
|
224
|
+
const textureKey = `textButton_whiteBorder_${this.borderRadiusPx}_${width}_${height}`;
|
|
225
|
+
// White border is larger on each side
|
|
226
|
+
const borderWidth = width + WHITE_BORDER_TOTAL_EXTRA_PIXELS;
|
|
227
|
+
const borderHeight = height + WHITE_BORDER_TOTAL_EXTRA_PIXELS;
|
|
228
|
+
// Add some padding for texture
|
|
229
|
+
const padding = 8;
|
|
230
|
+
const textureWidth = borderWidth + padding * 2;
|
|
231
|
+
const textureHeight = borderHeight + padding * 2;
|
|
214
232
|
const graphics = scene.add.graphics();
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
//
|
|
219
|
-
graphics.fillStyle(Color.hex('
|
|
220
|
-
graphics.fillRoundedRect(
|
|
233
|
+
const maxRadius = Math.floor(Math.min(borderWidth / 2, borderHeight / 2));
|
|
234
|
+
const effectiveRadius = Math.min(this.borderRadiusPx + WHITE_BORDER_RADIUS_EXTRA, maxRadius);
|
|
235
|
+
const finalRadius = Math.max(0, effectiveRadius);
|
|
236
|
+
// White border (outer)
|
|
237
|
+
graphics.fillStyle(Color.hex('white'), 1);
|
|
238
|
+
graphics.fillRoundedRect(padding, padding, borderWidth, borderHeight, finalRadius);
|
|
221
239
|
graphics.generateTexture(textureKey, textureWidth, textureHeight);
|
|
222
240
|
graphics.destroy();
|
|
223
241
|
return textureKey;
|
|
@@ -229,27 +247,46 @@ export class TextButton extends GameObjects.Container {
|
|
|
229
247
|
*/
|
|
230
248
|
createBackgroundTexture(scene) {
|
|
231
249
|
const { width, height } = this.getButtonDimensions();
|
|
232
|
-
const textureKey = `textButton_bg_${this.
|
|
250
|
+
const textureKey = `textButton_bg_${this.colorButton}_${this.borderRadiusPx}_${width}_${height}`;
|
|
233
251
|
// Add some padding for texture
|
|
234
252
|
const padding = 8;
|
|
235
253
|
const textureWidth = width + padding * 2;
|
|
236
254
|
const textureHeight = height + padding * 2;
|
|
237
255
|
const graphics = scene.add.graphics();
|
|
238
|
-
|
|
239
|
-
const maxRadius = Math.min(width / 2, height / 2);
|
|
256
|
+
const maxRadius = Math.floor(Math.min(width / 2, height / 2));
|
|
240
257
|
const effectiveRadius = Math.min(this.borderRadiusPx, maxRadius);
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
graphics.fillRoundedRect(padding, padding, width, height, effectiveRadius);
|
|
258
|
+
const finalRadius = Math.max(0, effectiveRadius);
|
|
259
|
+
this.drawCssColorGradient(graphics, padding, width, height, finalRadius);
|
|
244
260
|
graphics.generateTexture(textureKey, textureWidth, textureHeight);
|
|
245
261
|
graphics.destroy();
|
|
246
262
|
return textureKey;
|
|
247
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Draws gradient using white/black overlays on CSS color.
|
|
266
|
+
* Uses a mask to ensure overlays respect the button's rounded corners.
|
|
267
|
+
*/
|
|
268
|
+
drawCssColorGradient(graphics, padding, width, height, effectiveRadius) {
|
|
269
|
+
// Main background
|
|
270
|
+
graphics.fillStyle(Color.hex(this.colorButton), 1);
|
|
271
|
+
graphics.fillRoundedRect(padding, padding, width, height, effectiveRadius);
|
|
272
|
+
const PERCENT_HEIGHT = 0.15;
|
|
273
|
+
const overlayHeight = height * PERCENT_HEIGHT;
|
|
274
|
+
const topOverlayRadius = Math.min(effectiveRadius, overlayHeight / 2);
|
|
275
|
+
graphics.fillStyle(this.lightColorButton, 1);
|
|
276
|
+
graphics.fillRoundedRect(padding, padding, width, overlayHeight, topOverlayRadius);
|
|
277
|
+
// Bottom darker overlay
|
|
278
|
+
const bottomOverlayRadius = Math.min(effectiveRadius, overlayHeight / 2);
|
|
279
|
+
graphics.fillStyle(this.darkColorButton, 1);
|
|
280
|
+
graphics.fillRoundedRect(padding, padding + height - overlayHeight, width, overlayHeight, bottomOverlayRadius);
|
|
281
|
+
// Black stroke border
|
|
282
|
+
graphics.lineStyle(BLACK_BORDER_THICKNESS, Color.hex('black'), 1);
|
|
283
|
+
graphics.strokeRoundedRect(padding, padding, width, height, effectiveRadius);
|
|
284
|
+
}
|
|
248
285
|
/**
|
|
249
286
|
* Adds the button's visual elements to the container.
|
|
250
287
|
*/
|
|
251
288
|
setupContainer() {
|
|
252
|
-
this.add([this.
|
|
289
|
+
this.add([this.whiteBorderSprite, this.backgroundSprite, this.buttonText]);
|
|
253
290
|
}
|
|
254
291
|
/**
|
|
255
292
|
* Sets up interactivity for the button, including hover and click effects.
|
|
@@ -261,52 +298,41 @@ export class TextButton extends GameObjects.Container {
|
|
|
261
298
|
this.backgroundSprite.on('pointerover', () => {
|
|
262
299
|
this.scene.tweens.add({
|
|
263
300
|
targets: this,
|
|
301
|
+
duration: durations.hover,
|
|
264
302
|
scaleX: HOVER_SCALE,
|
|
265
303
|
scaleY: HOVER_SCALE,
|
|
266
|
-
duration: durations.hover,
|
|
267
304
|
ease: 'Back.easeOut',
|
|
268
305
|
});
|
|
269
306
|
});
|
|
270
307
|
this.backgroundSprite.on('pointerout', () => {
|
|
271
308
|
this.scene.tweens.add({
|
|
272
309
|
targets: this,
|
|
310
|
+
duration: durations.hover,
|
|
273
311
|
scaleX: 1,
|
|
274
312
|
scaleY: 1,
|
|
275
|
-
duration: durations.hover,
|
|
276
313
|
ease: 'Back.easeOut',
|
|
277
314
|
});
|
|
278
315
|
});
|
|
279
316
|
// Click effects
|
|
280
317
|
this.backgroundSprite.on('pointerdown', () => {
|
|
281
318
|
this.scene.tweens.add({
|
|
282
|
-
targets: [this.backgroundSprite, this.buttonText],
|
|
283
|
-
|
|
319
|
+
targets: [this.whiteBorderSprite, this.backgroundSprite, this.buttonText],
|
|
320
|
+
scaleX: POINTER_DOWN_SCALE,
|
|
321
|
+
scaleY: POINTER_DOWN_SCALE,
|
|
284
322
|
duration: durations.click,
|
|
285
323
|
ease: 'Linear',
|
|
286
324
|
});
|
|
287
325
|
});
|
|
288
326
|
this.backgroundSprite.on('pointerup', () => {
|
|
289
327
|
this.scene.tweens.add({
|
|
290
|
-
targets: [this.backgroundSprite, this.buttonText],
|
|
291
|
-
|
|
328
|
+
targets: [this.whiteBorderSprite, this.backgroundSprite, this.buttonText],
|
|
329
|
+
scaleX: 1,
|
|
330
|
+
scaleY: 1,
|
|
292
331
|
duration: durations.click,
|
|
293
332
|
ease: 'Linear',
|
|
294
333
|
});
|
|
295
334
|
onClick?.();
|
|
296
335
|
});
|
|
297
336
|
}
|
|
298
|
-
/**
|
|
299
|
-
* Gets the interactive sprite of the icon button
|
|
300
|
-
* @returns The interactive sprite
|
|
301
|
-
*/
|
|
302
|
-
get interactive() {
|
|
303
|
-
const { on, off, setInteractive, once } = this.backgroundSprite;
|
|
304
|
-
return {
|
|
305
|
-
on: on.bind(this.backgroundSprite),
|
|
306
|
-
off: off.bind(this.backgroundSprite),
|
|
307
|
-
setInteractive: setInteractive.bind(this.backgroundSprite),
|
|
308
|
-
once: once.bind(this.backgroundSprite),
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
337
|
}
|
|
312
338
|
//# sourceMappingURL=text-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-button.js","sourceRoot":"","sources":["../../../src/components/text-button/text-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAS,MAAM,Q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