@number10/phaserjsx 4.2.0 → 4.4.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 +15 -1
- package/dist/colors/preset-manager.d.ts.map +1 -1
- package/dist/components/appliers/applyParticles.d.ts.map +1 -1
- package/dist/components/backgroundImage.d.ts.map +1 -1
- package/dist/components/custom/Badge.d.ts +73 -0
- package/dist/components/custom/Badge.d.ts.map +1 -0
- package/dist/components/custom/Button.d.ts +23 -2
- package/dist/components/custom/Button.d.ts.map +1 -1
- package/dist/components/custom/CharTextInput.d.ts +10 -0
- package/dist/components/custom/CharTextInput.d.ts.map +1 -1
- package/dist/components/custom/Checkbox.d.ts +41 -0
- package/dist/components/custom/Checkbox.d.ts.map +1 -0
- package/dist/components/custom/Dropdown.d.ts +1 -1
- package/dist/components/custom/Dropdown.d.ts.map +1 -1
- package/dist/components/custom/Particles.d.ts +14 -3
- package/dist/components/custom/Particles.d.ts.map +1 -1
- package/dist/components/custom/Popover.d.ts +98 -0
- package/dist/components/custom/Popover.d.ts.map +1 -0
- package/dist/components/custom/ProgressBar.d.ts +52 -0
- package/dist/components/custom/ProgressBar.d.ts.map +1 -0
- package/dist/components/custom/RadioButton.d.ts +8 -0
- package/dist/components/custom/RadioButton.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +4 -0
- package/dist/components/custom/RadioGroup.d.ts.map +1 -1
- package/dist/components/custom/ScrollSlider.d.ts +7 -1
- package/dist/components/custom/ScrollSlider.d.ts.map +1 -1
- package/dist/components/custom/ScrollView.d.ts.map +1 -1
- package/dist/components/custom/Toggle.d.ts.map +1 -1
- package/dist/components/custom/index.cjs +14 -1
- package/dist/components/custom/index.d.ts +4 -0
- package/dist/components/custom/index.d.ts.map +1 -1
- package/dist/components/custom/index.js +2 -2
- package/dist/components/custom/useOverlayPresence.d.ts +9 -0
- package/dist/components/custom/useOverlayPresence.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/primitives/particles.d.ts +14 -4
- package/dist/components/primitives/particles.d.ts.map +1 -1
- package/dist/components/primitives/tilesprite.d.ts +15 -19
- package/dist/components/primitives/tilesprite.d.ts.map +1 -1
- package/dist/{custom-BXDJDGOl.js → custom-BPY0TbuS.js} +4732 -3236
- package/dist/custom-BPY0TbuS.js.map +1 -0
- package/dist/{custom-DTd4LxDn.cjs → custom-Bnit70lx.cjs} +4796 -3222
- package/dist/custom-Bnit70lx.cjs.map +1 -0
- package/dist/index.cjs +43 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -22
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.cjs +4 -1
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx-runtime.js +4 -1
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/layout/utils/child-utils.d.ts.map +1 -1
- package/dist/layout/utils/dimension-calculator.d.ts.map +1 -1
- package/dist/particles/emit-zone.d.ts +34 -12
- package/dist/particles/emit-zone.d.ts.map +1 -1
- package/dist/particles/index.d.ts +1 -1
- package/dist/particles/index.d.ts.map +1 -1
- package/dist/particles/use-particles.d.ts +6 -2
- package/dist/particles/use-particles.d.ts.map +1 -1
- package/dist/theme-custom.d.ts +123 -8
- package/dist/theme-custom.d.ts.map +1 -1
- package/dist/theme-defaults.d.ts.map +1 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/vdom.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/custom-BXDJDGOl.js.map +0 -1
- package/dist/custom-DTd4LxDn.cjs.map +0 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_custom = require("../../custom-
|
|
2
|
+
const require_custom = require("../../custom-Bnit70lx.cjs");
|
|
3
3
|
exports.Accordion = require_custom.Accordion;
|
|
4
4
|
exports.AlertDialog = require_custom.AlertDialog;
|
|
5
|
+
exports.Badge = require_custom.Badge;
|
|
5
6
|
exports.Button = require_custom.Button;
|
|
6
7
|
exports.CharText = require_custom.CharText;
|
|
7
8
|
exports.CharTextInput = require_custom.CharTextInput;
|
|
9
|
+
exports.Checkbox = require_custom.Checkbox;
|
|
10
|
+
exports.ContextMenu = require_custom.ContextMenu;
|
|
8
11
|
exports.DebugPanel = require_custom.DebugPanel;
|
|
9
12
|
exports.Dialog = require_custom.Dialog;
|
|
10
13
|
exports.Divider = require_custom.Divider;
|
|
@@ -16,7 +19,9 @@ exports.Modal = require_custom.Modal;
|
|
|
16
19
|
exports.NineSlice = require_custom.NineSlice;
|
|
17
20
|
exports.NineSliceButton = require_custom.NineSliceButton;
|
|
18
21
|
exports.Particles = require_custom.Particles;
|
|
22
|
+
exports.Popover = require_custom.Popover;
|
|
19
23
|
exports.Portal = require_custom.Portal;
|
|
24
|
+
exports.ProgressBar = require_custom.ProgressBar;
|
|
20
25
|
exports.RadioButton = require_custom.RadioButton;
|
|
21
26
|
exports.RadioGroup = require_custom.RadioGroup;
|
|
22
27
|
exports.RangeSlider = require_custom.RangeSlider;
|
|
@@ -28,9 +33,17 @@ exports.Slider = require_custom.Slider;
|
|
|
28
33
|
exports.Tab = require_custom.Tab;
|
|
29
34
|
exports.TabPanel = require_custom.TabPanel;
|
|
30
35
|
exports.Tabs = require_custom.Tabs;
|
|
36
|
+
exports.Tag = require_custom.Tag;
|
|
31
37
|
exports.Toggle = require_custom.Toggle;
|
|
32
38
|
exports.TransformOriginView = require_custom.TransformOriginView;
|
|
33
39
|
exports.WrapText = require_custom.WrapText;
|
|
40
|
+
exports.calculateOverlayPosition = require_custom.calculateOverlayPosition;
|
|
34
41
|
exports.calculateSliderSize = require_custom.calculateSliderSize;
|
|
42
|
+
exports.clampProgressValue = require_custom.clampProgressValue;
|
|
35
43
|
exports.createIconComponent = require_custom.createIconComponent;
|
|
44
|
+
exports.formatBadgeCount = require_custom.formatBadgeCount;
|
|
45
|
+
exports.getBadgeSizeConfig = require_custom.getBadgeSizeConfig;
|
|
46
|
+
exports.getBadgeText = require_custom.getBadgeText;
|
|
47
|
+
exports.getProgressRatio = require_custom.getProgressRatio;
|
|
48
|
+
exports.resolveBadgeTextStyle = require_custom.resolveBadgeTextStyle;
|
|
36
49
|
exports.useIconPreload = require_custom.useIconPreload;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { Accordion, type AccordionProps } from './Accordion';
|
|
6
6
|
export { AlertDialog, type AlertDialogProps } from './AlertDialog';
|
|
7
|
+
export { Badge, Tag, formatBadgeCount, getBadgeSizeConfig, getBadgeText, resolveBadgeTextStyle, type BadgeFormatOptions, type BadgeProps, type BadgeSize, type BadgeSizeConfig, type BadgeTextStyleOptions, type BadgeTone, type BadgeToneColors, type BadgeVariant, type TagProps, } from './Badge';
|
|
7
8
|
export { Button, type ButtonProps } from './Button';
|
|
8
9
|
export { CharText, type CharTextAPI, type CharTextProps } from './CharText';
|
|
9
10
|
export { CharTextInput, type CharTextInputProps } from './CharTextInput';
|
|
11
|
+
export { Checkbox, type CheckboxIndicatorRenderProps, type CheckboxLabelPosition, type CheckboxProps, type CheckboxState, } from './Checkbox';
|
|
10
12
|
export { DebugPanel, type DebugMetricKey, type DebugPanelPreset, type DebugPanelProps, } from './DebugPanel';
|
|
11
13
|
export { Dialog, type DialogProps } from './Dialog';
|
|
12
14
|
export { Divider, type DividerProps } from './Divider';
|
|
@@ -19,6 +21,8 @@ export { NineSlice, type NineSliceProps } from './NineSlice';
|
|
|
19
21
|
export { NineSliceButton, type NineSliceButtonProps } from './NineSliceButton';
|
|
20
22
|
export { Particles, type ParticlesProps } from './Particles';
|
|
21
23
|
export { Portal, type PortalProps } from './Portal';
|
|
24
|
+
export { ContextMenu, Popover, calculateOverlayPosition, type ContextMenuItem, type ContextMenuProps, type OverlayAnchorRect, type OverlayContentSize, type OverlayPosition, type OverlayPositionOptions, type PopoverPlacement, type PopoverProps, } from './Popover';
|
|
25
|
+
export { ProgressBar, clampProgressValue, getProgressRatio, type ProgressBarFormatProps, type ProgressBarLabelPosition, type ProgressBarOrientation, type ProgressBarProps, } from './ProgressBar';
|
|
22
26
|
export { RadioButton, type RadioButtonProps } from './RadioButton';
|
|
23
27
|
export { RadioGroup, type RadioGroupProps } from './RadioGroup';
|
|
24
28
|
export { RefOriginView, type RefOriginViewProps } from './RefOriginView';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/custom/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAC9E,OAAO,EACL,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,C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MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,GAChB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAChF,OAAO,EACL,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,WAAW,EACX,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAC1F,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Accordion, AlertDialog, Button, CharText, CharTextInput, DebugPanel, Dialog, Divider, Dropdown, Icon, Image, Joystick, Modal, NineSlice, NineSliceButton, Particles, Portal, RadioButton, RadioGroup, RangeSlider, RefOriginView, ScrollSlider, ScrollView, Sidebar, Slider, Tab, TabPanel, Tabs, Toggle, TransformOriginView, WrapText, calculateSliderSize, createIconComponent, useIconPreload };
|
|
1
|
+
import { $ as Portal, Bt as getBadgeSizeConfig, C as CharText, D as Modal, E as Dialog, Ht as resolveBadgeTextStyle, J as clampProgressValue, Lt as Badge, O as Accordion, Q as calculateOverlayPosition, Rt as Tag, S as CharTextInput, T as WrapText, Vt as getBadgeText, X as ContextMenu, Y as getProgressRatio, Z as Popover, _ as TransformOriginView, a as RangeSlider, at as RadioButton, b as calculateSliderSize, c as RefOriginView, d as Joystick, et as Particles, f as Icon, g as Dropdown, h as Image, i as Tabs, it as RadioGroup, l as NineSliceButton, lt as Checkbox, m as useIconPreload, n as Tab, o as Slider, p as createIconComponent, q as ProgressBar, r as TabPanel, s as Sidebar, st as DebugPanel, t as Toggle, u as NineSlice, ut as Button, v as ScrollView, w as AlertDialog, x as Divider, y as ScrollSlider, zt as formatBadgeCount } from "../../custom-BPY0TbuS.js";
|
|
2
|
+
export { Accordion, AlertDialog, Badge, Button, CharText, CharTextInput, Checkbox, ContextMenu, DebugPanel, Dialog, Divider, Dropdown, Icon, Image, Joystick, Modal, NineSlice, NineSliceButton, Particles, Popover, Portal, ProgressBar, RadioButton, RadioGroup, RangeSlider, RefOriginView, ScrollSlider, ScrollView, Sidebar, Slider, Tab, TabPanel, Tabs, Tag, Toggle, TransformOriginView, WrapText, calculateOverlayPosition, calculateSliderSize, clampProgressValue, createIconComponent, formatBadgeCount, getBadgeSizeConfig, getBadgeText, getProgressRatio, resolveBadgeTextStyle, useIconPreload };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type OverlayPresencePhase = 'entering' | 'entered' | 'exiting' | 'exited';
|
|
2
|
+
export interface OverlayPresenceState {
|
|
3
|
+
isPresent: boolean;
|
|
4
|
+
phase: OverlayPresencePhase;
|
|
5
|
+
finishEnter: () => void;
|
|
6
|
+
finishExit: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useOverlayPresence(show: boolean): OverlayPresenceState;
|
|
9
|
+
//# sourceMappingURL=useOverlayPresence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOverlayPresence.d.ts","sourceRoot":"","sources":["../../../src/components/custom/useOverlayPresence.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEhF,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,oBAAoB,CAAA;IAC3B,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,oBAAoB,CA4BtE"}
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Registers all built-in components with the host
|
|
8
8
|
* This should be called during library initialization
|
|
9
|
-
* Note: TileSprite is currently dummy (throws on use)
|
|
10
9
|
*/
|
|
11
10
|
export declare function registerBuiltins(): void;
|
|
12
11
|
export { type LayoutSize } from './../layout/types';
|
|
12
|
+
export { Badge, Tag, formatBadgeCount, getBadgeSizeConfig, getBadgeText, resolveBadgeTextStyle, type BadgeFormatOptions, type BadgeProps, type BadgeSize, type BadgeSizeConfig, type BadgeTextStyleOptions, type BadgeTone, type BadgeToneColors, type BadgeVariant, type TagProps, } from './custom/Badge';
|
|
13
13
|
export { Button, type ButtonProps } from './custom/Button';
|
|
14
|
+
export { Checkbox, type CheckboxIndicatorRenderProps, type CheckboxLabelPosition, type CheckboxProps, type CheckboxState, } from './custom/Checkbox';
|
|
15
|
+
export { DebugPanel, type DebugMetricKey, type DebugPanelPreset, type DebugPanelProps, } from './custom/DebugPanel';
|
|
14
16
|
export { Graphics, type GraphicsProps } from './custom/Graphics';
|
|
15
17
|
export { RadioButton, type RadioButtonProps } from './custom/RadioButton';
|
|
16
18
|
export { RadioGroup, type RadioGroupOption, type RadioGroupProps } from './custom/RadioGroup';
|
|
@@ -19,6 +21,8 @@ export { Text, type TextProps } from './custom/Text';
|
|
|
19
21
|
export { TileSprite, type TileSpriteProps } from './custom/TileSprite';
|
|
20
22
|
export { View, type ViewProps } from './custom/View';
|
|
21
23
|
export { Particles, type ParticlesProps } from './custom/Particles';
|
|
24
|
+
export { ContextMenu, Popover, calculateOverlayPosition, type ContextMenuItem, type ContextMenuProps, type OverlayAnchorRect, type OverlayContentSize, type OverlayPosition, type OverlayPositionOptions, type PopoverPlacement, type PopoverProps, } from './custom/Popover';
|
|
25
|
+
export { ProgressBar, clampProgressValue, getProgressRatio, type ProgressBarFormatProps, type ProgressBarLabelPosition, type ProgressBarOrientation, type ProgressBarProps, } from './custom/ProgressBar';
|
|
22
26
|
export { textCreator, textPatcher, type TextBaseProps } from './primitives/text';
|
|
23
27
|
export { viewCreator, viewPatcher, type ViewBaseProps } from './primitives/view';
|
|
24
28
|
export { nineSliceCreator, nineSlicePatcher, type NineSliceBaseProps, type NineSliceInnerBounds, type NineSlicePrimitiveProps, type NineSliceRef, } from './primitives/nineslice';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH;;;GAGG;AACH,wBAAgB,gBAAgB,SAwB/B;AAGD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,EACL,KAAK,EACL,GAAG,EACH,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,QAAQ,GACd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EACL,QA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a,EAAE,MAAM,mBAAmB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGhF,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAGpG,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAGhG,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,mBAAmB,GACzB,MAAM,yBAAyB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutProps, PhaserProps, TransformProps } from '../../core-props';
|
|
2
2
|
import { HostCreator, HostPatcher } from '../../host';
|
|
3
|
-
import {
|
|
3
|
+
import { ParticleDeathZoneConfig, ParticleZoneConfig } from '../../particles/emit-zone';
|
|
4
4
|
import { ParticlesHandle } from '../../particles/particle-types';
|
|
5
5
|
import { ParticleEmitterConfig, ParticlePresetName } from '../../particles/preset-registry';
|
|
6
6
|
import { PropsDefaultExtension } from '../../types';
|
|
@@ -16,10 +16,20 @@ export interface ParticlesBaseProps extends TransformProps, PhaserProps, LayoutP
|
|
|
16
16
|
preset?: ParticlePresetName;
|
|
17
17
|
/** Optional emitter config overrides */
|
|
18
18
|
config?: ParticleEmitterConfig;
|
|
19
|
-
/** Optional emit zone */
|
|
19
|
+
/** Optional emit zone: where particles are born */
|
|
20
|
+
emitZone?: ParticleZoneConfig;
|
|
21
|
+
/**
|
|
22
|
+
* Optional emit zone: where particles are born.
|
|
23
|
+
* @deprecated Use emitZone.
|
|
24
|
+
*/
|
|
20
25
|
zone?: ParticleZoneConfig;
|
|
21
|
-
/** Optional
|
|
22
|
-
|
|
26
|
+
/** Optional death zones: where particles are removed */
|
|
27
|
+
deathZones?: ParticleDeathZoneConfig | ParticleDeathZoneConfig[] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Optional death zones: where particles are removed.
|
|
30
|
+
* @deprecated Use deathZones.
|
|
31
|
+
*/
|
|
32
|
+
excludeZones?: ParticleDeathZoneConfig | ParticleDeathZoneConfig[] | undefined;
|
|
23
33
|
}
|
|
24
34
|
/**
|
|
25
35
|
* Props for primitive Particles component (internal use only)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"particles.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/particles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"particles.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/particles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE5F,OAAO,KAAK,EAA8B,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAQhG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AASxD;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,WAAW,EAAE,WAAW;IAClF,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAA;IAEf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAE3B,wCAAwC;IACxC,MAAM,CAAC,EAAE,qBAAqB,CAAA;IAE9B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAE7B;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAA;IAEzB,wDAAwD;IACxD,UAAU,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,EAAE,GAAG,SAAS,CAAA;IAE5E;;;OAGG;IACH,YAAY,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,EAAE,GAAG,SAAS,CAAA;CAC/E;AAED;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC;CAAG;AAEvE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,WAAW,CA6ErD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,WAAW,CAYrD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TransformProps } from '../../core-props';
|
|
1
|
+
import { LayoutProps, PhaserProps, TransformProps } from '../../core-props';
|
|
2
2
|
import { HostCreator, HostPatcher } from '../../host';
|
|
3
3
|
import { PropsDefaultExtension } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* TileSprite component - Phaser TileSprite GameObject (repeating texture pattern)
|
|
6
|
-
* Status:
|
|
6
|
+
* Status: IMPLEMENTED ✅
|
|
7
7
|
*
|
|
8
8
|
* Design Decisions & Answers:
|
|
9
9
|
* ===========================
|
|
@@ -104,22 +104,20 @@ import { PropsDefaultExtension } from '../../types';
|
|
|
104
104
|
*
|
|
105
105
|
* Implementation Checklist:
|
|
106
106
|
* ========================
|
|
107
|
-
* [
|
|
108
|
-
* [
|
|
109
|
-
* [
|
|
110
|
-
* [
|
|
111
|
-
* [
|
|
112
|
-
* [
|
|
113
|
-
* [
|
|
114
|
-
* [
|
|
115
|
-
* [ ] Test with scrolling, scaling, rotation
|
|
116
|
-
* [ ] Document power-of-2 texture recommendation
|
|
107
|
+
* [✅] Create TileSprite with scene.add.tileSprite(x, y, width, height, texture, frame)
|
|
108
|
+
* [✅] Set origin to (0, 0) by default (UI-friendly)
|
|
109
|
+
* [✅] Apply transform props via applyTransformProps
|
|
110
|
+
* [✅] Setup tilePosition/tileScale props
|
|
111
|
+
* [✅] Setup layout size provider (width/height)
|
|
112
|
+
* [✅] Handle dimension changes via setSize
|
|
113
|
+
* [✅] Support tint, origin props
|
|
114
|
+
* [✅] Document power-of-2 texture recommendation
|
|
117
115
|
*/
|
|
118
116
|
import type * as Phaser from 'phaser';
|
|
119
117
|
/**
|
|
120
118
|
* Base props for TileSprite component
|
|
121
119
|
*/
|
|
122
|
-
export interface TileSpriteBaseProps extends TransformProps {
|
|
120
|
+
export interface TileSpriteBaseProps extends TransformProps, PhaserProps, LayoutProps {
|
|
123
121
|
/** Texture key (loaded via Phaser's texture manager) */
|
|
124
122
|
texture: string;
|
|
125
123
|
/** Optional frame from texture atlas */
|
|
@@ -138,9 +136,9 @@ export interface TileSpriteBaseProps extends TransformProps {
|
|
|
138
136
|
tileScaleY?: number;
|
|
139
137
|
/** Tint color applied to tiles (0xRRGGBB) */
|
|
140
138
|
tint?: number;
|
|
141
|
-
/** Origin X (0-1, default 0
|
|
139
|
+
/** Origin X (0-1, default 0) */
|
|
142
140
|
originX?: number;
|
|
143
|
-
/** Origin Y (0-1, default 0
|
|
141
|
+
/** Origin Y (0-1, default 0) */
|
|
144
142
|
originY?: number;
|
|
145
143
|
}
|
|
146
144
|
/**
|
|
@@ -149,13 +147,11 @@ export interface TileSpriteBaseProps extends TransformProps {
|
|
|
149
147
|
export interface TileSpriteProps extends TileSpriteBaseProps, PropsDefaultExtension<Phaser.GameObjects.TileSprite> {
|
|
150
148
|
}
|
|
151
149
|
/**
|
|
152
|
-
* TileSprite creator -
|
|
153
|
-
* @throws Error indicating component is not implemented
|
|
150
|
+
* TileSprite creator - creates a Phaser TileSprite object.
|
|
154
151
|
*/
|
|
155
152
|
export declare const tileSpriteCreator: HostCreator<'TileSprite'>;
|
|
156
153
|
/**
|
|
157
|
-
* TileSprite patcher -
|
|
158
|
-
* @throws Error indicating component is not implemented
|
|
154
|
+
* TileSprite patcher - updates texture, size, tiling and shared display props.
|
|
159
155
|
*/
|
|
160
156
|
export declare const tileSpritePatcher: HostPatcher<'TileSprite'>;
|
|
161
157
|
//# sourceMappingURL=tilesprite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tilesprite.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/tilesprite.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tilesprite.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/tilesprite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+GG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAMxD;;GAEG;AACH,MA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