@rb-games/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/README.md +488 -0
- package/dist/devtools/DraggableController.d.ts +10 -0
- package/dist/devtools/DraggableController.d.ts.map +1 -0
- package/dist/devtools/ResizableController.d.ts +19 -0
- package/dist/devtools/ResizableController.d.ts.map +1 -0
- package/dist/devtools/index.d.ts +7 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/index.js +884 -0
- package/dist/devtools/index.js.map +1 -0
- package/dist/devtools/overlayPlugin.d.ts +3 -0
- package/dist/devtools/overlayPlugin.d.ts.map +1 -0
- package/dist/devtools/spinePropertiesPlugin.d.ts +3 -0
- package/dist/devtools/spinePropertiesPlugin.d.ts.map +1 -0
- package/dist/devtools/spriteTextPropertiesPlugin.d.ts +3 -0
- package/dist/devtools/spriteTextPropertiesPlugin.d.ts.map +1 -0
- package/dist/devtools/treePlugin.d.ts +7 -0
- package/dist/devtools/treePlugin.d.ts.map +1 -0
- package/dist/engine/PixiEngine.d.ts +404 -0
- package/dist/engine/PixiEngine.d.ts.map +1 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +1818 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/filters/ChromaKeyFilter.d.ts +64 -0
- package/dist/filters/ChromaKeyFilter.d.ts.map +1 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/index.d.ts.map +1 -0
- package/dist/filters/index.js +248 -0
- package/dist/filters/index.js.map +1 -0
- package/dist/helpers/AssetHelper.d.ts +117 -0
- package/dist/helpers/AssetHelper.d.ts.map +1 -0
- package/dist/helpers/SVGAssetHelper.d.ts +397 -0
- package/dist/helpers/SVGAssetHelper.d.ts.map +1 -0
- package/dist/helpers/SVGLoader.d.ts +46 -0
- package/dist/helpers/SVGLoader.d.ts.map +1 -0
- package/dist/helpers/SVGParser.d.ts +121 -0
- package/dist/helpers/SVGParser.d.ts.map +1 -0
- package/dist/helpers/eventBridge.d.ts +150 -0
- package/dist/helpers/eventBridge.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +8 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +702 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/mergeUtils.d.ts +21 -0
- package/dist/helpers/mergeUtils.d.ts.map +1 -0
- package/dist/helpers/resolvePublicPath.d.ts +6 -0
- package/dist/helpers/resolvePublicPath.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +527 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/sharedI18n.d.ts +11 -0
- package/dist/i18n/sharedI18n.d.ts.map +1 -0
- package/dist/layout/Align.d.ts +126 -0
- package/dist/layout/Align.d.ts.map +1 -0
- package/dist/layout/Bounds.d.ts +120 -0
- package/dist/layout/Bounds.d.ts.map +1 -0
- package/dist/layout/Distribute.d.ts +103 -0
- package/dist/layout/Distribute.d.ts.map +1 -0
- package/dist/layout/Flow.d.ts +213 -0
- package/dist/layout/Flow.d.ts.map +1 -0
- package/dist/layout/PositionUtils.d.ts +57 -0
- package/dist/layout/PositionUtils.d.ts.map +1 -0
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +673 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/particle/Emitter.d.ts +290 -0
- package/dist/particle/Emitter.d.ts.map +1 -0
- package/dist/particle/EmitterConfig.d.ts +228 -0
- package/dist/particle/EmitterConfig.d.ts.map +1 -0
- package/dist/particle/LinkedListContainer.d.ts +7 -0
- package/dist/particle/LinkedListContainer.d.ts.map +1 -0
- package/dist/particle/Particle.d.ts +63 -0
- package/dist/particle/Particle.d.ts.map +1 -0
- package/dist/particle/ParticleUtils.d.ts +97 -0
- package/dist/particle/ParticleUtils.d.ts.map +1 -0
- package/dist/particle/PropertyList.d.ts +40 -0
- package/dist/particle/PropertyList.d.ts.map +1 -0
- package/dist/particle/PropertyNode.d.ts +74 -0
- package/dist/particle/PropertyNode.d.ts.map +1 -0
- package/dist/particle/SpineEmitter.d.ts +55 -0
- package/dist/particle/SpineEmitter.d.ts.map +1 -0
- package/dist/particle/SpineParticle.d.ts +74 -0
- package/dist/particle/SpineParticle.d.ts.map +1 -0
- package/dist/particle/behaviors/AccelerationMovement.d.ts +62 -0
- package/dist/particle/behaviors/AccelerationMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/Alpha.d.ts +60 -0
- package/dist/particle/behaviors/Alpha.d.ts.map +1 -0
- package/dist/particle/behaviors/AnimatedTexture.d.ts +111 -0
- package/dist/particle/behaviors/AnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/Behaviors.d.ts +71 -0
- package/dist/particle/behaviors/Behaviors.d.ts.map +1 -0
- package/dist/particle/behaviors/BlendMode.d.ts +31 -0
- package/dist/particle/behaviors/BlendMode.d.ts.map +1 -0
- package/dist/particle/behaviors/BurstSpawn.d.ts +43 -0
- package/dist/particle/behaviors/BurstSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/Color.d.ts +60 -0
- package/dist/particle/behaviors/Color.d.ts.map +1 -0
- package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts +99 -0
- package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/OrderedTexture.d.ts +33 -0
- package/dist/particle/behaviors/OrderedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/PathMovement.d.ts +68 -0
- package/dist/particle/behaviors/PathMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/PointSpawn.d.ts +21 -0
- package/dist/particle/behaviors/PointSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/RandomColor.d.ts +17 -0
- package/dist/particle/behaviors/RandomColor.d.ts.map +1 -0
- package/dist/particle/behaviors/RandomTexture.d.ts +32 -0
- package/dist/particle/behaviors/RandomTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/Rotation.d.ts +114 -0
- package/dist/particle/behaviors/Rotation.d.ts.map +1 -0
- package/dist/particle/behaviors/Scale.d.ts +74 -0
- package/dist/particle/behaviors/Scale.d.ts.map +1 -0
- package/dist/particle/behaviors/ShapeSpawn.d.ts +58 -0
- package/dist/particle/behaviors/ShapeSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/SingleTexture.d.ts +32 -0
- package/dist/particle/behaviors/SingleTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/SpeedMovement.d.ts +76 -0
- package/dist/particle/behaviors/SpeedMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/SpineTexture.d.ts +173 -0
- package/dist/particle/behaviors/SpineTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/ZindexBehavior.d.ts +16 -0
- package/dist/particle/behaviors/ZindexBehavior.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/Types.d.ts +104 -0
- package/dist/particle/behaviors/editor/Types.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Color.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Color.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Scale.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Scale.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/index.d.ts +15 -0
- package/dist/particle/behaviors/editor/behaviors/index.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/index.d.ts +5 -0
- package/dist/particle/behaviors/editor/index.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/Torus.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/Torus.d.ts.map +1 -0
- package/dist/particle/behaviors/index.d.ts +25 -0
- package/dist/particle/behaviors/index.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/PolygonalChain.d.ts +57 -0
- package/dist/particle/behaviors/shapes/PolygonalChain.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/Rectangle.d.ts +59 -0
- package/dist/particle/behaviors/shapes/Rectangle.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/SpawnShape.d.ts +32 -0
- package/dist/particle/behaviors/shapes/SpawnShape.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/Torus.d.ts +71 -0
- package/dist/particle/behaviors/shapes/Torus.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/index.d.ts +5 -0
- package/dist/particle/behaviors/shapes/index.d.ts.map +1 -0
- package/dist/particle/index.d.ts +11 -0
- package/dist/particle/index.d.ts.map +1 -0
- package/dist/particle/index.js +2845 -0
- package/dist/particle/index.js.map +1 -0
- package/dist/plugins/Plugin.types.d.ts +80 -0
- package/dist/plugins/Plugin.types.d.ts.map +1 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.d.ts +187 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.d.ts.map +1 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts +134 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts.map +1 -0
- package/dist/plugins/device/index.d.ts +3 -0
- package/dist/plugins/device/index.d.ts.map +1 -0
- package/dist/plugins/display/DisplayPlugin.d.ts +208 -0
- package/dist/plugins/display/DisplayPlugin.d.ts.map +1 -0
- package/dist/plugins/display/DisplayPlugin.types.d.ts +174 -0
- package/dist/plugins/display/DisplayPlugin.types.d.ts.map +1 -0
- package/dist/plugins/display/displayViewport.d.ts +10 -0
- package/dist/plugins/display/displayViewport.d.ts.map +1 -0
- package/dist/plugins/display/index.d.ts +4 -0
- package/dist/plugins/display/index.d.ts.map +1 -0
- package/dist/plugins/eventbus/EventBusPlugin.d.ts +21 -0
- package/dist/plugins/eventbus/EventBusPlugin.d.ts.map +1 -0
- package/dist/plugins/eventbus/EventBusPlugin.types.d.ts +24 -0
- package/dist/plugins/eventbus/EventBusPlugin.types.d.ts.map +1 -0
- package/dist/plugins/eventbus/index.d.ts +3 -0
- package/dist/plugins/eventbus/index.d.ts.map +1 -0
- package/dist/plugins/gsap/GsapPlugin.d.ts +307 -0
- package/dist/plugins/gsap/GsapPlugin.d.ts.map +1 -0
- package/dist/plugins/gsap/index.d.ts +2 -0
- package/dist/plugins/gsap/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +12806 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/input/InputPlugin.const.d.ts +80 -0
- package/dist/plugins/input/InputPlugin.const.d.ts.map +1 -0
- package/dist/plugins/input/InputPlugin.d.ts +141 -0
- package/dist/plugins/input/InputPlugin.d.ts.map +1 -0
- package/dist/plugins/input/InputPlugin.types.d.ts +41 -0
- package/dist/plugins/input/InputPlugin.types.d.ts.map +1 -0
- package/dist/plugins/input/KeyboardManager.d.ts +139 -0
- package/dist/plugins/input/KeyboardManager.d.ts.map +1 -0
- package/dist/plugins/input/KeyboardManager.types.d.ts +27 -0
- package/dist/plugins/input/KeyboardManager.types.d.ts.map +1 -0
- package/dist/plugins/input/index.d.ts +4 -0
- package/dist/plugins/input/index.d.ts.map +1 -0
- package/dist/plugins/language/I18NextPlugin.d.ts +30 -0
- package/dist/plugins/language/I18NextPlugin.d.ts.map +1 -0
- package/dist/plugins/language/I18NextPlugin.types.d.ts +29 -0
- package/dist/plugins/language/I18NextPlugin.types.d.ts.map +1 -0
- package/dist/plugins/language/index.d.ts +3 -0
- package/dist/plugins/language/index.d.ts.map +1 -0
- package/dist/plugins/resource/ResourcePlugin.d.ts +189 -0
- package/dist/plugins/resource/ResourcePlugin.d.ts.map +1 -0
- package/dist/plugins/resource/ResourcePlugin.types.d.ts +153 -0
- package/dist/plugins/resource/ResourcePlugin.types.d.ts.map +1 -0
- package/dist/plugins/resource/index.d.ts +3 -0
- package/dist/plugins/resource/index.d.ts.map +1 -0
- package/dist/plugins/scene/Scene.d.ts +203 -0
- package/dist/plugins/scene/Scene.d.ts.map +1 -0
- package/dist/plugins/scene/ScenePlugin.d.ts +162 -0
- package/dist/plugins/scene/ScenePlugin.d.ts.map +1 -0
- package/dist/plugins/scene/ScenePlugin.types.d.ts +35 -0
- package/dist/plugins/scene/ScenePlugin.types.d.ts.map +1 -0
- package/dist/plugins/scene/index.d.ts +4 -0
- package/dist/plugins/scene/index.d.ts.map +1 -0
- package/dist/plugins/sentry/SentryPlugin.d.ts +66 -0
- package/dist/plugins/sentry/SentryPlugin.d.ts.map +1 -0
- package/dist/plugins/sentry/SentryPlugin.types.d.ts +8 -0
- package/dist/plugins/sentry/SentryPlugin.types.d.ts.map +1 -0
- package/dist/plugins/sentry/index.d.ts +3 -0
- package/dist/plugins/sentry/index.d.ts.map +1 -0
- package/dist/plugins/service/ServiceAdapter.d.ts +88 -0
- package/dist/plugins/service/ServiceAdapter.d.ts.map +1 -0
- package/dist/plugins/service/ServiceEventHelper.d.ts +6 -0
- package/dist/plugins/service/ServiceEventHelper.d.ts.map +1 -0
- package/dist/plugins/service/ServicePlugin.d.ts +135 -0
- package/dist/plugins/service/ServicePlugin.d.ts.map +1 -0
- package/dist/plugins/service/ServicePlugin.types.d.ts +14 -0
- package/dist/plugins/service/ServicePlugin.types.d.ts.map +1 -0
- package/dist/plugins/service/adapters/DevAuthAdapter.d.ts +56 -0
- package/dist/plugins/service/adapters/DevAuthAdapter.d.ts.map +1 -0
- package/dist/plugins/service/adapters/RGSAdapter.d.ts +82 -0
- package/dist/plugins/service/adapters/RGSAdapter.d.ts.map +1 -0
- package/dist/plugins/service/adapters/index.d.ts +7 -0
- package/dist/plugins/service/adapters/index.d.ts.map +1 -0
- package/dist/plugins/service/adapters/resolvePublicIp.d.ts +10 -0
- package/dist/plugins/service/adapters/resolvePublicIp.d.ts.map +1 -0
- package/dist/plugins/service/index.d.ts +10 -0
- package/dist/plugins/service/index.d.ts.map +1 -0
- package/dist/plugins/service/types/api.types.d.ts +299 -0
- package/dist/plugins/service/types/api.types.d.ts.map +1 -0
- package/dist/plugins/service/types/index.d.ts +6 -0
- package/dist/plugins/service/types/index.d.ts.map +1 -0
- package/dist/plugins/skin/ISkin.d.ts +62 -0
- package/dist/plugins/skin/ISkin.d.ts.map +1 -0
- package/dist/plugins/skin/Skin.d.ts +155 -0
- package/dist/plugins/skin/Skin.d.ts.map +1 -0
- package/dist/plugins/skin/SkinPlugin.d.ts +285 -0
- package/dist/plugins/skin/SkinPlugin.d.ts.map +1 -0
- package/dist/plugins/skin/SkinPlugin.types.d.ts +56 -0
- package/dist/plugins/skin/SkinPlugin.types.d.ts.map +1 -0
- package/dist/plugins/skin/index.d.ts +5 -0
- package/dist/plugins/skin/index.d.ts.map +1 -0
- package/dist/plugins/sound/SoundPlugin.d.ts +319 -0
- package/dist/plugins/sound/SoundPlugin.d.ts.map +1 -0
- package/dist/plugins/sound/SoundPlugin.types.d.ts +102 -0
- package/dist/plugins/sound/SoundPlugin.types.d.ts.map +1 -0
- package/dist/plugins/sound/SoundTestGUI.d.ts +42 -0
- package/dist/plugins/sound/SoundTestGUI.d.ts.map +1 -0
- package/dist/plugins/sound/index.d.ts +4 -0
- package/dist/plugins/sound/index.d.ts.map +1 -0
- package/dist/state-machine/ConfigBuilder.d.ts +239 -0
- package/dist/state-machine/ConfigBuilder.d.ts.map +1 -0
- package/dist/state-machine/StateMachine.d.ts +251 -0
- package/dist/state-machine/StateMachine.d.ts.map +1 -0
- package/dist/state-machine/guards.d.ts +151 -0
- package/dist/state-machine/guards.d.ts.map +1 -0
- package/dist/state-machine/index.d.ts +5 -0
- package/dist/state-machine/index.d.ts.map +1 -0
- package/dist/state-machine/index.js +954 -0
- package/dist/state-machine/index.js.map +1 -0
- package/dist/state-machine/types.d.ts +65 -0
- package/dist/state-machine/types.d.ts.map +1 -0
- package/dist/store/DataStore.d.ts +167 -0
- package/dist/store/DataStore.d.ts.map +1 -0
- package/dist/store/index.d.ts +3 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +197 -0
- package/dist/store/index.js.map +1 -0
- package/dist/ui/behaviors/ButtonBehavior.d.ts +245 -0
- package/dist/ui/behaviors/ButtonBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/InputBehavior.d.ts +169 -0
- package/dist/ui/behaviors/InputBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/ScrollbarBehavior.d.ts +371 -0
- package/dist/ui/behaviors/ScrollbarBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/index.d.ts +4 -0
- package/dist/ui/behaviors/index.d.ts.map +1 -0
- package/dist/ui/components/ButtonComp.d.ts +138 -0
- package/dist/ui/components/ButtonComp.d.ts.map +1 -0
- package/dist/ui/components/Comp.utils.d.ts +390 -0
- package/dist/ui/components/Comp.utils.d.ts.map +1 -0
- package/dist/ui/components/Component.types.d.ts +41 -0
- package/dist/ui/components/Component.types.d.ts.map +1 -0
- package/dist/ui/components/InputComp.d.ts +43 -0
- package/dist/ui/components/InputComp.d.ts.map +1 -0
- package/dist/ui/components/LabelBox.d.ts +49 -0
- package/dist/ui/components/LabelBox.d.ts.map +1 -0
- package/dist/ui/components/ListTableComp.d.ts +106 -0
- package/dist/ui/components/ListTableComp.d.ts.map +1 -0
- package/dist/ui/components/Skinable.d.ts +261 -0
- package/dist/ui/components/Skinable.d.ts.map +1 -0
- package/dist/ui/components/SliderComp.d.ts +60 -0
- package/dist/ui/components/SliderComp.d.ts.map +1 -0
- package/dist/ui/components/SpriteTextBBCode.d.ts +16 -0
- package/dist/ui/components/SpriteTextBBCode.d.ts.map +1 -0
- package/dist/ui/components/StepperComp.d.ts +89 -0
- package/dist/ui/components/StepperComp.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +12 -0
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteText.d.ts +114 -0
- package/dist/ui/components/spriteText/SpriteText.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteText.types.d.ts +109 -0
- package/dist/ui/components/spriteText/SpriteText.types.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts +25 -0
- package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextBezier.d.ts +20 -0
- package/dist/ui/components/spriteText/SpriteTextBezier.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextCurve.d.ts +4 -0
- package/dist/ui/components/spriteText/SpriteTextCurve.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextKerning.d.ts +7 -0
- package/dist/ui/components/spriteText/SpriteTextKerning.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextTexture.d.ts +16 -0
- package/dist/ui/components/spriteText/SpriteTextTexture.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextWrap.d.ts +19 -0
- package/dist/ui/components/spriteText/SpriteTextWrap.d.ts.map +1 -0
- package/dist/ui/components/spriteText/index.d.ts +3 -0
- package/dist/ui/components/spriteText/index.d.ts.map +1 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +4778 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/ArrayUtils.d.ts +24 -0
- package/dist/utils/ArrayUtils.d.ts.map +1 -0
- package/dist/utils/ColorUtils.d.ts +34 -0
- package/dist/utils/ColorUtils.d.ts.map +1 -0
- package/dist/utils/DataInjector.d.ts +67 -0
- package/dist/utils/DataInjector.d.ts.map +1 -0
- package/dist/utils/Logger.d.ts +332 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/NumberFormatter.d.ts +126 -0
- package/dist/utils/NumberFormatter.d.ts.map +1 -0
- package/dist/utils/ObjectUtils.d.ts +64 -0
- package/dist/utils/ObjectUtils.d.ts.map +1 -0
- package/dist/utils/PixiUtils.d.ts +118 -0
- package/dist/utils/PixiUtils.d.ts.map +1 -0
- package/dist/utils/Throttle.d.ts +103 -0
- package/dist/utils/Throttle.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +899 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/vite/index.d.ts +3 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +126 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/mergeLocalesPlugin.d.ts +22 -0
- package/dist/vite/mergeLocalesPlugin.d.ts.map +1 -0
- package/package.json +143 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { ValueList } from '../PropertyNode';
|
|
3
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A particle that follows a path defined by an algebraic expression, e.g. "sin(x)" or
|
|
7
|
+
* "5x + 3".
|
|
8
|
+
* To use this class, the behavior config must have a "path" string or function.
|
|
9
|
+
*
|
|
10
|
+
* A string should have "x" in it to represent movement (from the
|
|
11
|
+
* speed settings of the behavior). It may have numbers, parentheses, the four basic
|
|
12
|
+
* operations, and any Math functions or properties (without the preceding "Math.").
|
|
13
|
+
* The overall movement of the particle and the expression value become x and y positions for
|
|
14
|
+
* the particle, respectively. The final position is rotated by the spawn rotation/angle of
|
|
15
|
+
* the particle.
|
|
16
|
+
*
|
|
17
|
+
* A function merely needs to accept the "x" argument and output the a corresponding "y" value.
|
|
18
|
+
*
|
|
19
|
+
* Some example paths:
|
|
20
|
+
*
|
|
21
|
+
* * `"sin(x/10) * 20"` A sine wave path.
|
|
22
|
+
* * `"cos(x/100) * 30"` Particles curve counterclockwise (for medium speed/low lifetime particles)
|
|
23
|
+
* * `"pow(x/10, 2) / 2"` Particles curve clockwise (remember, +y is down).
|
|
24
|
+
* * `(x) => Math.floor(x) * 3` Supplying an existing function should look like this
|
|
25
|
+
*
|
|
26
|
+
* Example configuration:
|
|
27
|
+
* ```javascript
|
|
28
|
+
* {
|
|
29
|
+
* "type": "movePath",
|
|
30
|
+
* "config": {
|
|
31
|
+
* "path": "round(sin(x) * 2",
|
|
32
|
+
* "speed": {
|
|
33
|
+
* "list": [{value: 10, time: 0}, {value: 100, time: 0.25}, {value: 0, time: 1}],
|
|
34
|
+
* },
|
|
35
|
+
* "minMult": 0.8
|
|
36
|
+
* }
|
|
37
|
+
*}
|
|
38
|
+
*/
|
|
39
|
+
export declare class PathBehavior implements IEmitterBehavior {
|
|
40
|
+
static type: string;
|
|
41
|
+
static editorConfig: BehaviorEditorConfig;
|
|
42
|
+
order: BehaviorOrder;
|
|
43
|
+
/**
|
|
44
|
+
* The function representing the path the particle should take.
|
|
45
|
+
*/
|
|
46
|
+
private path;
|
|
47
|
+
private list;
|
|
48
|
+
private minMult;
|
|
49
|
+
constructor(config: {
|
|
50
|
+
/**
|
|
51
|
+
* Algebraic expression describing the movement of the particle.
|
|
52
|
+
*/
|
|
53
|
+
path: string | ((x: number) => number);
|
|
54
|
+
/**
|
|
55
|
+
* Speed of the particles in world units/second. This affects the x value in the path.
|
|
56
|
+
* Unlike normal speed movement, this can have negative values.
|
|
57
|
+
*/
|
|
58
|
+
speed: ValueList<number>;
|
|
59
|
+
/**
|
|
60
|
+
* A value between minimum speed multipler and 1 is randomly generated and multiplied
|
|
61
|
+
* with each speed value to generate the actual speed for each particle.
|
|
62
|
+
*/
|
|
63
|
+
minMult: number;
|
|
64
|
+
});
|
|
65
|
+
initParticles(first: Particle): void;
|
|
66
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=PathMovement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathMovement.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/PathMovement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAwFtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,YAAa,YAAW,gBAAgB;IACjD,OAAc,IAAI,SAAc;IAChC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAGxD,KAAK,gBAAsB;IAClC;;OAEG;IACH,OAAO,CAAC,IAAI,CAAwB;IACpC,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,OAAO,CAAS;gBACZ,MAAM,EAAE;QAChB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;QACvC;;;WAGG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACnB;IA6BD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IA4BpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAY7D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
/**
|
|
5
|
+
* A Spawn behavior that sends particles out from a single point at the emitter's position.
|
|
6
|
+
*
|
|
7
|
+
* Example config:
|
|
8
|
+
* ```javascript
|
|
9
|
+
* {
|
|
10
|
+
* type: 'spawnPoint',
|
|
11
|
+
* config: {}
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class PointSpawnBehavior implements IEmitterBehavior {
|
|
16
|
+
static type: string;
|
|
17
|
+
static editorConfig: BehaviorEditorConfig;
|
|
18
|
+
order: BehaviorOrder;
|
|
19
|
+
initParticles(_first: Particle): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=PointSpawn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PointSpawn.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/PointSpawn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAgB;IAClC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAE/D,KAAK,gBAAuB;IAG5B,aAAa,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI;CAGxC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
export declare class RandomColor implements IEmitterBehavior {
|
|
5
|
+
static type: string;
|
|
6
|
+
static editorConfig: BehaviorEditorConfig;
|
|
7
|
+
order: BehaviorOrder;
|
|
8
|
+
private list;
|
|
9
|
+
constructor(config: {
|
|
10
|
+
/**
|
|
11
|
+
* Color of the particles as 6 digit hex codes.
|
|
12
|
+
*/
|
|
13
|
+
colour: string[];
|
|
14
|
+
});
|
|
15
|
+
initParticles(first: Particle): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=RandomColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomColor.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/RandomColor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,qBAAa,WAAY,YAAW,gBAAgB;IAChD,OAAc,IAAI,SAAc;IAChC,OAAc,YAAY,EAAE,oBAAoB,CAAC;IAE1C,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAAU;gBACV,MAAM,EAAE;QAChB;;WAEG;QACH,MAAM,EAAE,MAAM,EAAE,CAAC;KACpB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAavC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
import { Texture } from 'pixi.js';
|
|
5
|
+
/**
|
|
6
|
+
* A Texture behavior that assigns a random texture to each particle from its list.
|
|
7
|
+
* String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
|
|
8
|
+
*
|
|
9
|
+
* Example config:
|
|
10
|
+
* ```javascript
|
|
11
|
+
* {
|
|
12
|
+
* type: 'textureRandom',
|
|
13
|
+
* config: {
|
|
14
|
+
* textures: ["myTex1Id", "myTex2Id", "myTex3Id", "myTex4Id"],
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class RandomTextureBehavior implements IEmitterBehavior {
|
|
20
|
+
static type: string;
|
|
21
|
+
static editorConfig: BehaviorEditorConfig;
|
|
22
|
+
order: BehaviorOrder;
|
|
23
|
+
private textures;
|
|
24
|
+
constructor(config: {
|
|
25
|
+
/**
|
|
26
|
+
* Images to use for each particle, randomly chosen from the list.
|
|
27
|
+
*/
|
|
28
|
+
textures: (Texture | string)[];
|
|
29
|
+
});
|
|
30
|
+
initParticles(first: Particle): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=RandomTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomTexture.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/RandomTexture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,gBAAgB;IAC1D,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,QAAQ,CAAY;gBAChB,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC;KAClC;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAWvC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
/**
|
|
5
|
+
* A Rotation behavior that handles starting rotation, rotation speed, and rotational acceleration.
|
|
6
|
+
*
|
|
7
|
+
* Example configuration:
|
|
8
|
+
* ```javascript
|
|
9
|
+
* {
|
|
10
|
+
* "type": "rotation",
|
|
11
|
+
* "config": {
|
|
12
|
+
* "minStart": 0,
|
|
13
|
+
* "maxStart": 180,
|
|
14
|
+
* "minSpeed": 30,
|
|
15
|
+
* "maxSpeed": 45,
|
|
16
|
+
* "accel": 20
|
|
17
|
+
* }
|
|
18
|
+
*}
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class RotationBehavior implements IEmitterBehavior {
|
|
22
|
+
static type: string;
|
|
23
|
+
static editorConfig: BehaviorEditorConfig;
|
|
24
|
+
order: BehaviorOrder;
|
|
25
|
+
private minStart;
|
|
26
|
+
private maxStart;
|
|
27
|
+
private minSpeed;
|
|
28
|
+
private maxSpeed;
|
|
29
|
+
private accel;
|
|
30
|
+
constructor(config: {
|
|
31
|
+
/**
|
|
32
|
+
* Minimum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
|
|
33
|
+
*/
|
|
34
|
+
minStart: number;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
|
|
37
|
+
*/
|
|
38
|
+
maxStart: number;
|
|
39
|
+
/**
|
|
40
|
+
* Minimum rotation speed of the particles, in degrees/second. Positive is counter-clockwise.
|
|
41
|
+
*/
|
|
42
|
+
minSpeed: number;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum rotation speed of the particles, in degrees/second. Positive is counter-clockwise.
|
|
45
|
+
*/
|
|
46
|
+
maxSpeed: number;
|
|
47
|
+
/**
|
|
48
|
+
* Constant rotational acceleration of the particles, in degrees/second/second.
|
|
49
|
+
*/
|
|
50
|
+
accel: number;
|
|
51
|
+
});
|
|
52
|
+
initParticles(first: Particle): void;
|
|
53
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A Rotation behavior that handles starting rotation.
|
|
57
|
+
*
|
|
58
|
+
* Example configuration:
|
|
59
|
+
* ```javascript
|
|
60
|
+
* {
|
|
61
|
+
* "type": "rotationStatic",
|
|
62
|
+
* "config": {
|
|
63
|
+
* "min": 0,
|
|
64
|
+
* "max": 180,
|
|
65
|
+
* }
|
|
66
|
+
*}
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare class StaticRotationBehavior implements IEmitterBehavior {
|
|
70
|
+
static type: string;
|
|
71
|
+
static editorConfig: BehaviorEditorConfig;
|
|
72
|
+
order: BehaviorOrder;
|
|
73
|
+
private min;
|
|
74
|
+
private max;
|
|
75
|
+
constructor(config: {
|
|
76
|
+
/**
|
|
77
|
+
* Minimum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
|
|
78
|
+
*/
|
|
79
|
+
min: number;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
|
|
82
|
+
*/
|
|
83
|
+
max: number;
|
|
84
|
+
});
|
|
85
|
+
initParticles(first: Particle): void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A Rotation behavior that blocks all rotation caused by spawn settings,
|
|
89
|
+
* by resetting it to the specified rotation (or 0).
|
|
90
|
+
*
|
|
91
|
+
* Example configuration:
|
|
92
|
+
* ```javascript
|
|
93
|
+
* {
|
|
94
|
+
* "type": "noRotation",
|
|
95
|
+
* "config": {
|
|
96
|
+
* "rotation": 0
|
|
97
|
+
* }
|
|
98
|
+
*}
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare class NoRotationBehavior implements IEmitterBehavior {
|
|
102
|
+
static type: string;
|
|
103
|
+
static editorConfig: BehaviorEditorConfig;
|
|
104
|
+
order: number;
|
|
105
|
+
private rotation;
|
|
106
|
+
constructor(config: {
|
|
107
|
+
/**
|
|
108
|
+
* Locked rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
|
|
109
|
+
*/
|
|
110
|
+
rotation?: number;
|
|
111
|
+
});
|
|
112
|
+
initParticles(first: Particle): void;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=Rotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rotation.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/Rotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAc;IAChC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAAS;gBACV,MAAM,EAAE;QAClB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;IAQD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAepC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAU3D;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,OAAc,IAAI,SAAoB;IACtC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;gBACR,MAAM,EAAE;QAClB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAarC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACzD,OAAc,IAAI,SAAgB;IAClC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,SAA0B;IAEtC,OAAO,CAAC,QAAQ,CAAS;gBACb,MAAM,EAAE;QAClB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CASrC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { ValueList } from '../PropertyNode';
|
|
3
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A Scale behavior that applies an interpolated or stepped list of values to the particle's x & y scale.
|
|
7
|
+
*
|
|
8
|
+
* Example config:
|
|
9
|
+
* ```javascript
|
|
10
|
+
* {
|
|
11
|
+
* type: 'scale',
|
|
12
|
+
* config: {
|
|
13
|
+
* scale: {
|
|
14
|
+
* list: [{value: 0, time: 0}, {value: 1, time: 0.25}, {value: 0, time: 1}],
|
|
15
|
+
* isStepped: true
|
|
16
|
+
* },
|
|
17
|
+
* minMult: 0.5
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class ScaleBehavior implements IEmitterBehavior {
|
|
23
|
+
static type: string;
|
|
24
|
+
static editorConfig: BehaviorEditorConfig;
|
|
25
|
+
order: BehaviorOrder;
|
|
26
|
+
private list;
|
|
27
|
+
private minMult;
|
|
28
|
+
constructor(config: {
|
|
29
|
+
/**
|
|
30
|
+
* Scale of the particles, with a minimum value of 0
|
|
31
|
+
*/
|
|
32
|
+
scale: ValueList<number>;
|
|
33
|
+
/**
|
|
34
|
+
* A value between minimum scale multipler and 1 is randomly
|
|
35
|
+
* generated and multiplied with each scale value to provide the actual scale for each particle.
|
|
36
|
+
*/
|
|
37
|
+
minMult: number;
|
|
38
|
+
});
|
|
39
|
+
initParticles(first: Particle): void;
|
|
40
|
+
updateParticle(particle: Particle): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A Scale behavior that applies a randomly picked value to the particle's x & y scale at initialization.
|
|
44
|
+
*
|
|
45
|
+
* Example config:
|
|
46
|
+
* ```javascript
|
|
47
|
+
* {
|
|
48
|
+
* type: 'scaleStatic',
|
|
49
|
+
* config: {
|
|
50
|
+
* min: 0.25,
|
|
51
|
+
* max: 0.75,
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class StaticScaleBehavior implements IEmitterBehavior {
|
|
57
|
+
static type: string;
|
|
58
|
+
static editorConfig: BehaviorEditorConfig;
|
|
59
|
+
order: BehaviorOrder;
|
|
60
|
+
private min;
|
|
61
|
+
private max;
|
|
62
|
+
constructor(config: {
|
|
63
|
+
/**
|
|
64
|
+
* Minimum scale of the particles, with a minimum value of 0
|
|
65
|
+
*/
|
|
66
|
+
min: number;
|
|
67
|
+
/**
|
|
68
|
+
* Maximum scale of the particles, with a minimum value of 0
|
|
69
|
+
*/
|
|
70
|
+
max: number;
|
|
71
|
+
});
|
|
72
|
+
initParticles(first: Particle): void;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=Scale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scale.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/Scale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAc,YAAW,gBAAgB;IAClD,OAAc,IAAI,SAAW;IAC7B,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,OAAO,CAAS;gBACZ,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACnB;IAMD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAapC,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAG3C;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;IACxD,OAAc,IAAI,SAAiB;IACnC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;gBACR,MAAM,EAAE;QAChB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACf;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAWvC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { SpawnShapeClass } from './shapes/SpawnShape';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A Spawn behavior that places (and optionally rotates) particles according to a
|
|
7
|
+
* specified shape. Additional shapes can be registered with {@link registerShape | SpawnShape.registerShape()}.
|
|
8
|
+
* Additional shapes must implement the {@link SpawnShape} interface, and their class must match the
|
|
9
|
+
* {@link SpawnShapeClass} interface.
|
|
10
|
+
* Shapes included by default are:
|
|
11
|
+
* * {@link Rectangle}
|
|
12
|
+
* * {@link Torus}
|
|
13
|
+
* * {@link PolygonalChain}
|
|
14
|
+
*
|
|
15
|
+
* Example config:
|
|
16
|
+
* ```javascript
|
|
17
|
+
* {
|
|
18
|
+
* type: 'spawnShape',
|
|
19
|
+
* config: {
|
|
20
|
+
* type: 'rect',
|
|
21
|
+
* data: {
|
|
22
|
+
* x: 0,
|
|
23
|
+
* y: 0,
|
|
24
|
+
* width: 20,
|
|
25
|
+
* height: 300,
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class ShapeSpawnBehavior implements IEmitterBehavior {
|
|
32
|
+
static type: string;
|
|
33
|
+
static editorConfig: BehaviorEditorConfig;
|
|
34
|
+
/**
|
|
35
|
+
* Dictionary of all registered shape classes.
|
|
36
|
+
*/
|
|
37
|
+
private static shapes;
|
|
38
|
+
/**
|
|
39
|
+
* Registers a shape to be used by the ShapeSpawn behavior.
|
|
40
|
+
* @param constructor The shape class constructor to use, with a static `type` property to reference it by.
|
|
41
|
+
* @param typeOverride An optional type override, primarily for registering a shape under multiple names.
|
|
42
|
+
*/
|
|
43
|
+
static registerShape(constructor: SpawnShapeClass, typeOverride?: string): void;
|
|
44
|
+
order: BehaviorOrder;
|
|
45
|
+
private shape;
|
|
46
|
+
constructor(config: {
|
|
47
|
+
/**
|
|
48
|
+
* Type of the shape to spawn
|
|
49
|
+
*/
|
|
50
|
+
type: string;
|
|
51
|
+
/**
|
|
52
|
+
* Configuration data for the spawn shape.
|
|
53
|
+
*/
|
|
54
|
+
data: any;
|
|
55
|
+
});
|
|
56
|
+
initParticles(first: Particle): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=ShapeSpawn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeSpawn.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/ShapeSpawn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAc,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAIlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAgB;IAClC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAE/D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,MAAM,CAA0C;IAE/D;;;;OAIG;WACW,aAAa,CAAC,WAAW,EAAE,eAAe,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAItF,KAAK,gBAAuB;IAC5B,OAAO,CAAC,KAAK,CAAa;gBAEd,MAAM,EAAE;QAChB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,IAAI,EAAE,GAAG,CAAC;KACb;IASD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { Texture } from 'pixi.js';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A Textuure behavior that assigns a single texture to each particle.
|
|
7
|
+
* String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
|
|
8
|
+
*
|
|
9
|
+
* Example config:
|
|
10
|
+
* ```javascript
|
|
11
|
+
* {
|
|
12
|
+
* type: 'textureSingle',
|
|
13
|
+
* config: {
|
|
14
|
+
* texture: Texture.from('myTexId'),
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class SingleTextureBehavior implements IEmitterBehavior {
|
|
20
|
+
static type: string;
|
|
21
|
+
static editorConfig: BehaviorEditorConfig;
|
|
22
|
+
order: BehaviorOrder;
|
|
23
|
+
private texture;
|
|
24
|
+
constructor(config: {
|
|
25
|
+
/**
|
|
26
|
+
* Image to use for each particle.
|
|
27
|
+
*/
|
|
28
|
+
texture: Texture | string;
|
|
29
|
+
});
|
|
30
|
+
initParticles(first: Particle): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=SingleTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SingleTexture.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/SingleTexture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,gBAAgB;IAC1D,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,OAAO,CAAU;gBACb,MAAM,EAAE;QAChB;;WAEG;QACH,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;KAC7B;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CASvC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { ValueList } from '../PropertyNode';
|
|
3
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A Movement behavior that uses an interpolated or stepped list of values for a particles speed at any given moment.
|
|
7
|
+
* Movement direction is controlled by the particle's starting rotation.
|
|
8
|
+
*
|
|
9
|
+
* Example config:
|
|
10
|
+
* ```javascript
|
|
11
|
+
* {
|
|
12
|
+
* type: 'moveSpeed',
|
|
13
|
+
* config: {
|
|
14
|
+
* speed: {
|
|
15
|
+
* list: [{value: 10, time: 0}, {value: 100, time: 0.25}, {value: 0, time: 1}],
|
|
16
|
+
* },
|
|
17
|
+
* minMult: 0.8
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class SpeedBehavior implements IEmitterBehavior {
|
|
23
|
+
static type: string;
|
|
24
|
+
static editorConfig: BehaviorEditorConfig;
|
|
25
|
+
order: BehaviorOrder;
|
|
26
|
+
private list;
|
|
27
|
+
private minMult;
|
|
28
|
+
constructor(config: {
|
|
29
|
+
/**
|
|
30
|
+
* Speed of the particles in world units/second, with a minimum value of 0
|
|
31
|
+
*/
|
|
32
|
+
speed: ValueList<number>;
|
|
33
|
+
/**
|
|
34
|
+
* A value between minimum speed multipler and 1 is randomly
|
|
35
|
+
* generated and multiplied with each speed value to generate the actual speed for each particle.
|
|
36
|
+
*/
|
|
37
|
+
minMult: number;
|
|
38
|
+
});
|
|
39
|
+
initParticles(first: Particle): void;
|
|
40
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A Movement behavior that uses a randomly picked constant speed throughout a particle's lifetime.
|
|
44
|
+
* Movement direction is controlled by the particle's starting rotation.
|
|
45
|
+
*
|
|
46
|
+
* Example config:
|
|
47
|
+
* ```javascript
|
|
48
|
+
* {
|
|
49
|
+
* type: 'moveSpeedStatic',
|
|
50
|
+
* config: {
|
|
51
|
+
* min: 100,
|
|
52
|
+
* max: 150
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare class StaticSpeedBehavior implements IEmitterBehavior {
|
|
58
|
+
static type: string;
|
|
59
|
+
static editorConfig: BehaviorEditorConfig;
|
|
60
|
+
order: BehaviorOrder;
|
|
61
|
+
private min;
|
|
62
|
+
private max;
|
|
63
|
+
constructor(config: {
|
|
64
|
+
/**
|
|
65
|
+
* Minimum speed when initializing the particle.
|
|
66
|
+
*/
|
|
67
|
+
min: number;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum speed when initializing the particle.
|
|
70
|
+
*/
|
|
71
|
+
max: number;
|
|
72
|
+
});
|
|
73
|
+
initParticles(first: Particle): void;
|
|
74
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=SpeedMovement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeedMovement.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/SpeedMovement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAc,YAAW,gBAAgB;IAClD,OAAc,IAAI,SAAe;IACjC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAsB;IAClC,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,OAAO,CAAS;gBACZ,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACnB;IAMD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAoBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAS7D;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;IACxD,OAAc,IAAI,SAAqB;IACvC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAsB;IAClC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,GAAG,CAAS;gBACR,MAAM,EAAE;QAChB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACf;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAmBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAM7D"}
|