pixi-reels 0.0.0-dependabot-github-actions-github-codeql-action-4-35-4-20260514194131
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/CHANGELOG.md +260 -0
- package/CONTRIBUTING.md +85 -0
- package/LICENSE +28 -0
- package/README.md +168 -0
- package/dist/SpineSymbol-CfVrc5Pk.js +88 -0
- package/dist/SpineSymbol-CfVrc5Pk.js.map +1 -0
- package/dist/SpineSymbol-JA5PdEbT.cjs +2 -0
- package/dist/SpineSymbol-JA5PdEbT.cjs.map +1 -0
- package/dist/cascade/CascadeAnticipationPhase.d.ts +23 -0
- package/dist/cascade/CascadeAnticipationPhase.d.ts.map +1 -0
- package/dist/cascade/DropRecipes.d.ts +40 -0
- package/dist/cascade/DropRecipes.d.ts.map +1 -0
- package/dist/config/SpeedPresets.d.ts +49 -0
- package/dist/config/SpeedPresets.d.ts.map +1 -0
- package/dist/config/defaults.d.ts +12 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/types.d.ts +296 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/core/Reel.d.ts +339 -0
- package/dist/core/Reel.d.ts.map +1 -0
- package/dist/core/ReelMotion.d.ts +51 -0
- package/dist/core/ReelMotion.d.ts.map +1 -0
- package/dist/core/ReelSet.d.ts +509 -0
- package/dist/core/ReelSet.d.ts.map +1 -0
- package/dist/core/ReelSetBuilder.d.ts +282 -0
- package/dist/core/ReelSetBuilder.d.ts.map +1 -0
- package/dist/core/ReelViewport.d.ts +129 -0
- package/dist/core/ReelViewport.d.ts.map +1 -0
- package/dist/core/StopSequencer.d.ts +26 -0
- package/dist/core/StopSequencer.d.ts.map +1 -0
- package/dist/debug/debug.d.ts +129 -0
- package/dist/debug/debug.d.ts.map +1 -0
- package/dist/events/EventEmitter.d.ts +25 -0
- package/dist/events/EventEmitter.d.ts.map +1 -0
- package/dist/events/ReelEvents.d.ts +125 -0
- package/dist/events/ReelEvents.d.ts.map +1 -0
- package/dist/frame/ColumnTarget.d.ts +77 -0
- package/dist/frame/ColumnTarget.d.ts.map +1 -0
- package/dist/frame/FrameBuilder.d.ts +51 -0
- package/dist/frame/FrameBuilder.d.ts.map +1 -0
- package/dist/frame/OffsetCalculator.d.ts +19 -0
- package/dist/frame/OffsetCalculator.d.ts.map +1 -0
- package/dist/frame/RandomSymbolProvider.d.ts +27 -0
- package/dist/frame/RandomSymbolProvider.d.ts.map +1 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2571 -0
- package/dist/index.js.map +1 -0
- package/dist/pins/CellPin.d.ts +140 -0
- package/dist/pins/CellPin.d.ts.map +1 -0
- package/dist/pool/ObjectPool.d.ts +36 -0
- package/dist/pool/ObjectPool.d.ts.map +1 -0
- package/dist/speed/SpeedManager.d.ts +38 -0
- package/dist/speed/SpeedManager.d.ts.map +1 -0
- package/dist/spin/SpinController.d.ts +183 -0
- package/dist/spin/SpinController.d.ts.map +1 -0
- package/dist/spin/modes/CascadeMode.d.ts +16 -0
- package/dist/spin/modes/CascadeMode.d.ts.map +1 -0
- package/dist/spin/modes/ImmediateMode.d.ts +10 -0
- package/dist/spin/modes/ImmediateMode.d.ts.map +1 -0
- package/dist/spin/modes/SpinningMode.d.ts +18 -0
- package/dist/spin/modes/SpinningMode.d.ts.map +1 -0
- package/dist/spin/modes/StandardMode.d.ts +10 -0
- package/dist/spin/modes/StandardMode.d.ts.map +1 -0
- package/dist/spin/phases/AdjustPhase.d.ts +73 -0
- package/dist/spin/phases/AdjustPhase.d.ts.map +1 -0
- package/dist/spin/phases/AnticipationPhase.d.ts +24 -0
- package/dist/spin/phases/AnticipationPhase.d.ts.map +1 -0
- package/dist/spin/phases/DropStartPhase.d.ts +21 -0
- package/dist/spin/phases/DropStartPhase.d.ts.map +1 -0
- package/dist/spin/phases/DropStopPhase.d.ts +44 -0
- package/dist/spin/phases/DropStopPhase.d.ts.map +1 -0
- package/dist/spin/phases/PhaseFactory.d.ts +32 -0
- package/dist/spin/phases/PhaseFactory.d.ts.map +1 -0
- package/dist/spin/phases/ReelPhase.d.ts +39 -0
- package/dist/spin/phases/ReelPhase.d.ts.map +1 -0
- package/dist/spin/phases/SpinPhase.d.ts +25 -0
- package/dist/spin/phases/SpinPhase.d.ts.map +1 -0
- package/dist/spin/phases/StartPhase.d.ts +26 -0
- package/dist/spin/phases/StartPhase.d.ts.map +1 -0
- package/dist/spin/phases/StopPhase.d.ts +37 -0
- package/dist/spin/phases/StopPhase.d.ts.map +1 -0
- package/dist/spine/SpineReelSymbol.d.ts +130 -0
- package/dist/spine/SpineReelSymbol.d.ts.map +1 -0
- package/dist/spine/index.d.ts +5 -0
- package/dist/spine/index.d.ts.map +1 -0
- package/dist/spine.cjs +2 -0
- package/dist/spine.cjs.map +1 -0
- package/dist/spine.js +123 -0
- package/dist/spine.js.map +1 -0
- package/dist/spotlight/SymbolSpotlight.d.ts +70 -0
- package/dist/spotlight/SymbolSpotlight.d.ts.map +1 -0
- package/dist/symbols/AnimatedSpriteSymbol.d.ts +30 -0
- package/dist/symbols/AnimatedSpriteSymbol.d.ts.map +1 -0
- package/dist/symbols/ReelSymbol.d.ts +86 -0
- package/dist/symbols/ReelSymbol.d.ts.map +1 -0
- package/dist/symbols/SpineSymbol.d.ts +34 -0
- package/dist/symbols/SpineSymbol.d.ts.map +1 -0
- package/dist/symbols/SpriteSymbol.d.ts +29 -0
- package/dist/symbols/SpriteSymbol.d.ts.map +1 -0
- package/dist/symbols/SymbolFactory.d.ts +20 -0
- package/dist/symbols/SymbolFactory.d.ts.map +1 -0
- package/dist/symbols/SymbolRegistry.d.ts +25 -0
- package/dist/symbols/SymbolRegistry.d.ts.map +1 -0
- package/dist/testing/FakeTicker.d.ts +45 -0
- package/dist/testing/FakeTicker.d.ts.map +1 -0
- package/dist/testing/HeadlessSymbol.d.ts +28 -0
- package/dist/testing/HeadlessSymbol.d.ts.map +1 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/testHarness.d.ts +97 -0
- package/dist/testing/testHarness.d.ts.map +1 -0
- package/dist/utils/Disposable.d.ts +10 -0
- package/dist/utils/Disposable.d.ts.map +1 -0
- package/dist/utils/TickerRef.d.ts +30 -0
- package/dist/utils/TickerRef.d.ts.map +1 -0
- package/dist/utils/gsapRef.d.ts +14 -0
- package/dist/utils/gsapRef.d.ts.map +1 -0
- package/dist/wins/Win.d.ts +7 -0
- package/dist/wins/Win.d.ts.map +1 -0
- package/dist/wins/WinPresenter.d.ts +100 -0
- package/dist/wins/WinPresenter.d.ts.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpineSymbol-CfVrc5Pk.js","names":[],"sources":["../src/symbols/ReelSymbol.ts","../src/symbols/SpineSymbol.ts"],"sourcesContent":["import { Container } from 'pixi.js';\nimport type { Disposable } from '../utils/Disposable.js';\n\n/**\n * One visible cell on a reel — the thing that actually draws.\n *\n * `ReelSymbol` is the abstract base class. Subclass it to pick a rendering\n * technology (`SpriteSymbol`, `AnimatedSpriteSymbol`, `SpineSymbol`, or a\n * custom class of your own). The reel set pools instances aggressively:\n * one instance is reused many times as it scrolls off one identity and on\n * to another, so implementations must never assume \"I was just created\".\n *\n * Required lifecycle hooks:\n *\n * - `onActivate(symbolId)` — the pool just handed me a new identity. Swap\n * texture, restart animations, bring myself out of any \"ended\" pose.\n * - `onDeactivate()` — I am about to be pooled. Pause animations, clear\n * listeners, leave myself in a clean state for the next activation.\n * - `playWin()` — the spotlight is celebrating me. Return a promise that\n * resolves when the one-shot animation is done.\n * - `stopAnimation()` — spotlight is over, return to idle.\n * - `resize(w, h)` — the reel's cell size changed (on every symbol swap).\n * Store the dimensions and reposition internal children. Forgetting\n * this is the single most common \"why do my symbols scatter\" bug.\n *\n * ```\n * create → activate(symbolId) → [playWin / stopAnimation]\n * → deactivate\n * → activate(newId) → ...\n * ```\n *\n * There's no hidden GC. Hold resources? Override `onDestroy()`.\n */\nexport abstract class ReelSymbol implements Disposable {\n /** The PixiJS container that holds this symbol's visual. */\n public readonly view: Container;\n\n private _symbolId: string = '';\n private _isDestroyed = false;\n\n constructor() {\n this.view = new Container();\n }\n\n get symbolId(): string {\n return this._symbolId;\n }\n\n get isDestroyed(): boolean {\n return this._isDestroyed;\n }\n\n /**\n * Activate the symbol with a new identity. Called when the symbol enters\n * the visible reel or is recycled from the pool. Resets container\n * transform / filter state for parity with deactivate().\n */\n activate(symbolId: string): void {\n this._symbolId = symbolId;\n this.view.visible = true;\n this.view.alpha = 1;\n this.view.scale.set(1, 1);\n this.view.rotation = 0;\n this.view.filters = null;\n this.view.zIndex = 0;\n this.onActivate(symbolId);\n }\n\n /**\n * Deactivate the symbol before returning it to the pool. Stops\n * animations, hides the view, and resets container transform / filter\n * state so subclass decorations don't leak across recycles.\n */\n deactivate(): void {\n this.stopAnimation();\n this.onDeactivate();\n this._symbolId = '';\n this.view.visible = false;\n this.view.alpha = 1;\n this.view.scale.set(1, 1);\n this.view.rotation = 0;\n this.view.filters = null;\n this.view.zIndex = 0;\n }\n\n /** Pool reset — aliases deactivate. */\n reset(): void {\n this.deactivate();\n }\n\n destroy(): void {\n if (this._isDestroyed) return;\n this.stopAnimation();\n this.onDeactivate();\n this.onDestroy();\n if (!this.view.destroyed) this.view.destroy({ children: true });\n this._isDestroyed = true;\n }\n\n /** Subclass hook: set up visuals for the given symbolId. */\n protected abstract onActivate(symbolId: string): void;\n\n /** Subclass hook: clean up visuals. */\n protected abstract onDeactivate(): void;\n\n /** Subclass hook: additional cleanup on destroy. */\n protected onDestroy(): void {\n // Override if needed\n }\n\n /** Play the win/highlight animation for this symbol. Resolves when complete. */\n abstract playWin(): Promise<void>;\n\n /** Immediately stop any running animation and return to idle. */\n abstract stopAnimation(): void;\n\n /** Resize the symbol's visual to fit the given dimensions. */\n abstract resize(width: number, height: number): void;\n\n /**\n * Lifecycle hook: the owning reel has started spinning.\n * Default: no-op. Override (e.g. SpineReelSymbol.autoPlayBlur) to swap to\n * a blur animation automatically.\n */\n onReelSpinStart(): void {}\n\n /**\n * Lifecycle hook: the owning reel is about to stop (just before bounce).\n * Default: no-op.\n */\n onReelSpinEnd(): void {}\n\n /**\n * Lifecycle hook: the owning reel has landed on its final symbols.\n * Default: no-op. Override (e.g. SpineReelSymbol.autoPlayLanding) to fire\n * a landing animation concurrently with the bounce.\n */\n onReelLanded(): void {}\n}\n","import { ReelSymbol } from './ReelSymbol.js';\n\n// Spine types imported dynamically — this is an optional peer dependency\nlet SpineClass: any = null;\n\nasync function loadSpine(): Promise<void> {\n try {\n const spineModule = await import('@esotericsoftware/spine-pixi-v8');\n SpineClass = spineModule.Spine;\n } catch {\n // Spine not available — SpineSymbol will throw on construction\n }\n}\n\n// Attempt to load Spine on module init\nloadSpine();\n\nexport interface SpineSymbolOptions {\n /** Map of symbolId → SkeletonData. */\n skeletonDataMap: Record<string, any>;\n /** Default animation name to play in idle. Default: 'idle'. */\n idleAnimation?: string;\n /** Animation name to play on win. Default: 'win'. */\n winAnimation?: string;\n /** Default skin name. Default: 'default'. */\n defaultSkin?: string;\n}\n\n/**\n * Symbol implementation using Spine 2D skeletal animation.\n *\n * Requires `@esotericsoftware/spine-pixi-v8` as an optional peer dependency.\n * If Spine is not installed, constructing a SpineSymbol will throw.\n */\nexport class SpineSymbol extends ReelSymbol {\n private _spine: any = null;\n private _skeletonDataMap: Record<string, any>;\n private _idleAnimation: string;\n private _winAnimation: string;\n private _defaultSkin: string;\n private _winResolve: (() => void) | null = null;\n private _currentSkeletonKey: string = '';\n\n constructor(options: SpineSymbolOptions) {\n super();\n if (!SpineClass) {\n throw new Error(\n 'SpineSymbol requires @esotericsoftware/spine-pixi-v8 to be installed. ' +\n 'Install it with: npm install @esotericsoftware/spine-pixi-v8',\n );\n }\n this._skeletonDataMap = options.skeletonDataMap;\n this._idleAnimation = options.idleAnimation ?? 'idle';\n this._winAnimation = options.winAnimation ?? 'win';\n this._defaultSkin = options.defaultSkin ?? 'default';\n }\n\n protected onActivate(symbolId: string): void {\n const skeletonData = this._skeletonDataMap[symbolId];\n if (!skeletonData) return;\n\n // Reuse existing spine if same skeleton data\n if (this._currentSkeletonKey !== symbolId) {\n if (this._spine) {\n this.view.removeChild(this._spine);\n this._spine.destroy();\n }\n this._spine = new SpineClass({ skeletonData });\n this.view.addChild(this._spine);\n this._currentSkeletonKey = symbolId;\n }\n\n // Set to idle\n if (this._spine.skeleton.data.findSkin(this._defaultSkin)) {\n this._spine.skeleton.setSkinByName(this._defaultSkin);\n this._spine.skeleton.setSlotsToSetupPose();\n }\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n }\n\n protected onDeactivate(): void {\n if (this._spine) {\n this._spine.state.clearListeners();\n this._spine.state.clearTracks();\n }\n // Settle any pending playWin so awaiters don't hang when the symbol is\n // recycled mid-animation. Mirrors the same fix in SpineReelSymbol.\n if (this._winResolve) {\n const r = this._winResolve;\n this._winResolve = null;\n r();\n }\n }\n\n async playWin(): Promise<void> {\n if (!this._spine) return;\n if (!this._spine.skeleton.data.findAnimation(this._winAnimation)) return;\n\n return new Promise<void>((resolve) => {\n this._winResolve = resolve;\n const entry = this._spine.state.setAnimation(0, this._winAnimation, false);\n this._spine.state.addListener({\n complete: (trackEntry: any) => {\n if (trackEntry === entry) {\n this._spine.state.clearListeners();\n // Return to idle\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n this._winResolve = null;\n resolve();\n }\n },\n });\n });\n }\n\n stopAnimation(): void {\n if (!this._spine) return;\n this._spine.state.clearListeners();\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n if (this._winResolve) {\n this._winResolve();\n this._winResolve = null;\n }\n }\n\n resize(width: number, height: number): void {\n if (!this._spine) return;\n const bounds = this._spine.getBounds();\n if (bounds.width > 0 && bounds.height > 0) {\n this._spine.scale.set(\n width / bounds.width,\n height / bounds.height,\n );\n }\n }\n\n protected override onDestroy(): void {\n if (this._spine) {\n this._spine.state.clearListeners();\n this._spine.destroy();\n this._spine = null;\n }\n if (this._winResolve) {\n const r = this._winResolve;\n this._winResolve = null;\n r();\n }\n }\n}\n"],"mappings":";;AAiCA,IAAsB,IAAtB,MAAuD;CAErD;CAEA,YAA4B;CAC5B,eAAuB;CAEvB,cAAc;AACZ,OAAK,OAAO,IAAI,GAAW;;CAG7B,IAAI,WAAmB;AACrB,SAAO,KAAK;;CAGd,IAAI,cAAuB;AACzB,SAAO,KAAK;;CAQd,SAAS,GAAwB;AAQ/B,EAPA,KAAK,YAAY,GACjB,KAAK,KAAK,UAAU,IACpB,KAAK,KAAK,QAAQ,GAClB,KAAK,KAAK,MAAM,IAAI,GAAG,EAAE,EACzB,KAAK,KAAK,WAAW,GACrB,KAAK,KAAK,UAAU,MACpB,KAAK,KAAK,SAAS,GACnB,KAAK,WAAW,EAAS;;CAQ3B,aAAmB;AASjB,EARA,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,IACjB,KAAK,KAAK,UAAU,IACpB,KAAK,KAAK,QAAQ,GAClB,KAAK,KAAK,MAAM,IAAI,GAAG,EAAE,EACzB,KAAK,KAAK,WAAW,GACrB,KAAK,KAAK,UAAU,MACpB,KAAK,KAAK,SAAS;;CAIrB,QAAc;AACZ,OAAK,YAAY;;CAGnB,UAAgB;AACV,EAKJ,KAAK,kBAJL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,WAAW,EACX,KAAK,KAAK,aAAW,KAAK,KAAK,QAAQ,EAAE,UAAU,IAAM,CAAC,EAC3C;;CAUtB,YAA4B;CAkB5B,kBAAwB;CAMxB,gBAAsB;CAOtB,eAAqB;GCtInB,IAAkB;AAEtB,eAAe,IAA2B;AACxC,KAAI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AK,OAAO,MAAM,YAAY,EAC5B,WAAW,MAAoB;AAC7B,IAAI,MAAe,MACjB,KAAK,OAAO,MAAM,gBAAgB,EAE9B,KAAK,OAAO,SAAS,KAAK,cAAc,KAAK,eAAe,IAC9D,KAAK,OAAO,MAAM,aAAa,GAAG,KAAK,gBAAgB,GAAK,EAE9D,KAAK,cAAc,MACnB,GAAS;MAGd,CAAC;IACF;;CAGJ,gBAAsB;AACf,OAAK,WACV,KAAK,OAAO,MAAM,gBAAgB,EAC9B,KAAK,OAAO,SAAS,KAAK,cAAc,KAAK,eAAe,IAC9D,KAAK,OAAO,MAAM,aAAa,GAAG,KAAK,gBAAgB,GAAK,EAE9D,AAEE,KAAK,iBADL,KAAK,aAAa,EACC;;CAIvB,OAAO,GAAe,GAAsB;AAC1C,MAAI,CAAC,KAAK,OAAQ;EAClB,IAAM,IAAS,KAAK,OAAO,WAAW;AACtC,EAAI,EAAO,QAAQ,KAAK,EAAO,SAAS,KACtC,KAAK,OAAO,MAAM,IAChB,IAAQ,EAAO,OACf,IAAS,EAAO,OACjB;;CAIL,YAAqC;AAMnC,MALA,AAGE,KAAK,YAFL,KAAK,OAAO,MAAM,gBAAgB,EAClC,KAAK,OAAO,SAAS,EACP,OAEZ,KAAK,aAAa;GACpB,IAAM,IAAI,KAAK;AAEf,GADA,KAAK,cAAc,MACnB,GAAG"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require(`pixi.js`);var t=class{view;_symbolId=``;_isDestroyed=!1;constructor(){this.view=new e.Container}get symbolId(){return this._symbolId}get isDestroyed(){return this._isDestroyed}activate(e){this._symbolId=e,this.view.visible=!0,this.view.alpha=1,this.view.scale.set(1,1),this.view.rotation=0,this.view.filters=null,this.view.zIndex=0,this.onActivate(e)}deactivate(){this.stopAnimation(),this.onDeactivate(),this._symbolId=``,this.view.visible=!1,this.view.alpha=1,this.view.scale.set(1,1),this.view.rotation=0,this.view.filters=null,this.view.zIndex=0}reset(){this.deactivate()}destroy(){this._isDestroyed||=(this.stopAnimation(),this.onDeactivate(),this.onDestroy(),this.view.destroyed||this.view.destroy({children:!0}),!0)}onDestroy(){}onReelSpinStart(){}onReelSpinEnd(){}onReelLanded(){}},n=null;async function r(){try{n=(await import(`@esotericsoftware/spine-pixi-v8`)).Spine}catch{}}r();var i=class extends t{_spine=null;_skeletonDataMap;_idleAnimation;_winAnimation;_defaultSkin;_winResolve=null;_currentSkeletonKey=``;constructor(e){if(super(),!n)throw Error(`SpineSymbol requires @esotericsoftware/spine-pixi-v8 to be installed. Install it with: npm install @esotericsoftware/spine-pixi-v8`);this._skeletonDataMap=e.skeletonDataMap,this._idleAnimation=e.idleAnimation??`idle`,this._winAnimation=e.winAnimation??`win`,this._defaultSkin=e.defaultSkin??`default`}onActivate(e){let t=this._skeletonDataMap[e];t&&(this._currentSkeletonKey!==e&&(this._spine&&(this.view.removeChild(this._spine),this._spine.destroy()),this._spine=new n({skeletonData:t}),this.view.addChild(this._spine),this._currentSkeletonKey=e),this._spine.skeleton.data.findSkin(this._defaultSkin)&&(this._spine.skeleton.setSkinByName(this._defaultSkin),this._spine.skeleton.setSlotsToSetupPose()),this._spine.skeleton.data.findAnimation(this._idleAnimation)&&this._spine.state.setAnimation(0,this._idleAnimation,!0))}onDeactivate(){if(this._spine&&(this._spine.state.clearListeners(),this._spine.state.clearTracks()),this._winResolve){let e=this._winResolve;this._winResolve=null,e()}}async playWin(){if(this._spine&&this._spine.skeleton.data.findAnimation(this._winAnimation))return new Promise(e=>{this._winResolve=e;let t=this._spine.state.setAnimation(0,this._winAnimation,!1);this._spine.state.addListener({complete:n=>{n===t&&(this._spine.state.clearListeners(),this._spine.skeleton.data.findAnimation(this._idleAnimation)&&this._spine.state.setAnimation(0,this._idleAnimation,!0),this._winResolve=null,e())}})})}stopAnimation(){this._spine&&(this._spine.state.clearListeners(),this._spine.skeleton.data.findAnimation(this._idleAnimation)&&this._spine.state.setAnimation(0,this._idleAnimation,!0),this._winResolve&&=(this._winResolve(),null))}resize(e,t){if(!this._spine)return;let n=this._spine.getBounds();n.width>0&&n.height>0&&this._spine.scale.set(e/n.width,t/n.height)}onDestroy(){if(this._spine&&=(this._spine.state.clearListeners(),this._spine.destroy(),null),this._winResolve){let e=this._winResolve;this._winResolve=null,e()}}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
2
|
+
//# sourceMappingURL=SpineSymbol-JA5PdEbT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpineSymbol-JA5PdEbT.cjs","names":[],"sources":["../src/symbols/ReelSymbol.ts","../src/symbols/SpineSymbol.ts"],"sourcesContent":["import { Container } from 'pixi.js';\nimport type { Disposable } from '../utils/Disposable.js';\n\n/**\n * One visible cell on a reel — the thing that actually draws.\n *\n * `ReelSymbol` is the abstract base class. Subclass it to pick a rendering\n * technology (`SpriteSymbol`, `AnimatedSpriteSymbol`, `SpineSymbol`, or a\n * custom class of your own). The reel set pools instances aggressively:\n * one instance is reused many times as it scrolls off one identity and on\n * to another, so implementations must never assume \"I was just created\".\n *\n * Required lifecycle hooks:\n *\n * - `onActivate(symbolId)` — the pool just handed me a new identity. Swap\n * texture, restart animations, bring myself out of any \"ended\" pose.\n * - `onDeactivate()` — I am about to be pooled. Pause animations, clear\n * listeners, leave myself in a clean state for the next activation.\n * - `playWin()` — the spotlight is celebrating me. Return a promise that\n * resolves when the one-shot animation is done.\n * - `stopAnimation()` — spotlight is over, return to idle.\n * - `resize(w, h)` — the reel's cell size changed (on every symbol swap).\n * Store the dimensions and reposition internal children. Forgetting\n * this is the single most common \"why do my symbols scatter\" bug.\n *\n * ```\n * create → activate(symbolId) → [playWin / stopAnimation]\n * → deactivate\n * → activate(newId) → ...\n * ```\n *\n * There's no hidden GC. Hold resources? Override `onDestroy()`.\n */\nexport abstract class ReelSymbol implements Disposable {\n /** The PixiJS container that holds this symbol's visual. */\n public readonly view: Container;\n\n private _symbolId: string = '';\n private _isDestroyed = false;\n\n constructor() {\n this.view = new Container();\n }\n\n get symbolId(): string {\n return this._symbolId;\n }\n\n get isDestroyed(): boolean {\n return this._isDestroyed;\n }\n\n /**\n * Activate the symbol with a new identity. Called when the symbol enters\n * the visible reel or is recycled from the pool. Resets container\n * transform / filter state for parity with deactivate().\n */\n activate(symbolId: string): void {\n this._symbolId = symbolId;\n this.view.visible = true;\n this.view.alpha = 1;\n this.view.scale.set(1, 1);\n this.view.rotation = 0;\n this.view.filters = null;\n this.view.zIndex = 0;\n this.onActivate(symbolId);\n }\n\n /**\n * Deactivate the symbol before returning it to the pool. Stops\n * animations, hides the view, and resets container transform / filter\n * state so subclass decorations don't leak across recycles.\n */\n deactivate(): void {\n this.stopAnimation();\n this.onDeactivate();\n this._symbolId = '';\n this.view.visible = false;\n this.view.alpha = 1;\n this.view.scale.set(1, 1);\n this.view.rotation = 0;\n this.view.filters = null;\n this.view.zIndex = 0;\n }\n\n /** Pool reset — aliases deactivate. */\n reset(): void {\n this.deactivate();\n }\n\n destroy(): void {\n if (this._isDestroyed) return;\n this.stopAnimation();\n this.onDeactivate();\n this.onDestroy();\n if (!this.view.destroyed) this.view.destroy({ children: true });\n this._isDestroyed = true;\n }\n\n /** Subclass hook: set up visuals for the given symbolId. */\n protected abstract onActivate(symbolId: string): void;\n\n /** Subclass hook: clean up visuals. */\n protected abstract onDeactivate(): void;\n\n /** Subclass hook: additional cleanup on destroy. */\n protected onDestroy(): void {\n // Override if needed\n }\n\n /** Play the win/highlight animation for this symbol. Resolves when complete. */\n abstract playWin(): Promise<void>;\n\n /** Immediately stop any running animation and return to idle. */\n abstract stopAnimation(): void;\n\n /** Resize the symbol's visual to fit the given dimensions. */\n abstract resize(width: number, height: number): void;\n\n /**\n * Lifecycle hook: the owning reel has started spinning.\n * Default: no-op. Override (e.g. SpineReelSymbol.autoPlayBlur) to swap to\n * a blur animation automatically.\n */\n onReelSpinStart(): void {}\n\n /**\n * Lifecycle hook: the owning reel is about to stop (just before bounce).\n * Default: no-op.\n */\n onReelSpinEnd(): void {}\n\n /**\n * Lifecycle hook: the owning reel has landed on its final symbols.\n * Default: no-op. Override (e.g. SpineReelSymbol.autoPlayLanding) to fire\n * a landing animation concurrently with the bounce.\n */\n onReelLanded(): void {}\n}\n","import { ReelSymbol } from './ReelSymbol.js';\n\n// Spine types imported dynamically — this is an optional peer dependency\nlet SpineClass: any = null;\n\nasync function loadSpine(): Promise<void> {\n try {\n const spineModule = await import('@esotericsoftware/spine-pixi-v8');\n SpineClass = spineModule.Spine;\n } catch {\n // Spine not available — SpineSymbol will throw on construction\n }\n}\n\n// Attempt to load Spine on module init\nloadSpine();\n\nexport interface SpineSymbolOptions {\n /** Map of symbolId → SkeletonData. */\n skeletonDataMap: Record<string, any>;\n /** Default animation name to play in idle. Default: 'idle'. */\n idleAnimation?: string;\n /** Animation name to play on win. Default: 'win'. */\n winAnimation?: string;\n /** Default skin name. Default: 'default'. */\n defaultSkin?: string;\n}\n\n/**\n * Symbol implementation using Spine 2D skeletal animation.\n *\n * Requires `@esotericsoftware/spine-pixi-v8` as an optional peer dependency.\n * If Spine is not installed, constructing a SpineSymbol will throw.\n */\nexport class SpineSymbol extends ReelSymbol {\n private _spine: any = null;\n private _skeletonDataMap: Record<string, any>;\n private _idleAnimation: string;\n private _winAnimation: string;\n private _defaultSkin: string;\n private _winResolve: (() => void) | null = null;\n private _currentSkeletonKey: string = '';\n\n constructor(options: SpineSymbolOptions) {\n super();\n if (!SpineClass) {\n throw new Error(\n 'SpineSymbol requires @esotericsoftware/spine-pixi-v8 to be installed. ' +\n 'Install it with: npm install @esotericsoftware/spine-pixi-v8',\n );\n }\n this._skeletonDataMap = options.skeletonDataMap;\n this._idleAnimation = options.idleAnimation ?? 'idle';\n this._winAnimation = options.winAnimation ?? 'win';\n this._defaultSkin = options.defaultSkin ?? 'default';\n }\n\n protected onActivate(symbolId: string): void {\n const skeletonData = this._skeletonDataMap[symbolId];\n if (!skeletonData) return;\n\n // Reuse existing spine if same skeleton data\n if (this._currentSkeletonKey !== symbolId) {\n if (this._spine) {\n this.view.removeChild(this._spine);\n this._spine.destroy();\n }\n this._spine = new SpineClass({ skeletonData });\n this.view.addChild(this._spine);\n this._currentSkeletonKey = symbolId;\n }\n\n // Set to idle\n if (this._spine.skeleton.data.findSkin(this._defaultSkin)) {\n this._spine.skeleton.setSkinByName(this._defaultSkin);\n this._spine.skeleton.setSlotsToSetupPose();\n }\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n }\n\n protected onDeactivate(): void {\n if (this._spine) {\n this._spine.state.clearListeners();\n this._spine.state.clearTracks();\n }\n // Settle any pending playWin so awaiters don't hang when the symbol is\n // recycled mid-animation. Mirrors the same fix in SpineReelSymbol.\n if (this._winResolve) {\n const r = this._winResolve;\n this._winResolve = null;\n r();\n }\n }\n\n async playWin(): Promise<void> {\n if (!this._spine) return;\n if (!this._spine.skeleton.data.findAnimation(this._winAnimation)) return;\n\n return new Promise<void>((resolve) => {\n this._winResolve = resolve;\n const entry = this._spine.state.setAnimation(0, this._winAnimation, false);\n this._spine.state.addListener({\n complete: (trackEntry: any) => {\n if (trackEntry === entry) {\n this._spine.state.clearListeners();\n // Return to idle\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n this._winResolve = null;\n resolve();\n }\n },\n });\n });\n }\n\n stopAnimation(): void {\n if (!this._spine) return;\n this._spine.state.clearListeners();\n if (this._spine.skeleton.data.findAnimation(this._idleAnimation)) {\n this._spine.state.setAnimation(0, this._idleAnimation, true);\n }\n if (this._winResolve) {\n this._winResolve();\n this._winResolve = null;\n }\n }\n\n resize(width: number, height: number): void {\n if (!this._spine) return;\n const bounds = this._spine.getBounds();\n if (bounds.width > 0 && bounds.height > 0) {\n this._spine.scale.set(\n width / bounds.width,\n height / bounds.height,\n );\n }\n }\n\n protected override onDestroy(): void {\n if (this._spine) {\n this._spine.state.clearListeners();\n this._spine.destroy();\n this._spine = null;\n }\n if (this._winResolve) {\n const r = this._winResolve;\n this._winResolve = null;\n r();\n }\n }\n}\n"],"mappings":"yBAiCA,IAAsB,EAAtB,KAAuD,CAErD,KAEA,UAA4B,GAC5B,aAAuB,GAEvB,aAAc,CACZ,KAAK,KAAO,IAAI,EAAA,UAGlB,IAAI,UAAmB,CACrB,OAAO,KAAK,UAGd,IAAI,aAAuB,CACzB,OAAO,KAAK,aAQd,SAAS,EAAwB,CAC/B,KAAK,UAAY,EACjB,KAAK,KAAK,QAAU,GACpB,KAAK,KAAK,MAAQ,EAClB,KAAK,KAAK,MAAM,IAAI,EAAG,EAAE,CACzB,KAAK,KAAK,SAAW,EACrB,KAAK,KAAK,QAAU,KACpB,KAAK,KAAK,OAAS,EACnB,KAAK,WAAW,EAAS,CAQ3B,YAAmB,CACjB,KAAK,eAAe,CACpB,KAAK,cAAc,CACnB,KAAK,UAAY,GACjB,KAAK,KAAK,QAAU,GACpB,KAAK,KAAK,MAAQ,EAClB,KAAK,KAAK,MAAM,IAAI,EAAG,EAAE,CACzB,KAAK,KAAK,SAAW,EACrB,KAAK,KAAK,QAAU,KACpB,KAAK,KAAK,OAAS,EAIrB,OAAc,CACZ,KAAK,YAAY,CAGnB,SAAgB,CACV,AAKJ,KAAK,gBAJL,KAAK,eAAe,CACpB,KAAK,cAAc,CACnB,KAAK,WAAW,CACX,KAAK,KAAK,WAAW,KAAK,KAAK,QAAQ,CAAE,SAAU,GAAM,CAAC,CAC3C,IAUtB,WAA4B,EAkB5B,iBAAwB,EAMxB,eAAsB,EAOtB,cAAqB,ICtInB,EAAkB,KAEtB,eAAe,GAA2B,CACxC,GAAI,CAEF,GADoB,MAAM,OAAO,oCACR,WACnB,GAMV,GAAW,CAmBX,IAAa,EAAb,cAAiC,CAAW,CAC1C,OAAsB,KACtB,iBACA,eACA,cACA,aACA,YAA2C,KAC3C,oBAAsC,GAEtC,YAAY,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gB,GAAK,CAE9D,KAAK,YAAc,KACnB,GAAS,GAGd,CAAC,EACF,CAGJ,eAAsB,CACf,KAAK,SACV,KAAK,OAAO,MAAM,gBAAgB,CAC9B,KAAK,OAAO,SAAS,KAAK,cAAc,KAAK,eAAe,EAC9D,KAAK,OAAO,MAAM,aAAa,EAAG,KAAK,eAAgB,GAAK,CAE9D,AAEE,KAAK,eADL,KAAK,aAAa,CACC,OAIvB,OAAO,EAAe,EAAsB,CAC1C,GAAI,CAAC,KAAK,OAAQ,OAClB,IAAM,EAAS,KAAK,OAAO,WAAW,CAClC,EAAO,MAAQ,GAAK,EAAO,OAAS,GACtC,KAAK,OAAO,MAAM,IAChB,EAAQ,EAAO,MACf,EAAS,EAAO,OACjB,CAIL,WAAqC,CAMnC,GALA,AAGE,KAAK,UAFL,KAAK,OAAO,MAAM,gBAAgB,CAClC,KAAK,OAAO,SAAS,CACP,MAEZ,KAAK,YAAa,CACpB,IAAM,EAAI,KAAK,YACf,KAAK,YAAc,KACnB,GAAG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReelPhase } from '../spin/phases/ReelPhase.js';
|
|
2
|
+
/**
|
|
3
|
+
* Anticipation phase for cascade drop-in mechanics.
|
|
4
|
+
*
|
|
5
|
+
* The default AnticipationPhase slows a spinning reel — useless when
|
|
6
|
+
* the reel is stationary. This phase shakes the column instead, giving
|
|
7
|
+
* the player a clear "something's about to drop here" signal.
|
|
8
|
+
*
|
|
9
|
+
* Register it to replace the default for cascade games:
|
|
10
|
+
* builder.phases(f => f.register('anticipation', CascadeAnticipationPhase))
|
|
11
|
+
*
|
|
12
|
+
* Duration is driven by speed.anticipationDelay (same as standard anticipation).
|
|
13
|
+
*/
|
|
14
|
+
export declare class CascadeAnticipationPhase extends ReelPhase<void> {
|
|
15
|
+
readonly name = "anticipation";
|
|
16
|
+
readonly skippable = true;
|
|
17
|
+
private _tween;
|
|
18
|
+
private _baseX;
|
|
19
|
+
protected onEnter(): void;
|
|
20
|
+
update(_deltaMs: number): void;
|
|
21
|
+
protected onSkip(): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=CascadeAnticipationPhase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CascadeAnticipationPhase.d.ts","sourceRoot":"","sources":["../../src/cascade/CascadeAnticipationPhase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAyB,SAAQ,SAAS,CAAC,IAAI,CAAC;IAC3D,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,SAAS,QAAQ;IAE1B,OAAO,CAAC,MAAM,CAAgC;IAC9C,OAAO,CAAC,MAAM,CAAK;IAEnB,SAAS,CAAC,OAAO,IAAI,IAAI;IA2BzB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAE9B,SAAS,CAAC,MAAM,IAAI,IAAI;CAKzB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for cascade drop-in behavior.
|
|
3
|
+
* Passed to ReelSetBuilder.cascade() to replace the default strip-spin mechanic.
|
|
4
|
+
*/
|
|
5
|
+
export interface CascadeDropConfig {
|
|
6
|
+
/** Stagger between rows dropping in (ms). 0 = all rows arrive simultaneously. Default: 0. */
|
|
7
|
+
rowDelay?: number;
|
|
8
|
+
/** Stagger between rows falling out (ms). 0 = all rows fall simultaneously. Default: 0. */
|
|
9
|
+
fallRowDelay?: number;
|
|
10
|
+
/** Distance symbols travel (px) — both falling out and dropping in. Default: auto (full column height). */
|
|
11
|
+
fromY?: number;
|
|
12
|
+
/** GSAP easing for the drop-in animation. Default: 'bounce.out'. */
|
|
13
|
+
easing?: string;
|
|
14
|
+
/** Duration of each symbol's drop-in animation (ms). 0 = instant. Default: 600. */
|
|
15
|
+
dropDuration?: number;
|
|
16
|
+
/** Duration of each symbol's fall-out animation (ms). 0 = skip fall. Default: 300. */
|
|
17
|
+
fallDuration?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Named presets for common cascade drop patterns.
|
|
21
|
+
*
|
|
22
|
+
* Pass one to ReelSetBuilder.cascade():
|
|
23
|
+
* builder.cascade(DropRecipes.cascadeDrop)
|
|
24
|
+
*
|
|
25
|
+
* Control reel order per-spin with reelSet.setDropOrder():
|
|
26
|
+
* reelSet.setDropOrder('ltr') // left-to-right stagger
|
|
27
|
+
* reelSet.setDropOrder('rtl') // right-to-left stagger
|
|
28
|
+
* reelSet.setDropOrder('all') // all columns simultaneously
|
|
29
|
+
*/
|
|
30
|
+
export declare const DropRecipes: {
|
|
31
|
+
/** Old symbols fall out, then new ones drop in row by row with bounce. Classic cascade feel. */
|
|
32
|
+
readonly cascadeDrop: CascadeDropConfig;
|
|
33
|
+
/** Stiff landing — no bounce. Symbols fall out then drop in cleanly with a hard stop. */
|
|
34
|
+
readonly stiffDrop: CascadeDropConfig;
|
|
35
|
+
/** Old symbols fall out, then all new symbols in a column drop simultaneously. Good for refills. */
|
|
36
|
+
readonly simultaneousDrop: CascadeDropConfig;
|
|
37
|
+
/** Instant placement — no fall, no drop animation. Equivalent to slam-stop. */
|
|
38
|
+
readonly slamDrop: CascadeDropConfig;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=DropRecipes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropRecipes.d.ts","sourceRoot":"","sources":["../../src/cascade/DropRecipes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW;IACtB,gGAAgG;0BACH,iBAAiB;IAE9G,yFAAyF;wBACE,iBAAiB;IAE5G,oGAAoG;+BACH,iBAAiB;IAElH,+EAA+E;uBAChB,iBAAiB;CACxE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in speed profiles covering common slot game needs.
|
|
3
|
+
*
|
|
4
|
+
* Bounce values are tuned for the typical 120–200px symbol range. For larger
|
|
5
|
+
* or smaller symbols, register a custom profile or override `bounceDistance`.
|
|
6
|
+
* `bounceDuration` is the total time for the two-leg bounce (down then back).
|
|
7
|
+
*/
|
|
8
|
+
export declare const SpeedPresets: {
|
|
9
|
+
readonly NORMAL: {
|
|
10
|
+
readonly name: "normal";
|
|
11
|
+
readonly spinDelay: 100;
|
|
12
|
+
readonly spinSpeed: 30;
|
|
13
|
+
readonly stopDelay: 140;
|
|
14
|
+
readonly anticipationDelay: 450;
|
|
15
|
+
readonly bounceDistance: 56;
|
|
16
|
+
readonly bounceDuration: 600;
|
|
17
|
+
readonly accelerationEase: "power2.in";
|
|
18
|
+
readonly decelerationEase: "power2.out";
|
|
19
|
+
readonly accelerationDuration: 300;
|
|
20
|
+
readonly minimumSpinTime: 500;
|
|
21
|
+
};
|
|
22
|
+
readonly TURBO: {
|
|
23
|
+
readonly name: "turbo";
|
|
24
|
+
readonly spinDelay: 30;
|
|
25
|
+
readonly spinSpeed: 50;
|
|
26
|
+
readonly stopDelay: 0;
|
|
27
|
+
readonly anticipationDelay: 250;
|
|
28
|
+
readonly bounceDistance: 42;
|
|
29
|
+
readonly bounceDuration: 200;
|
|
30
|
+
readonly accelerationEase: "power2.in";
|
|
31
|
+
readonly decelerationEase: "power2.out";
|
|
32
|
+
readonly accelerationDuration: 200;
|
|
33
|
+
readonly minimumSpinTime: 300;
|
|
34
|
+
};
|
|
35
|
+
readonly SUPER_TURBO: {
|
|
36
|
+
readonly name: "superTurbo";
|
|
37
|
+
readonly spinDelay: 0;
|
|
38
|
+
readonly spinSpeed: 80;
|
|
39
|
+
readonly stopDelay: 0;
|
|
40
|
+
readonly anticipationDelay: 0;
|
|
41
|
+
readonly bounceDistance: 14;
|
|
42
|
+
readonly bounceDuration: 120;
|
|
43
|
+
readonly accelerationEase: "power1.in";
|
|
44
|
+
readonly decelerationEase: "power1.out";
|
|
45
|
+
readonly accelerationDuration: 50;
|
|
46
|
+
readonly minimumSpinTime: 100;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=SpeedPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeedPresets.d.ts","sourceRoot":"","sources":["../../src/config/SpeedPresets.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Default values applied when not explicitly set by the builder. */
|
|
2
|
+
export declare const DEFAULTS: {
|
|
3
|
+
bufferSymbols: number;
|
|
4
|
+
symbolGap: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
initialSpeed: string;
|
|
9
|
+
maxPoolPerKey: number;
|
|
10
|
+
zIndexStep: number;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,QAAQ;mBACC,MAAM;;WACL,MAAM;WAAU,MAAM;;kBACjB,MAAM;mBACX,MAAM;gBACR,MAAM;CAC1B,CAAC"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Container, Ticker } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Options accepted by `reelSet.spin(options?)`. All fields are optional —
|
|
4
|
+
* passing nothing reproduces the legacy "every reel spins" behaviour.
|
|
5
|
+
*/
|
|
6
|
+
export interface SpinOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Phase chain selector for this spin.
|
|
9
|
+
* `'cascade'` requires `.cascade(...)` on the builder.
|
|
10
|
+
*/
|
|
11
|
+
mode?: 'standard' | 'cascade';
|
|
12
|
+
/**
|
|
13
|
+
* Reel indices to HOLD this spin. Held reels skip START / SPIN / STOP
|
|
14
|
+
* entirely and stay on whatever symbols they're currently showing.
|
|
15
|
+
* They count as already-landed for the `spin:allLanded` resolver — only
|
|
16
|
+
* non-held reels actually animate.
|
|
17
|
+
*
|
|
18
|
+
* Use cases:
|
|
19
|
+
* - Hold & Win respins (most reels held, one or two reroll)
|
|
20
|
+
* - Sticky / expanding wilds during a feature spin
|
|
21
|
+
* - Bonus respin where the trigger column stays in place
|
|
22
|
+
*
|
|
23
|
+
* Notes:
|
|
24
|
+
* - `setResult(grid)` still expects a full `reelCount`-length grid;
|
|
25
|
+
* entries at held indices are ignored. Pass anything (including
|
|
26
|
+
* the held reels' current visible rows) — the engine doesn't read
|
|
27
|
+
* held columns.
|
|
28
|
+
* - `setAnticipation([...])` silently filters held indices.
|
|
29
|
+
* - `setStopDelays([...])` entries at held indices are ignored.
|
|
30
|
+
* - The resolved `SpinResult.symbols` is the full visible grid AFTER
|
|
31
|
+
* the spin lands — held reels contribute their unchanged rows,
|
|
32
|
+
* non-held reels contribute their landed rows.
|
|
33
|
+
* - No `spin:reelLanded` / `spin:stopping` event fires for held reels.
|
|
34
|
+
* - Big-symbol blocks crossing held into non-held reels are not
|
|
35
|
+
* supported — the engine doesn't reposition or reshape held reels
|
|
36
|
+
* to accommodate them. Author results that keep big symbols inside
|
|
37
|
+
* a contiguous run of non-held reels.
|
|
38
|
+
* - Indices outside `[0, reelCount)` and duplicate entries are silently
|
|
39
|
+
* filtered.
|
|
40
|
+
*/
|
|
41
|
+
holdReels?: number[];
|
|
42
|
+
}
|
|
43
|
+
/** Timing and animation profile for a speed mode. */
|
|
44
|
+
export interface SpeedProfile {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/** Milliseconds between each reel starting to spin. */
|
|
47
|
+
readonly spinDelay: number;
|
|
48
|
+
/** Pixels per frame at full spin speed. */
|
|
49
|
+
readonly spinSpeed: number;
|
|
50
|
+
/** Milliseconds between each reel stopping. */
|
|
51
|
+
readonly stopDelay: number;
|
|
52
|
+
/** Milliseconds to hold anticipation phase. */
|
|
53
|
+
readonly anticipationDelay: number;
|
|
54
|
+
/** Pixels of overshoot when reel lands. */
|
|
55
|
+
readonly bounceDistance: number;
|
|
56
|
+
/** Milliseconds for bounce-back animation. */
|
|
57
|
+
readonly bounceDuration: number;
|
|
58
|
+
/** Optional GSAP ease string for acceleration. Default: 'power2.in'. */
|
|
59
|
+
readonly accelerationEase?: string;
|
|
60
|
+
/** Optional GSAP ease string for deceleration. Default: 'power2.out'. */
|
|
61
|
+
readonly decelerationEase?: string;
|
|
62
|
+
/** Milliseconds for acceleration phase. Default: 300. */
|
|
63
|
+
readonly accelerationDuration?: number;
|
|
64
|
+
/** Minimum spin time in ms before stop is allowed. Default: 500. */
|
|
65
|
+
readonly minimumSpinTime?: number;
|
|
66
|
+
}
|
|
67
|
+
/** Per-symbol configuration data. */
|
|
68
|
+
export interface SymbolData {
|
|
69
|
+
/** Relative weight for random generation (higher = more frequent). */
|
|
70
|
+
weight: number;
|
|
71
|
+
/** Display layering order. Higher = in front. */
|
|
72
|
+
zIndex?: number;
|
|
73
|
+
/**
|
|
74
|
+
* If true, the engine parents this symbol's view to
|
|
75
|
+
* `viewport.unmaskedContainer` instead of the reel's masked container —
|
|
76
|
+
* the symbol renders above the reel mask, useful for oversized win
|
|
77
|
+
* animations (expanding wilds, splash frames) that should not be
|
|
78
|
+
* clipped at the cell boundary.
|
|
79
|
+
*
|
|
80
|
+
* **Coordinate space:** when unmasked, the engine sets the view's X to
|
|
81
|
+
* `reel.container.x` and adds `reel.container.y` to the view's Y so
|
|
82
|
+
* the at-rest position matches the reel's grid cell.
|
|
83
|
+
*
|
|
84
|
+
* **Motion limitation:** `ReelMotion` writes `view.y` in reel-local
|
|
85
|
+
* coordinates. While the reel is spinning, an unmasked symbol on the
|
|
86
|
+
* strip will appear shifted vertically by the reel's offset (the
|
|
87
|
+
* `reel.container.y` translation is only applied on activate, not on
|
|
88
|
+
* every motion frame). Treat `unmask: true` as a *landed-state* flag —
|
|
89
|
+
* it is correct at rest and during static frames, but not designed to
|
|
90
|
+
* stay visually accurate while the reel is spinning. If you need a
|
|
91
|
+
* mid-spin "stays visible above mask" overlay, use a cell pin instead.
|
|
92
|
+
*
|
|
93
|
+
* **Pyramid layouts not supported:** when any reel has a non-zero
|
|
94
|
+
* `offsetY` (pyramid / trapezoid offsets), `motion.snapToGrid()` and
|
|
95
|
+
* `motion.displace()` will write reel-local Y to the unmasked view —
|
|
96
|
+
* shifting the rendered position by `reel.container.y`. The builder
|
|
97
|
+
* throws at config time if both conditions are present. Use cell pins
|
|
98
|
+
* for above-mask overlays on pyramid slots.
|
|
99
|
+
*
|
|
100
|
+
* **Mask-strategy auto-pick:** when any registered symbol sets
|
|
101
|
+
* `unmask: true` and `symbolGap.x > 0`, the builder switches the
|
|
102
|
+
* default `RectMaskStrategy` to `SharedRectMaskStrategy` so that
|
|
103
|
+
* neighboring (masked) symbols don't get clipped at the column gap
|
|
104
|
+
* next to the unmasked overlay. Passing `.maskStrategy(...)`
|
|
105
|
+
* explicitly always wins. For symbols that need to overlap across
|
|
106
|
+
* reel boundaries while unmasked, prefer `SharedRectMaskStrategy`.
|
|
107
|
+
*/
|
|
108
|
+
unmask?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Footprint in cells. Default `{ w: 1, h: 1 }`. When `w * h > 1` this
|
|
111
|
+
* symbol is a "big symbol" — at landing it occupies an `w × h` block of
|
|
112
|
+
* cells anchored at the (col, row) where its id appears in the result.
|
|
113
|
+
* Big-symbol registration is rejected on MultiWays slots.
|
|
114
|
+
*/
|
|
115
|
+
size?: {
|
|
116
|
+
w: number;
|
|
117
|
+
h: number;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/** How to vertically align reels of differing pixel heights. */
|
|
121
|
+
export type ReelAnchor = 'top' | 'center' | 'bottom';
|
|
122
|
+
/**
|
|
123
|
+
* MultiWays configuration knobs. Set via `builder.multiways({ ... })` —
|
|
124
|
+
* mutually exclusive with big-symbol registration.
|
|
125
|
+
*/
|
|
126
|
+
export interface MultiWaysConfig {
|
|
127
|
+
/** Minimum visible rows the server can request. Inclusive. */
|
|
128
|
+
minRows: number;
|
|
129
|
+
/** Maximum visible rows the server can request. Inclusive. */
|
|
130
|
+
maxRows: number;
|
|
131
|
+
/**
|
|
132
|
+
* Pixel height of every reel box. Cell height per reel becomes
|
|
133
|
+
* `reelPixelHeight / visibleRows[i]` after each reshape.
|
|
134
|
+
*/
|
|
135
|
+
reelPixelHeight: number;
|
|
136
|
+
}
|
|
137
|
+
/** Configuration for the reel grid layout. */
|
|
138
|
+
export interface ReelGridConfig {
|
|
139
|
+
/** Number of reel columns. */
|
|
140
|
+
reelCount: number;
|
|
141
|
+
/**
|
|
142
|
+
* Default visible rows when all reels are uniform. Ignored if
|
|
143
|
+
* `visibleRowsPerReel` is set.
|
|
144
|
+
*/
|
|
145
|
+
visibleRows: number;
|
|
146
|
+
/**
|
|
147
|
+
* Per-reel row counts (static shape). Length MUST equal `reelCount`.
|
|
148
|
+
* Example: `[3, 5, 5, 5, 3]` for a pyramid layout. Mutually exclusive
|
|
149
|
+
* with the scalar `visibleRows` field at the builder level.
|
|
150
|
+
*/
|
|
151
|
+
visibleRowsPerReel?: number[];
|
|
152
|
+
/** Symbol width in pixels. */
|
|
153
|
+
symbolWidth: number;
|
|
154
|
+
/** Symbol height in pixels. Used as the SPIN-time uniform cell height. */
|
|
155
|
+
symbolHeight: number;
|
|
156
|
+
/**
|
|
157
|
+
* Per-reel pixel-box heights. Length MUST equal `reelCount` when set.
|
|
158
|
+
* For MultiWays: every entry is the same fixed reel height. For static
|
|
159
|
+
* pyramids: defaults to `visibleRowsPerReel[i] * symbolHeight`.
|
|
160
|
+
*/
|
|
161
|
+
reelPixelHeights?: number[];
|
|
162
|
+
/**
|
|
163
|
+
* How short reels align vertically inside the tallest reel's height.
|
|
164
|
+
* Default: 'center'.
|
|
165
|
+
*/
|
|
166
|
+
reelAnchor?: ReelAnchor;
|
|
167
|
+
/** Gap between symbols. Default: { x: 0, y: 0 }. */
|
|
168
|
+
symbolGap?: {
|
|
169
|
+
x: number;
|
|
170
|
+
y: number;
|
|
171
|
+
};
|
|
172
|
+
/** Number of buffer symbols above and below the visible area. Default: 1. */
|
|
173
|
+
bufferSymbols?: number;
|
|
174
|
+
/**
|
|
175
|
+
* MultiWays configuration. Set by `builder.multiways(...)`. When present:
|
|
176
|
+
* - `setShape(rowsPerReel)` becomes callable mid-spin
|
|
177
|
+
* - AdjustPhase is inserted between SPIN and STOP
|
|
178
|
+
* - big-symbol registration throws at build time
|
|
179
|
+
*/
|
|
180
|
+
multiways?: MultiWaysConfig;
|
|
181
|
+
}
|
|
182
|
+
/** Extra symbols above/below config per reel. */
|
|
183
|
+
export interface ReelExtraSymbols {
|
|
184
|
+
symbolsAbove: number;
|
|
185
|
+
symbolsBelow: number;
|
|
186
|
+
}
|
|
187
|
+
/** Offset modes for X-axis symbol positioning. */
|
|
188
|
+
export type OffsetXMode = 'none' | 'trapezoid';
|
|
189
|
+
/** Trapezoid perspective configuration. */
|
|
190
|
+
export interface TrapezoidConfig {
|
|
191
|
+
mode: 'trapezoid';
|
|
192
|
+
widthDifference: number;
|
|
193
|
+
topWidthFactor: number;
|
|
194
|
+
bottomWidthFactor: number;
|
|
195
|
+
}
|
|
196
|
+
/** No offset configuration. */
|
|
197
|
+
export interface NoOffsetConfig {
|
|
198
|
+
mode: 'none';
|
|
199
|
+
}
|
|
200
|
+
export type OffsetConfig = TrapezoidConfig | NoOffsetConfig;
|
|
201
|
+
/** 2D matrix type (reel × row). */
|
|
202
|
+
export type Matrix<T> = T[][];
|
|
203
|
+
/** Simple 2D position. */
|
|
204
|
+
export interface Position {
|
|
205
|
+
x: number;
|
|
206
|
+
y: number;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Axis-aligned bounding box of a single grid cell in ReelSet-local
|
|
210
|
+
* coordinates. Returned by `reelSet.getCellBounds(col, row)`.
|
|
211
|
+
*
|
|
212
|
+
* Use this to draw paylines, hit areas, debug overlays, or any graphic
|
|
213
|
+
* that needs to align precisely with a visible symbol cell.
|
|
214
|
+
*/
|
|
215
|
+
export interface CellBounds {
|
|
216
|
+
/** Left edge of the cell in ReelSet-local pixels. */
|
|
217
|
+
x: number;
|
|
218
|
+
/** Top edge of the cell in ReelSet-local pixels. */
|
|
219
|
+
y: number;
|
|
220
|
+
/** Cell width — equals the configured symbol width. */
|
|
221
|
+
width: number;
|
|
222
|
+
/** Cell height — equals the configured symbol height. */
|
|
223
|
+
height: number;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* A cell on the visible grid — `reelIndex` is the column, `rowIndex` the
|
|
227
|
+
* row from the top. This is the canonical grid-cell shape used across
|
|
228
|
+
* events (`win:symbol`, `spotlight:start`), `Spotlight.show`, and
|
|
229
|
+
* `ClusterWin.cells`.
|
|
230
|
+
*
|
|
231
|
+
* Named `SymbolPosition` for back-compat with the original events module.
|
|
232
|
+
*/
|
|
233
|
+
export interface SymbolPosition {
|
|
234
|
+
reelIndex: number;
|
|
235
|
+
rowIndex: number;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* One "win" as the presenter sees it: an ordered set of cells to highlight.
|
|
239
|
+
*
|
|
240
|
+
* Use cases collapse onto this one shape — whether those cells came from a
|
|
241
|
+
* classic payline ("row 1 across all 5 reels"), a cascade pop ("this cluster
|
|
242
|
+
* vanished"), a scatter splash, or a bonus reveal.
|
|
243
|
+
*
|
|
244
|
+
* The presenter's job is to **animate these cells**. Anything beyond that —
|
|
245
|
+
* drawing a polyline, a cluster outline, a number popup, a sound cue — is
|
|
246
|
+
* user-land code reacting to the `win:*` events. pixi-reels never draws wins.
|
|
247
|
+
*
|
|
248
|
+
* Order of `cells` matters when `WinPresenter.stagger > 0` (e.g. a
|
|
249
|
+
* left-to-right sweep): cell N starts animating `stagger` ms after cell N-1.
|
|
250
|
+
* Pass the cells in the order you want the sweep to run.
|
|
251
|
+
*/
|
|
252
|
+
export interface Win {
|
|
253
|
+
/** Cells to highlight. Order matters when `stagger > 0`. */
|
|
254
|
+
cells: ReadonlyArray<SymbolPosition>;
|
|
255
|
+
/** Optional payout — used for the default value-desc sort. */
|
|
256
|
+
value?: number;
|
|
257
|
+
/** Optional tag for routing events to different handlers. */
|
|
258
|
+
kind?: string;
|
|
259
|
+
/** Optional stable id so event consumers can key per-win state. */
|
|
260
|
+
id?: number;
|
|
261
|
+
}
|
|
262
|
+
/** Mask configuration for the reel viewport. */
|
|
263
|
+
export interface MaskConfig {
|
|
264
|
+
mask: Container;
|
|
265
|
+
position: Position;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Resolved grid view used internally — every defaulted field is filled in,
|
|
269
|
+
* but per-reel-shape and MultiWays extensions stay optional because they're
|
|
270
|
+
* genuinely opt-in.
|
|
271
|
+
*/
|
|
272
|
+
export interface ResolvedReelGridConfig {
|
|
273
|
+
reelCount: number;
|
|
274
|
+
visibleRows: number;
|
|
275
|
+
symbolWidth: number;
|
|
276
|
+
symbolHeight: number;
|
|
277
|
+
symbolGap: {
|
|
278
|
+
x: number;
|
|
279
|
+
y: number;
|
|
280
|
+
};
|
|
281
|
+
bufferSymbols: number;
|
|
282
|
+
visibleRowsPerReel?: number[];
|
|
283
|
+
reelPixelHeights?: number[];
|
|
284
|
+
reelAnchor: ReelAnchor;
|
|
285
|
+
multiways?: MultiWaysConfig;
|
|
286
|
+
}
|
|
287
|
+
/** Full internal configuration assembled by the builder. */
|
|
288
|
+
export interface ReelSetInternalConfig {
|
|
289
|
+
grid: ResolvedReelGridConfig;
|
|
290
|
+
symbols: Record<string, SymbolData>;
|
|
291
|
+
speeds: Map<string, SpeedProfile>;
|
|
292
|
+
initialSpeed: string;
|
|
293
|
+
offset: OffsetConfig;
|
|
294
|
+
ticker: Ticker;
|
|
295
|
+
}
|
|
296
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,2CAA2C;IAC3C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,8CAA8C;IAC9C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC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