@epam/ai-dial-celebrations 1.2.0-dev.170
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/CelebrationEnvironmentContext-BxzY78Zg.js +14 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts +3 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts.map +1 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts +8 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +10 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/context/CelebrationContext.d.ts +7 -0
- package/context/CelebrationContext.d.ts.map +1 -0
- package/context/CelebrationEnvironmentContext.d.ts +19 -0
- package/context/CelebrationEnvironmentContext.d.ts.map +1 -0
- package/flying-characters-2UJGx5Nh.js +36 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts +6 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts +13 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts +12 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts +8 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts +9 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts +11 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts.map +1 -0
- package/halloween/constants/halloween.d.ts +76 -0
- package/halloween/constants/halloween.d.ts.map +1 -0
- package/halloween/constants/labels.d.ts +4 -0
- package/halloween/constants/labels.d.ts.map +1 -0
- package/halloween/event.d.ts +11 -0
- package/halloween/event.d.ts.map +1 -0
- package/halloween/index.d.ts +8 -0
- package/halloween/index.d.ts.map +1 -0
- package/halloween/models/labels.d.ts +40 -0
- package/halloween/models/labels.d.ts.map +1 -0
- package/halloween/types/halloween.d.ts +65 -0
- package/halloween/types/halloween.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-animation.d.ts +10 -0
- package/halloween/utils/halloween-bat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-plan.d.ts +53 -0
- package/halloween/utils/halloween-bat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-targets.d.ts +13 -0
- package/halloween/utils/halloween-bat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-bowling.d.ts +24 -0
- package/halloween/utils/halloween-bowling.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-animation.d.ts +4 -0
- package/halloween/utils/halloween-candy-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-plan.d.ts +68 -0
- package/halloween/utils/halloween-candy-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-targets.d.ts +12 -0
- package/halloween/utils/halloween-candy-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-animation.d.ts +11 -0
- package/halloween/utils/halloween-cat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-plan.d.ts +69 -0
- package/halloween/utils/halloween-cat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-targets.d.ts +13 -0
- package/halloween/utils/halloween-cat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-animation.d.ts +12 -0
- package/halloween/utils/halloween-footprint-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-plan.d.ts +52 -0
- package/halloween/utils/halloween-footprint-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-targets.d.ts +22 -0
- package/halloween/utils/halloween-footprint-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-animation.d.ts +12 -0
- package/halloween/utils/halloween-ghost-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-plan.d.ts +41 -0
- package/halloween/utils/halloween-ghost-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-targets.d.ts +12 -0
- package/halloween/utils/halloween-ghost-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-mimic.d.ts +21 -0
- package/halloween/utils/halloween-mimic.d.ts.map +1 -0
- package/halloween/utils/halloween-mummy.d.ts +17 -0
- package/halloween/utils/halloween-mummy.d.ts.map +1 -0
- package/halloween/utils/halloween-portal.d.ts +22 -0
- package/halloween/utils/halloween-portal.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-animation.d.ts +19 -0
- package/halloween/utils/halloween-raven-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-plan.d.ts +68 -0
- package/halloween/utils/halloween-raven-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-targets.d.ts +24 -0
- package/halloween/utils/halloween-raven-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-secret-history.d.ts +8 -0
- package/halloween/utils/halloween-secret-history.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-theft.d.ts +25 -0
- package/halloween/utils/halloween-spider-theft.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-wrap.d.ts +78 -0
- package/halloween/utils/halloween-spider-wrap.d.ts.map +1 -0
- package/halloween/utils/halloween-train.d.ts +29 -0
- package/halloween/utils/halloween-train.d.ts.map +1 -0
- package/halloween/utils/halloween-web-animation.d.ts +10 -0
- package/halloween/utils/halloween-web-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-web-plan.d.ts +46 -0
- package/halloween/utils/halloween-web-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-web-targets.d.ts +10 -0
- package/halloween/utils/halloween-web-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-animation.d.ts +12 -0
- package/halloween/utils/halloween-witch-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-plan.d.ts +69 -0
- package/halloween/utils/halloween-witch-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-targets.d.ts +20 -0
- package/halloween/utils/halloween-witch-targets.d.ts.map +1 -0
- package/halloween/utils/halloween.d.ts +101 -0
- package/halloween/utils/halloween.d.ts.map +1 -0
- package/halloween.js +11671 -0
- package/hooks/useReducedMotion.d.ts +3 -0
- package/hooks/useReducedMotion.d.ts.map +1 -0
- package/index.css +2 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +146 -0
- package/models/celebration.d.ts +123 -0
- package/models/celebration.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts +4 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts +10 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts +3 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts.map +1 -0
- package/new-year/components/NewYear/particles.d.ts +5 -0
- package/new-year/components/NewYear/particles.d.ts.map +1 -0
- package/new-year/components/NewYear/types.d.ts +10 -0
- package/new-year/components/NewYear/types.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +4 -0
- package/new-year/constants/labels.d.ts.map +1 -0
- package/new-year/event.d.ts +4 -0
- package/new-year/event.d.ts.map +1 -0
- package/new-year/index.d.ts +7 -0
- package/new-year/index.d.ts.map +1 -0
- package/new-year/models/labels.d.ts +14 -0
- package/new-year/models/labels.d.ts.map +1 -0
- package/new-year.js +382 -0
- package/package.json +43 -0
- package/utils/celebration-history.d.ts +8 -0
- package/utils/celebration-history.d.ts.map +1 -0
- package/utils/celebration-snapshots.d.ts +21 -0
- package/utils/celebration-snapshots.d.ts.map +1 -0
- package/utils/celebration.d.ts +18 -0
- package/utils/celebration.d.ts.map +1 -0
- package/utils/flying-characters.d.ts +11 -0
- package/utils/flying-characters.d.ts.map +1 -0
- package/utils/host-anchors.d.ts +12 -0
- package/utils/host-anchors.d.ts.map +1 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { halloweenEvent } from './event';
|
|
2
|
+
export { createHalloweenEvent, halloweenEvent } from './event';
|
|
3
|
+
export type { HalloweenEventOptions } from './event';
|
|
4
|
+
export { HALLOWEEN_LABELS } from './constants/labels';
|
|
5
|
+
export type { HalloweenLabels } from './models/labels';
|
|
6
|
+
export { HalloweenDecorBehavior, HalloweenScene } from './types/halloween';
|
|
7
|
+
export default halloweenEvent;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/halloween/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAG3E,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** Visible text of the Halloween event; `{{phrase}}` becomes the secret hint. */
|
|
2
|
+
export interface HalloweenLabels {
|
|
3
|
+
/** Title of every scene notification. */
|
|
4
|
+
toastTitle: string;
|
|
5
|
+
/** Notification message of the spiders scene. */
|
|
6
|
+
spidersToastMessage: string;
|
|
7
|
+
/** Notification message of the ghost scene. */
|
|
8
|
+
ghostToastMessage: string;
|
|
9
|
+
/** Notification message of the web scene. */
|
|
10
|
+
webToastMessage: string;
|
|
11
|
+
/** Notification message of the bats scene. */
|
|
12
|
+
batsToastMessage: string;
|
|
13
|
+
/** Notification message of the cat scene. */
|
|
14
|
+
catToastMessage: string;
|
|
15
|
+
/** Notification message of the witches scene. */
|
|
16
|
+
witchesToastMessage: string;
|
|
17
|
+
/** Accessible name of the pumpkin trigger. */
|
|
18
|
+
pumpkinLabel: string;
|
|
19
|
+
/** Notification message of the train scene. */
|
|
20
|
+
trainToastMessage: string;
|
|
21
|
+
/** Notification message of the portal scene. */
|
|
22
|
+
portalToastMessage: string;
|
|
23
|
+
/** Notification message of the ravens scene. */
|
|
24
|
+
ravensToastMessage: string;
|
|
25
|
+
/** Notification message of the candy scene. */
|
|
26
|
+
candyToastMessage: string;
|
|
27
|
+
/** Notification message of the footprints scene. */
|
|
28
|
+
footprintsToastMessage: string;
|
|
29
|
+
/** Notification message of the skeletons scene. */
|
|
30
|
+
skeletonsToastMessage: string;
|
|
31
|
+
/** Notification message of the cauldron scene. */
|
|
32
|
+
cauldronToastMessage: string;
|
|
33
|
+
/** Notification message of the mimic scene. */
|
|
34
|
+
mimicToastMessage: string;
|
|
35
|
+
/** Notification message of the bowling scene. */
|
|
36
|
+
bowlingToastMessage: string;
|
|
37
|
+
/** Notification message of the mummy scene. */
|
|
38
|
+
mummyToastMessage: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/halloween/models/labels.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,mDAAmD;IACnD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Every Halloween scene; hosts enable or disable them by these ids. */
|
|
2
|
+
export declare enum HalloweenScene {
|
|
3
|
+
/**
|
|
4
|
+
* Spiders abseil from the top edge, sway on their threads, and climb back
|
|
5
|
+
* up. Triggered by the secret phrase — the trick half of the bargain.
|
|
6
|
+
*/
|
|
7
|
+
Spiders = "spiders",
|
|
8
|
+
/** A flock of ghosts drifts across the viewport. Triggered by the pumpkin. */
|
|
9
|
+
Ghost = "ghost",
|
|
10
|
+
/** Spiders weave silk across the start screen, including the history panel. */
|
|
11
|
+
Web = "web",
|
|
12
|
+
/** Small bats sweep past with individually flapping wings. */
|
|
13
|
+
Bats = "bats",
|
|
14
|
+
/** A black cat follows drifting will-o’-the-wisps. */
|
|
15
|
+
Cat = "cat",
|
|
16
|
+
/** Two witches enchant page buttons and undo a wayward spell. */
|
|
17
|
+
Witches = "witches",
|
|
18
|
+
Train = "train",
|
|
19
|
+
Portal = "portal",
|
|
20
|
+
Ravens = "ravens",
|
|
21
|
+
Candy = "candy",
|
|
22
|
+
Footprints = "footprints",
|
|
23
|
+
Skeletons = "skeletons",
|
|
24
|
+
Cauldron = "cauldron",
|
|
25
|
+
Mimic = "mimic",
|
|
26
|
+
Bowling = "bowling",
|
|
27
|
+
Mummy = "mummy"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The ghost silhouettes `HalloweenGhost` can draw. A flock mixes them so no
|
|
31
|
+
* two neighbours look alike.
|
|
32
|
+
*/
|
|
33
|
+
export declare enum HalloweenGhostVariant {
|
|
34
|
+
/** Rounded head over three wide humps — the storybook ghost. */
|
|
35
|
+
Classic = "classic",
|
|
36
|
+
/** Narrow and tall, with four small humps and sleepy half-shut eyes. */
|
|
37
|
+
Tall = "tall",
|
|
38
|
+
/** Squat and wide, with two humps and a surprised open mouth. */
|
|
39
|
+
Blob = "blob",
|
|
40
|
+
/** Small and round, winking. */
|
|
41
|
+
Sprite = "sprite"
|
|
42
|
+
}
|
|
43
|
+
/** What the corner spider is up to; drives its CSS pose and fidgets. */
|
|
44
|
+
export declare enum HalloweenSpiderMood {
|
|
45
|
+
/** Fidgeting on its perch or dangling on an idle drop. */
|
|
46
|
+
Idle = "idle",
|
|
47
|
+
/** The pointer is close: fidgets freeze and it watches. */
|
|
48
|
+
Alert = "alert",
|
|
49
|
+
/** Spinning silk around the pumpkin. */
|
|
50
|
+
Wrapping = "wrapping",
|
|
51
|
+
/** The pumpkin shook it off; eyes wide, climbing away. */
|
|
52
|
+
Startled = "startled"
|
|
53
|
+
}
|
|
54
|
+
/** Corner-spider behaviors of the Halloween decoration that hosts can switch off. */
|
|
55
|
+
export declare enum HalloweenDecorBehavior {
|
|
56
|
+
/** Bolts away from a nearby pointer and creeps back to its perch. */
|
|
57
|
+
SpiderFlee = "spider-flee",
|
|
58
|
+
/** Now and then lowers itself on a thread and climbs back. */
|
|
59
|
+
SpiderDrop = "spider-drop",
|
|
60
|
+
/** Drums its legs while the user types in a text field. */
|
|
61
|
+
SpiderDrum = "spider-drum",
|
|
62
|
+
/** After a quiet spell climbs down and wraps the pumpkin in silk. */
|
|
63
|
+
PumpkinWrap = "pumpkin-wrap"
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=halloween.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween.d.ts","sourceRoot":"","sources":["../../../src/halloween/types/halloween.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,oBAAY,cAAc;IACxB;;;OAGG;IACH,OAAO,YAAY;IACnB,8EAA8E;IAC9E,KAAK,UAAU;IACf,+EAA+E;IAC/E,GAAG,QAAQ;IACX,8DAA8D;IAC9D,IAAI,SAAS;IACb,sDAAsD;IACtD,GAAG,QAAQ;IACX,iEAAiE;IACjE,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,oBAAY,qBAAqB;IAC/B,gEAAgE;IAChE,OAAO,YAAY;IACnB,wEAAwE;IACxE,IAAI,SAAS;IACb,iEAAiE;IACjE,IAAI,SAAS;IACb,gCAAgC;IAChC,MAAM,WAAW;CAClB;AAED,wEAAwE;AACxE,oBAAY,mBAAmB;IAC7B,0DAA0D;IAC1D,IAAI,SAAS;IACb,2DAA2D;IAC3D,KAAK,UAAU;IACf,wCAAwC;IACxC,QAAQ,aAAa;IACrB,0DAA0D;IAC1D,QAAQ,aAAa;CACtB;AAED,qFAAqF;AACrF,oBAAY,sBAAsB;IAChC,qEAAqE;IACrE,UAAU,gBAAgB;IAC1B,8DAA8D;IAC9D,UAAU,gBAAgB;IAC1B,2DAA2D;IAC3D,UAAU,gBAAgB;IAC1B,qEAAqE;IACrE,WAAW,iBAAiB;CAC7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BatPlan } from './halloween-bat-plan';
|
|
2
|
+
interface BatElements {
|
|
3
|
+
host: HTMLElement;
|
|
4
|
+
copies: HTMLElement;
|
|
5
|
+
actors: HTMLElement[];
|
|
6
|
+
}
|
|
7
|
+
/** Play one finite crosswind story without changing the live composer. */
|
|
8
|
+
export declare const animateBats: (plan: BatPlan, { host, copies, actors }: BatElements, onStop: () => void) => (() => void);
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=halloween-bat-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-bat-animation.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-bat-animation.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/E,UAAU,WAAW;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED,0EAA0E;AAC1E,eAAO,MAAM,WAAW,GACtB,MAAM,OAAO,EACb,0BAA0B,WAAW,EACrC,QAAQ,MAAM,IAAI,KACjB,CAAC,MAAM,IAAI,CAgKb,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
2
|
+
import { BatTargets } from './halloween-bat-targets';
|
|
3
|
+
export declare const BAT_SCENE_MS = 17500;
|
|
4
|
+
export declare const BAT_RESTORE = 0.8;
|
|
5
|
+
export declare enum BatPart {
|
|
6
|
+
WingLeft = "wing-left",
|
|
7
|
+
WingRight = "wing-right",
|
|
8
|
+
ForearmLeft = "forearm-left",
|
|
9
|
+
ForearmRight = "forearm-right",
|
|
10
|
+
Wrap = "wrap",
|
|
11
|
+
Sleep = "sleep",
|
|
12
|
+
Eye = "eye",
|
|
13
|
+
Yawn = "yawn",
|
|
14
|
+
Gaze = "gaze"
|
|
15
|
+
}
|
|
16
|
+
interface Point {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BatActor {
|
|
21
|
+
size: number;
|
|
22
|
+
sleeper: boolean;
|
|
23
|
+
/** Position of the claws, SVG point (50,66), not the centre of the artwork. */
|
|
24
|
+
rest: Point;
|
|
25
|
+
frames: Keyframe[];
|
|
26
|
+
parts: Record<BatPart, Keyframe[]>;
|
|
27
|
+
}
|
|
28
|
+
interface BatImpact {
|
|
29
|
+
time: number;
|
|
30
|
+
strength: number;
|
|
31
|
+
launch: number;
|
|
32
|
+
helper: number;
|
|
33
|
+
}
|
|
34
|
+
export interface BatSurface {
|
|
35
|
+
target: CelebrationSnapshotTarget;
|
|
36
|
+
origin: string;
|
|
37
|
+
entry: number;
|
|
38
|
+
frames: Keyframe[];
|
|
39
|
+
impacts: BatImpact[];
|
|
40
|
+
}
|
|
41
|
+
export interface BatPlan {
|
|
42
|
+
active: boolean;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
composer?: CelebrationSnapshotTarget;
|
|
46
|
+
perch?: CelebrationSnapshotTarget;
|
|
47
|
+
actors: BatActor[];
|
|
48
|
+
surfaces: BatSurface[];
|
|
49
|
+
}
|
|
50
|
+
/** Build a finite story once; page reactions follow the helpers' power strokes. */
|
|
51
|
+
export declare const buildBatPlan: (targets: BatTargets, isMobile: boolean, random?: () => number) => BatPlan;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=halloween-bat-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-bat-plan.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-bat-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,eAAO,MAAM,YAAY,QAAkC,CAAC;AAC5D,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,oBAAY,OAAO;IACjB,QAAQ,cAAc;IACtB,SAAS,eAAe;IACxB,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AASD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;CACpC;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAwMD,mFAAmF;AACnF,eAAO,MAAM,YAAY,GACvB,SAAS,UAAU,EACnB,UAAU,OAAO,EACjB,SAAQ,MAAM,MAAoB,KACjC,OAgPF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
3
|
+
export interface BatTargets {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
composer?: CelebrationSnapshotTarget;
|
|
7
|
+
perch?: CelebrationSnapshotTarget;
|
|
8
|
+
surfaces: CelebrationSnapshotTarget[];
|
|
9
|
+
}
|
|
10
|
+
export declare const BAT_SURFACE_NODE_LIMIT = 60;
|
|
11
|
+
/** Measure idle surfaces near the sleeping bat without touching the live composer. */
|
|
12
|
+
export declare const getBatTargets: (anchors: CelebrationAnchors, limit?: number) => BatTargets;
|
|
13
|
+
//# sourceMappingURL=halloween-bat-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-bat-targets.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-bat-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAQnF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,QAAQ,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,sBAAsB,KAAK,CAAC;AASzC,sFAAsF;AACtF,eAAO,MAAM,aAAa,GACxB,SAAS,kBAAkB,EAC3B,cAAS,KACR,UA2KF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CelebrationHistoryRow } from '../../utils/celebration-history';
|
|
2
|
+
export declare const BOWLING_ANIMATION_MS = 8000;
|
|
3
|
+
export declare const BOWLING_ROLL_START = 0.12;
|
|
4
|
+
export declare const BOWLING_ROLL_END = 0.56;
|
|
5
|
+
interface BowlingHit extends CelebrationHistoryRow {
|
|
6
|
+
contact: number;
|
|
7
|
+
contactRect: DOMRect;
|
|
8
|
+
}
|
|
9
|
+
export interface BowlingPlan {
|
|
10
|
+
startX: number;
|
|
11
|
+
endX: number;
|
|
12
|
+
y: number;
|
|
13
|
+
radius: number;
|
|
14
|
+
direction: 1 | -1;
|
|
15
|
+
hits: BowlingHit[];
|
|
16
|
+
}
|
|
17
|
+
/** Collide with the visible title, not the row's empty trailing click area. */
|
|
18
|
+
export declare const getBowlingContactRect: ({ element, rect, }: CelebrationHistoryRow) => DOMRect;
|
|
19
|
+
/** Aim at a visible row, then derive affected rows from the ball's actual swept circle. */
|
|
20
|
+
export declare const buildBowlingPlan: (rows: readonly CelebrationHistoryRow[], viewportWidth: number, viewportHeight: number) => BowlingPlan | null;
|
|
21
|
+
/** Travel, spin and row impulses use one clock so a row never flies before contact. */
|
|
22
|
+
export declare const animateBowling: (plan: BowlingPlan, host: HTMLElement, actor: HTMLElement, spin: SVGElement, onStop?: () => void) => (() => void);
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=halloween-bowling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-bowling.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-bowling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,UAAU,UAAW,SAAQ,qBAAqB;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAClB,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,GAAI,oBAGnC,qBAAqB,KAAG,OA4D1B,CAAC;AAqBF,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,GAC3B,MAAM,SAAS,qBAAqB,EAAE,EACtC,eAAe,MAAM,EACrB,gBAAgB,MAAM,KACrB,WAAW,GAAG,IAmChB,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,cAAc,GACzB,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,OAAO,WAAW,EAClB,MAAM,UAAU,EAChB,SAAS,MAAM,IAAI,KAClB,CAAC,MAAM,IAAI,CAkFb,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CandyPlan } from './halloween-candy-plan';
|
|
2
|
+
/** One finite clock; no live host control is ever animated or mutated. */
|
|
3
|
+
export declare const animateCandy: (plan: CandyPlan, host: HTMLElement, onStop: () => void) => (() => void);
|
|
4
|
+
//# sourceMappingURL=halloween-candy-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-candy-animation.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-candy-animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAC;AAEhC,0EAA0E;AAC1E,eAAO,MAAM,YAAY,GACvB,MAAM,SAAS,EACf,MAAM,WAAW,EACjB,QAAQ,MAAM,IAAI,KACjB,CAAC,MAAM,IAAI,CAsKb,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CandyTargets } from './halloween-candy-targets';
|
|
2
|
+
/** Includes final cleanup and the last janitor leaving. */
|
|
3
|
+
export declare const CANDY_MS = 35000;
|
|
4
|
+
export declare const CANDY_DEADLINE_MS: number;
|
|
5
|
+
export declare const CANDY_FRAME_LIMIT = 160;
|
|
6
|
+
export declare enum CandyContactKind {
|
|
7
|
+
Edge = "edge",
|
|
8
|
+
Peck = "peck",
|
|
9
|
+
Sweep = "sweep"
|
|
10
|
+
}
|
|
11
|
+
export declare enum CandyJanitorKind {
|
|
12
|
+
Mummy = "mummy",
|
|
13
|
+
Skeleton = "skeleton"
|
|
14
|
+
}
|
|
15
|
+
export interface CandyPoint {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}
|
|
19
|
+
/** Every pose is shared with artwork and collision evidence. */
|
|
20
|
+
export interface CandyContact extends CandyPoint {
|
|
21
|
+
time: number;
|
|
22
|
+
sweet: number;
|
|
23
|
+
kind: CandyContactKind;
|
|
24
|
+
actor?: number;
|
|
25
|
+
surface?: number;
|
|
26
|
+
}
|
|
27
|
+
interface Sweet {
|
|
28
|
+
frames: Keyframe[];
|
|
29
|
+
floorX: number;
|
|
30
|
+
}
|
|
31
|
+
interface Bird {
|
|
32
|
+
frames: Keyframe[];
|
|
33
|
+
head: Keyframe[];
|
|
34
|
+
wing: Keyframe[];
|
|
35
|
+
facing: Keyframe[];
|
|
36
|
+
}
|
|
37
|
+
interface Janitor {
|
|
38
|
+
kind: CandyJanitorKind;
|
|
39
|
+
frames: Keyframe[];
|
|
40
|
+
arms: Keyframe[];
|
|
41
|
+
legs: Keyframe[][];
|
|
42
|
+
facing: Keyframe[];
|
|
43
|
+
}
|
|
44
|
+
/** Coordinates are mirrored as a single artwork layer in RTL; no host text enters it. */
|
|
45
|
+
export interface CandyPlan {
|
|
46
|
+
targets: CandyTargets;
|
|
47
|
+
floor: number;
|
|
48
|
+
radius: number;
|
|
49
|
+
birdScale: number;
|
|
50
|
+
janitorScale: number;
|
|
51
|
+
peckAngle: number;
|
|
52
|
+
sweets: Sweet[];
|
|
53
|
+
birds: Bird[];
|
|
54
|
+
janitors: Janitor[];
|
|
55
|
+
contacts: CandyContact[];
|
|
56
|
+
animationLimit: number;
|
|
57
|
+
}
|
|
58
|
+
/** The drawing's beak rotates around its neck; use this for every peck. */
|
|
59
|
+
export declare const candyBeakPoint: (angle: number) => CandyPoint;
|
|
60
|
+
/** Brush contact in the janitor's left-facing rest pose. */
|
|
61
|
+
export declare const CANDY_BRUSH: {
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
};
|
|
65
|
+
/** Deterministic finite choreography; all geometry work precedes playback. */
|
|
66
|
+
export declare const buildCandyPlan: (targets: CandyTargets, mobile: boolean) => CandyPlan;
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=halloween-candy-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-candy-plan.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-candy-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAC9B,eAAO,MAAM,iBAAiB,QAAiB,CAAC;AAChD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AACD,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AACD,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAMD,gEAAgE;AAChE,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,UAAU,KAAK;IACb,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,UAAU,IAAI;IACZ,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AACD,UAAU,OAAO;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;IACnB,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AACD,yFAAyF;AACzF,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AA4BD,2EAA2E;AAC3E,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,UAG7C,CAAC;AACH,4DAA4D;AAC5D,eAAO,MAAM,WAAW;;;CAAoB,CAAC;AAE7C,8EAA8E;AAC9E,eAAO,MAAM,cAAc,GACzB,SAAS,YAAY,EACrB,QAAQ,OAAO,KACd,SAygBF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
3
|
+
/** Measured collision surfaces; no surface is copied or animated. */
|
|
4
|
+
export interface CandyTargets {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
rtl: boolean;
|
|
8
|
+
surfaces: CelebrationSnapshotTarget[];
|
|
9
|
+
}
|
|
10
|
+
/** Bounded cached discovery, including hosts with only a focused composer. */
|
|
11
|
+
export declare const getCandyTargets: (anchors: CelebrationAnchors, isMobile: boolean) => CandyTargets;
|
|
12
|
+
//# sourceMappingURL=halloween-candy-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-candy-targets.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-candy-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,qEAAqE;AACrE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,8EAA8E;AAC9E,eAAO,MAAM,eAAe,GAC1B,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,YAmHF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CatPlan } from './halloween-cat-plan';
|
|
2
|
+
interface CatElements {
|
|
3
|
+
host: HTMLElement;
|
|
4
|
+
copies: HTMLElement;
|
|
5
|
+
actor: HTMLElement;
|
|
6
|
+
facing: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
/** Keep paws and borrowed buttons on one clock; any interruption restores the page. */
|
|
9
|
+
export declare const animateCat: (plan: CatPlan, { host, copies, actor, facing }: CatElements, onStop: () => void) => (() => void);
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=halloween-cat-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-cat-animation.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-cat-animation.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/E,UAAU,WAAW;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,uFAAuF;AACvF,eAAO,MAAM,UAAU,GACrB,MAAM,OAAO,EACb,iCAAiC,WAAW,EAC5C,QAAQ,MAAM,IAAI,KACjB,CAAC,MAAM,IAAI,CAqJb,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
2
|
+
import { CatTargets } from './halloween-cat-targets';
|
|
3
|
+
export declare const CAT_SCENE_MS = 25000;
|
|
4
|
+
export declare const CAT_RESTORE = 0.92;
|
|
5
|
+
export declare enum CatPart {
|
|
6
|
+
Arm = "arm",
|
|
7
|
+
Forearm = "forearm",
|
|
8
|
+
Head = "head",
|
|
9
|
+
Tail = "tail",
|
|
10
|
+
HindLeg = "hind-leg",
|
|
11
|
+
FarLeg = "far-leg",
|
|
12
|
+
Eyes = "eyes",
|
|
13
|
+
Pupils = "pupils",
|
|
14
|
+
Ears = "ears",
|
|
15
|
+
Tongue = "tongue"
|
|
16
|
+
}
|
|
17
|
+
export declare enum CatContactKind {
|
|
18
|
+
Touch = "touch",
|
|
19
|
+
Nudge = "nudge",
|
|
20
|
+
Push = "push",
|
|
21
|
+
Release = "release"
|
|
22
|
+
}
|
|
23
|
+
interface Point {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}
|
|
27
|
+
interface CatContact {
|
|
28
|
+
button: number;
|
|
29
|
+
time: number;
|
|
30
|
+
kind: CatContactKind;
|
|
31
|
+
point: Point;
|
|
32
|
+
}
|
|
33
|
+
interface CatButton {
|
|
34
|
+
target: CelebrationSnapshotTarget;
|
|
35
|
+
frames: Keyframe[];
|
|
36
|
+
entry: number;
|
|
37
|
+
release: number;
|
|
38
|
+
landing: number;
|
|
39
|
+
support?: CelebrationSnapshotTarget;
|
|
40
|
+
rebound?: {
|
|
41
|
+
apex: number;
|
|
42
|
+
end: number;
|
|
43
|
+
height: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface CatPlan {
|
|
47
|
+
active: boolean;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
composer?: CelebrationSnapshotTarget;
|
|
51
|
+
anchors: CelebrationSnapshotTarget[];
|
|
52
|
+
size: number;
|
|
53
|
+
/** Physical position of SVG foot point (80,120). */
|
|
54
|
+
rest: Point;
|
|
55
|
+
frames: Keyframe[];
|
|
56
|
+
facing: Keyframe[];
|
|
57
|
+
parts: Record<CatPart, Keyframe[]>;
|
|
58
|
+
buttons: CatButton[];
|
|
59
|
+
contacts: CatContact[];
|
|
60
|
+
floor?: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
width: number;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/** Precompute physical contacts, accelerating falls and one measured rebound. */
|
|
67
|
+
export declare const buildCatPlan: (targets: CatTargets, isMobile: boolean) => CatPlan;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=halloween-cat-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-cat-plan.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-cat-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,eAAO,MAAM,YAAY,QAAkC,CAAC;AAC5D,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,oBAAY,OAAO;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,aAAa;IACpB,MAAM,YAAY;IAClB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,UAAU;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,UAAU,SAAS;IACjB,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD;AAkHD,iFAAiF;AACjF,eAAO,MAAM,YAAY,GACvB,SAAS,UAAU,EACnB,UAAU,OAAO,KAChB,OA+kBF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
3
|
+
export interface CatTargets {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
composer?: CelebrationSnapshotTarget;
|
|
7
|
+
buttons: CelebrationSnapshotTarget[];
|
|
8
|
+
supports: CelebrationSnapshotTarget[];
|
|
9
|
+
}
|
|
10
|
+
export declare const CAT_BUTTON_NODE_LIMIT = 60;
|
|
11
|
+
/** Capture nearby prizes and landing ledges without copying or changing live UI. */
|
|
12
|
+
export declare const getCatTargets: (anchors: CelebrationAnchors) => CatTargets;
|
|
13
|
+
//# sourceMappingURL=halloween-cat-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-cat-targets.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-cat-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACrC,QAAQ,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,qBAAqB,KAAK,CAAC;AA8BxC,oFAAoF;AACpF,eAAO,MAAM,aAAa,GAAI,SAAS,kBAAkB,KAAG,UAwL3D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FootprintPlan } from './halloween-footprint-plan';
|
|
2
|
+
interface FootprintElements {
|
|
3
|
+
host: HTMLElement;
|
|
4
|
+
copies: HTMLElement;
|
|
5
|
+
prints: Element[];
|
|
6
|
+
surface: HTMLElement | null;
|
|
7
|
+
face: HTMLElement;
|
|
8
|
+
}
|
|
9
|
+
/** Play bounded, synchronized artwork and snapshots; stopping restores every original. */
|
|
10
|
+
export declare const animateFootprints: (plan: FootprintPlan, { host, copies, prints, surface, face }: FootprintElements, onStop: () => void) => (() => void);
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=halloween-footprint-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-footprint-animation.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-footprint-animation.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,iBAAiB;IACzB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,GAC5B,MAAM,aAAa,EACnB,yCAAyC,iBAAiB,EAC1D,QAAQ,MAAM,IAAI,KACjB,CAAC,MAAM,IAAI,CAqLb,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
2
|
+
import { FootprintComposer, FootprintTargets } from './halloween-footprint-targets';
|
|
3
|
+
/** Finite Footprints timeline, also the existing provider deadline. */
|
|
4
|
+
export declare const FOOTPRINT_MS = 12000;
|
|
5
|
+
/** Snapshot source fade-out completes before the first card contact. */
|
|
6
|
+
export declare const FOOTPRINT_HIDE = 0.24;
|
|
7
|
+
/** Return ownership after the card's rebound has settled. */
|
|
8
|
+
export declare const FOOTPRINT_RESTORE = 0.86;
|
|
9
|
+
/** Snapshot helper completes its source restoration four percent later. */
|
|
10
|
+
export declare const FOOTPRINT_HANDOFF: number;
|
|
11
|
+
/** Includes the borrowed copy and the original's opacity track. */
|
|
12
|
+
export declare const FOOTPRINT_ANIMATION_LIMIT = 20;
|
|
13
|
+
/** Maximum precomputed frames in any one track. */
|
|
14
|
+
export declare const FOOTPRINT_KEYFRAME_LIMIT = 80;
|
|
15
|
+
/** Separates page prints from prints attached to a card or input outline. */
|
|
16
|
+
export declare enum FootprintSurface {
|
|
17
|
+
Page = "page",
|
|
18
|
+
Card = "card",
|
|
19
|
+
Composer = "composer"
|
|
20
|
+
}
|
|
21
|
+
/** Articulated facial features of the invisible familiar. */
|
|
22
|
+
export declare enum FootprintPart {
|
|
23
|
+
Eyes = "eyes",
|
|
24
|
+
Gaze = "gaze",
|
|
25
|
+
Grin = "grin"
|
|
26
|
+
}
|
|
27
|
+
interface Point {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}
|
|
31
|
+
interface Print {
|
|
32
|
+
point: Point;
|
|
33
|
+
surface: FootprintSurface;
|
|
34
|
+
contactAt: number;
|
|
35
|
+
frames: Keyframe[];
|
|
36
|
+
}
|
|
37
|
+
/** Immutable geometry and tracks for one activation. */
|
|
38
|
+
export interface FootprintPlan {
|
|
39
|
+
anchors: CelebrationSnapshotTarget[];
|
|
40
|
+
card?: CelebrationSnapshotTarget;
|
|
41
|
+
/** Decorative outline only; the input remains fully visible and editable. */
|
|
42
|
+
ledge?: FootprintComposer;
|
|
43
|
+
size: number;
|
|
44
|
+
prints: Print[];
|
|
45
|
+
surfaceFrames: Keyframe[];
|
|
46
|
+
faceFrames: Keyframe[];
|
|
47
|
+
faceParts: Record<FootprintPart, Keyframe[]>;
|
|
48
|
+
}
|
|
49
|
+
/** Precompute alternating pressure marks, surface weight and the last disappearing grin. */
|
|
50
|
+
export declare const buildFootprintPlan: (targets: FootprintTargets, isMobile: boolean) => FootprintPlan;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=halloween-footprint-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-footprint-plan.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-footprint-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,uEAAuE;AACvE,eAAO,MAAM,YAAY,QAAQ,CAAC;AAClC,wEAAwE;AACxE,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,QAA2B,CAAC;AAC1D,mEAAmE;AACnE,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,mDAAmD;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,6EAA6E;AAC7E,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AACD,6DAA6D;AAC7D,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AACD,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AACD,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AACD,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACrC,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,6EAA6E;IAC7E,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,CAAC,CAAC;CAC9C;AASD,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,GAC7B,SAAS,gBAAgB,EACzB,UAAU,OAAO,KAChB,aA+SF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
3
|
+
/** Maximum candidate starter buttons inspected during one preparation. */
|
|
4
|
+
export declare const FOOTPRINT_SCAN_LIMIT = 12;
|
|
5
|
+
/** Maximum descendants in the single borrowed card. */
|
|
6
|
+
export declare const FOOTPRINT_COPY_NODE_LIMIT = 40;
|
|
7
|
+
/** A measured input outline, without copying any editable descendants. */
|
|
8
|
+
export interface FootprintComposer extends CelebrationSnapshotTarget {
|
|
9
|
+
borderRadius?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Measured viewport and optional safe props for the invisible familiar. */
|
|
12
|
+
export interface FootprintTargets {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
/** Measured landing ledge; never copied or moved. */
|
|
16
|
+
composer?: FootprintComposer;
|
|
17
|
+
/** One eligible starter button, never a composer control. */
|
|
18
|
+
card?: CelebrationSnapshotTarget;
|
|
19
|
+
}
|
|
20
|
+
/** Select one visible idle starter through host anchors with bounded cached reads. */
|
|
21
|
+
export declare const getFootprintTargets: (anchors: CelebrationAnchors) => FootprintTargets;
|
|
22
|
+
//# sourceMappingURL=halloween-footprint-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-footprint-targets.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-footprint-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,uDAAuD;AACvD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAI5C,0EAA0E;AAC1E,MAAM,WAAW,iBAAkB,SAAQ,yBAAyB;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;AAOD,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,GAC9B,SAAS,kBAAkB,KAC1B,gBAyIF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GhostPlan } from './halloween-ghost-plan';
|
|
2
|
+
interface GhostElements {
|
|
3
|
+
host: HTMLElement;
|
|
4
|
+
copies: HTMLElement;
|
|
5
|
+
actors: HTMLElement[];
|
|
6
|
+
faceTemplate: HTMLElement | null;
|
|
7
|
+
pumpkinGlow: HTMLElement | null;
|
|
8
|
+
}
|
|
9
|
+
/** Play finite, synchronized decoration and restore every original on interruption. */
|
|
10
|
+
export declare const animateGhosts: (plan: GhostPlan, { host, copies, actors, faceTemplate, pumpkinGlow }: GhostElements, onStop: () => void) => (() => void);
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=halloween-ghost-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-ghost-animation.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-ghost-animation.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAC;AAEhC,UAAU,aAAa;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;CACjC;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,GACxB,MAAM,SAAS,EACf,qDAAqD,aAAa,EAClE,QAAQ,MAAM,IAAI,KACjB,CAAC,MAAM,IAAI,CAuNb,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
|
|
2
|
+
import { HalloweenGhostVariant } from '../types/halloween';
|
|
3
|
+
import { GhostTargets } from './halloween-ghost-targets';
|
|
4
|
+
export declare const GHOST_SCENE_MS = 12000;
|
|
5
|
+
export declare const GHOST_RESTORE = 0.9;
|
|
6
|
+
export declare const GHOST_PUMPKIN_REACTION = 0.51;
|
|
7
|
+
interface Point {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
export interface GhostHome {
|
|
12
|
+
target: CelebrationSnapshotTarget;
|
|
13
|
+
center: Point;
|
|
14
|
+
entry: number;
|
|
15
|
+
frames: Keyframe[];
|
|
16
|
+
eyesFrames: Keyframe[];
|
|
17
|
+
lookFrames: Keyframe[];
|
|
18
|
+
}
|
|
19
|
+
export interface GhostActor {
|
|
20
|
+
variant: HalloweenGhostVariant;
|
|
21
|
+
size: number;
|
|
22
|
+
leader: boolean;
|
|
23
|
+
home: number;
|
|
24
|
+
rest: Point;
|
|
25
|
+
frames: Keyframe[];
|
|
26
|
+
clothFrames: Keyframe[];
|
|
27
|
+
frightFrames: Keyframe[];
|
|
28
|
+
}
|
|
29
|
+
export interface GhostPlan {
|
|
30
|
+
active: boolean;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
pumpkin?: CelebrationSnapshotTarget;
|
|
34
|
+
homes: GhostHome[];
|
|
35
|
+
actors: GhostActor[];
|
|
36
|
+
leaderHome: number;
|
|
37
|
+
}
|
|
38
|
+
/** One immutable story: each home and ghost share measured physical coordinates. */
|
|
39
|
+
export declare const buildGhostPlan: (targets: GhostTargets, isMobile: boolean, random?: () => number) => GhostPlan;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=halloween-ghost-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halloween-ghost-plan.d.ts","sourceRoot":"","sources":["../../../src/halloween/utils/halloween-ghost-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,UAAU,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,WAAW,EAAE,QAAQ,EAAE,CAAC;IACxB,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AA8BD,oFAAoF;AACpF,eAAO,MAAM,cAAc,GACzB,SAAS,YAAY,EACrB,UAAU,OAAO,EACjB,SAAQ,MAAM,MAAoB,KACjC,SAoNF,CAAC"}
|