pixi-reels 2.2.0 → 2.3.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/CHANGELOG.md +46 -0
- package/dist/board/HoldAndWinBoard.d.ts.map +1 -1
- package/dist/config/types.d.ts +52 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/core/Reel.d.ts.map +1 -1
- package/dist/core/ReelSet.d.ts +55 -6
- package/dist/core/ReelSet.d.ts.map +1 -1
- package/dist/core/ReelSetBuilder.d.ts +19 -3
- package/dist/core/ReelSetBuilder.d.ts.map +1 -1
- package/dist/debug-BmbbKZrS.cjs +4 -0
- package/dist/debug-BmbbKZrS.cjs.map +1 -0
- package/dist/{debug-BVIT3Sjs.js → debug-BwsaPR3I.js} +382 -244
- package/dist/debug-BwsaPR3I.js.map +1 -0
- package/dist/events/ReelEvents.d.ts +18 -2
- package/dist/events/ReelEvents.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -53
- package/dist/index.js.map +1 -1
- package/dist/spin/SpinController.d.ts +165 -13
- package/dist/spin/SpinController.d.ts.map +1 -1
- package/dist/testing/testHarness.d.ts +5 -0
- package/dist/testing/testHarness.d.ts.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/utils/notify.d.ts +44 -0
- package/dist/utils/notify.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/debug-AjBRiekN.cjs +0 -4
- package/dist/debug-AjBRiekN.cjs.map +0 -1
- package/dist/debug-BVIT3Sjs.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type { ReelCurveConfig, ReelCurveInput, CurveFocus, CurveMode } from './c
|
|
|
11
11
|
export { CURVE_FOCUS_WEIGHT } from './core/ReelCurve.js';
|
|
12
12
|
export { SpeedPresets } from './config/SpeedPresets.js';
|
|
13
13
|
export { DEFAULTS } from './config/defaults.js';
|
|
14
|
-
export type { SpeedProfile, SpinOptions, SymbolData, ReelGridConfig, ReelExtraSymbols, ReelCellQuad, ReelCellInset, TrapezoidConfig, NoOffsetConfig, OffsetConfig, CrossOffsetMode, Matrix, Position, CellBounds, SymbolPosition, Win, MaskConfig, MultiWaysConfig, ReelAnchor, Stacking, AnticipationStagger, AnticipationSlowdown, AnticipationOptions, } from './config/types.js';
|
|
14
|
+
export type { SpeedProfile, SpinOptions, SymbolData, ReelGridConfig, ReelExtraSymbols, ReelCellQuad, ReelCellInset, TrapezoidConfig, NoOffsetConfig, OffsetConfig, CrossOffsetMode, Matrix, Position, CellBounds, SymbolPosition, Win, MaskConfig, MultiWaysConfig, ReelAnchor, Stacking, AnticipationStagger, AnticipationSlowdown, AnticipationOptions, AnticipationProtect, SlamOptions, } from './config/types.js';
|
|
15
15
|
export type { ReelMaskRect, MaskStrategy, MaskContext } from './core/ReelViewport.js';
|
|
16
16
|
export { MASK_STRATEGY_VERSION, RectMaskStrategy, SharedRectMaskStrategy, } from './core/ReelViewport.js';
|
|
17
17
|
export { ReelSymbol } from './symbols/ReelSymbol.js';
|
|
@@ -30,8 +30,18 @@ export { StaticSpinSymbol } from './snapshot/StaticSpinSymbol.js';
|
|
|
30
30
|
export { CardSymbol, CARD_DECK, WILD_CARD } from './symbols/CardSymbol.js';
|
|
31
31
|
export type { CardSymbolOptions } from './symbols/CardSymbol.js';
|
|
32
32
|
export type { StaticSpinSymbolOptions } from './snapshot/StaticSpinSymbol.js';
|
|
33
|
+
export { setLogLevel, getLogLevel } from './utils/notify.js';
|
|
34
|
+
export type { LogLevel } from './utils/notify.js';
|
|
33
35
|
export { ReelPhase } from './spin/phases/ReelPhase.js';
|
|
34
36
|
export { PhaseFactory } from './spin/phases/PhaseFactory.js';
|
|
37
|
+
export { StartPhase } from './spin/phases/StartPhase.js';
|
|
38
|
+
export { SpinPhase } from './spin/phases/SpinPhase.js';
|
|
39
|
+
export { StopPhase } from './spin/phases/StopPhase.js';
|
|
40
|
+
export { AnticipationPhase } from './spin/phases/AnticipationPhase.js';
|
|
41
|
+
export { AdjustPhase } from './spin/phases/AdjustPhase.js';
|
|
42
|
+
export { CascadeFallPhase } from './spin/phases/CascadeFallPhase.js';
|
|
43
|
+
export { CascadePlacePhase } from './spin/phases/CascadePlacePhase.js';
|
|
44
|
+
export { CascadeDropInPhase } from './spin/phases/CascadeDropInPhase.js';
|
|
35
45
|
export type { PhaseConstructor, PhaseCreatorFn } from './spin/phases/PhaseFactory.js';
|
|
36
46
|
export type { StartPhaseConfig } from './spin/phases/StartPhase.js';
|
|
37
47
|
export type { SpinPhaseConfig } from './spin/phases/SpinPhase.js';
|
|
@@ -41,6 +51,8 @@ export type { AdjustPhaseConfig, PinOverlayTween } from './spin/phases/AdjustPha
|
|
|
41
51
|
export { anticipationForScatters } from './spin/anticipationRecipes.js';
|
|
42
52
|
export type { ScatterAnticipationOptions } from './spin/anticipationRecipes.js';
|
|
43
53
|
export type { TumbleConfig, TumbleFallConfig, TumbleDropInConfig } from './cascade/TumbleConfig.js';
|
|
54
|
+
export { resolveTumbleConfig } from './cascade/TumbleConfig.js';
|
|
55
|
+
export type { ResolvedTumbleConfig } from './cascade/TumbleConfig.js';
|
|
44
56
|
export type { Cell, DropOffset } from './cascade/tumbleAlgorithm.js';
|
|
45
57
|
export { computeDropOffsets } from './cascade/tumbleAlgorithm.js';
|
|
46
58
|
export type { CascadeFallPhaseConfig } from './spin/phases/CascadeFallPhase.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE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7 +1,7 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a,
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as
|
|
4
|
-
import { AnimatedSprite as
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, Q as g, R as _, S as ee, T as v, U as y, V as te, W as ne, X as re, Y as ie, Z as ae, _ as oe, a as se, b, c as ce, d as le, f as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as x, o as S, p as C, q as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M, z as N } from "./debug-BwsaPR3I.js";
|
|
2
|
+
import { n as P, t as F } from "./ReelSymbol-CRXD3IO3.js";
|
|
3
|
+
import { n as I, t as ve } from "./SpineSymbol-BApOkJM6.js";
|
|
4
|
+
import { AnimatedSprite as ye, BlurFilter as L, Container as R, Graphics as z, PerspectiveMesh as be, Rectangle as B, Sprite as V, Text as xe } from "pixi.js";
|
|
5
5
|
//#region src/symbols/PerspectiveCell.ts
|
|
6
6
|
function H(e) {
|
|
7
7
|
let t = e.trim, n = e.orig;
|
|
@@ -49,7 +49,7 @@ var W = 10, G = class {
|
|
|
49
49
|
this._mesh && (this._mesh.destroy(), this._mesh = null, this._active = !1, this._uvScratch = null, this._uvSource = null);
|
|
50
50
|
}
|
|
51
51
|
_ensureMesh(e) {
|
|
52
|
-
return this._mesh ? this._mesh : (this._mesh = new
|
|
52
|
+
return this._mesh ? this._mesh : (this._mesh = new be({
|
|
53
53
|
texture: e,
|
|
54
54
|
verticesX: W,
|
|
55
55
|
verticesY: W
|
|
@@ -67,7 +67,7 @@ var W = 10, G = class {
|
|
|
67
67
|
}
|
|
68
68
|
e.geometry.uvs = n;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, Se = class extends F {
|
|
71
71
|
_sprite;
|
|
72
72
|
_textures;
|
|
73
73
|
_winTween = null;
|
|
@@ -78,7 +78,7 @@ var W = 10, G = class {
|
|
|
78
78
|
x: 0,
|
|
79
79
|
y: 0
|
|
80
80
|
};
|
|
81
|
-
this._sprite = new
|
|
81
|
+
this._sprite = new V(), this._sprite.anchor.set(t.x, t.y), this.view.addChild(this._sprite), this._perspective = new G(this.view, this._sprite);
|
|
82
82
|
}
|
|
83
83
|
onActivate(e) {
|
|
84
84
|
let t = this._textures[e];
|
|
@@ -124,7 +124,7 @@ var W = 10, G = class {
|
|
|
124
124
|
_killWinTween() {
|
|
125
125
|
this._winTween &&= (this._winTween.kill(), null);
|
|
126
126
|
}
|
|
127
|
-
},
|
|
127
|
+
}, Ce = class extends F {
|
|
128
128
|
_animSprite;
|
|
129
129
|
_frames;
|
|
130
130
|
_animationSpeed;
|
|
@@ -136,7 +136,7 @@ var W = 10, G = class {
|
|
|
136
136
|
x: 0,
|
|
137
137
|
y: 0
|
|
138
138
|
}, n = Object.values(this._frames)[0] ?? [];
|
|
139
|
-
this._animSprite = new
|
|
139
|
+
this._animSprite = new ye(n.length > 0 ? n : []), this._animSprite.anchor.set(t.x, t.y), this._animSprite.animationSpeed = this._animationSpeed, this._animSprite.loop = !1, this.view.addChild(this._animSprite), this._perspective = new G(this.view, this._animSprite), this._animSprite.onFrameChange = () => {
|
|
140
140
|
this._perspective.syncTexture(this._animSprite.texture);
|
|
141
141
|
};
|
|
142
142
|
}
|
|
@@ -173,13 +173,13 @@ var W = 10, G = class {
|
|
|
173
173
|
onDestroy() {
|
|
174
174
|
this._animSprite.onFrameChange = void 0, this._perspective.destroy();
|
|
175
175
|
}
|
|
176
|
-
}, K = class extends
|
|
176
|
+
}, K = class extends F {
|
|
177
177
|
onActivate(e) {}
|
|
178
178
|
onDeactivate() {}
|
|
179
179
|
async playWin() {}
|
|
180
180
|
stopAnimation() {}
|
|
181
181
|
resize(e, t) {}
|
|
182
|
-
},
|
|
182
|
+
}, we = class {
|
|
183
183
|
_renderer;
|
|
184
184
|
_resolution;
|
|
185
185
|
_blurDefaults;
|
|
@@ -222,7 +222,7 @@ var W = 10, G = class {
|
|
|
222
222
|
if (i && (!i.owned || i.width === n && i.height === r)) return i.texture;
|
|
223
223
|
let a = this._renderer.generateTexture({
|
|
224
224
|
target: t,
|
|
225
|
-
frame: new
|
|
225
|
+
frame: new B(0, 0, n, r),
|
|
226
226
|
resolution: this._resolution,
|
|
227
227
|
antialias: !0
|
|
228
228
|
});
|
|
@@ -238,19 +238,19 @@ var W = 10, G = class {
|
|
|
238
238
|
if (a && (!a.owned || a.width === t && a.height === n && a.axis === i)) return a.texture;
|
|
239
239
|
let o = this.getStatic(e);
|
|
240
240
|
if (!o) throw Error(`SpinTextureCache.captureBlurred('${e}'): no static texture to blur. Call captureStatic() or setStatic() for this symbolId first.`);
|
|
241
|
-
let s = r?.strength ?? this._blurDefaults.strength ?? (i === "y" ? n : t) * .2, c = r?.quality ?? this._blurDefaults.quality ?? 4, l = r?.padding ?? this._blurDefaults.padding ?? Math.ceil(s), u = new
|
|
242
|
-
d.width = t, d.height = n, i === "y" ? (d.y = l, d.filters = [new
|
|
241
|
+
let s = r?.strength ?? this._blurDefaults.strength ?? (i === "y" ? n : t) * .2, c = r?.quality ?? this._blurDefaults.quality ?? 4, l = r?.padding ?? this._blurDefaults.padding ?? Math.ceil(s), u = new R(), d = new V(o);
|
|
242
|
+
d.width = t, d.height = n, i === "y" ? (d.y = l, d.filters = [new L({
|
|
243
243
|
strengthX: 0,
|
|
244
244
|
strengthY: s,
|
|
245
245
|
quality: c
|
|
246
|
-
})]) : (d.x = l, d.filters = [new
|
|
246
|
+
})]) : (d.x = l, d.filters = [new L({
|
|
247
247
|
strengthX: s,
|
|
248
248
|
strengthY: 0,
|
|
249
249
|
quality: c
|
|
250
250
|
})]), u.addChild(d);
|
|
251
251
|
let f = this._renderer.generateTexture({
|
|
252
252
|
target: u,
|
|
253
|
-
frame: new
|
|
253
|
+
frame: new B(0, 0, t + (i === "x" ? l * 2 : 0), n + (i === "y" ? l * 2 : 0)),
|
|
254
254
|
resolution: this._resolution,
|
|
255
255
|
antialias: !0
|
|
256
256
|
});
|
|
@@ -283,7 +283,7 @@ var W = 10, G = class {
|
|
|
283
283
|
n?.owned && n.texture.destroy(!0), e.delete(t);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
function
|
|
286
|
+
function Te(e) {
|
|
287
287
|
let { cache: t, ids: n, width: r, height: i } = e, a = e.blurred ?? !0, o = e.createSymbol();
|
|
288
288
|
try {
|
|
289
289
|
for (let s of n) o.symbolId !== s && o.activate(s), o.resize(r, i), t.captureStatic(s, o.view, r, i), a && t.captureBlurred(s, r, i, e.blur);
|
|
@@ -293,7 +293,7 @@ function pe(e) {
|
|
|
293
293
|
}
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/snapshot/StaticSpinSymbol.ts
|
|
296
|
-
var
|
|
296
|
+
var Ee = class extends F {
|
|
297
297
|
_inner;
|
|
298
298
|
_cache;
|
|
299
299
|
_mode;
|
|
@@ -307,7 +307,7 @@ var me = class extends j {
|
|
|
307
307
|
_cellH = 0;
|
|
308
308
|
_rampTween = null;
|
|
309
309
|
constructor(e) {
|
|
310
|
-
super(), this._inner = e.createInner(), this._cache = e.cache, this._mode = e.spinTexture ?? "blurred", this._rampMs = e.blurRampMs ?? 120, this._blurOpts = e.blur, this.view.addChild(this._inner.view), this._staticSprite = new
|
|
310
|
+
super(), this._inner = e.createInner(), this._cache = e.cache, this._mode = e.spinTexture ?? "blurred", this._rampMs = e.blurRampMs ?? 120, this._blurOpts = e.blur, this.view.addChild(this._inner.view), this._staticSprite = new V(), this._staticSprite.anchor.set(.5, .5), this._staticSprite.visible = !1, this._blurSprite = new V(), this._blurSprite.anchor.set(.5, .5), this._blurSprite.visible = !1, this.view.addChild(this._staticSprite, this._blurSprite);
|
|
311
311
|
}
|
|
312
312
|
get inner() {
|
|
313
313
|
return this._inner;
|
|
@@ -421,14 +421,14 @@ var me = class extends j {
|
|
|
421
421
|
_killRamp() {
|
|
422
422
|
this._rampTween &&= (this._rampTween.kill(), null);
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, De = class extends F {
|
|
425
425
|
_color;
|
|
426
426
|
_label;
|
|
427
427
|
_textColor;
|
|
428
428
|
_gfx;
|
|
429
429
|
_text;
|
|
430
430
|
constructor(e) {
|
|
431
|
-
super(), this._color = e.color, this._label = e.label, this._textColor = e.textColor ?? 16777215, this._gfx = new
|
|
431
|
+
super(), this._color = e.color, this._label = e.label, this._textColor = e.textColor ?? 16777215, this._gfx = new z(), this._text = new xe({
|
|
432
432
|
text: this._label,
|
|
433
433
|
style: {
|
|
434
434
|
fontFamily: "\"Roboto Condensed\", \"Arial Narrow\", \"Helvetica Neue Condensed\", \"Liberation Sans Narrow\", system-ui, sans-serif",
|
|
@@ -484,7 +484,7 @@ var me = class extends j {
|
|
|
484
484
|
let n = Math.max(1, this._label.length), r = t * .38, i = e * .7 / (n * .45);
|
|
485
485
|
this._text.style.fontSize = Math.max(7, Math.floor(Math.min(r, i)));
|
|
486
486
|
}
|
|
487
|
-
},
|
|
487
|
+
}, Oe = [
|
|
488
488
|
{
|
|
489
489
|
id: "7",
|
|
490
490
|
color: 12597547,
|
|
@@ -525,7 +525,7 @@ var me = class extends j {
|
|
|
525
525
|
color: 2899536,
|
|
526
526
|
label: "A"
|
|
527
527
|
}
|
|
528
|
-
],
|
|
528
|
+
], ke = {
|
|
529
529
|
id: "wild",
|
|
530
530
|
color: 16774048,
|
|
531
531
|
label: "WILD",
|
|
@@ -533,7 +533,7 @@ var me = class extends j {
|
|
|
533
533
|
};
|
|
534
534
|
//#endregion
|
|
535
535
|
//#region src/spin/anticipationRecipes.ts
|
|
536
|
-
function
|
|
536
|
+
function Ae(e, t) {
|
|
537
537
|
let n = t.trigger ?? 2, r = t.mode ?? "all-remaining", i = e.map((e) => e.visible.filter((e) => e === t.symbol).length), a = 0, o = -1;
|
|
538
538
|
for (let e = 0; e < i.length; e++) if (a += i[e], a >= n) {
|
|
539
539
|
o = e;
|
|
@@ -546,7 +546,7 @@ function ve(e, t) {
|
|
|
546
546
|
}
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region src/spin/modes/CascadeMode.ts
|
|
549
|
-
var
|
|
549
|
+
var je = class {
|
|
550
550
|
name = "cascade";
|
|
551
551
|
_gravity;
|
|
552
552
|
constructor(e = 1.5) {
|
|
@@ -556,12 +556,12 @@ var ye = class {
|
|
|
556
556
|
let r = e * t * this._gravity * n / 1e3;
|
|
557
557
|
return Math.min(r, e);
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, Me = class {
|
|
560
560
|
name = "immediate";
|
|
561
561
|
computeDelta(e, t, n) {
|
|
562
562
|
return 0;
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, q = (e) => `${e.reel},${e.cell}`, J = "default", Y = class {
|
|
565
565
|
container;
|
|
566
566
|
cols;
|
|
567
567
|
rows;
|
|
@@ -573,31 +573,31 @@ var ye = class {
|
|
|
573
573
|
_destroyed = !1;
|
|
574
574
|
constructor(e) {
|
|
575
575
|
if (!e.ticker) throw Error("BoardGrid: a ticker is required.");
|
|
576
|
-
this.cols = e.cols, this.rows = e.rows, this.cellSize = e.cellSize, this.gap = e.gap ?? 4, this.emptyId = e.emptyId ?? "empty", this.container = new
|
|
577
|
-
let t = e.profiles && Object.keys(e.profiles).length > 0 ? e.profiles : { [
|
|
578
|
-
...
|
|
576
|
+
this.cols = e.cols, this.rows = e.rows, this.cellSize = e.cellSize, this.gap = e.gap ?? 4, this.emptyId = e.emptyId ?? "empty", this.container = new R();
|
|
577
|
+
let t = e.profiles && Object.keys(e.profiles).length > 0 ? e.profiles : { [J]: {
|
|
578
|
+
...b.NORMAL,
|
|
579
579
|
minimumSpinTime: 320
|
|
580
580
|
} }, n = Object.keys(t), r = (e, t) => typeof e == "function" ? e(t) : e;
|
|
581
|
-
for (let
|
|
582
|
-
let
|
|
583
|
-
reel:
|
|
584
|
-
cell:
|
|
585
|
-
},
|
|
581
|
+
for (let i = 0; i < e.cols; i++) for (let a = 0; a < e.rows; a++) {
|
|
582
|
+
let o = {
|
|
583
|
+
reel: i,
|
|
584
|
+
cell: a
|
|
585
|
+
}, s = this._origin(o);
|
|
586
586
|
if (e.chrome) {
|
|
587
|
-
let t = new
|
|
588
|
-
e.chrome(t, this.cellSize), t.position.set(
|
|
587
|
+
let t = new z();
|
|
588
|
+
e.chrome(t, this.cellSize), t.position.set(s.x, s.y), this.container.addChild(t);
|
|
589
589
|
}
|
|
590
|
-
let
|
|
590
|
+
let c = new O().reels(1).visibleCells(1).symbolSize(this.cellSize, this.cellSize).symbolGap(0, 0).maskStrategy(new _()).symbols((t) => {
|
|
591
591
|
e.symbols(t), t.has(this.emptyId) || t.register(this.emptyId, K, {});
|
|
592
592
|
}).initialFrame([{
|
|
593
593
|
visible: [this.emptyId],
|
|
594
594
|
bufferStart: [this.emptyId],
|
|
595
595
|
bufferEnd: [this.emptyId]
|
|
596
596
|
}]).ticker(e.ticker).orientation(e.orientation ?? "vertical").direction(e.direction ?? "forward").initialSpeed(n[0]);
|
|
597
|
-
for (let [e, n] of Object.entries(t))
|
|
598
|
-
e.weights &&
|
|
599
|
-
let
|
|
600
|
-
|
|
597
|
+
for (let [e, n] of Object.entries(t)) c.speed(e, r(n, o));
|
|
598
|
+
e.weights && c.weights(e.weights), e.symbolData && c.symbolData(e.symbolData), e.rng && c.rng(e.rng);
|
|
599
|
+
let l = c.build();
|
|
600
|
+
l.position.set(s.x, s.y), this.container.addChild(l), this._reels.set(q(o), l), this._cells.push(o);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
cells() {
|
|
@@ -675,8 +675,8 @@ var ye = class {
|
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
677
|
_reel(e) {
|
|
678
|
-
let t = this._reels.get(
|
|
679
|
-
if (!t) throw Error(`BoardGrid: cell ${
|
|
678
|
+
let t = this._reels.get(q(e));
|
|
679
|
+
if (!t) throw Error(`BoardGrid: cell ${q(e)} is outside the ${this.cols}x${this.rows} grid.`);
|
|
680
680
|
return t;
|
|
681
681
|
}
|
|
682
682
|
}, X = (e) => `${e.reel},${e.cell}`, Z = class {
|
|
@@ -863,8 +863,8 @@ var ye = class {
|
|
|
863
863
|
_assertInGrid(e, t) {
|
|
864
864
|
if (!this._cellSet.has(X(e))) throw Error(`HoldAndWinBoard: ${t}() targets cell ${X(e)} outside the grid.`);
|
|
865
865
|
}
|
|
866
|
-
},
|
|
867
|
-
events = new
|
|
866
|
+
}, Ne = 1100, Q = class {
|
|
867
|
+
events = new g();
|
|
868
868
|
cols;
|
|
869
869
|
rows;
|
|
870
870
|
_grid;
|
|
@@ -895,7 +895,7 @@ var ye = class {
|
|
|
895
895
|
}),
|
|
896
896
|
tension: (n) => ({
|
|
897
897
|
...e.baseProfile,
|
|
898
|
-
minimumSpinTime: t(n) +
|
|
898
|
+
minimumSpinTime: t(n) + Ne
|
|
899
899
|
})
|
|
900
900
|
}
|
|
901
901
|
}), this._state = new Z(this._grid.cells(), e.respins);
|
|
@@ -991,7 +991,7 @@ var ye = class {
|
|
|
991
991
|
this._grid.isDestroyed || (this.events.removeAllListeners(), this._grid.destroy());
|
|
992
992
|
}
|
|
993
993
|
_apply(e) {
|
|
994
|
-
for (let t of e) this.events.emit(t.type, t.payload), t.type === "coin:locked" && this.symbolAt(t.payload.coin.cell).playWin().catch((e) =>
|
|
994
|
+
for (let t of e) this.events.emit(t.type, t.payload), t.type === "coin:locked" && this.symbolAt(t.payload.coin.cell).playWin().catch((e) => r("hw-coin-win-failed", "HoldAndWinBoard: coin win animation failed.", e));
|
|
995
995
|
}
|
|
996
996
|
_anticipating() {
|
|
997
997
|
return this._anticipateWhen ? this._anticipateWhen({
|
|
@@ -1000,7 +1000,7 @@ var ye = class {
|
|
|
1000
1000
|
respinsLeft: this._state.respinsLeft
|
|
1001
1001
|
}) : !1;
|
|
1002
1002
|
}
|
|
1003
|
-
},
|
|
1003
|
+
}, Pe = class {
|
|
1004
1004
|
_cols = 5;
|
|
1005
1005
|
_rows = 3;
|
|
1006
1006
|
_cell = 72;
|
|
@@ -1011,7 +1011,7 @@ var ye = class {
|
|
|
1011
1011
|
_weights = null;
|
|
1012
1012
|
_symbolData = null;
|
|
1013
1013
|
_baseProfile = {
|
|
1014
|
-
...
|
|
1014
|
+
...b.NORMAL,
|
|
1015
1015
|
minimumSpinTime: 320
|
|
1016
1016
|
};
|
|
1017
1017
|
_stagger = (e, t) => (e + t) * 70;
|
|
@@ -1097,7 +1097,7 @@ function $(e) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
//#endregion
|
|
1099
1099
|
//#region src/wins/WinPresenter.ts
|
|
1100
|
-
var
|
|
1100
|
+
var Fe = class e {
|
|
1101
1101
|
_reelSet;
|
|
1102
1102
|
_options;
|
|
1103
1103
|
_abort = null;
|
|
@@ -1198,7 +1198,7 @@ var Ce = class e {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
//#region src/utils/gsapTicker.ts
|
|
1201
|
-
function
|
|
1201
|
+
function Ie(e, t = P) {
|
|
1202
1202
|
let n = t;
|
|
1203
1203
|
n.ticker.remove(n.updateRoot);
|
|
1204
1204
|
let r = () => {
|
|
@@ -1211,6 +1211,6 @@ function we(e, t = A) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
//#endregion
|
|
1214
|
-
export {
|
|
1214
|
+
export { le as AdjustPhase, Ce as AnimatedSpriteSymbol, e as AnticipationPhase, Y as BoardGrid, Oe as CARD_DECK, w as CURVE_FOCUS_WEIGHT, De as CardSymbol, ue as CascadeDropInPhase, fe as CascadeFallPhase, je as CascadeMode, C as CascadePlacePhase, j as DEFAULTS, K as EmptySymbol, g as EventEmitter, oe as FrameBuilder, Q as HoldAndWinBoard, Pe as HoldAndWinBuilder, Z as HoldAndWinState, Me as ImmediateMode, a as MASK_STRATEGY_VERSION, ce as OVERLAY_LABEL, k as ObjectPool, G as PerspectiveCell, he as PhaseFactory, c as RectMaskStrategy, N as Reel, l as ReelCurve, h as ReelPhase, ee as ReelSet, O as ReelSetBuilder, F as ReelSymbol, d as ReelViewport, o as ReelWarp, _ as SharedRectMaskStrategy, v as SpeedManager, b as SpeedPresets, f as SpinPhase, we as SpinTextureCache, ve as SpineSymbol, Se as SpriteSymbol, t as StandardMode, p as StartPhase, Ee as StaticSpinSymbol, me as StopPhase, M as SymbolRegistry, A as SymbolSpotlight, u as TickerRef, re as VERTICAL_FORWARD, ke as WILD_CARD, Fe as WinPresenter, Ae as anticipationForScatters, U as canProjectTexture, X as cellKey, D as clearFrames, te as cloneColumnTarget, s as columnTargetToStrip, _e as computeDropOffsets, x as debugGrid, ge as debugOverlay, T as debugSnapshot, Ie as driveGsapWithTicker, pe as enableDebug, se as getFrames, i as getLogLevel, y as getTargetSlot, n as pinKey, Te as prewarmSpinTextures, ae as reelAxis, ie as resolveCurveConfig, de as resolveTumbleConfig, m as setLogLevel, ne as setTargetSlot, $ as sortByValueDesc, S as startRecording, E as stopRecording, H as textureCellInset, I as whenSpineReady };
|
|
1215
1215
|
|
|
1216
1216
|
//# sourceMappingURL=index.js.map
|