@caperjs/core 0.1.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/LICENSE +22 -0
- package/README.md +62 -0
- package/cli/add.mjs +197 -0
- package/cli/audio/cc.mjs +128 -0
- package/cli/audio/index.mjs +42 -0
- package/cli/audio/utils.mjs +56 -0
- package/cli/create-caper.mjs +8 -0
- package/cli/create.mjs +351 -0
- package/cli/install-peerdeps.mjs +57 -0
- package/cli/update.mjs +9 -0
- package/cli/utils.mjs +81 -0
- package/cli/vite.mjs +55 -0
- package/cli/voiceover/generateVoiceoverCSV.mjs +158 -0
- package/cli/voiceover/index.mjs +1 -0
- package/cli.mjs +157 -0
- package/client.d.ts +7 -0
- package/config/assetpack.mjs +212 -0
- package/config/tsconfig.base.json +28 -0
- package/config/vite.mjs +2464 -0
- package/extras/css/accessibility.css +9 -0
- package/extras/css/fullscreen.css +28 -0
- package/extras/css/loader.css +67 -0
- package/extras/llms.txt +1602 -0
- package/lib/CaptionsPlugin-Dc8fIrjy.js +277 -0
- package/lib/CaptionsPlugin-Dc8fIrjy.js.map +1 -0
- package/lib/DataAdapter-BY2114sp.js +84 -0
- package/lib/DataAdapter-BY2114sp.js.map +1 -0
- package/lib/DebugRenderer-BJMLILqI.js +1385 -0
- package/lib/DebugRenderer-BJMLILqI.js.map +1 -0
- package/lib/DevToolsPlugin-wQ5rOkn0.js +31 -0
- package/lib/DevToolsPlugin-wQ5rOkn0.js.map +1 -0
- package/lib/GSAPPlugin-DHhSZKv8.js +350 -0
- package/lib/GSAPPlugin-DHhSZKv8.js.map +1 -0
- package/lib/LayoutPlugin-B-DF9SYM.js +1271 -0
- package/lib/LayoutPlugin-B-DF9SYM.js.map +1 -0
- package/lib/SpinePlugin-Dz_3dljz.js +6077 -0
- package/lib/SpinePlugin-Dz_3dljz.js.map +1 -0
- package/lib/StatsPlugin-Cg82JMBD.js +70 -0
- package/lib/StatsPlugin-Cg82JMBD.js.map +1 -0
- package/lib/VoiceOverPlugin-BR3ImT8C.js +114 -0
- package/lib/VoiceOverPlugin-BR3ImT8C.js.map +1 -0
- package/lib/caper.mjs +1233 -0
- package/lib/caper.mjs.map +1 -0
- package/lib/core/Application.d.ts +268 -0
- package/lib/core/Application.d.ts.map +1 -0
- package/lib/core/config.d.ts +39 -0
- package/lib/core/config.d.ts.map +1 -0
- package/lib/core/create.d.ts +41 -0
- package/lib/core/create.d.ts.map +1 -0
- package/lib/core/globals.d.ts +51 -0
- package/lib/core/globals.d.ts.map +1 -0
- package/lib/core/index.d.ts +7 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/interfaces/IApplication.d.ts +566 -0
- package/lib/core/interfaces/IApplication.d.ts.map +1 -0
- package/lib/core/interfaces/IApplicationOptions.d.ts +65 -0
- package/lib/core/interfaces/IApplicationOptions.d.ts.map +1 -0
- package/lib/core/interfaces/ICoreFunctions.d.ts +49 -0
- package/lib/core/interfaces/ICoreFunctions.d.ts.map +1 -0
- package/lib/core/interfaces/ICoreSignals.d.ts +57 -0
- package/lib/core/interfaces/ICoreSignals.d.ts.map +1 -0
- package/lib/core/interfaces/IStorageCapability.d.ts +20 -0
- package/lib/core/interfaces/IStorageCapability.d.ts.map +1 -0
- package/lib/core/interfaces/IStorageCapability.test.d.ts +2 -0
- package/lib/core/interfaces/IStorageCapability.test.d.ts.map +1 -0
- package/lib/core/interfaces/index.d.ts +7 -0
- package/lib/core/interfaces/index.d.ts.map +1 -0
- package/lib/core/registries.d.ts +8 -0
- package/lib/core/registries.d.ts.map +1 -0
- package/lib/core/types.d.ts +12 -0
- package/lib/core/types.d.ts.map +1 -0
- package/lib/display/AnimatedSprite.d.ts +40 -0
- package/lib/display/AnimatedSprite.d.ts.map +1 -0
- package/lib/display/Camera.d.ts +102 -0
- package/lib/display/Camera.d.ts.map +1 -0
- package/lib/display/Container.d.ts +115 -0
- package/lib/display/Container.d.ts.map +1 -0
- package/lib/display/Entity.d.ts +46 -0
- package/lib/display/Entity.d.ts.map +1 -0
- package/lib/display/ParticleContainer.d.ts +58 -0
- package/lib/display/ParticleContainer.d.ts.map +1 -0
- package/lib/display/Scene.d.ts +250 -0
- package/lib/display/Scene.d.ts.map +1 -0
- package/lib/display/SceneTransition.d.ts +41 -0
- package/lib/display/SceneTransition.d.ts.map +1 -0
- package/lib/display/SpineAnimation.d.ts +76 -0
- package/lib/display/SpineAnimation.d.ts.map +1 -0
- package/lib/display/Svg.d.ts +5 -0
- package/lib/display/Svg.d.ts.map +1 -0
- package/lib/display/index.d.ts +10 -0
- package/lib/display/index.d.ts.map +1 -0
- package/lib/env.d.ts +6 -0
- package/lib/hello.d.ts +2 -0
- package/lib/hello.d.ts.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/mixins/animated.d.ts +53 -0
- package/lib/mixins/animated.d.ts.map +1 -0
- package/lib/mixins/factory/Factory.d.ts +8 -0
- package/lib/mixins/factory/Factory.d.ts.map +1 -0
- package/lib/mixins/factory/const.d.ts +67 -0
- package/lib/mixins/factory/const.d.ts.map +1 -0
- package/lib/mixins/factory/index.d.ts +8 -0
- package/lib/mixins/factory/index.d.ts.map +1 -0
- package/lib/mixins/factory/methods.d.ts +3 -0
- package/lib/mixins/factory/methods.d.ts.map +1 -0
- package/lib/mixins/factory/props.d.ts +160 -0
- package/lib/mixins/factory/props.d.ts.map +1 -0
- package/lib/mixins/factory/registry.d.ts +27 -0
- package/lib/mixins/factory/registry.d.ts.map +1 -0
- package/lib/mixins/factory/registry.test.d.ts +2 -0
- package/lib/mixins/factory/registry.test.d.ts.map +1 -0
- package/lib/mixins/factory/schema.d.ts +71 -0
- package/lib/mixins/factory/schema.d.ts.map +1 -0
- package/lib/mixins/factory/ui-registry.d.ts +20 -0
- package/lib/mixins/factory/ui-registry.d.ts.map +1 -0
- package/lib/mixins/factory/utils.d.ts +11 -0
- package/lib/mixins/factory/utils.d.ts.map +1 -0
- package/lib/mixins/focus.d.ts +15 -0
- package/lib/mixins/focus.d.ts.map +1 -0
- package/lib/mixins/index.d.ts +6 -0
- package/lib/mixins/index.d.ts.map +1 -0
- package/lib/mixins/interaction.d.ts +20 -0
- package/lib/mixins/interaction.d.ts.map +1 -0
- package/lib/mixins/signals.d.ts +15 -0
- package/lib/mixins/signals.d.ts.map +1 -0
- package/lib/plugins/AssetsPlugin.d.ts +79 -0
- package/lib/plugins/AssetsPlugin.d.ts.map +1 -0
- package/lib/plugins/DataAdapter.d.ts +95 -0
- package/lib/plugins/DataAdapter.d.ts.map +1 -0
- package/lib/plugins/DevToolsPlugin.d.ts +97 -0
- package/lib/plugins/DevToolsPlugin.d.ts.map +1 -0
- package/lib/plugins/FullScreenPlugin.d.ts +240 -0
- package/lib/plugins/FullScreenPlugin.d.ts.map +1 -0
- package/lib/plugins/GSAPPlugin.d.ts +634 -0
- package/lib/plugins/GSAPPlugin.d.ts.map +1 -0
- package/lib/plugins/KeyboardPlugin.d.ts +53 -0
- package/lib/plugins/KeyboardPlugin.d.ts.map +1 -0
- package/lib/plugins/LayoutPlugin.d.ts +100 -0
- package/lib/plugins/LayoutPlugin.d.ts.map +1 -0
- package/lib/plugins/LookupPlugin.d.ts +223 -0
- package/lib/plugins/LookupPlugin.d.ts.map +1 -0
- package/lib/plugins/Plugin.d.ts +132 -0
- package/lib/plugins/Plugin.d.ts.map +1 -0
- package/lib/plugins/Plugin.test.d.ts +2 -0
- package/lib/plugins/Plugin.test.d.ts.map +1 -0
- package/lib/plugins/PopupManagerPlugin.d.ts +108 -0
- package/lib/plugins/PopupManagerPlugin.d.ts.map +1 -0
- package/lib/plugins/ResizerPlugin.d.ts +62 -0
- package/lib/plugins/ResizerPlugin.d.ts.map +1 -0
- package/lib/plugins/SceneManagerPlugin.d.ts +122 -0
- package/lib/plugins/SceneManagerPlugin.d.ts.map +1 -0
- package/lib/plugins/StatsPlugin.d.ts +8 -0
- package/lib/plugins/StatsPlugin.d.ts.map +1 -0
- package/lib/plugins/TimerPlugin.d.ts +401 -0
- package/lib/plugins/TimerPlugin.d.ts.map +1 -0
- package/lib/plugins/WebEventsPlugin.d.ts +60 -0
- package/lib/plugins/WebEventsPlugin.d.ts.map +1 -0
- package/lib/plugins/actions/ActionsPlugin.d.ts +39 -0
- package/lib/plugins/actions/ActionsPlugin.d.ts.map +1 -0
- package/lib/plugins/actions/constants.d.ts +52 -0
- package/lib/plugins/actions/constants.d.ts.map +1 -0
- package/lib/plugins/actions/index.d.ts +5 -0
- package/lib/plugins/actions/index.d.ts.map +1 -0
- package/lib/plugins/actions/methods.d.ts +11 -0
- package/lib/plugins/actions/methods.d.ts.map +1 -0
- package/lib/plugins/actions/types.d.ts +25 -0
- package/lib/plugins/actions/types.d.ts.map +1 -0
- package/lib/plugins/audio/AudioChannel.d.ts +46 -0
- package/lib/plugins/audio/AudioChannel.d.ts.map +1 -0
- package/lib/plugins/audio/AudioChannel.test.d.ts +2 -0
- package/lib/plugins/audio/AudioChannel.test.d.ts.map +1 -0
- package/lib/plugins/audio/AudioInstance.d.ts +79 -0
- package/lib/plugins/audio/AudioInstance.d.ts.map +1 -0
- package/lib/plugins/audio/AudioManagerPlugin.d.ts +323 -0
- package/lib/plugins/audio/AudioManagerPlugin.d.ts.map +1 -0
- package/lib/plugins/audio/VoiceOverPlugin.d.ts +69 -0
- package/lib/plugins/audio/VoiceOverPlugin.d.ts.map +1 -0
- package/lib/plugins/audio/index.d.ts +4 -0
- package/lib/plugins/audio/index.d.ts.map +1 -0
- package/lib/plugins/breakpoints/BreakpointPlugin.d.ts +109 -0
- package/lib/plugins/breakpoints/BreakpointPlugin.d.ts.map +1 -0
- package/lib/plugins/breakpoints/BreakpointPlugin.test.d.ts +2 -0
- package/lib/plugins/breakpoints/BreakpointPlugin.test.d.ts.map +1 -0
- package/lib/plugins/breakpoints/evaluate.d.ts +53 -0
- package/lib/plugins/breakpoints/evaluate.d.ts.map +1 -0
- package/lib/plugins/breakpoints/evaluate.test.d.ts +2 -0
- package/lib/plugins/breakpoints/evaluate.test.d.ts.map +1 -0
- package/lib/plugins/breakpoints/index.d.ts +4 -0
- package/lib/plugins/breakpoints/index.d.ts.map +1 -0
- package/lib/plugins/breakpoints/methods.d.ts +23 -0
- package/lib/plugins/breakpoints/methods.d.ts.map +1 -0
- package/lib/plugins/breakpoints/types.d.ts +70 -0
- package/lib/plugins/breakpoints/types.d.ts.map +1 -0
- package/lib/plugins/captions/CaptionsPlugin.d.ts +150 -0
- package/lib/plugins/captions/CaptionsPlugin.d.ts.map +1 -0
- package/lib/plugins/captions/CaptionsRenderer.d.ts +37 -0
- package/lib/plugins/captions/CaptionsRenderer.d.ts.map +1 -0
- package/lib/plugins/captions/index.d.ts +3 -0
- package/lib/plugins/captions/index.d.ts.map +1 -0
- package/lib/plugins/defaults.d.ts +4 -0
- package/lib/plugins/defaults.d.ts.map +1 -0
- package/lib/plugins/focus/FocusManagerPlugin.d.ts +148 -0
- package/lib/plugins/focus/FocusManagerPlugin.d.ts.map +1 -0
- package/lib/plugins/focus/FocusOutliner.d.ts +32 -0
- package/lib/plugins/focus/FocusOutliner.d.ts.map +1 -0
- package/lib/plugins/focus/index.d.ts +3 -0
- package/lib/plugins/focus/index.d.ts.map +1 -0
- package/lib/plugins/i18nPlugin.d.ts +128 -0
- package/lib/plugins/i18nPlugin.d.ts.map +1 -0
- package/lib/plugins/index.d.ts +18 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/input/AbstractControls.d.ts +8 -0
- package/lib/plugins/input/AbstractControls.d.ts.map +1 -0
- package/lib/plugins/input/Controls.d.ts +16 -0
- package/lib/plugins/input/Controls.d.ts.map +1 -0
- package/lib/plugins/input/InputPlugin.d.ts +52 -0
- package/lib/plugins/input/InputPlugin.d.ts.map +1 -0
- package/lib/plugins/input/constants.d.ts +8 -0
- package/lib/plugins/input/constants.d.ts.map +1 -0
- package/lib/plugins/input/index.d.ts +10 -0
- package/lib/plugins/input/index.d.ts.map +1 -0
- package/lib/plugins/input/interfaces.d.ts +30 -0
- package/lib/plugins/input/interfaces.d.ts.map +1 -0
- package/lib/plugins/input/keyboard/KeyboardContols.d.ts +28 -0
- package/lib/plugins/input/keyboard/KeyboardContols.d.ts.map +1 -0
- package/lib/plugins/input/keyboard/index.d.ts +3 -0
- package/lib/plugins/input/keyboard/index.d.ts.map +1 -0
- package/lib/plugins/input/keyboard/interfaces.d.ts +18 -0
- package/lib/plugins/input/keyboard/interfaces.d.ts.map +1 -0
- package/lib/plugins/input/methods.d.ts +4 -0
- package/lib/plugins/input/methods.d.ts.map +1 -0
- package/lib/plugins/input/touch/TouchControls.d.ts +35 -0
- package/lib/plugins/input/touch/TouchControls.d.ts.map +1 -0
- package/lib/plugins/input/touch/constants.d.ts +14 -0
- package/lib/plugins/input/touch/constants.d.ts.map +1 -0
- package/lib/plugins/input/touch/index.d.ts +4 -0
- package/lib/plugins/input/touch/index.d.ts.map +1 -0
- package/lib/plugins/input/touch/interfaces.d.ts +15 -0
- package/lib/plugins/input/touch/interfaces.d.ts.map +1 -0
- package/lib/plugins/input/types.d.ts +32 -0
- package/lib/plugins/input/types.d.ts.map +1 -0
- package/lib/plugins/input/utils.d.ts +23 -0
- package/lib/plugins/input/utils.d.ts.map +1 -0
- package/lib/plugins/spine/SpinePlugin.d.ts +6 -0
- package/lib/plugins/spine/SpinePlugin.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/BatchableSpineSlot.d.ts +31 -0
- package/lib/plugins/spine/pixi-spine/BatchableSpineSlot.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/Spine.d.ts +211 -0
- package/lib/plugins/spine/pixi-spine/Spine.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/SpineDebugRenderer.d.ts +81 -0
- package/lib/plugins/spine/pixi-spine/SpineDebugRenderer.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/SpinePipe.d.ts +21 -0
- package/lib/plugins/spine/pixi-spine/SpinePipe.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/SpineTexture.d.ts +16 -0
- package/lib/plugins/spine/pixi-spine/SpineTexture.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/assets/atlasLoader.d.ts +10 -0
- package/lib/plugins/spine/pixi-spine/assets/atlasLoader.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/assets/skeletonLoader.d.ts +6 -0
- package/lib/plugins/spine/pixi-spine/assets/skeletonLoader.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintBatchGeometry.d.ts +5 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintBatchGeometry.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintBatcher.d.ts +22 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintBatcher.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintShader.d.ts +5 -0
- package/lib/plugins/spine/pixi-spine/darktint/DarkTintShader.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/darktint/darkTintBit.d.ts +51 -0
- package/lib/plugins/spine/pixi-spine/darktint/darkTintBit.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/index.d.ts +9 -0
- package/lib/plugins/spine/pixi-spine/index.d.ts.map +1 -0
- package/lib/plugins/spine/pixi-spine/require-shim.d.ts +34 -0
- package/lib/plugins/spine/pixi-spine/require-shim.d.ts.map +1 -0
- package/lib/registries-CYCaYKZI.js +6885 -0
- package/lib/registries-CYCaYKZI.js.map +1 -0
- package/lib/signals/Signal.d.ts +16 -0
- package/lib/signals/Signal.d.ts.map +1 -0
- package/lib/signals/Signal.test.d.ts +2 -0
- package/lib/signals/Signal.test.d.ts.map +1 -0
- package/lib/signals/index.d.ts +3 -0
- package/lib/signals/index.d.ts.map +1 -0
- package/lib/store/Store.d.ts +56 -0
- package/lib/store/Store.d.ts.map +1 -0
- package/lib/store/Store.test.d.ts +2 -0
- package/lib/store/Store.test.d.ts.map +1 -0
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/types/framework.d.ts +46 -0
- package/lib/types/gsap.d.ts +23 -0
- package/lib/ui/Button.d.ts +162 -0
- package/lib/ui/Button.d.ts.map +1 -0
- package/lib/ui/FlexContainer.d.ts +109 -0
- package/lib/ui/FlexContainer.d.ts.map +1 -0
- package/lib/ui/Input.d.ts +384 -0
- package/lib/ui/Input.d.ts.map +1 -0
- package/lib/ui/Joystick.d.ts +61 -0
- package/lib/ui/Joystick.d.ts.map +1 -0
- package/lib/ui/Popup.d.ts +109 -0
- package/lib/ui/Popup.d.ts.map +1 -0
- package/lib/ui/Toast.d.ts +131 -0
- package/lib/ui/Toast.d.ts.map +1 -0
- package/lib/ui/Toaster.d.ts +188 -0
- package/lib/ui/Toaster.d.ts.map +1 -0
- package/lib/ui/UICanvas.d.ts +155 -0
- package/lib/ui/UICanvas.d.ts.map +1 -0
- package/lib/ui/index.d.ts +9 -0
- package/lib/ui/index.d.ts.map +1 -0
- package/lib/utils/array.d.ts +11 -0
- package/lib/utils/array.d.ts.map +1 -0
- package/lib/utils/bind.d.ts +21 -0
- package/lib/utils/bind.d.ts.map +1 -0
- package/lib/utils/canvas.d.ts +2 -0
- package/lib/utils/canvas.d.ts.map +1 -0
- package/lib/utils/color.d.ts +66 -0
- package/lib/utils/color.d.ts.map +1 -0
- package/lib/utils/console/Logger.d.ts +15 -0
- package/lib/utils/console/Logger.d.ts.map +1 -0
- package/lib/utils/console/index.d.ts +2 -0
- package/lib/utils/console/index.d.ts.map +1 -0
- package/lib/utils/debug.d.ts +34 -0
- package/lib/utils/debug.d.ts.map +1 -0
- package/lib/utils/define.d.ts +100 -0
- package/lib/utils/define.d.ts.map +1 -0
- package/lib/utils/env.d.ts +4 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/events.d.ts +12 -0
- package/lib/utils/events.d.ts.map +1 -0
- package/lib/utils/framework.d.ts +12 -0
- package/lib/utils/framework.d.ts.map +1 -0
- package/lib/utils/index.d.ts +28 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/map.d.ts +31 -0
- package/lib/utils/map.d.ts.map +1 -0
- package/lib/utils/math.d.ts +15 -0
- package/lib/utils/math.d.ts.map +1 -0
- package/lib/utils/misc.d.ts +13 -0
- package/lib/utils/misc.d.ts.map +1 -0
- package/lib/utils/number.d.ts +2 -0
- package/lib/utils/number.d.ts.map +1 -0
- package/lib/utils/object.d.ts +21 -0
- package/lib/utils/object.d.ts.map +1 -0
- package/lib/utils/padding.d.ts +4 -0
- package/lib/utils/padding.d.ts.map +1 -0
- package/lib/utils/pixi.d.ts +42 -0
- package/lib/utils/pixi.d.ts.map +1 -0
- package/lib/utils/platform.d.ts +20 -0
- package/lib/utils/platform.d.ts.map +1 -0
- package/lib/utils/point.d.ts +66 -0
- package/lib/utils/point.d.ts.map +1 -0
- package/lib/utils/promise/Queue.d.ts +60 -0
- package/lib/utils/promise/Queue.d.ts.map +1 -0
- package/lib/utils/promise/functions.d.ts +14 -0
- package/lib/utils/promise/functions.d.ts.map +1 -0
- package/lib/utils/promise/index.d.ts +3 -0
- package/lib/utils/promise/index.d.ts.map +1 -0
- package/lib/utils/random.d.ts +42 -0
- package/lib/utils/random.d.ts.map +1 -0
- package/lib/utils/rect.d.ts +26 -0
- package/lib/utils/rect.d.ts.map +1 -0
- package/lib/utils/set.d.ts +15 -0
- package/lib/utils/set.d.ts.map +1 -0
- package/lib/utils/string.d.ts +3 -0
- package/lib/utils/string.d.ts.map +1 -0
- package/lib/utils/text.d.ts +3 -0
- package/lib/utils/text.d.ts.map +1 -0
- package/lib/utils/typefilters.d.ts +4 -0
- package/lib/utils/typefilters.d.ts.map +1 -0
- package/lib/utils/types.d.ts +209 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/vite.d.ts +25 -0
- package/lib/utils/vite.d.ts.map +1 -0
- package/lib/utils/web.d.ts +3 -0
- package/lib/utils/web.d.ts.map +1 -0
- package/lib/version.d.ts +3 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/webgl-check.d.ts +2 -0
- package/lib/webgl-check.d.ts.map +1 -0
- package/package.json +138 -0
- package/src/core/Application.ts +1091 -0
- package/src/core/config.ts +168 -0
- package/src/core/create.ts +186 -0
- package/src/core/globals.ts +299 -0
- package/src/core/index.ts +6 -0
- package/src/core/interfaces/IApplication.ts +628 -0
- package/src/core/interfaces/IApplicationOptions.ts +81 -0
- package/src/core/interfaces/ICoreFunctions.ts +86 -0
- package/src/core/interfaces/ICoreSignals.ts +77 -0
- package/src/core/interfaces/IStorageCapability.test.ts +27 -0
- package/src/core/interfaces/IStorageCapability.ts +26 -0
- package/src/core/interfaces/index.ts +6 -0
- package/src/core/registries.ts +7 -0
- package/src/core/types.ts +13 -0
- package/src/display/AnimatedSprite.ts +227 -0
- package/src/display/Camera.ts +371 -0
- package/src/display/Container.ts +240 -0
- package/src/display/Entity.ts +50 -0
- package/src/display/ParticleContainer.ts +107 -0
- package/src/display/Scene.ts +305 -0
- package/src/display/SceneTransition.ts +108 -0
- package/src/display/SpineAnimation.ts +170 -0
- package/src/display/Svg.ts +9 -0
- package/src/display/index.ts +11 -0
- package/src/env.d.ts +6 -0
- package/src/hello.ts +20 -0
- package/src/index.ts +17 -0
- package/src/mixins/animated.ts +340 -0
- package/src/mixins/factory/Factory.ts +24 -0
- package/src/mixins/factory/const.ts +363 -0
- package/src/mixins/factory/index.ts +7 -0
- package/src/mixins/factory/methods.ts +21 -0
- package/src/mixins/factory/props.ts +207 -0
- package/src/mixins/factory/registry.test.ts +83 -0
- package/src/mixins/factory/registry.ts +61 -0
- package/src/mixins/factory/schema.ts +153 -0
- package/src/mixins/factory/ui-registry.ts +54 -0
- package/src/mixins/factory/utils.ts +130 -0
- package/src/mixins/focus.ts +124 -0
- package/src/mixins/index.ts +5 -0
- package/src/mixins/interaction.ts +74 -0
- package/src/mixins/signals.ts +49 -0
- package/src/plugins/AssetsPlugin.ts +407 -0
- package/src/plugins/DataAdapter.ts +259 -0
- package/src/plugins/DevToolsPlugin.ts +103 -0
- package/src/plugins/FullScreenPlugin.ts +359 -0
- package/src/plugins/GSAPPlugin.ts +811 -0
- package/src/plugins/KeyboardPlugin.ts +160 -0
- package/src/plugins/LayoutPlugin.ts +127 -0
- package/src/plugins/LookupPlugin.ts +308 -0
- package/src/plugins/Plugin.test.ts +73 -0
- package/src/plugins/Plugin.ts +200 -0
- package/src/plugins/PopupManagerPlugin.ts +263 -0
- package/src/plugins/ResizerPlugin.ts +220 -0
- package/src/plugins/SceneManagerPlugin.ts +669 -0
- package/src/plugins/StatsPlugin.ts +24 -0
- package/src/plugins/TimerPlugin.ts +841 -0
- package/src/plugins/WebEventsPlugin.ts +132 -0
- package/src/plugins/actions/ActionsPlugin.ts +113 -0
- package/src/plugins/actions/constants.ts +45 -0
- package/src/plugins/actions/index.ts +4 -0
- package/src/plugins/actions/methods.ts +28 -0
- package/src/plugins/actions/types.ts +47 -0
- package/src/plugins/audio/AudioChannel.test.ts +101 -0
- package/src/plugins/audio/AudioChannel.ts +164 -0
- package/src/plugins/audio/AudioInstance.ts +228 -0
- package/src/plugins/audio/AudioManagerPlugin.ts +903 -0
- package/src/plugins/audio/VoiceOverPlugin.ts +354 -0
- package/src/plugins/audio/index.ts +3 -0
- package/src/plugins/breakpoints/BreakpointPlugin.test.ts +228 -0
- package/src/plugins/breakpoints/BreakpointPlugin.ts +293 -0
- package/src/plugins/breakpoints/evaluate.test.ts +239 -0
- package/src/plugins/breakpoints/evaluate.ts +201 -0
- package/src/plugins/breakpoints/index.ts +3 -0
- package/src/plugins/breakpoints/methods.ts +22 -0
- package/src/plugins/breakpoints/types.ts +86 -0
- package/src/plugins/captions/CaptionsPlugin.ts +468 -0
- package/src/plugins/captions/CaptionsRenderer.ts +184 -0
- package/src/plugins/captions/font/Sans.fnt +116 -0
- package/src/plugins/captions/font/Sans.png +0 -0
- package/src/plugins/captions/index.ts +2 -0
- package/src/plugins/defaults.ts +95 -0
- package/src/plugins/focus/FocusManagerPlugin.ts +773 -0
- package/src/plugins/focus/FocusOutliner.ts +111 -0
- package/src/plugins/focus/index.ts +2 -0
- package/src/plugins/i18nPlugin.ts +284 -0
- package/src/plugins/index.ts +17 -0
- package/src/plugins/input/AbstractControls.ts +15 -0
- package/src/plugins/input/Controls.ts +55 -0
- package/src/plugins/input/InputPlugin.ts +168 -0
- package/src/plugins/input/constants.ts +12 -0
- package/src/plugins/input/index.ts +9 -0
- package/src/plugins/input/interfaces.ts +37 -0
- package/src/plugins/input/keyboard/KeyboardContols.ts +182 -0
- package/src/plugins/input/keyboard/index.ts +2 -0
- package/src/plugins/input/keyboard/interfaces.ts +21 -0
- package/src/plugins/input/methods.ts +9 -0
- package/src/plugins/input/touch/TouchControls.ts +237 -0
- package/src/plugins/input/touch/constants.ts +34 -0
- package/src/plugins/input/touch/index.ts +3 -0
- package/src/plugins/input/touch/interfaces.ts +15 -0
- package/src/plugins/input/types.ts +41 -0
- package/src/plugins/input/utils.ts +10 -0
- package/src/plugins/spine/SpinePlugin.ts +14 -0
- package/src/plugins/spine/pixi-spine/BatchableSpineSlot.ts +138 -0
- package/src/plugins/spine/pixi-spine/Spine.ts +897 -0
- package/src/plugins/spine/pixi-spine/SpineDebugRenderer.ts +615 -0
- package/src/plugins/spine/pixi-spine/SpinePipe.ts +197 -0
- package/src/plugins/spine/pixi-spine/SpineTexture.ts +143 -0
- package/src/plugins/spine/pixi-spine/assets/atlasLoader.ts +156 -0
- package/src/plugins/spine/pixi-spine/assets/skeletonLoader.ts +80 -0
- package/src/plugins/spine/pixi-spine/darktint/DarkTintBatchGeometry.ts +92 -0
- package/src/plugins/spine/pixi-spine/darktint/DarkTintBatcher.ts +186 -0
- package/src/plugins/spine/pixi-spine/darktint/DarkTintShader.ts +74 -0
- package/src/plugins/spine/pixi-spine/darktint/darkTintBit.ts +77 -0
- package/src/plugins/spine/pixi-spine/index.ts +43 -0
- package/src/plugins/spine/pixi-spine/require-shim.ts +43 -0
- package/src/signals/Signal.test.ts +54 -0
- package/src/signals/Signal.ts +68 -0
- package/src/signals/index.ts +10 -0
- package/src/store/Store.test.ts +146 -0
- package/src/store/Store.ts +192 -0
- package/src/store/index.ts +1 -0
- package/src/types/framework.d.ts +47 -0
- package/src/types/gsap.d.ts +26 -0
- package/src/ui/Button.ts +454 -0
- package/src/ui/FlexContainer.ts +526 -0
- package/src/ui/Input.ts +1274 -0
- package/src/ui/Joystick.ts +288 -0
- package/src/ui/Popup.ts +242 -0
- package/src/ui/Toast.ts +399 -0
- package/src/ui/Toaster.ts +409 -0
- package/src/ui/UICanvas.ts +812 -0
- package/src/ui/index.ts +8 -0
- package/src/utils/array.ts +24 -0
- package/src/utils/bind.ts +79 -0
- package/src/utils/canvas.ts +26 -0
- package/src/utils/color.ts +126 -0
- package/src/utils/console/Logger.ts +86 -0
- package/src/utils/console/index.ts +1 -0
- package/src/utils/debug.ts +69 -0
- package/src/utils/define.ts +120 -0
- package/src/utils/env.ts +3 -0
- package/src/utils/events.ts +10 -0
- package/src/utils/framework.ts +45 -0
- package/src/utils/index.ts +27 -0
- package/src/utils/map.ts +59 -0
- package/src/utils/math.ts +19 -0
- package/src/utils/misc.ts +45 -0
- package/src/utils/number.ts +3 -0
- package/src/utils/object.ts +43 -0
- package/src/utils/padding.ts +43 -0
- package/src/utils/pixi.ts +116 -0
- package/src/utils/platform.ts +33 -0
- package/src/utils/point.ts +123 -0
- package/src/utils/promise/Queue.ts +125 -0
- package/src/utils/promise/functions.ts +16 -0
- package/src/utils/promise/index.ts +2 -0
- package/src/utils/random.ts +69 -0
- package/src/utils/rect.ts +50 -0
- package/src/utils/set.ts +32 -0
- package/src/utils/string.ts +9 -0
- package/src/utils/text.ts +30 -0
- package/src/utils/typefilters.ts +29 -0
- package/src/utils/types.ts +426 -0
- package/src/utils/vite.ts +41 -0
- package/src/utils/web.ts +7 -0
- package/src/version.ts +3 -0
- package/src/webgl-check.ts +12 -0
- package/templates/app/default/.eslintrc.json +21 -0
- package/templates/app/default/.meta.json +4 -0
- package/templates/app/default/.nvmrc +1 -0
- package/templates/app/default/.prettierrc.json +7 -0
- package/templates/app/default/README.md +8 -0
- package/templates/app/default/assets/audio{m}/music/Cheerful Annoyance.ogg +0 -0
- package/templates/app/default/assets/audio{m}/music/Drumming Sticks.ogg +0 -0
- package/templates/app/default/assets/audio{m}/music/Game Over.ogg +0 -0
- package/templates/app/default/assets/audio{m}/music/Mishief Stroll.ogg +0 -0
- package/templates/app/default/assets/audio{m}/music/Night at the Beach.ogg +0 -0
- package/templates/app/default/assets/audio{m}/sfx/click.ogg +0 -0
- package/templates/app/default/assets/audio{m}/sfx/hover.ogg +0 -0
- package/templates/app/default/assets/required{m}/caper.png +0 -0
- package/templates/app/default/assets/required{m}/fonts{fix}/SpaceGrotesk-Bold{family=Space Grotesk}{wf}.ttf +0 -0
- package/templates/app/default/assets/required{m}/fonts{fix}/SpaceGrotesk-Medium{family=Space Grotesk}{wf}.ttf +0 -0
- package/templates/app/default/assets/required{m}/fonts{fix}/SpaceGrotesk-Regular{family=Space Grotesk}{wf}.ttf +0 -0
- package/templates/app/default/assets/required{m}/fonts{fix}/Syncopate-Bold{family=Syncopate}{wf}.ttf +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/blue.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/green.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/grey.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/orange.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/purple.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/red.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn/yellow.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_a/down.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_a/over.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_a/up.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_b/down.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_b/over.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/btn_b/up.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/joystick/base.png +0 -0
- package/templates/app/default/assets/required{m}/ui{tps}/joystick/handle.png +0 -0
- package/templates/app/default/assets/required{m}/wordmark.svg +1 -0
- package/templates/app/default/assets/spine{m}/spineboy-pro.png +0 -0
- package/templates/app/default/assets/spine{m}/spineboy-pro.skel +0 -0
- package/templates/app/default/assets/spine{m}/spineboy-pro{fix}.atlas +94 -0
- package/templates/app/default/caper.config.ts +60 -0
- package/templates/app/default/index.html +23 -0
- package/templates/app/default/package.template.json +17 -0
- package/templates/app/default/public/favicon.ico +0 -0
- package/templates/app/default/src/__APPLICATION_NAME__.ts +3 -0
- package/templates/app/default/src/main.ts +9 -0
- package/templates/app/default/src/scenes/Base.ts +39 -0
- package/templates/app/default/src/scenes/Game.ts +34 -0
- package/templates/app/default/src/scenes/Splash.ts +70 -0
- package/templates/app/default/src/scenes/Start.ts +90 -0
- package/templates/app/default/src/utils/Constants.ts +3 -0
- package/templates/app/default/tsconfig.json +1 -0
- package/templates/plugin/package.template.json +33 -0
- package/templates/plugin/src/Plugin.template.ts +24 -0
- package/templates/plugin/src/index.template.ts +3 -0
- package/templates/plugin/tsconfig.template.json +43 -0
- package/templates/plugin/vite-env.template.d.ts +16 -0
- package/templates/plugin/vite.config.template.ts +19 -0
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
import { Z as e } from "./registries-CYCaYKZI.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, u as m } from "./DebugRenderer-BJMLILqI.js";
|
|
3
|
+
import { AbstractText as h, Container as g, ExtensionType as _, NineSliceSprite as v, Point as y, Rectangle as b, TilingSprite as x, ViewContainer as S, extensions as C } from "pixi.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/yoga.mjs
|
|
5
|
+
var w;
|
|
6
|
+
function T() {
|
|
7
|
+
return w;
|
|
8
|
+
}
|
|
9
|
+
function ee(e) {
|
|
10
|
+
w = e;
|
|
11
|
+
}
|
|
12
|
+
var te;
|
|
13
|
+
function ne(e) {
|
|
14
|
+
te = e;
|
|
15
|
+
}
|
|
16
|
+
function re() {
|
|
17
|
+
return te;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/utils/getNumberFromStyle.mjs
|
|
21
|
+
function E(e, t) {
|
|
22
|
+
return e ? typeof e == "number" ? e : typeof e == "string" && e.endsWith("%") ? (t ??= 1, parseFloat(e) / 100 * t) : Number.isNaN(parseFloat(e)) ? 0 : parseFloat(e) : 0;
|
|
23
|
+
}
|
|
24
|
+
function D(e) {
|
|
25
|
+
return typeof e == "number" ? "number" : e.endsWith("%") ? "percentage" : Number.isNaN(parseInt(e, 10)) ? "keyword" : "number";
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/position/calculateWithDoubleValue.mjs
|
|
29
|
+
function O(e, t, n) {
|
|
30
|
+
return (t[e] - n[e]) / 2;
|
|
31
|
+
}
|
|
32
|
+
function k(e, t, n, r, i) {
|
|
33
|
+
let a = t === "percentage" ? r[n] - i[n] : 1;
|
|
34
|
+
return E(e) * a;
|
|
35
|
+
}
|
|
36
|
+
function ie(e, t, n) {
|
|
37
|
+
let [r, i] = e, a = D(r), o = D(i), s = {
|
|
38
|
+
x: void 0,
|
|
39
|
+
y: void 0
|
|
40
|
+
};
|
|
41
|
+
switch (r) {
|
|
42
|
+
case "top":
|
|
43
|
+
s.y = 0;
|
|
44
|
+
break;
|
|
45
|
+
case "bottom":
|
|
46
|
+
s.y = t.height - n.height;
|
|
47
|
+
break;
|
|
48
|
+
case "center":
|
|
49
|
+
i === "left" || i === "right" ? s.y = O("height", t, n) : s.x = O("width", t, n);
|
|
50
|
+
break;
|
|
51
|
+
case "left":
|
|
52
|
+
s.x = 0;
|
|
53
|
+
break;
|
|
54
|
+
case "right":
|
|
55
|
+
s.x = t.width - n.width;
|
|
56
|
+
break;
|
|
57
|
+
default: {
|
|
58
|
+
let e = i === "top" || i === "bottom" || o !== "keyword" ? "width" : "height", c = e === "width" ? "x" : "y";
|
|
59
|
+
s[c] = k(r, a, e, t, n);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
switch (i) {
|
|
63
|
+
case "top":
|
|
64
|
+
s.y = 0;
|
|
65
|
+
break;
|
|
66
|
+
case "bottom":
|
|
67
|
+
s.y = t.height - n.height;
|
|
68
|
+
break;
|
|
69
|
+
case "center":
|
|
70
|
+
s.y === void 0 ? s.y = O("height", t, n) : s.x = O("width", t, n);
|
|
71
|
+
break;
|
|
72
|
+
case "left":
|
|
73
|
+
s.x = 0;
|
|
74
|
+
break;
|
|
75
|
+
case "right":
|
|
76
|
+
s.x = t.width - n.width;
|
|
77
|
+
break;
|
|
78
|
+
default: {
|
|
79
|
+
let e = s.y === void 0 ? "y" : "x";
|
|
80
|
+
s[e] = k(i, o, e === "y" ? "height" : "width", t, n);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return s;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/position/calculateWithQuadValue.mjs
|
|
87
|
+
function A(e, t, n, r) {
|
|
88
|
+
let i = e === "right" || e === "bottom", a = n === "percentage" ? t * r : t;
|
|
89
|
+
return i ? -a : a;
|
|
90
|
+
}
|
|
91
|
+
function ae(e, t, n) {
|
|
92
|
+
let [r, i, a, o] = e, s = D(r), c = D(i), l = D(a), u = D(o);
|
|
93
|
+
if (c === "keyword" || u === "keyword") throw Error("Invalid objectPosition value: second and fourth values must be numbers or percentages");
|
|
94
|
+
if (s !== "keyword" || l !== "keyword") throw Error("Invalid objectPosition value: first and third values must be keywords");
|
|
95
|
+
let d = ie([r, a], t, n), f = { ...d }, p = E(i), m = E(o);
|
|
96
|
+
return r === "left" || r === "right" ? f.x = d.x + A(r, p, c, n.width) : (r === "top" || r === "bottom") && (f.y = d.y + A(r, p, c, n.height)), a === "left" || a === "right" ? f.x = d.x + A(a, m, u, n.width) : (a === "top" || a === "bottom") && (f.y = d.y + A(a, m, u, n.height)), f;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/position/calculateWithSingleValue.mjs
|
|
100
|
+
function oe(e, t, n) {
|
|
101
|
+
let r = e[0], i = {
|
|
102
|
+
x: void 0,
|
|
103
|
+
y: void 0
|
|
104
|
+
};
|
|
105
|
+
switch (r) {
|
|
106
|
+
case "top":
|
|
107
|
+
i.y = 0, i.x = (t.width - n.width) / 2;
|
|
108
|
+
break;
|
|
109
|
+
case "bottom":
|
|
110
|
+
i.y = t.height - n.height, i.x = (t.width - n.width) / 2;
|
|
111
|
+
break;
|
|
112
|
+
case "left":
|
|
113
|
+
i.x = 0, i.y = (t.height - n.height) / 2;
|
|
114
|
+
break;
|
|
115
|
+
case "right":
|
|
116
|
+
i.x = t.width - n.width, i.y = (t.height - n.height) / 2;
|
|
117
|
+
break;
|
|
118
|
+
case "center":
|
|
119
|
+
i.x = (t.width - n.width) / 2, i.y = (t.height - n.height) / 2;
|
|
120
|
+
break;
|
|
121
|
+
default: {
|
|
122
|
+
let e = D(r) === "percentage" ? t.width - n.width : 1;
|
|
123
|
+
i.x = E(r) * e, i.y = (t.height - n.height) / 2;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return i;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/calculatePositionSpecifier.mjs
|
|
130
|
+
function j(e, t, n) {
|
|
131
|
+
if (!e) return {
|
|
132
|
+
x: 0,
|
|
133
|
+
y: 0
|
|
134
|
+
};
|
|
135
|
+
let r = typeof e == "string" ? e.split(" ") : [e];
|
|
136
|
+
switch (r.length) {
|
|
137
|
+
case 1: return oe(r, t, n);
|
|
138
|
+
case 2: return ie(r, t, n);
|
|
139
|
+
case 4: return ae(r, t, n);
|
|
140
|
+
default: throw Error("Invalid objectPosition value: must have 1, 2, or 4 values");
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/utils/getPixiSize.mjs
|
|
145
|
+
var M = {
|
|
146
|
+
width: 0,
|
|
147
|
+
height: 0
|
|
148
|
+
};
|
|
149
|
+
function se(e) {
|
|
150
|
+
let t = e.target.getLocalBounds(), n = e.target.scale;
|
|
151
|
+
return M.width = Math.abs(t.width * n.x), M.height = Math.abs(t.height * n.y), M;
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/utils/nearlyEqual.mjs
|
|
155
|
+
function N(e, t, n = .49) {
|
|
156
|
+
return Math.abs(e - t) < n;
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/utils/throttle.mjs
|
|
160
|
+
function ce(e, t = 0, n = {}) {
|
|
161
|
+
let r, i, a = n.maxWait ? n.maxWait : t, o, s, c, l = 0, u = !!n.leading, d = "maxWait" in n, f = n.trailing ?? !0, p = t !== 0 && typeof globalThis.requestAnimationFrame == "function";
|
|
162
|
+
if (typeof e != "function") throw TypeError("Expected a function");
|
|
163
|
+
function m(t) {
|
|
164
|
+
let n = r, a = i;
|
|
165
|
+
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
166
|
+
}
|
|
167
|
+
function h(e, t) {
|
|
168
|
+
return p ? (typeof s == "number" && globalThis.cancelAnimationFrame(s), globalThis.requestAnimationFrame(e)) : setTimeout(e, t);
|
|
169
|
+
}
|
|
170
|
+
function g(e) {
|
|
171
|
+
if (p) {
|
|
172
|
+
globalThis.cancelAnimationFrame(e);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
clearTimeout(e);
|
|
176
|
+
}
|
|
177
|
+
function _(e) {
|
|
178
|
+
return l = e, s = h(b, t), u ? m(e) : o;
|
|
179
|
+
}
|
|
180
|
+
function v(e) {
|
|
181
|
+
let n = e - (c || 0), r = e - l, i = t - n;
|
|
182
|
+
return d ? Math.min(i, a - r) : i;
|
|
183
|
+
}
|
|
184
|
+
function y(e) {
|
|
185
|
+
let n = e - (c || 0), r = e - l;
|
|
186
|
+
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
187
|
+
}
|
|
188
|
+
function b() {
|
|
189
|
+
let e = Date.now();
|
|
190
|
+
if (y(e)) return x(e);
|
|
191
|
+
s = h(b, v(e));
|
|
192
|
+
}
|
|
193
|
+
function x(e) {
|
|
194
|
+
return s = void 0, f && r ? m(e) : (r = i = void 0, o);
|
|
195
|
+
}
|
|
196
|
+
function S() {
|
|
197
|
+
s !== void 0 && g(s), l = 0, r = c = i = s = void 0;
|
|
198
|
+
}
|
|
199
|
+
function C() {
|
|
200
|
+
return s === void 0 ? o : x(Date.now());
|
|
201
|
+
}
|
|
202
|
+
function w() {
|
|
203
|
+
return s !== void 0;
|
|
204
|
+
}
|
|
205
|
+
function T(...e) {
|
|
206
|
+
let n = Date.now(), a = y(n);
|
|
207
|
+
if (r = e, i = this, c = n, a) {
|
|
208
|
+
if (s === void 0) return _(c);
|
|
209
|
+
if (d) return s = h(b, t), m(c);
|
|
210
|
+
}
|
|
211
|
+
return s === void 0 && (s = h(b, t)), o;
|
|
212
|
+
}
|
|
213
|
+
return T.cancel = S, T.flush = C, T.pending = w, T;
|
|
214
|
+
}
|
|
215
|
+
function le(e, t, n = {}) {
|
|
216
|
+
let r = n.leading ?? !0, i = n.trailing ?? !0;
|
|
217
|
+
if (typeof e != "function") throw TypeError("Expected a function");
|
|
218
|
+
return ce(e, t, {
|
|
219
|
+
leading: r,
|
|
220
|
+
trailing: i,
|
|
221
|
+
maxWait: t
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/LayoutSystem.mjs
|
|
226
|
+
var ue = Object.defineProperty, de = (e, t, n) => t in e ? ue(e, t, {
|
|
227
|
+
enumerable: !0,
|
|
228
|
+
configurable: !0,
|
|
229
|
+
writable: !0,
|
|
230
|
+
value: n
|
|
231
|
+
}) : e[t] = n, P = (e, t, n) => de(e, typeof t == "symbol" ? t : t + "", n), F = class {
|
|
232
|
+
constructor() {
|
|
233
|
+
P(this, "autoUpdate", !0), P(this, "_debugEnabled", !1), P(this, "_debugRenderer", null), P(this, "_throttledUpdateSize"), P(this, "_throttle", 100), P(this, "_modificationCount", 50);
|
|
234
|
+
}
|
|
235
|
+
async init(e) {
|
|
236
|
+
ee(await o()), ne(T().Config.create());
|
|
237
|
+
let { layout: t } = e ?? {}, { autoUpdate: n, enableDebug: r, throttle: i, debugModificationCount: a } = t ?? {};
|
|
238
|
+
r && this.enableDebug(!0), n !== void 0 && (this.autoUpdate = n), this._throttle = i ?? this._throttle, this._throttledUpdateSize = le((e) => this._updateSize(e), this._throttle, {
|
|
239
|
+
leading: !0,
|
|
240
|
+
trailing: !0
|
|
241
|
+
}), this._modificationCount = a ?? this._modificationCount;
|
|
242
|
+
}
|
|
243
|
+
async enableDebug(e = !this._debugEnabled) {
|
|
244
|
+
this._debugEnabled = e, this._debugRenderer ||= new (await (import("./DebugRenderer-BJMLILqI.js").then((e) => e.t))).DebugRenderer(), this._debugEnabled || this._debugRenderer.reset();
|
|
245
|
+
}
|
|
246
|
+
update(e) {
|
|
247
|
+
this._debugEnabled && this._debugRenderer && (this._debugRenderer.reset(), e.addChild(this._debugRenderer.holder)), this._throttle === 0 ? this._updateSize(e) : this._throttledUpdateSize(e), this.updateLayout(e);
|
|
248
|
+
}
|
|
249
|
+
prerender({ container: e }) {
|
|
250
|
+
this.autoUpdate && this.update(e);
|
|
251
|
+
}
|
|
252
|
+
_updateSize(e) {
|
|
253
|
+
if (e.destroyed) return;
|
|
254
|
+
let t = e._layout;
|
|
255
|
+
if (t) {
|
|
256
|
+
let n = t.style;
|
|
257
|
+
if (n.width === "intrinsic" || n.height === "intrinsic") {
|
|
258
|
+
let e = se(t);
|
|
259
|
+
if (n.width === "intrinsic") {
|
|
260
|
+
let n = t.yoga.getWidth().value;
|
|
261
|
+
N(n, e.width) || (t.yoga.setWidth(e.width), t.invalidateRoot());
|
|
262
|
+
}
|
|
263
|
+
if (n.height === "intrinsic") {
|
|
264
|
+
let n = t.yoga.getHeight().value;
|
|
265
|
+
N(n, e.height) || (t.yoga.setHeight(e.height), t.invalidateRoot());
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (!e.visible) {
|
|
269
|
+
t._onChildRemoved();
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
for (let t = 0; t < e.children.length; t++) this._updateSize(e.children[t]);
|
|
274
|
+
}
|
|
275
|
+
updateLayout(e) {
|
|
276
|
+
var t, n;
|
|
277
|
+
let r = e._layout;
|
|
278
|
+
if (e.visible) {
|
|
279
|
+
if (r) {
|
|
280
|
+
let i = r.yoga, a = r.style, o = e.parent?.isOverflowContainer;
|
|
281
|
+
if (!e.parent?._layout && !o && r._isDirty && (r._isDirty = !1, i.calculateLayout(a.width, a.height, i.getDirection() ?? p.LTR)), i.hasNewLayout() || r._forceUpdate) {
|
|
282
|
+
i.markLayoutSeen(), r._forceUpdate = !1, r._computedLayout = i.getComputedLayout();
|
|
283
|
+
let n = j(a.transformOrigin, r._computedLayout, {
|
|
284
|
+
width: 0,
|
|
285
|
+
height: 0
|
|
286
|
+
});
|
|
287
|
+
r._computedPixiLayout = {
|
|
288
|
+
...e.computeLayoutData(r._computedLayout),
|
|
289
|
+
originX: n.x,
|
|
290
|
+
originY: n.y
|
|
291
|
+
}, e.emit("layout", r), (t = e.onLayout) == null || t.call(e, r), e._onUpdate();
|
|
292
|
+
}
|
|
293
|
+
this._debugEnabled && (r._styles.custom.debug || r._modificationCount > this._modificationCount && r._styles.custom.debugHeat !== !1) && ((n = this._debugRenderer) == null || n.render(r));
|
|
294
|
+
}
|
|
295
|
+
for (let t = 0; t < e.children.length; t++) this.updateLayout(e.children[t]);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
destroy() {
|
|
299
|
+
!this._debugEnabled && this._debugRenderer && this._debugRenderer.destroy();
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
P(F, "extension", {
|
|
303
|
+
type: [_.WebGLSystem, _.WebGPUSystem],
|
|
304
|
+
name: "layout"
|
|
305
|
+
});
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/style/applyStyle.mjs
|
|
308
|
+
var I = {
|
|
309
|
+
"flex-start": t.FlexStart,
|
|
310
|
+
"flex-end": t.FlexEnd,
|
|
311
|
+
center: t.Center,
|
|
312
|
+
stretch: t.Stretch,
|
|
313
|
+
"space-between": t.SpaceBetween,
|
|
314
|
+
"space-around": t.SpaceAround,
|
|
315
|
+
"space-evenly": t.SpaceEvenly
|
|
316
|
+
}, L = {
|
|
317
|
+
"flex-start": t.FlexStart,
|
|
318
|
+
"flex-end": t.FlexEnd,
|
|
319
|
+
center: t.Center,
|
|
320
|
+
stretch: t.Stretch,
|
|
321
|
+
baseline: t.Baseline
|
|
322
|
+
}, R = {
|
|
323
|
+
auto: t.Auto,
|
|
324
|
+
"flex-start": t.FlexStart,
|
|
325
|
+
"flex-end": t.FlexEnd,
|
|
326
|
+
center: t.Center,
|
|
327
|
+
stretch: t.Stretch,
|
|
328
|
+
baseline: t.Baseline
|
|
329
|
+
}, z = {
|
|
330
|
+
"border-box": u.BorderBox,
|
|
331
|
+
"content-box": u.ContentBox
|
|
332
|
+
}, B = {
|
|
333
|
+
ltr: p.LTR,
|
|
334
|
+
rtl: p.RTL
|
|
335
|
+
}, V = {
|
|
336
|
+
none: n.None,
|
|
337
|
+
flex: n.Flex,
|
|
338
|
+
contents: n.Contents
|
|
339
|
+
}, H = {
|
|
340
|
+
row: m.Row,
|
|
341
|
+
column: m.Column,
|
|
342
|
+
"row-reverse": m.RowReverse,
|
|
343
|
+
"column-reverse": m.ColumnReverse
|
|
344
|
+
}, U = {
|
|
345
|
+
wrap: a.Wrap,
|
|
346
|
+
nowrap: a.NoWrap,
|
|
347
|
+
"wrap-reverse": a.WrapReverse
|
|
348
|
+
}, W = {
|
|
349
|
+
"flex-start": i.FlexStart,
|
|
350
|
+
"flex-end": i.FlexEnd,
|
|
351
|
+
center: i.Center,
|
|
352
|
+
"space-between": i.SpaceBetween,
|
|
353
|
+
"space-around": i.SpaceAround,
|
|
354
|
+
"space-evenly": i.SpaceEvenly
|
|
355
|
+
}, G = {
|
|
356
|
+
visible: d.Visible,
|
|
357
|
+
hidden: d.Hidden,
|
|
358
|
+
scroll: d.Scroll
|
|
359
|
+
}, fe = {
|
|
360
|
+
absolute: c.Absolute,
|
|
361
|
+
relative: c.Relative,
|
|
362
|
+
static: c.Static
|
|
363
|
+
}, pe = {
|
|
364
|
+
alignContent: (e, t) => e.setAlignContent(me(t)),
|
|
365
|
+
alignItems: (e, t) => e.setAlignItems(he(t)),
|
|
366
|
+
alignSelf: (e, t) => e.setAlignSelf(ge(t)),
|
|
367
|
+
aspectRatio: (e, t) => e.setAspectRatio(t),
|
|
368
|
+
borderBottomWidth: (e, t) => e.setBorder(s.Bottom, t),
|
|
369
|
+
borderEndWidth: (e, t) => e.setBorder(s.End, t),
|
|
370
|
+
borderLeftWidth: (e, t) => e.setBorder(s.Left, t),
|
|
371
|
+
borderRightWidth: (e, t) => e.setBorder(s.Right, t),
|
|
372
|
+
borderStartWidth: (e, t) => e.setBorder(s.Start, t),
|
|
373
|
+
borderTopWidth: (e, t) => e.setBorder(s.Top, t),
|
|
374
|
+
borderWidth: (e, t) => e.setBorder(s.All, t),
|
|
375
|
+
borderInlineWidth: (e, t) => e.setBorder(s.Horizontal, t),
|
|
376
|
+
borderBlockWidth: (e, t) => e.setBorder(s.Vertical, t),
|
|
377
|
+
bottom: (e, t) => e.setPosition(s.Bottom, t),
|
|
378
|
+
boxSizing: (e, t) => e.setBoxSizing(_e(t)),
|
|
379
|
+
direction: (e, t) => e.setDirection(ve(t)),
|
|
380
|
+
display: (e, t) => e.setDisplay(ye(t)),
|
|
381
|
+
end: (e, t) => e.setPosition(s.End, t),
|
|
382
|
+
flex: (e, t) => e.setFlex(t),
|
|
383
|
+
flexBasis: (e, t) => e.setFlexBasis(t),
|
|
384
|
+
flexDirection: (e, t) => e.setFlexDirection(be(t)),
|
|
385
|
+
rowGap: (e, t) => e.setGap(r.Row, t),
|
|
386
|
+
gap: (e, t) => e.setGap(r.All, t),
|
|
387
|
+
columnGap: (e, t) => e.setGap(r.Column, t),
|
|
388
|
+
flexGrow: (e, t) => e.setFlexGrow(t),
|
|
389
|
+
flexShrink: (e, t) => e.setFlexShrink(t),
|
|
390
|
+
flexWrap: (e, t) => e.setFlexWrap(xe(t)),
|
|
391
|
+
height: (e, t) => e.setHeight(t),
|
|
392
|
+
justifyContent: (e, t) => e.setJustifyContent(Se(t)),
|
|
393
|
+
left: (e, t) => e.setPosition(s.Left, t),
|
|
394
|
+
margin: (e, t) => e.setMargin(s.All, t),
|
|
395
|
+
marginBottom: (e, t) => e.setMargin(s.Bottom, t),
|
|
396
|
+
marginEnd: (e, t) => e.setMargin(s.End, t),
|
|
397
|
+
marginLeft: (e, t) => e.setMargin(s.Left, t),
|
|
398
|
+
marginRight: (e, t) => e.setMargin(s.Right, t),
|
|
399
|
+
marginStart: (e, t) => e.setMargin(s.Start, t),
|
|
400
|
+
marginTop: (e, t) => e.setMargin(s.Top, t),
|
|
401
|
+
marginInline: (e, t) => e.setMargin(s.Horizontal, t),
|
|
402
|
+
marginBlock: (e, t) => e.setMargin(s.Vertical, t),
|
|
403
|
+
maxHeight: (e, t) => e.setMaxHeight(t),
|
|
404
|
+
maxWidth: (e, t) => e.setMaxWidth(t),
|
|
405
|
+
minHeight: (e, t) => e.setMinHeight(t),
|
|
406
|
+
minWidth: (e, t) => e.setMinWidth(t),
|
|
407
|
+
overflow: (e, t) => e.setOverflow(Ce(t)),
|
|
408
|
+
padding: (e, t) => e.setPadding(s.All, t),
|
|
409
|
+
paddingBottom: (e, t) => e.setPadding(s.Bottom, t),
|
|
410
|
+
paddingEnd: (e, t) => e.setPadding(s.End, t),
|
|
411
|
+
paddingLeft: (e, t) => e.setPadding(s.Left, t),
|
|
412
|
+
paddingRight: (e, t) => e.setPadding(s.Right, t),
|
|
413
|
+
paddingStart: (e, t) => e.setPadding(s.Start, t),
|
|
414
|
+
paddingTop: (e, t) => e.setPadding(s.Top, t),
|
|
415
|
+
paddingInline: (e, t) => e.setPadding(s.Horizontal, t),
|
|
416
|
+
paddingBlock: (e, t) => e.setPadding(s.Vertical, t),
|
|
417
|
+
position: (e, t) => e.setPositionType(we(t)),
|
|
418
|
+
right: (e, t) => e.setPosition(s.Right, t),
|
|
419
|
+
start: (e, t) => e.setPosition(s.Start, t),
|
|
420
|
+
top: (e, t) => e.setPosition(s.Top, t),
|
|
421
|
+
insetInline: (e, t) => e.setPosition(s.Horizontal, t),
|
|
422
|
+
insetBlock: (e, t) => e.setPosition(s.Vertical, t),
|
|
423
|
+
inset: (e, t) => e.setPosition(s.All, t),
|
|
424
|
+
width: (e, t) => e.setWidth(t)
|
|
425
|
+
};
|
|
426
|
+
function me(e) {
|
|
427
|
+
if (e in I) return I[e];
|
|
428
|
+
throw Error(`"${e}" is not a valid value for alignContent`);
|
|
429
|
+
}
|
|
430
|
+
function he(e) {
|
|
431
|
+
if (e in L) return L[e];
|
|
432
|
+
throw Error(`"${e}" is not a valid value for alignItems`);
|
|
433
|
+
}
|
|
434
|
+
function ge(e) {
|
|
435
|
+
if (e in R) return R[e];
|
|
436
|
+
throw Error(`"${e}" is not a valid value for alignSelf`);
|
|
437
|
+
}
|
|
438
|
+
function _e(e) {
|
|
439
|
+
if (e in z) return z[e];
|
|
440
|
+
throw Error(`"${e}" is not a valid value for boxSizing`);
|
|
441
|
+
}
|
|
442
|
+
function ve(e) {
|
|
443
|
+
if (e in B) return B[e];
|
|
444
|
+
throw Error(`"${e}" is not a valid value for direction`);
|
|
445
|
+
}
|
|
446
|
+
function ye(e) {
|
|
447
|
+
if (e in V) return V[e];
|
|
448
|
+
throw Error(`"${e}" is not a valid value for display`);
|
|
449
|
+
}
|
|
450
|
+
function be(e) {
|
|
451
|
+
if (e in H) return H[e];
|
|
452
|
+
throw Error(`"${e}" is not a valid value for flexDirection`);
|
|
453
|
+
}
|
|
454
|
+
function xe(e) {
|
|
455
|
+
if (e in U) return U[e];
|
|
456
|
+
throw Error(`"${e}" is not a valid value for flexWrap`);
|
|
457
|
+
}
|
|
458
|
+
function Se(e) {
|
|
459
|
+
if (e in W) return W[e];
|
|
460
|
+
throw Error(`"${e}" is not a valid value for justifyContent`);
|
|
461
|
+
}
|
|
462
|
+
function Ce(e) {
|
|
463
|
+
if (e in G) return G[e];
|
|
464
|
+
throw Error(`"${e}" is not a valid value for overflow`);
|
|
465
|
+
}
|
|
466
|
+
function we(e) {
|
|
467
|
+
if (e in fe) return fe[e];
|
|
468
|
+
throw Error(`"${e}" is not a valid value for position`);
|
|
469
|
+
}
|
|
470
|
+
function Te(e, t = {}) {
|
|
471
|
+
for (let [n, r] of Object.entries(t)) try {
|
|
472
|
+
let t = pe[n];
|
|
473
|
+
t && t(e, r);
|
|
474
|
+
} catch {}
|
|
475
|
+
if (t.width !== void 0) {
|
|
476
|
+
let n = t.left !== void 0 && t.right !== void 0 ? "auto" : t.width;
|
|
477
|
+
e.setWidth(n);
|
|
478
|
+
}
|
|
479
|
+
if (t.height !== void 0) {
|
|
480
|
+
let n = t.top !== void 0 && t.bottom !== void 0 ? "auto" : t.height;
|
|
481
|
+
e.setHeight(n);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/style/formatStyles.mjs
|
|
486
|
+
function Ee(e, t) {
|
|
487
|
+
let n = {
|
|
488
|
+
...e._styles.custom,
|
|
489
|
+
...t
|
|
490
|
+
};
|
|
491
|
+
n = {
|
|
492
|
+
...q.defaultStyle.shared,
|
|
493
|
+
...e.target instanceof S || n.isLeaf || q.defaultStyle.shared.isLeaf ? q.defaultStyle.leaf : q.defaultStyle.container,
|
|
494
|
+
...n
|
|
495
|
+
};
|
|
496
|
+
let r = { ...n }, i = n.width === "intrinsic", a = n.height === "intrinsic";
|
|
497
|
+
if (i || a) {
|
|
498
|
+
let { width: t, height: n } = se(e);
|
|
499
|
+
i && (r.width = t), a && (r.height = n);
|
|
500
|
+
}
|
|
501
|
+
return {
|
|
502
|
+
custom: n,
|
|
503
|
+
yoga: r
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
//#endregion
|
|
507
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/utils/sort-children.mjs
|
|
508
|
+
function De(e, t) {
|
|
509
|
+
let n = t.layout, r;
|
|
510
|
+
if (!n && t.isOverflowContainer && (r = t, n = r.parent?.layout, t = r.parent), !n) return !1;
|
|
511
|
+
let i = e.yoga.getParent();
|
|
512
|
+
i && i.removeChild(e.yoga);
|
|
513
|
+
let a = Oe(e, t, r);
|
|
514
|
+
return a === -1 ? !1 : (n.yoga.getChildCount(), n.yoga.insertChild(e.yoga, a), !0);
|
|
515
|
+
}
|
|
516
|
+
function Oe(e, t, n) {
|
|
517
|
+
let r = e.target, i = 0;
|
|
518
|
+
if (n) {
|
|
519
|
+
for (let e of t.children) {
|
|
520
|
+
if (e === n) {
|
|
521
|
+
for (let e of n.children) if (!(!e.layout || !e.visible)) {
|
|
522
|
+
if (e === r) return i;
|
|
523
|
+
i++;
|
|
524
|
+
}
|
|
525
|
+
return -1;
|
|
526
|
+
}
|
|
527
|
+
e.layout && e.visible && i++;
|
|
528
|
+
}
|
|
529
|
+
return -1;
|
|
530
|
+
}
|
|
531
|
+
for (let e of t.children) if (!(!e.layout || !e.visible)) {
|
|
532
|
+
if (e === r) return i;
|
|
533
|
+
i++;
|
|
534
|
+
}
|
|
535
|
+
return -1;
|
|
536
|
+
}
|
|
537
|
+
function ke(e) {
|
|
538
|
+
let t = e.yoga.getParent();
|
|
539
|
+
t && t.removeChild(e.yoga);
|
|
540
|
+
}
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/Layout.mjs
|
|
543
|
+
var Ae = Object.defineProperty, je = (e, t, n) => t in e ? Ae(e, t, {
|
|
544
|
+
enumerable: !0,
|
|
545
|
+
configurable: !0,
|
|
546
|
+
writable: !0,
|
|
547
|
+
value: n
|
|
548
|
+
}) : e[t] = n, K = (e, t, n) => je(e, typeof t == "symbol" ? t : t + "", n), q = class {
|
|
549
|
+
constructor({ target: e }) {
|
|
550
|
+
K(this, "yoga"), K(this, "target"), K(this, "destroyed", !1), K(this, "_isDirty", !1), K(this, "_computedPixiLayout", {
|
|
551
|
+
x: 0,
|
|
552
|
+
y: 0,
|
|
553
|
+
offsetX: 0,
|
|
554
|
+
offsetY: 0,
|
|
555
|
+
scaleX: 1,
|
|
556
|
+
scaleY: 1,
|
|
557
|
+
originX: 0,
|
|
558
|
+
originY: 0
|
|
559
|
+
}), K(this, "_computedLayout", {
|
|
560
|
+
left: 0,
|
|
561
|
+
right: 0,
|
|
562
|
+
top: 0,
|
|
563
|
+
bottom: 0,
|
|
564
|
+
width: 0,
|
|
565
|
+
height: 0
|
|
566
|
+
}), K(this, "_styles", {
|
|
567
|
+
custom: {},
|
|
568
|
+
yoga: {}
|
|
569
|
+
}), K(this, "_modificationCount", 0), K(this, "_forceUpdate", !1), K(this, "hasParent", !1), K(this, "_trackedStyleKeys", [
|
|
570
|
+
"borderRadius",
|
|
571
|
+
"borderColor",
|
|
572
|
+
"backgroundColor",
|
|
573
|
+
"objectFit",
|
|
574
|
+
"objectPosition",
|
|
575
|
+
"transformOrigin",
|
|
576
|
+
"isLeaf"
|
|
577
|
+
]), this.target = e, this.yoga = T().Node.create(re()), e.on("added", this._onChildAdded, this), e.on("removed", this._onChildRemoved, this), e.on("destroyed", this.destroy, this);
|
|
578
|
+
}
|
|
579
|
+
get style() {
|
|
580
|
+
return this._styles.custom;
|
|
581
|
+
}
|
|
582
|
+
get computedLayout() {
|
|
583
|
+
return this._computedLayout;
|
|
584
|
+
}
|
|
585
|
+
get computedPixiLayout() {
|
|
586
|
+
return this._computedPixiLayout;
|
|
587
|
+
}
|
|
588
|
+
get realX() {
|
|
589
|
+
return this.target.localTransform.tx;
|
|
590
|
+
}
|
|
591
|
+
get realY() {
|
|
592
|
+
return this.target.localTransform.ty;
|
|
593
|
+
}
|
|
594
|
+
get realScaleX() {
|
|
595
|
+
return this.target.localTransform.a;
|
|
596
|
+
}
|
|
597
|
+
get realScaleY() {
|
|
598
|
+
return this.target.localTransform.d;
|
|
599
|
+
}
|
|
600
|
+
setStyle(e) {
|
|
601
|
+
let t = Ee(this, e), n = JSON.stringify(this._styles.custom) !== JSON.stringify(t.custom), r = JSON.stringify(this._styles.yoga) !== JSON.stringify(t.yoga), i = n || r, a = this._trackedStyleKeys.some((e) => t.custom[e] !== this._styles.custom[e]);
|
|
602
|
+
this._styles = t, a && (this._forceUpdate = !0), i && (Te(this.yoga, this._styles.yoga), this.target._onUpdate(), this.invalidateRoot());
|
|
603
|
+
}
|
|
604
|
+
invalidateRoot(e) {
|
|
605
|
+
let t = this.getRoot(e);
|
|
606
|
+
t.destroyed || (t._layout._isDirty = !0, t._onUpdate(), this._modificationCount++);
|
|
607
|
+
}
|
|
608
|
+
forceUpdate() {
|
|
609
|
+
this._forceUpdate = !0;
|
|
610
|
+
}
|
|
611
|
+
getRoot(e) {
|
|
612
|
+
let t = e || this.target;
|
|
613
|
+
for (; t.parent?._layout || t.parent?.isOverflowContainer;) t = t.parent, t.isOverflowContainer && (t = t.parent);
|
|
614
|
+
return t;
|
|
615
|
+
}
|
|
616
|
+
_onChildAdded(e) {
|
|
617
|
+
this.hasParent || De(this, e) !== !1 && (this.hasParent = !0, this.invalidateRoot());
|
|
618
|
+
}
|
|
619
|
+
_onChildRemoved(e) {
|
|
620
|
+
this.hasParent && (this.hasParent = !1, this.invalidateRoot(e), ke(this));
|
|
621
|
+
}
|
|
622
|
+
destroy() {
|
|
623
|
+
this.destroyed || (this.destroyed = !0, this.invalidateRoot(), this.yoga.free(), this.target.off("added", this._onChildAdded, this), this.target.off("removed", this._onChildRemoved, this), this._styles = null, this._computedPixiLayout = null, this._computedLayout = null, this.target = null, this.hasParent = !1);
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
K(q, "defaultStyle", {
|
|
627
|
+
leaf: {
|
|
628
|
+
width: "intrinsic",
|
|
629
|
+
height: "intrinsic"
|
|
630
|
+
},
|
|
631
|
+
container: {
|
|
632
|
+
width: "auto",
|
|
633
|
+
height: "auto"
|
|
634
|
+
},
|
|
635
|
+
shared: {
|
|
636
|
+
transformOrigin: "50%",
|
|
637
|
+
objectPosition: "center",
|
|
638
|
+
flexShrink: 1,
|
|
639
|
+
flexDirection: "row",
|
|
640
|
+
alignContent: "stretch",
|
|
641
|
+
flexWrap: "nowrap",
|
|
642
|
+
overflow: "visible"
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
//#endregion
|
|
646
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/calculateObjectFit.mjs
|
|
647
|
+
function Me(e, t, n) {
|
|
648
|
+
let r = 1, i = 1;
|
|
649
|
+
switch (e) {
|
|
650
|
+
case "fill":
|
|
651
|
+
r = t.width / n.width, i = t.height / n.height;
|
|
652
|
+
break;
|
|
653
|
+
case "contain": {
|
|
654
|
+
let e = Math.min(t.width / n.width, t.height / n.height);
|
|
655
|
+
r = e, i = e;
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
case "cover": {
|
|
659
|
+
let e = Math.max(t.width / n.width, t.height / n.height);
|
|
660
|
+
r = e, i = e;
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
case "none":
|
|
664
|
+
r = 1, i = 1;
|
|
665
|
+
break;
|
|
666
|
+
case "scale-down": {
|
|
667
|
+
let e = Math.min(1, t.width / n.width, t.height / n.height);
|
|
668
|
+
r = e, i = e;
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return {
|
|
673
|
+
offsetScaleX: r,
|
|
674
|
+
offsetScaleY: i
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
//#endregion
|
|
678
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/utils/baseComputeLayoutData.mjs
|
|
679
|
+
function Ne(e, t, n, r) {
|
|
680
|
+
let i = e.getLocalBounds(), { offsetScaleX: a, offsetScaleY: o } = Me(e.layout.style.objectFit || n, t, i), s = {
|
|
681
|
+
width: i.width * a,
|
|
682
|
+
height: i.height * o
|
|
683
|
+
}, { x: c, y: l } = j(e.layout.style.objectPosition, t, s);
|
|
684
|
+
r ? (c += i.width * a * r._x, l += i.height * o * r._y) : (c -= i.minX * a, l -= i.minY * o);
|
|
685
|
+
let u = e.layout.style.applySizeDirectly;
|
|
686
|
+
return (u === !0 || u == null && (e instanceof x || e instanceof v)) && (e.width = i.width * a, e.height = i.height * o, a = 1, o = 1), {
|
|
687
|
+
x: t.left,
|
|
688
|
+
y: t.top,
|
|
689
|
+
offsetX: c,
|
|
690
|
+
offsetY: l,
|
|
691
|
+
scaleX: a,
|
|
692
|
+
scaleY: o
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
//#endregion
|
|
696
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/ContainerMixin.mjs
|
|
697
|
+
var J = Object.getOwnPropertyDescriptor(g.prototype, "visible");
|
|
698
|
+
C.mixin(g, {
|
|
699
|
+
_layout: null,
|
|
700
|
+
get layout() {
|
|
701
|
+
return this._layout ?? null;
|
|
702
|
+
},
|
|
703
|
+
set layout(e) {
|
|
704
|
+
if (e = e === !0 ? {} : e, !e) {
|
|
705
|
+
this._layout && (this._layout.destroy(), this._layout = null, this.updateLocalTransform = g.prototype.updateLocalTransform, Object.defineProperty(g.prototype, "visible", J));
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
if (!this._layout) {
|
|
709
|
+
this._layout = new q({ target: this }), Object.defineProperty(g.prototype, "visible", {
|
|
710
|
+
...J,
|
|
711
|
+
set(e) {
|
|
712
|
+
J.set.call(this, e), this.layout && (e && this.parent ? this.layout._onChildAdded(this.parent) : this.layout._onChildRemoved());
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
for (let e of this.children) e.layout && e.visible && (e.layout._onChildRemoved(), e.layout._onChildAdded(this));
|
|
716
|
+
this.parent && this.visible && this._layout._onChildAdded(this.parent);
|
|
717
|
+
}
|
|
718
|
+
this._layout.setStyle(e), this.updateLocalTransform = this.updateLocalTransformWithLayout, this._onUpdate();
|
|
719
|
+
},
|
|
720
|
+
updateLocalTransformWithLayout() {
|
|
721
|
+
let e = this._didContainerChangeTick;
|
|
722
|
+
if (this._didLocalTransformChangeId === e) return;
|
|
723
|
+
this._didLocalTransformChangeId = e;
|
|
724
|
+
let { x: t, y: n, offsetX: r, offsetY: i, scaleX: a, scaleY: o, originX: s, originY: c } = this._layout._computedPixiLayout, l = this.localTransform, { rotation: u, skew: d, scale: f, position: p } = this, m = u + d._y, h = u - d._x, g = Math.cos(m) * f._x, _ = Math.sin(m) * f._x, v = -Math.sin(h) * f._y, y = Math.cos(h) * f._y, b = p._x + t - s * g - c * v, x = p._y + n - s * _ - c * y;
|
|
725
|
+
l.a = g * a, l.b = _ * a, l.c = v * o, l.d = y * o, l.tx = b + (r * g + i * v) + s, l.ty = x + (r * _ + i * y) + c;
|
|
726
|
+
},
|
|
727
|
+
computeLayoutData(e) {
|
|
728
|
+
let { isLeaf: t } = this._layout._styles.custom;
|
|
729
|
+
return t ? Ne(this, e, "fill") : {
|
|
730
|
+
x: e.left,
|
|
731
|
+
y: e.top,
|
|
732
|
+
offsetX: 0,
|
|
733
|
+
offsetY: 0,
|
|
734
|
+
scaleX: 1,
|
|
735
|
+
scaleY: 1
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
//#endregion
|
|
740
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/core/mixins/TextMixin.mjs
|
|
741
|
+
var Pe = new y(0, 0);
|
|
742
|
+
C.mixin(h, { computeLayoutData(e) {
|
|
743
|
+
let t = this._style;
|
|
744
|
+
Pe.copyFrom(this.scale), this.scale = 1, t.wordWrap && (t.wordWrapWidth = e.width);
|
|
745
|
+
let n = this.getLocalBounds(), { offsetScaleX: r, offsetScaleY: i } = Me(this.layout.style.objectFit || "scale-down", e, n);
|
|
746
|
+
t.wordWrap && (t.wordWrapWidth = e.width / Math.min(1, Math.max(r, i))), n = this.getLocalBounds();
|
|
747
|
+
let a = {
|
|
748
|
+
width: n.width * r,
|
|
749
|
+
height: n.height * i
|
|
750
|
+
}, { x: o, y: s } = j(this.layout.style.objectPosition, e, a);
|
|
751
|
+
return o += n.width * r * this.anchor._x, s += n.height * i * this.anchor._y, this.layout.style.applySizeDirectly === !0 && (this.width = n.width * r, this.height = n.height * i), this.scale.copyFrom(Pe), {
|
|
752
|
+
x: e.left,
|
|
753
|
+
y: e.top,
|
|
754
|
+
offsetX: o,
|
|
755
|
+
offsetY: s,
|
|
756
|
+
scaleX: r,
|
|
757
|
+
scaleY: i
|
|
758
|
+
};
|
|
759
|
+
} });
|
|
760
|
+
var Y = Object.getOwnPropertyDescriptor(h.prototype, "text");
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/index.mjs
|
|
763
|
+
Object.defineProperty(h.prototype, "text", {
|
|
764
|
+
...Y,
|
|
765
|
+
set(e) {
|
|
766
|
+
var t;
|
|
767
|
+
let n = Y.get.call(this);
|
|
768
|
+
Y.set.call(this, e), n !== e && ((t = this.layout) == null || t.forceUpdate());
|
|
769
|
+
}
|
|
770
|
+
}), C.mixin(S, { computeLayoutData(e) {
|
|
771
|
+
return Ne(this, e, "fill", this._anchor);
|
|
772
|
+
} }), C.add(F);
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/devtool/overlayPlugin.mjs
|
|
775
|
+
var X = /* @__PURE__ */ new Map(), Fe = new y();
|
|
776
|
+
Object.values(l).forEach((e) => {
|
|
777
|
+
X.set(e, {
|
|
778
|
+
outer: new b(),
|
|
779
|
+
inner: new b()
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
var Ie = {
|
|
783
|
+
extension: {
|
|
784
|
+
name: "layout-scene-overlay",
|
|
785
|
+
type: "overlay"
|
|
786
|
+
},
|
|
787
|
+
getSelectedStyle() {
|
|
788
|
+
return {
|
|
789
|
+
backgroundColor: "rgba(0, 255, 255, 0.5)",
|
|
790
|
+
border: "2px solid white"
|
|
791
|
+
};
|
|
792
|
+
},
|
|
793
|
+
getHoverStyle() {
|
|
794
|
+
return {
|
|
795
|
+
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
796
|
+
border: "2px solid white"
|
|
797
|
+
};
|
|
798
|
+
},
|
|
799
|
+
getGlobalBounds(e) {
|
|
800
|
+
if (e.layout) {
|
|
801
|
+
f(e.layout, X);
|
|
802
|
+
let t = X.get(l.Margin), { left: n, top: r } = e.layout.computedLayout, i = e.layout.target.getGlobalPosition(Fe);
|
|
803
|
+
return {
|
|
804
|
+
x: t.outer.x + i.x + n,
|
|
805
|
+
y: t.outer.y + i.y + r,
|
|
806
|
+
width: t.outer.width,
|
|
807
|
+
height: t.outer.height
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
return e.getBounds();
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/devtool/propertiesPlugin.mjs
|
|
815
|
+
function Le(e, t) {
|
|
816
|
+
t.layout = e;
|
|
817
|
+
}
|
|
818
|
+
function Z(e, t, n) {
|
|
819
|
+
return {
|
|
820
|
+
prop: `layoutStyle.${e}`,
|
|
821
|
+
entry: {
|
|
822
|
+
type: "text",
|
|
823
|
+
label: t,
|
|
824
|
+
section: n
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
var Re = () => [
|
|
829
|
+
{
|
|
830
|
+
prop: "layoutStyle._computedBounds",
|
|
831
|
+
entry: {
|
|
832
|
+
label: "Computed Bounds",
|
|
833
|
+
section: "Layout",
|
|
834
|
+
options: { inputs: [
|
|
835
|
+
{
|
|
836
|
+
disabled: !0,
|
|
837
|
+
label: "left"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
disabled: !0,
|
|
841
|
+
label: "top"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
disabled: !0,
|
|
845
|
+
label: "width"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
disabled: !0,
|
|
849
|
+
label: "height"
|
|
850
|
+
}
|
|
851
|
+
] },
|
|
852
|
+
type: "vectorX"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
Z("width", "Width", "Layout"),
|
|
856
|
+
Z("height", "Height", "Layout"),
|
|
857
|
+
Z("minWidth", "Min Width", "Layout"),
|
|
858
|
+
Z("maxWidth", "Max Width", "Layout"),
|
|
859
|
+
Z("minHeight", "Min Height", "Layout"),
|
|
860
|
+
Z("maxHeight", "Max Height", "Layout"),
|
|
861
|
+
Z("aspectRatio", "Aspect Ratio", "Layout"),
|
|
862
|
+
Z("padding", "Padding", "Layout"),
|
|
863
|
+
Z("paddingRight", "Padding Right", "Layout"),
|
|
864
|
+
Z("paddingTop", "Padding Top", "Layout"),
|
|
865
|
+
Z("paddingBottom", "Padding Bottom", "Layout"),
|
|
866
|
+
Z("paddingLeft", "Padding Left", "Layout"),
|
|
867
|
+
Z("margin", "Margin", "Layout"),
|
|
868
|
+
Z("marginTop", "Margin Top", "Layout"),
|
|
869
|
+
Z("marginRight", "Margin Right", "Layout"),
|
|
870
|
+
Z("marginBottom", "Margin Bottom", "Layout"),
|
|
871
|
+
Z("marginLeft", "Margin Left", "Layout"),
|
|
872
|
+
{
|
|
873
|
+
prop: "layoutStyle.position",
|
|
874
|
+
entry: {
|
|
875
|
+
label: "Position",
|
|
876
|
+
section: "Layout",
|
|
877
|
+
type: "select",
|
|
878
|
+
options: { options: ["relative", "absolute"] }
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
Z("top", "Top", "Layout"),
|
|
882
|
+
Z("right", "Right", "Layout"),
|
|
883
|
+
Z("bottom", "Bottom", "Layout"),
|
|
884
|
+
Z("left", "Left", "Layout"),
|
|
885
|
+
Z("border", "Border Width", "Layout"),
|
|
886
|
+
Z("borderTop", "Border Top", "Layout"),
|
|
887
|
+
Z("borderRight", "Border Right", "Layout"),
|
|
888
|
+
Z("borderBottom", "Border Bottom", "Layout"),
|
|
889
|
+
Z("borderLeft", "Border Left", "Layout"),
|
|
890
|
+
Z("borderRadius", "Border Radius", "Layout"),
|
|
891
|
+
{
|
|
892
|
+
prop: "layoutStyle.borderColor",
|
|
893
|
+
entry: {
|
|
894
|
+
label: "Border Color",
|
|
895
|
+
section: "Layout",
|
|
896
|
+
type: "color"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
prop: "layoutStyle.alignContent",
|
|
901
|
+
entry: {
|
|
902
|
+
label: "alignContent",
|
|
903
|
+
section: "Layout",
|
|
904
|
+
type: "select",
|
|
905
|
+
options: { options: [
|
|
906
|
+
"flex-start",
|
|
907
|
+
"flex-end",
|
|
908
|
+
"center",
|
|
909
|
+
"space-between",
|
|
910
|
+
"space-around",
|
|
911
|
+
"stretch",
|
|
912
|
+
"auto",
|
|
913
|
+
"baseline"
|
|
914
|
+
] }
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
prop: "layoutStyle.alignItems",
|
|
919
|
+
entry: {
|
|
920
|
+
label: "alignItems",
|
|
921
|
+
section: "Layout",
|
|
922
|
+
type: "select",
|
|
923
|
+
options: { options: [
|
|
924
|
+
"flex-start",
|
|
925
|
+
"flex-end",
|
|
926
|
+
"center",
|
|
927
|
+
"space-between",
|
|
928
|
+
"space-around",
|
|
929
|
+
"stretch",
|
|
930
|
+
"auto",
|
|
931
|
+
"baseline"
|
|
932
|
+
] }
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
prop: "layoutStyle.alignSelf",
|
|
937
|
+
entry: {
|
|
938
|
+
label: "alignSelf",
|
|
939
|
+
section: "Layout",
|
|
940
|
+
type: "select",
|
|
941
|
+
options: { options: [
|
|
942
|
+
"flex-start",
|
|
943
|
+
"flex-end",
|
|
944
|
+
"center",
|
|
945
|
+
"space-between",
|
|
946
|
+
"space-around",
|
|
947
|
+
"stretch",
|
|
948
|
+
"auto",
|
|
949
|
+
"baseline"
|
|
950
|
+
] }
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
prop: "layoutStyle.justifyContent",
|
|
955
|
+
entry: {
|
|
956
|
+
label: "justifyContent",
|
|
957
|
+
section: "Layout",
|
|
958
|
+
type: "select",
|
|
959
|
+
options: { options: [
|
|
960
|
+
"flex-start",
|
|
961
|
+
"flex-end",
|
|
962
|
+
"center",
|
|
963
|
+
"space-between",
|
|
964
|
+
"space-around",
|
|
965
|
+
"space-evenly"
|
|
966
|
+
] }
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
prop: "layoutStyle.flexDirection",
|
|
971
|
+
entry: {
|
|
972
|
+
label: "Flex Direction",
|
|
973
|
+
section: "Layout",
|
|
974
|
+
type: "select",
|
|
975
|
+
options: { options: [
|
|
976
|
+
"row",
|
|
977
|
+
"row-reverse",
|
|
978
|
+
"column",
|
|
979
|
+
"column-reverse"
|
|
980
|
+
] }
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
Z("flex", "flex", "Layout"),
|
|
984
|
+
Z("flexBasis", "Flex Basis", "Layout"),
|
|
985
|
+
Z("flexGrow", "Flex Grow", "Layout"),
|
|
986
|
+
Z("flexShrink", "Flex Shrink", "Layout"),
|
|
987
|
+
{
|
|
988
|
+
prop: "layoutStyle.wrap",
|
|
989
|
+
entry: {
|
|
990
|
+
label: "Flex Wrap",
|
|
991
|
+
section: "Layout",
|
|
992
|
+
type: "select",
|
|
993
|
+
options: { options: [
|
|
994
|
+
"no-wrap",
|
|
995
|
+
"wrap",
|
|
996
|
+
"wrap-reverse"
|
|
997
|
+
] }
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
Z("gap", "Gap", "Layout"),
|
|
1001
|
+
Z("rowGap", "Row Gap", "Layout"),
|
|
1002
|
+
Z("columnGap", "Column Gap", "Layout"),
|
|
1003
|
+
{
|
|
1004
|
+
prop: "layoutStyle.overflow",
|
|
1005
|
+
entry: {
|
|
1006
|
+
label: "Overflow",
|
|
1007
|
+
section: "Layout",
|
|
1008
|
+
type: "select",
|
|
1009
|
+
options: { options: [
|
|
1010
|
+
"visible",
|
|
1011
|
+
"hidden",
|
|
1012
|
+
"scroll"
|
|
1013
|
+
] }
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
prop: "layoutStyle.backgroundColor",
|
|
1018
|
+
entry: {
|
|
1019
|
+
label: "Background Color",
|
|
1020
|
+
section: "Layout",
|
|
1021
|
+
type: "color"
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
Z("transformOrigin", "Transform Origin", "Layout"),
|
|
1025
|
+
{
|
|
1026
|
+
prop: "layoutStyle.objectFit",
|
|
1027
|
+
entry: {
|
|
1028
|
+
label: "objectFit",
|
|
1029
|
+
section: "Layout",
|
|
1030
|
+
type: "select",
|
|
1031
|
+
options: { options: [
|
|
1032
|
+
"fill",
|
|
1033
|
+
"contain",
|
|
1034
|
+
"cover",
|
|
1035
|
+
"none",
|
|
1036
|
+
"scale-down"
|
|
1037
|
+
] }
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
prop: "layoutStyle.objectPosition",
|
|
1042
|
+
entry: {
|
|
1043
|
+
label: "objectPosition",
|
|
1044
|
+
section: "Layout",
|
|
1045
|
+
type: "text"
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
prop: "layoutStyle.applySizeDirectly",
|
|
1050
|
+
entry: {
|
|
1051
|
+
label: "applySizeDirectly",
|
|
1052
|
+
section: "Layout",
|
|
1053
|
+
type: "boolean"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
prop: "layoutStyle.isLeaf",
|
|
1058
|
+
entry: {
|
|
1059
|
+
label: "isLeaf",
|
|
1060
|
+
section: "Layout",
|
|
1061
|
+
type: "boolean"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
prop: "layoutStyle.debug",
|
|
1066
|
+
entry: {
|
|
1067
|
+
label: "Debug",
|
|
1068
|
+
section: "Layout",
|
|
1069
|
+
type: "boolean"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
prop: "layoutStyle.debugHeat",
|
|
1074
|
+
entry: {
|
|
1075
|
+
label: "Debug Heat",
|
|
1076
|
+
section: "Layout",
|
|
1077
|
+
type: "boolean"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
prop: "layoutStyle.debugDrawMargin",
|
|
1082
|
+
entry: {
|
|
1083
|
+
label: "Debug Draw Margin",
|
|
1084
|
+
section: "Layout",
|
|
1085
|
+
type: "boolean"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
prop: "layoutStyle.debugDrawPadding",
|
|
1090
|
+
entry: {
|
|
1091
|
+
label: "Debug Draw Padding",
|
|
1092
|
+
section: "Layout",
|
|
1093
|
+
type: "boolean"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
prop: "layoutStyle.debugDrawBorder",
|
|
1098
|
+
entry: {
|
|
1099
|
+
label: "Debug Draw Border",
|
|
1100
|
+
section: "Layout",
|
|
1101
|
+
type: "boolean"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
prop: "layoutStyle.debugDrawFlex",
|
|
1106
|
+
entry: {
|
|
1107
|
+
label: "Debug Draw Flex",
|
|
1108
|
+
section: "Layout",
|
|
1109
|
+
type: "boolean"
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
prop: "layoutStyle.debugDrawContent",
|
|
1114
|
+
entry: {
|
|
1115
|
+
label: "Debug Draw Content",
|
|
1116
|
+
section: "Layout",
|
|
1117
|
+
type: "boolean"
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
prop: "layoutStyle._isDirty",
|
|
1122
|
+
entry: {
|
|
1123
|
+
label: "Is Dirty",
|
|
1124
|
+
section: "Layout",
|
|
1125
|
+
type: "boolean",
|
|
1126
|
+
options: { disabled: !0 }
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
prop: "layoutStyle._modificationCount",
|
|
1131
|
+
entry: {
|
|
1132
|
+
label: "Modification Count",
|
|
1133
|
+
section: "Layout",
|
|
1134
|
+
type: "number",
|
|
1135
|
+
options: { disabled: !0 }
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
prop: "layoutStyle.hasParent",
|
|
1140
|
+
entry: {
|
|
1141
|
+
label: "Has Parent",
|
|
1142
|
+
section: "Layout",
|
|
1143
|
+
type: "boolean",
|
|
1144
|
+
options: { disabled: !0 }
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
], ze = {
|
|
1148
|
+
extension: {
|
|
1149
|
+
name: "layout-scene-properties",
|
|
1150
|
+
type: "sceneProperties",
|
|
1151
|
+
priority: 2
|
|
1152
|
+
},
|
|
1153
|
+
testNode(e) {
|
|
1154
|
+
return !!e.layout;
|
|
1155
|
+
},
|
|
1156
|
+
testProp(e) {
|
|
1157
|
+
return e.startsWith("layoutStyle.");
|
|
1158
|
+
},
|
|
1159
|
+
setProperty(e, t, n) {
|
|
1160
|
+
Le({ [t.replace("layoutStyle.", "")]: n }, e);
|
|
1161
|
+
},
|
|
1162
|
+
getProperties(e) {
|
|
1163
|
+
return Re().reduce((t, n) => {
|
|
1164
|
+
let r = e.layout.style, i = n.prop.replace("layoutStyle.", ""), a = { ...n }, o = r[i];
|
|
1165
|
+
if (i === "_computedBounds") {
|
|
1166
|
+
let { left: t, top: n, width: r, height: i } = e.layout._computedLayout;
|
|
1167
|
+
o = [
|
|
1168
|
+
t,
|
|
1169
|
+
n,
|
|
1170
|
+
r,
|
|
1171
|
+
i
|
|
1172
|
+
];
|
|
1173
|
+
} else if (i === "_computedOverrides") {
|
|
1174
|
+
let { x: t, y: n, offsetX: r, offsetY: i, scaleX: a, scaleY: s, originX: c, originY: l } = e.layout._computedPixiLayout;
|
|
1175
|
+
o = [
|
|
1176
|
+
t,
|
|
1177
|
+
n,
|
|
1178
|
+
r,
|
|
1179
|
+
i,
|
|
1180
|
+
a,
|
|
1181
|
+
s,
|
|
1182
|
+
c,
|
|
1183
|
+
l
|
|
1184
|
+
];
|
|
1185
|
+
} else i === "_isDirty" ? o = e.layout._isDirty : i === "hasParent" ? o = e.layout.hasParent : i === "_modificationCount" && (o = e.layout._modificationCount);
|
|
1186
|
+
return t.push({
|
|
1187
|
+
...a,
|
|
1188
|
+
value: o
|
|
1189
|
+
}), t;
|
|
1190
|
+
}, []);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region ../../node_modules/.pnpm/@pixi+layout@3.2.0_@types+react@19.1.8_pixi.js@8.19.0_react@19.1.0_yoga-layout@3.2.1/node_modules/@pixi/layout/dist/devtool/treePlugin.mjs
|
|
1195
|
+
function Be(e) {
|
|
1196
|
+
let t = e.alpha, n = 0, r = setInterval(() => {
|
|
1197
|
+
n % 2 == 0 ? e.alpha = .1 : e.alpha = 1, n++, n === 6 && (clearInterval(r), e.alpha = t);
|
|
1198
|
+
}, 100);
|
|
1199
|
+
}
|
|
1200
|
+
function Q(e) {
|
|
1201
|
+
return e?.__devtoolLayoutDefaults !== void 0;
|
|
1202
|
+
}
|
|
1203
|
+
function Ve(e) {
|
|
1204
|
+
return Q(e) && JSON.stringify(e.layout?.style ?? {}) !== JSON.stringify(e.__devtoolLayoutDefaults);
|
|
1205
|
+
}
|
|
1206
|
+
var He = {
|
|
1207
|
+
extension: {
|
|
1208
|
+
name: "layout-scene-tree",
|
|
1209
|
+
type: "sceneTree"
|
|
1210
|
+
},
|
|
1211
|
+
onButtonPress(e, t) {
|
|
1212
|
+
t === "flash" ? Be(e) : t === "reset" && Q(e) && (e.layout = { ...e.__devtoolLayoutDefaults }, e.__devtoolLayoutDefaults = void 0);
|
|
1213
|
+
},
|
|
1214
|
+
updateNodeMetadata(e, t) {
|
|
1215
|
+
return t.buttons.push({
|
|
1216
|
+
name: "flash",
|
|
1217
|
+
icon: "⚡",
|
|
1218
|
+
type: "button"
|
|
1219
|
+
}), e?.layout ? (t.buttons.push({
|
|
1220
|
+
name: "reset",
|
|
1221
|
+
icon: "↺",
|
|
1222
|
+
type: "button"
|
|
1223
|
+
}), t.suffix = `${Ve(e) ? "*" : ""} ⬥`, t) : t;
|
|
1224
|
+
},
|
|
1225
|
+
onSelected(e) {
|
|
1226
|
+
Q(e) || (e.__devtoolLayoutDefaults = { ...e.layout?.style });
|
|
1227
|
+
}
|
|
1228
|
+
}, $ = globalThis;
|
|
1229
|
+
$.__PIXI_DEVTOOLS__ = {
|
|
1230
|
+
...$.__PIXI_DEVTOOLS__,
|
|
1231
|
+
extensions: [
|
|
1232
|
+
...$.__PIXI_DEVTOOLS__?.extensions ?? [],
|
|
1233
|
+
Ie,
|
|
1234
|
+
ze,
|
|
1235
|
+
He
|
|
1236
|
+
]
|
|
1237
|
+
};
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region src/plugins/LayoutPlugin.ts
|
|
1240
|
+
var Ue = class extends e {
|
|
1241
|
+
constructor(...e) {
|
|
1242
|
+
super(...e), this.id = "LayoutPlugin";
|
|
1243
|
+
}
|
|
1244
|
+
async initialize() {
|
|
1245
|
+
q.defaultStyle = {
|
|
1246
|
+
container: {
|
|
1247
|
+
width: "auto",
|
|
1248
|
+
height: "auto",
|
|
1249
|
+
gap: 0
|
|
1250
|
+
},
|
|
1251
|
+
leaf: {
|
|
1252
|
+
width: "intrinsic",
|
|
1253
|
+
height: "intrinsic",
|
|
1254
|
+
flexShrink: 1
|
|
1255
|
+
},
|
|
1256
|
+
shared: {
|
|
1257
|
+
transformOrigin: "50%",
|
|
1258
|
+
objectPosition: "center",
|
|
1259
|
+
flexShrink: 1,
|
|
1260
|
+
flexDirection: "row",
|
|
1261
|
+
alignContent: "stretch",
|
|
1262
|
+
flexWrap: "nowrap",
|
|
1263
|
+
overflow: "visible"
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
//#endregion
|
|
1269
|
+
export { Ue as LayoutPlugin };
|
|
1270
|
+
|
|
1271
|
+
//# sourceMappingURL=LayoutPlugin-B-DF9SYM.js.map
|