hudini 0.19.0 → 0.20.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/README.md +1 -27
- package/dist/components/badge/badge.d.ts +94 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +180 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.spec.d.ts +2 -0
- package/dist/components/badge/badge.spec.d.ts.map +1 -0
- package/dist/components/badge/badge.spec.js +195 -0
- package/dist/components/badge/badge.spec.js.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +2 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/icon-button/icon-button.d.ts +2 -8
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +10 -86
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/index.d.ts +1 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/panel/panel.d.ts +8 -8
- package/dist/components/panel/panel.d.ts.map +1 -1
- package/dist/components/panel/panel.js +29 -30
- package/dist/components/panel/panel.js.map +1 -1
- package/dist/components/text/text.d.ts +21 -4
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +14 -14
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/text-button/text-button.d.ts +9 -18
- package/dist/components/text-button/text-button.d.ts.map +1 -1
- package/dist/components/text-button/text-button.js +38 -81
- package/dist/components/text-button/text-button.js.map +1 -1
- package/dist/components/text-button/text-button.spec.js +55 -9
- package/dist/components/text-button/text-button.spec.js.map +1 -1
- package/dist/hudini.js +2842 -4529
- package/dist/hudini.min.js +1 -1
- package/dist/loaders/load-fonts.d.ts +29 -0
- package/dist/loaders/load-fonts.d.ts.map +1 -1
- package/dist/loaders/load-fonts.js +20 -1
- package/dist/loaders/load-fonts.js.map +1 -1
- package/dist/utils/button-style.d.ts +16 -0
- package/dist/utils/button-style.d.ts.map +1 -0
- package/dist/utils/button-style.js +35 -0
- package/dist/utils/button-style.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/number-to-rgb.d.ts +16 -0
- package/dist/utils/number-to-rgb.d.ts.map +1 -0
- package/dist/utils/number-to-rgb.js +20 -0
- package/dist/utils/number-to-rgb.js.map +1 -0
- package/package.json +2 -2
- package/dist/components/flat-icon-button/flat-icon-button.d.ts +0 -60
- package/dist/components/flat-icon-button/flat-icon-button.d.ts.map +0 -1
- package/dist/components/flat-icon-button/flat-icon-button.js +0 -279
- package/dist/components/flat-icon-button/flat-icon-button.js.map +0 -1
- package/dist/components/flat-icon-button/index.d.ts +0 -2
- package/dist/components/flat-icon-button/index.d.ts.map +0 -1
- package/dist/components/flat-icon-button/index.js +0 -2
- package/dist/components/flat-icon-button/index.js.map +0 -1
- package/dist/components/flat-section-header/flat-section-header.d.ts +0 -143
- package/dist/components/flat-section-header/flat-section-header.d.ts.map +0 -1
- package/dist/components/flat-section-header/flat-section-header.js +0 -275
- package/dist/components/flat-section-header/flat-section-header.js.map +0 -1
- package/dist/components/flat-section-header/flat-section-header.spec.d.ts +0 -2
- package/dist/components/flat-section-header/flat-section-header.spec.d.ts.map +0 -1
- package/dist/components/flat-section-header/flat-section-header.spec.js +0 -255
- package/dist/components/flat-section-header/flat-section-header.spec.js.map +0 -1
- package/dist/components/flat-section-header/index.d.ts +0 -2
- package/dist/components/flat-section-header/index.d.ts.map +0 -1
- package/dist/components/flat-section-header/index.js +0 -2
- package/dist/components/flat-section-header/index.js.map +0 -1
- package/dist/components/flat-text-button/flat-text-button.d.ts +0 -165
- package/dist/components/flat-text-button/flat-text-button.d.ts.map +0 -1
- package/dist/components/flat-text-button/flat-text-button.js +0 -325
- package/dist/components/flat-text-button/flat-text-button.js.map +0 -1
- package/dist/components/flat-text-button/flat-text-button.spec.d.ts +0 -2
- package/dist/components/flat-text-button/flat-text-button.spec.d.ts.map +0 -1
- package/dist/components/flat-text-button/flat-text-button.spec.js +0 -243
- package/dist/components/flat-text-button/flat-text-button.spec.js.map +0 -1
- package/dist/components/flat-text-button/index.d.ts +0 -2
- package/dist/components/flat-text-button/index.d.ts.map +0 -1
- package/dist/components/flat-text-button/index.js +0 -2
- package/dist/components/flat-text-button/index.js.map +0 -1
- package/dist/components/section-header/index.d.ts +0 -2
- package/dist/components/section-header/index.d.ts.map +0 -1
- package/dist/components/section-header/index.js +0 -2
- package/dist/components/section-header/index.js.map +0 -1
- package/dist/components/section-header/section-header.d.ts +0 -149
- package/dist/components/section-header/section-header.d.ts.map +0 -1
- package/dist/components/section-header/section-header.js +0 -292
- package/dist/components/section-header/section-header.js.map +0 -1
- package/dist/components/section-header/section-header.spec.d.ts +0 -2
- package/dist/components/section-header/section-header.spec.d.ts.map +0 -1
- package/dist/components/section-header/section-header.spec.js +0 -264
- package/dist/components/section-header/section-header.spec.js.map +0 -1
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { GameObjects, Scene } from 'phaser';
|
|
2
|
-
import { type ColorKey, type FontKey, type FontSizeKey, type RadiusKey, type SpacingKey } from 'phaser-wind';
|
|
3
|
-
import { ContainerInteractive } from '../container-interactive';
|
|
4
|
-
export type SectionHeaderParams = {
|
|
5
|
-
/** The Phaser scene to add the header to */
|
|
6
|
-
scene: Scene;
|
|
7
|
-
/** X position of the header */
|
|
8
|
-
x: number;
|
|
9
|
-
/** Y position of the header */
|
|
10
|
-
y: number;
|
|
11
|
-
/** Text content of the header */
|
|
12
|
-
text: string;
|
|
13
|
-
/** Font size in px (number) or a Phaser Wind font size token (string). Defaults to 'lg'. */
|
|
14
|
-
fontSize?: FontSizeKey | number;
|
|
15
|
-
/** Font family. Defaults to 'display'. */
|
|
16
|
-
font?: FontKey | string;
|
|
17
|
-
/** Background color. Defaults to 'blue-600'. */
|
|
18
|
-
backgroundColor?: ColorKey | string;
|
|
19
|
-
/** Text color. Defaults to 'white'. */
|
|
20
|
-
textColor?: ColorKey | string;
|
|
21
|
-
/** Border radius in px (number) or a Phaser Wind radius token (string). Defaults to 'md'. */
|
|
22
|
-
borderRadius?: RadiusKey | number;
|
|
23
|
-
/** Margin/padding in px (number) or a Phaser Wind spacing token (string). Defaults to '4'. */
|
|
24
|
-
margin?: SpacingKey | number;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A stylized section header component with shadow, text stroke and auto-sizing
|
|
28
|
-
*/
|
|
29
|
-
export declare class SectionHeader extends ContainerInteractive<Phaser.GameObjects.Sprite> {
|
|
30
|
-
/** The white border sprite of the header */
|
|
31
|
-
whiteBorderSprite: GameObjects.Sprite;
|
|
32
|
-
/** The background sprite of the header */
|
|
33
|
-
backgroundSprite: GameObjects.Sprite;
|
|
34
|
-
/** The text object of the header */
|
|
35
|
-
headerText: GameObjects.Text;
|
|
36
|
-
/** Reference to the PhaserWind plugin */
|
|
37
|
-
private pw;
|
|
38
|
-
/** Font size in pixels */
|
|
39
|
-
private fontSizePx;
|
|
40
|
-
/** Margin size in pixels */
|
|
41
|
-
private marginPx;
|
|
42
|
-
/** Border radius in pixels */
|
|
43
|
-
private borderRadiusPx;
|
|
44
|
-
/** Background color value */
|
|
45
|
-
private colorButton;
|
|
46
|
-
/** Light color variant for gradient */
|
|
47
|
-
private lightColorButton;
|
|
48
|
-
/** Dark color variant for gradient */
|
|
49
|
-
private darkColorButton;
|
|
50
|
-
/** Text color value */
|
|
51
|
-
private textColorValue;
|
|
52
|
-
/** Font family value */
|
|
53
|
-
private fontFamily;
|
|
54
|
-
/** Text content value */
|
|
55
|
-
private textValue;
|
|
56
|
-
/**
|
|
57
|
-
* Creates a new SectionHeader
|
|
58
|
-
* @param params Configuration parameters for the header
|
|
59
|
-
*/
|
|
60
|
-
constructor({ scene, x, y, text, fontSize, font, backgroundColor, textColor, borderRadius, margin, }: SectionHeaderParams);
|
|
61
|
-
/**
|
|
62
|
-
* Sets the text content of the header
|
|
63
|
-
* @param text New text content
|
|
64
|
-
* @returns this for chaining
|
|
65
|
-
*/
|
|
66
|
-
setText(text: string): this;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the font size of the header text
|
|
69
|
-
* @param fontSize New font size (number in px or FontSizeKey)
|
|
70
|
-
* @returns this for chaining
|
|
71
|
-
*/
|
|
72
|
-
setFontSize(fontSize: FontSizeKey | number): this;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the font family of the header text
|
|
75
|
-
* @param font New font family (FontKey or string)
|
|
76
|
-
* @returns this for chaining
|
|
77
|
-
*/
|
|
78
|
-
setFont(font: FontKey | string): this;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the background color of the header
|
|
81
|
-
* @param color New background color (ColorKey or string)
|
|
82
|
-
* @returns this for chaining
|
|
83
|
-
*/
|
|
84
|
-
setBackgroundColor(color: ColorKey | string): this;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the text color of the header
|
|
87
|
-
* @param color New text color (ColorKey or string)
|
|
88
|
-
* @returns this for chaining
|
|
89
|
-
*/
|
|
90
|
-
setTextColor(color: ColorKey | string): this;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the border radius of the header
|
|
93
|
-
* @param borderRadius New border radius (number in px or RadiusKey)
|
|
94
|
-
* @returns this for chaining
|
|
95
|
-
*/
|
|
96
|
-
setBorderRadius(borderRadius: RadiusKey | number): this;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the margin/padding of the header
|
|
99
|
-
* @param margin New margin size (number in px or SpacingKey)
|
|
100
|
-
* @returns this for chaining
|
|
101
|
-
*/
|
|
102
|
-
setMargin(margin: SpacingKey | number): this;
|
|
103
|
-
/**
|
|
104
|
-
* Creates the header text game object
|
|
105
|
-
* @param scene The scene to add the text to
|
|
106
|
-
*/
|
|
107
|
-
private createHeaderText;
|
|
108
|
-
/**
|
|
109
|
-
* Creates the white border sprite for the header
|
|
110
|
-
* @param scene The scene to add the sprite to
|
|
111
|
-
*/
|
|
112
|
-
private createWhiteBorderSprite;
|
|
113
|
-
/**
|
|
114
|
-
* Creates the background sprite for the header
|
|
115
|
-
* @param scene The scene to add the sprite to
|
|
116
|
-
*/
|
|
117
|
-
private createBackgroundSprite;
|
|
118
|
-
/**
|
|
119
|
-
* Regenerates all graphics after a property change
|
|
120
|
-
*/
|
|
121
|
-
private regenerateGraphics;
|
|
122
|
-
/**
|
|
123
|
-
* Creates a texture for the header's white border.
|
|
124
|
-
* @param scene Phaser scene.
|
|
125
|
-
* @returns The texture key.
|
|
126
|
-
*/
|
|
127
|
-
private createWhiteBorderTexture;
|
|
128
|
-
/**
|
|
129
|
-
* Creates a texture for the header's background.
|
|
130
|
-
* @param scene Phaser scene.
|
|
131
|
-
* @returns The texture key.
|
|
132
|
-
*/
|
|
133
|
-
private createBackgroundTexture;
|
|
134
|
-
/**
|
|
135
|
-
* Draws gradient using light/dark overlays on CSS color.
|
|
136
|
-
* Uses the same system as TextButton.
|
|
137
|
-
*/
|
|
138
|
-
private drawCssColorGradient;
|
|
139
|
-
/**
|
|
140
|
-
* Gets the dimensions of the header based on text content
|
|
141
|
-
* @returns Object containing width and height
|
|
142
|
-
*/
|
|
143
|
-
private getHeaderDimensions;
|
|
144
|
-
/**
|
|
145
|
-
* Sets up the container with all sprites in the correct order
|
|
146
|
-
*/
|
|
147
|
-
private setupContainer;
|
|
148
|
-
}
|
|
149
|
-
//# sourceMappingURL=section-header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"section-header.d.ts","sourceRoot":"","sources":["../../../src/components/section-header/section-header.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,KA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,CAAC,cAAc;CAIvB"}
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { Color, } from 'phaser-wind';
|
|
2
|
-
import { getColorVariant } from '../../utils/color-variants';
|
|
3
|
-
import { getPWFromScene } from '../../utils/get-pw-from-scene';
|
|
4
|
-
import { ContainerInteractive } from '../container-interactive';
|
|
5
|
-
import { Text } from '../text';
|
|
6
|
-
// Border constants
|
|
7
|
-
const BLACK_BORDER_THICKNESS = 2;
|
|
8
|
-
const WHITE_BORDER_EXTRA_PIXELS_PER_SIDE = 2;
|
|
9
|
-
const WHITE_BORDER_TOTAL_EXTRA_PIXELS = WHITE_BORDER_EXTRA_PIXELS_PER_SIDE * 2; // 4 pixels total
|
|
10
|
-
const WHITE_BORDER_RADIUS_EXTRA = 2;
|
|
11
|
-
// Color variant constants
|
|
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
|
-
/**
|
|
17
|
-
* A stylized section header component with shadow, text stroke and auto-sizing
|
|
18
|
-
*/
|
|
19
|
-
export class SectionHeader extends ContainerInteractive {
|
|
20
|
-
/** The white border sprite of the header */
|
|
21
|
-
whiteBorderSprite;
|
|
22
|
-
/** The background sprite of the header */
|
|
23
|
-
backgroundSprite;
|
|
24
|
-
/** The text object of the header */
|
|
25
|
-
headerText;
|
|
26
|
-
/** Reference to the PhaserWind plugin */
|
|
27
|
-
pw;
|
|
28
|
-
/** Font size in pixels */
|
|
29
|
-
fontSizePx;
|
|
30
|
-
/** Margin size in pixels */
|
|
31
|
-
marginPx;
|
|
32
|
-
/** Border radius in pixels */
|
|
33
|
-
borderRadiusPx;
|
|
34
|
-
/** Background color value */
|
|
35
|
-
colorButton;
|
|
36
|
-
/** Light color variant for gradient */
|
|
37
|
-
lightColorButton;
|
|
38
|
-
/** Dark color variant for gradient */
|
|
39
|
-
darkColorButton;
|
|
40
|
-
/** Text color value */
|
|
41
|
-
textColorValue;
|
|
42
|
-
/** Font family value */
|
|
43
|
-
fontFamily;
|
|
44
|
-
/** Text content value */
|
|
45
|
-
textValue;
|
|
46
|
-
/**
|
|
47
|
-
* Creates a new SectionHeader
|
|
48
|
-
* @param params Configuration parameters for the header
|
|
49
|
-
*/
|
|
50
|
-
constructor({ scene, x, y, text, fontSize, font, backgroundColor = 'blue-600', textColor = 'white', borderRadius = 'md', margin = '4', }) {
|
|
51
|
-
super({ scene, x, y });
|
|
52
|
-
this.pw = getPWFromScene(scene);
|
|
53
|
-
// Store values
|
|
54
|
-
this.textValue = text;
|
|
55
|
-
this.fontSizePx =
|
|
56
|
-
typeof fontSize === 'number'
|
|
57
|
-
? fontSize
|
|
58
|
-
: this.pw.fontSize.px(fontSize ?? 'lg');
|
|
59
|
-
this.marginPx =
|
|
60
|
-
typeof margin === 'number'
|
|
61
|
-
? margin
|
|
62
|
-
: this.pw.spacing.px(margin ?? '4');
|
|
63
|
-
this.borderRadiusPx =
|
|
64
|
-
typeof borderRadius === 'number'
|
|
65
|
-
? borderRadius
|
|
66
|
-
: this.pw.radius.px(borderRadius ?? 'md');
|
|
67
|
-
this.colorButton = Color.rgb(backgroundColor);
|
|
68
|
-
this.lightColorButton = getColorVariant(backgroundColor, TOKEN_LIGHTER_DIFF, COLOR_LIGHTER_AMOUNT);
|
|
69
|
-
this.darkColorButton = getColorVariant(backgroundColor, TOKEN_DARKER_DIFF, COLOR_DARKER_AMOUNT);
|
|
70
|
-
this.textColorValue = Color.rgb(textColor);
|
|
71
|
-
this.fontFamily = font ? (typeof font === 'string' ? font : this.pw.font.family(font)) : 'Bebas Neue';
|
|
72
|
-
this.createHeaderText(scene);
|
|
73
|
-
this.createWhiteBorderSprite(scene);
|
|
74
|
-
this.createBackgroundSprite(scene);
|
|
75
|
-
this.setupContainer();
|
|
76
|
-
this.hitArea = this.backgroundSprite;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Sets the text content of the header
|
|
80
|
-
* @param text New text content
|
|
81
|
-
* @returns this for chaining
|
|
82
|
-
*/
|
|
83
|
-
setText(text) {
|
|
84
|
-
this.textValue = text;
|
|
85
|
-
this.headerText.setText(text);
|
|
86
|
-
this.regenerateGraphics();
|
|
87
|
-
return this;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Sets the font size of the header text
|
|
91
|
-
* @param fontSize New font size (number in px or FontSizeKey)
|
|
92
|
-
* @returns this for chaining
|
|
93
|
-
*/
|
|
94
|
-
setFontSize(fontSize) {
|
|
95
|
-
this.fontSizePx =
|
|
96
|
-
typeof fontSize === 'number'
|
|
97
|
-
? fontSize
|
|
98
|
-
: this.pw.fontSize.px(fontSize ?? 'lg');
|
|
99
|
-
this.headerText.setFontSize(this.fontSizePx);
|
|
100
|
-
this.regenerateGraphics();
|
|
101
|
-
return this;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Sets the font family of the header text
|
|
105
|
-
* @param font New font family (FontKey or string)
|
|
106
|
-
* @returns this for chaining
|
|
107
|
-
*/
|
|
108
|
-
setFont(font) {
|
|
109
|
-
this.fontFamily = font ? (typeof font === 'string' ? font : this.pw.font.family(font)) : 'Bebas Neue';
|
|
110
|
-
this.headerText.setFontFamily(this.fontFamily);
|
|
111
|
-
this.regenerateGraphics();
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Sets the background color of the header
|
|
116
|
-
* @param color New background color (ColorKey or string)
|
|
117
|
-
* @returns this for chaining
|
|
118
|
-
*/
|
|
119
|
-
setBackgroundColor(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);
|
|
123
|
-
this.regenerateGraphics();
|
|
124
|
-
return this;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Sets the text color of the header
|
|
128
|
-
* @param color New text color (ColorKey or string)
|
|
129
|
-
* @returns this for chaining
|
|
130
|
-
*/
|
|
131
|
-
setTextColor(color) {
|
|
132
|
-
this.textColorValue = Color.rgb(color);
|
|
133
|
-
this.headerText.setColor(this.textColorValue);
|
|
134
|
-
return this;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Sets the border radius of the header
|
|
138
|
-
* @param borderRadius New border radius (number in px or RadiusKey)
|
|
139
|
-
* @returns this for chaining
|
|
140
|
-
*/
|
|
141
|
-
setBorderRadius(borderRadius) {
|
|
142
|
-
this.borderRadiusPx =
|
|
143
|
-
typeof borderRadius === 'number'
|
|
144
|
-
? borderRadius
|
|
145
|
-
: this.pw.radius.px(borderRadius ?? 'md');
|
|
146
|
-
this.regenerateGraphics();
|
|
147
|
-
return this;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Sets the margin/padding of the header
|
|
151
|
-
* @param margin New margin size (number in px or SpacingKey)
|
|
152
|
-
* @returns this for chaining
|
|
153
|
-
*/
|
|
154
|
-
setMargin(margin) {
|
|
155
|
-
this.marginPx =
|
|
156
|
-
typeof margin === 'number'
|
|
157
|
-
? margin
|
|
158
|
-
: this.pw.spacing.px(margin ?? '4');
|
|
159
|
-
this.regenerateGraphics();
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Creates the header text game object
|
|
164
|
-
* @param scene The scene to add the text to
|
|
165
|
-
*/
|
|
166
|
-
createHeaderText(scene) {
|
|
167
|
-
this.headerText = new Text({
|
|
168
|
-
scene,
|
|
169
|
-
x: 0,
|
|
170
|
-
y: 0,
|
|
171
|
-
text: this.textValue,
|
|
172
|
-
size: this.fontSizePx,
|
|
173
|
-
fontFamily: this.fontFamily,
|
|
174
|
-
});
|
|
175
|
-
this.headerText.setOrigin(0.5, 0.5);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Creates the white border sprite for the header
|
|
179
|
-
* @param scene The scene to add the sprite to
|
|
180
|
-
*/
|
|
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);
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Creates the background sprite for the header
|
|
188
|
-
* @param scene The scene to add the sprite to
|
|
189
|
-
*/
|
|
190
|
-
createBackgroundSprite(scene) {
|
|
191
|
-
const backgroundTexture = this.createBackgroundTexture(scene);
|
|
192
|
-
this.backgroundSprite = scene.add.sprite(0, 0, backgroundTexture);
|
|
193
|
-
this.backgroundSprite.setOrigin(0.5, 0.5);
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Regenerates all graphics after a property change
|
|
197
|
-
*/
|
|
198
|
-
regenerateGraphics() {
|
|
199
|
-
// Update text bounds after text/font changes
|
|
200
|
-
this.headerText.setText(this.textValue);
|
|
201
|
-
// Regenerate textures
|
|
202
|
-
const whiteBorderTexture = this.createWhiteBorderTexture(this.scene);
|
|
203
|
-
const backgroundTexture = this.createBackgroundTexture(this.scene);
|
|
204
|
-
this.whiteBorderSprite.setTexture(whiteBorderTexture);
|
|
205
|
-
this.backgroundSprite.setTexture(backgroundTexture);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Creates a texture for the header's white border.
|
|
209
|
-
* @param scene Phaser scene.
|
|
210
|
-
* @returns The texture key.
|
|
211
|
-
*/
|
|
212
|
-
createWhiteBorderTexture(scene) {
|
|
213
|
-
const { width, height } = this.getHeaderDimensions();
|
|
214
|
-
const textureKey = `sectionHeader_whiteBorder_${this.borderRadiusPx}_${width}_${height}`;
|
|
215
|
-
// White border is larger on each side
|
|
216
|
-
const borderWidth = width + WHITE_BORDER_TOTAL_EXTRA_PIXELS;
|
|
217
|
-
const borderHeight = height + WHITE_BORDER_TOTAL_EXTRA_PIXELS;
|
|
218
|
-
// Add some padding for texture
|
|
219
|
-
const padding = 8;
|
|
220
|
-
const textureWidth = borderWidth + padding * 2;
|
|
221
|
-
const textureHeight = borderHeight + padding * 2;
|
|
222
|
-
const graphics = scene.add.graphics();
|
|
223
|
-
const maxRadius = Math.floor(Math.min(borderWidth / 2, borderHeight / 2));
|
|
224
|
-
const effectiveRadius = Math.min(this.borderRadiusPx + WHITE_BORDER_RADIUS_EXTRA, maxRadius);
|
|
225
|
-
const finalRadius = Math.max(0, effectiveRadius);
|
|
226
|
-
// White border (outer)
|
|
227
|
-
graphics.fillStyle(Color.hex('white'), 1);
|
|
228
|
-
graphics.fillRoundedRect(padding, padding, borderWidth, borderHeight, finalRadius);
|
|
229
|
-
graphics.generateTexture(textureKey, textureWidth, textureHeight);
|
|
230
|
-
graphics.destroy();
|
|
231
|
-
return textureKey;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Creates a texture for the header's background.
|
|
235
|
-
* @param scene Phaser scene.
|
|
236
|
-
* @returns The texture key.
|
|
237
|
-
*/
|
|
238
|
-
createBackgroundTexture(scene) {
|
|
239
|
-
const { width, height } = this.getHeaderDimensions();
|
|
240
|
-
const textureKey = `sectionHeader_bg_${this.colorButton}_${this.borderRadiusPx}_${width}_${height}`;
|
|
241
|
-
// Add some padding for texture
|
|
242
|
-
const padding = 8;
|
|
243
|
-
const textureWidth = width + padding * 2;
|
|
244
|
-
const textureHeight = height + padding * 2;
|
|
245
|
-
const graphics = scene.add.graphics();
|
|
246
|
-
const maxRadius = Math.floor(Math.min(width / 2, height / 2));
|
|
247
|
-
const effectiveRadius = Math.min(this.borderRadiusPx, maxRadius);
|
|
248
|
-
const finalRadius = Math.max(0, effectiveRadius);
|
|
249
|
-
this.drawCssColorGradient(graphics, padding, width, height, finalRadius);
|
|
250
|
-
graphics.generateTexture(textureKey, textureWidth, textureHeight);
|
|
251
|
-
graphics.destroy();
|
|
252
|
-
return textureKey;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Draws gradient using light/dark overlays on CSS color.
|
|
256
|
-
* Uses the same system as TextButton.
|
|
257
|
-
*/
|
|
258
|
-
drawCssColorGradient(graphics, padding, width, height, effectiveRadius) {
|
|
259
|
-
// Main background
|
|
260
|
-
graphics.fillStyle(Color.hex(this.colorButton), 1);
|
|
261
|
-
graphics.fillRoundedRect(padding, padding, width, height, effectiveRadius);
|
|
262
|
-
const PERCENT_HEIGHT = 0.15;
|
|
263
|
-
const overlayHeight = height * PERCENT_HEIGHT;
|
|
264
|
-
const topOverlayRadius = Math.min(effectiveRadius, overlayHeight / 2);
|
|
265
|
-
graphics.fillStyle(this.lightColorButton, 1);
|
|
266
|
-
graphics.fillRoundedRect(padding, padding, width, overlayHeight, topOverlayRadius);
|
|
267
|
-
// Bottom darker overlay
|
|
268
|
-
const bottomOverlayRadius = Math.min(effectiveRadius, overlayHeight / 2);
|
|
269
|
-
graphics.fillStyle(this.darkColorButton, 1);
|
|
270
|
-
graphics.fillRoundedRect(padding, padding + height - overlayHeight, width, overlayHeight, bottomOverlayRadius);
|
|
271
|
-
// Black stroke border
|
|
272
|
-
graphics.lineStyle(BLACK_BORDER_THICKNESS, Color.hex('black'), 1);
|
|
273
|
-
graphics.strokeRoundedRect(padding, padding, width, height, effectiveRadius);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Gets the dimensions of the header based on text content
|
|
277
|
-
* @returns Object containing width and height
|
|
278
|
-
*/
|
|
279
|
-
getHeaderDimensions() {
|
|
280
|
-
const textBounds = this.headerText.getBounds();
|
|
281
|
-
const width = textBounds.width + this.marginPx * 2;
|
|
282
|
-
const height = textBounds.height + this.marginPx * 2;
|
|
283
|
-
return { width, height };
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Sets up the container with all sprites in the correct order
|
|
287
|
-
*/
|
|
288
|
-
setupContainer() {
|
|
289
|
-
this.add([this.whiteBorderSprite, this.backgroundSprite, this.headerText]);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
//# sourceMappingURL=section-header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"section-header.js","sourceRoot":"","sources":["../../../src/components/section-header/section-header.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,GAON,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAyB/B,mBAAmB;AACnB,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACjC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AAC7C,MAAM,+BAA+B,GAAG,kCAAkC,GAAG,CAAC,CAAC,CAAC,iBAAiB;AACjG,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAEpC,0BAA0B;AAC1B,MAAM,kBAAkB,GAAG,CAAC,GAAG,CAAC;AAChC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,mBAAmB,GAAG,CAAC,EAAE,CAAC;AAEhC;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,oBAA+C;IAChF,4CAA4C;IACrC,iBAAiB,CAAsB;IAC9C,0CAA0C;IACnC,gBAAgB,CAAsB;IAC7C,oCAAoC;IAC7B,UAAU,CAAoB;IAErC,yCAAyC;IACjC,EAAE,CAAuB;IACjC,0BAA0B;IAClB,UAAU,CAAU;IAC5B,4BAA4B;IACpB,QAAQ,CAAU;IAC1B,8BAA8B;IACtB,cAAc,CAAU;IAChC,6BAA6B;IACrB,WAAW,CAAU;IAC7B,uCAAuC;IAC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tB,OAAO,EACP,OAAO,GAAG,MAAM,GAAG,aAAa,EAChC,KAAK,EACL,aAAa,EACb,mBAAmB,CACpB,CAAC;QAEF,sBAAsB;QACtB,QAAQ,CAAC,SAAS,CAAC,sBAAsB,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QAClE,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACK,mBAAmB;QACzB,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;QAC/C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACK,cAAc;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAC7E,CAAC;CAEF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"section-header.spec.d.ts","sourceRoot":"","sources":["../../../src/components/section-header/section-header.spec.ts"],"names":[],"mappings":""}
|