@joy-ride/game 0.29.0 → 0.29.1
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/bookmarklet.d.ts +1 -1
- package/bookmarklet.js +1 -1
- package/embed-chunks/{CodeBlock-C-uqwCCE.js → CodeBlock-CmdFck30.js} +1 -1
- package/embed-chunks/{Documentation-CCpuHmnH.js → Documentation-C5yd8S9T.js} +2 -2
- package/embed-chunks/{EmbedPanel-CltTMTEZ.js → EmbedPanel-BDZ9gPAY.js} +1 -1
- package/embed-chunks/{JoyRideView-dbTrQ6zf.js → JoyRideView-CGO2LlqF.js} +1 -1
- package/embed-chunks/{configuration~index~embed-E9p3ySKG.js → configuration~index~embed-CRXVkf5S.js} +1 -1
- package/embed-chunks/configuration~index~embed~bookmarklet-6dUo7fKK.js +1 -0
- package/embed-chunks/{runtime~JoyRideView~browser-session-core-hIS-xQed.js → runtime~JoyRideView~browser-session-core-W3T3KGBY.js} +1 -1
- package/embed-chunks/{runtime~browser-session-core-DfamcX9U.js → runtime~browser-session-core-ABdeer0k.js} +1 -1
- package/embed-chunks/{runtime~index~embed-Bm1M0iiY.js → runtime~index~embed-Cdk1V9Yq.js} +2 -2
- package/embed-chunks/{runtime~index~embed~vehicle-popover~browser-session-core~renderer-iEgK-2uE.js → runtime~index~embed~vehicle-popover~browser-session-core~renderer-DKaOSaI2.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover-CA1iUObq.js → runtime~vehicle-popover-B9t-I45z.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core-B5JA0YNt.js → runtime~vehicle-popover~browser-session-core-hzAmTyN1.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core~renderer-FYzuLkAN.js → runtime~vehicle-popover~browser-session-core~renderer-DRXQjSAc.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~renderer-B44auM3E.js → runtime~vehicle-popover~renderer-CFfqUX4J.js} +3 -3
- package/embed-chunks/{src-sen5Yp2R.js → src-v40jgxEo.js} +2 -2
- package/embed-chunks/{vehicle-catalog~index~embed-CKTjozQr.js → vehicle-catalog~index~embed-CkmzFsdm.js} +1 -1
- package/embed-chunks/{vehicle-popover-RZXv8RjT.js → vehicle-popover-Cah1Jwwj.js} +1 -1
- package/embed.js +1 -1
- package/{index-DztYDfpU.d.ts → index-Cr-53zu5.d.ts} +2 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/npm-chunks/{Documentation-DjEkQvvy.js → Documentation-C8s_aL0s.js} +2 -2
- package/npm-chunks/{EmbedPanel-DBoR1Dci.js → EmbedPanel-a4F6OnOH.js} +1 -1
- package/npm-chunks/{JoyRideView-CqVA2IWS.js → JoyRideView-BAXi_AFI.js} +1 -1
- package/npm-chunks/{VehicleHint-BaLJr7O5.js → VehicleHint-CS6L9FO9.js} +1 -1
- package/npm-chunks/{configuration~react-Wr_iMhZB.js → configuration~react-B3URe5Hp.js} +1 -1
- package/npm-chunks/configuration~react~vehicle-popover~JoyRideView~browser-session-core~renderer-BASSGxIF.js +1 -0
- package/npm-chunks/{runtime~JoyRideView~browser-session-core-Del73NUd.js → runtime~JoyRideView~browser-session-core-7d-89abo.js} +1 -1
- package/npm-chunks/runtime~browser-session-core-CTEOkb8N.js +1 -0
- package/npm-chunks/{runtime~react-De_WENZT.js → runtime~react-DuHGu6qC.js} +1 -1
- package/npm-chunks/{runtime~react~browser-session-core-DPWW9TnO.js → runtime~react~browser-session-core-BOMyEw_b.js} +1 -1
- package/npm-chunks/{runtime~react~vehicle-popover~browser-session-core~renderer-DKpExYhH.js → runtime~react~vehicle-popover~browser-session-core~renderer-5hzldoVR.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover-QsSxwpN_.js → runtime~vehicle-popover-DF_vkfqT.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~browser-session-core-CrZME-1Y.js → runtime~vehicle-popover~browser-session-core-CDg6b0po.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~browser-session-core~renderer-L2_7uaz1.js → runtime~vehicle-popover~browser-session-core~renderer-D_NBXTcG.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~renderer-CTrAfI2e.js → runtime~vehicle-popover~renderer-C7Eq6aHr.js} +3 -3
- package/npm-chunks/{theme-CyUONXaD.js → theme-CkSpDTIL.js} +1 -1
- package/npm-chunks/{vehicle-catalog~react~browser-session-core-Ck9lXSBn.js → vehicle-catalog~react~browser-session-core-CxP3HQ_B.js} +1 -1
- package/npm-chunks/{vehicle-popover-CAG797YN.js → vehicle-popover-CYhUl7Ae.js} +1 -1
- package/package.json +1 -1
- package/{playground-B7tHL_J3.d.ts → playground-C1crX0w5.d.ts} +0 -5
- package/react.d.ts +2 -2
- package/react.js +10 -10
- package/embed-chunks/configuration~index~embed~bookmarklet-5ym-TX_u.js +0 -1
- package/npm-chunks/configuration~react~vehicle-popover~JoyRideView~browser-session-core~renderer-BwD100vD.js +0 -1
- package/npm-chunks/runtime~browser-session-core-Cicrs9mu.js +0 -1
package/embed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./embed-chunks/controls~index~embed-x6xN6BFw.js";import{t}from"./embed-chunks/definitions~index~embed-CnmHo4Z4.js";import{i as n,n as r,r as i,t as a}from"./embed-chunks/configuration~index~embed-
|
|
1
|
+
import{r as e}from"./embed-chunks/controls~index~embed-x6xN6BFw.js";import{t}from"./embed-chunks/definitions~index~embed-CnmHo4Z4.js";import{i as n,n as r,r as i,t as a}from"./embed-chunks/configuration~index~embed-CRXVkf5S.js";import{a as o,c as s,i as c,l,t as u}from"./embed-chunks/vehicle-catalog~index~embed-CkmzFsdm.js";import{n as d,r as f}from"./embed-chunks/controls~index~embed~vehicle-popover~JoyRideView~browser-session-core~renderer-Cnf30Q_A.js";import{n as p,r as m,t as h}from"./embed-chunks/src-v40jgxEo.js";var g=`script[data-jr-mount]`;function _(e){if(e.nodeType!==1)return!1;let t=e;return t.matches(g)||!!t.querySelector(g)}function v(e){let t=e.getAttribute(`data-jr-mount`);if(t===`false`||t===null)return null;let r=!t||t===`true`?{}:JSON.parse(t);if(!r||typeof r!=`object`||Array.isArray(r))throw TypeError(`data-jr-mount must be true or a JSON object`);let i=e.getAttribute(`data-jr-mount-preset`),a=i?n(i,r):r,o=e.getAttribute(`data-jr-dialog-theme`);if(o!==null){if(o!==`auto`&&o!==`light`&&o!==`dark`)throw TypeError(`data-jr-dialog-theme must be auto, light, or dark`);a.dialog={...a.dialog,dialogTheme:o}}let s=e.getAttribute(`data-jr-accent-color`),c=e.getAttribute(`data-jr-dialog-font-family`);if(s!==null||c!==null){if(s!==null&&!/^#[\da-f]{6}$/i.test(s))throw TypeError(`data-jr-accent-color must be six-digit hex`);if(c!==null&&!c.trim())throw TypeError(`data-jr-dialog-font-family must be a CSS font-family value`);a.dialog={...a.dialog,...s===null?{}:{accentColor:s},...c===null?{}:{dialogFontFamily:c}}}for(let[t,n]of[[`vehicle`,`data-jr-persist-vehicle`],[`audio`,`data-jr-persist-audio`]]){let r=e.getAttribute(n);if(r!==null){if(r!==``&&r!==`true`&&r!==`false`)throw TypeError(`${n} must be true or false`);a.persist={...a.persist,[t]:r!==`false`}}}return a}function y(e){let t=e.getAttribute(`data-jr-unmount`);if(t===null||t===`false`||t===`none`)return{route:!1,remove:!1};if(t===``||t===`true`)return{route:!0,remove:!0};let n=t.trim().split(/[\s,]+/);if(n.some(e=>e!==`route`&&e!==`remove`))throw TypeError(`data-jr-unmount accepts route, remove, or both`);return{route:n.includes(`route`),remove:n.includes(`remove`)}}function b(e,t){let n=e.location.href,r=e.history,i=r.pushState,a=r.replaceState,o=!0,s=()=>{o&&e.location.href!==n&&t()},c=function(...e){i.apply(this,e),s()},l=function(...e){a.apply(this,e),s()};return r.pushState=c,r.replaceState=l,e.addEventListener(`popstate`,s),e.addEventListener(`hashchange`,s),()=>{o=!1,e.removeEventListener(`popstate`,s),e.removeEventListener(`hashchange`,s),r.pushState===c&&(r.pushState=i),r.replaceState===l&&(r.replaceState=a)}}function x(e,t=document,n=window){let r=new WeakSet,i,a,o=()=>{if(!e.active){for(let s of t.querySelectorAll(g))if(!r.has(s)&&s.isConnected)try{let c=v(s),l=y(s);if(r.add(s),!c)continue;let u=e.mount(c);i={script:s,controller:u,remove:l.remove,route:l.route,href:n.location.href};let d=l.route?b(n,()=>u.dispose()):()=>{};u.on(`dispose`,()=>{d(),i?.controller===u&&(i=void 0),queueMicrotask(o)}),(l.route||l.remove)&&!a&&(a=new MutationObserver(t=>{i?.route&&n.location.href!==i.href&&i.controller.dispose(),i?.remove&&!i.script.isConnected&&i.controller.dispose(),!e.active&&t.some(e=>[...e.addedNodes].some(_))&&o()}),a.observe(t.documentElement,{childList:!0,subtree:!0}));break}catch(e){r.add(s),console.error(`Joy Ride could not mount from script attributes`,e)}}};t.readyState===`loading`?t.addEventListener(`DOMContentLoaded`,o,{once:!0}):queueMicrotask(o)}typeof window<`u`&&(window.JoyRide=h,x(h));var S=h;export{u as availableVehicleTools,S as default,t as define,p as getActive,n as getMountPreset,o as getVehiclePreset,e as keyboardControls,s as listVehicleOptions,l as listVehiclePresets,m as mount,d as overlayLayers,f as overlayZIndex,a as publicDataAttributeNames,r as publicDataAttributePrefixes,i as publicDataAttributes,c as vehicleTools};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as VehiclePreset, A as VehicleSlots, B as RuntimeOptionsPatch, C as VehiclePatch, D as LiquidEmission, E as VehiclePickupEffect, F as LiquidResidue, G as VehicleMasks, H as MaskRect, I as LiquidSource, J as SimulationState, K as Controls, L as CoreOptionsPatch, M as LiquidColorInput, N as LiquidKind, O as SlotNumber, P as LiquidPourOptions, Q as FlamethrowerProfile, R as DriveSettings, S as VehicleConfiguration, T as PickupPulse, U as MaskShape, W as VehicleMask, X as VehicleMode, Y as Vec2, Z as CombustibleStage, _ as ObjectiveSpec, a as PlaygroundObject, at as DebrisOptions, b as PlaygroundDefinitions, c as PlaygroundConfiguration, d as DeepReadonly, et as Debris, f as ObjectPatch, h as ObjectiveHandle, i as PlaygroundDiagnostic, j as LiquidColor, k as VehicleSlot, l as definePlayground, m as ObjectiveEventDetail, n as PlaygroundTriggerDetail, nt as DebrisBounds, o as PlaygroundRegistry, ot as DebrisParticle, q as Simulation, r as PlaygroundBinding, rt as DebrisHandle, s as PlaygroundTarget, st as DebrisVector, t as PlaygroundRouteHandle, u as Appearance, w as PickupEffectInput, x as RouteSpec, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-
|
|
1
|
+
import { $ as VehiclePreset, A as VehicleSlots, B as RuntimeOptionsPatch, C as VehiclePatch, D as LiquidEmission, E as VehiclePickupEffect, F as LiquidResidue, G as VehicleMasks, H as MaskRect, I as LiquidSource, J as SimulationState, K as Controls, L as CoreOptionsPatch, M as LiquidColorInput, N as LiquidKind, O as SlotNumber, P as LiquidPourOptions, Q as FlamethrowerProfile, R as DriveSettings, S as VehicleConfiguration, T as PickupPulse, U as MaskShape, W as VehicleMask, X as VehicleMode, Y as Vec2, Z as CombustibleStage, _ as ObjectiveSpec, a as PlaygroundObject, at as DebrisOptions, b as PlaygroundDefinitions, c as PlaygroundConfiguration, d as DeepReadonly, et as Debris, f as ObjectPatch, h as ObjectiveHandle, i as PlaygroundDiagnostic, j as LiquidColor, k as VehicleSlot, l as definePlayground, m as ObjectiveEventDetail, n as PlaygroundTriggerDetail, nt as DebrisBounds, o as PlaygroundRegistry, ot as DebrisParticle, q as Simulation, r as PlaygroundBinding, rt as DebrisHandle, s as PlaygroundTarget, st as DebrisVector, t as PlaygroundRouteHandle, u as Appearance, w as PickupEffectInput, x as RouteSpec, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-C1crX0w5.js";
|
|
2
2
|
/** One uniform scale anchored to body width; mirrors never squeeze the bodywork. */
|
|
3
3
|
declare function vehicleImageFootprint(preset: VehiclePreset, imageWidth: number, imageHeight: number): {
|
|
4
4
|
source: {
|
|
@@ -1134,6 +1134,7 @@ declare class Renderer {
|
|
|
1134
1134
|
private canvasWorld;
|
|
1135
1135
|
/** Readiness of the sprite used by this renderer's vehicle painter. */
|
|
1136
1136
|
vehicleImageLoadState(preset: Simulation['car']['preset']): 'ready' | 'loading' | 'failed';
|
|
1137
|
+
loadVehicleImage(preset: Simulation['car']['preset'], signal: AbortSignal): Promise<void>;
|
|
1137
1138
|
carVisualOffset(sim: Simulation): Vec2;
|
|
1138
1139
|
get cameraLock(): boolean;
|
|
1139
1140
|
set cameraLock(value: boolean);
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as RuntimeOptionsPatch, C as VehiclePatch, O as SlotNumber, S as VehicleConfiguration, V as VehicleHintOptions, _ as ObjectiveSpec, at as DebrisOptions, c as PlaygroundConfiguration, d as DeepReadonly, f as ObjectPatch, g as ObjectiveProgress, h as ObjectiveHandle, it as DebrisKind, l as definePlayground, m as ObjectiveEventDetail, p as ObjectSpec, rt as DebrisHandle, tt as DebrisAnchor, u as Appearance, v as ObjectiveType, w as PickupEffectInput, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-
|
|
2
|
-
import { C as listVehicleOptions, D as overlayLayers, E as vehicleTools, O as overlayZIndex, S as getVehiclePreset, T as availableVehicleTools, _ as PlayerEntryResult, a as MountPreset, b as PageDebrisHandle, c as mount, d as MountOptions, f as PlaygroundEventMap, g as PlayerEntryOptions, h as PageTarget, i as publicDataAttributes, l as keyboardControls, m as RideController, n as publicDataAttributeNames, o as getMountPreset, p as PlaygroundState, r as publicDataAttributePrefixes, s as getActive, t as api, u as MountHostOptions, v as VehicleHandle, w as listVehiclePresets, x as PageDebrisTarget, y as VehicleSpawnOptions } from "./index-
|
|
1
|
+
import { B as RuntimeOptionsPatch, C as VehiclePatch, O as SlotNumber, S as VehicleConfiguration, V as VehicleHintOptions, _ as ObjectiveSpec, at as DebrisOptions, c as PlaygroundConfiguration, d as DeepReadonly, f as ObjectPatch, g as ObjectiveProgress, h as ObjectiveHandle, it as DebrisKind, l as definePlayground, m as ObjectiveEventDetail, p as ObjectSpec, rt as DebrisHandle, tt as DebrisAnchor, u as Appearance, v as ObjectiveType, w as PickupEffectInput, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-C1crX0w5.js";
|
|
2
|
+
import { C as listVehicleOptions, D as overlayLayers, E as vehicleTools, O as overlayZIndex, S as getVehiclePreset, T as availableVehicleTools, _ as PlayerEntryResult, a as MountPreset, b as PageDebrisHandle, c as mount, d as MountOptions, f as PlaygroundEventMap, g as PlayerEntryOptions, h as PageTarget, i as publicDataAttributes, l as keyboardControls, m as RideController, n as publicDataAttributeNames, o as getMountPreset, p as PlaygroundState, r as publicDataAttributePrefixes, s as getActive, t as api, u as MountHostOptions, v as VehicleHandle, w as listVehiclePresets, x as PageDebrisTarget, y as VehicleSpawnOptions } from "./index-Cr-53zu5.js";
|
|
3
3
|
export { type Appearance, type DebrisAnchor, type DebrisHandle, type DebrisKind, type DebrisOptions, type DeepReadonly, type MountHostOptions, type MountOptions, type MountPreset, type ObjectPatch, type ObjectSpec, type ObjectiveEventDetail, type ObjectiveHandle, type ObjectiveProgress, type ObjectiveSpec, type ObjectiveType, type PageDebrisHandle, type PageDebrisTarget, type PageTarget, type PickupEffectInput, type PlayerConfiguration, type PlayerEntryOptions, type PlayerEntryResult, type PlaygroundConfiguration, type PlaygroundEventMap, type PlaygroundState, type RideController, type RuntimeOptions, type RuntimeOptionsPatch, type SlotNumber, type VehicleConfiguration, type VehicleHandle, type VehicleHintOptions, type VehiclePatch, type VehicleSpawnOptions, availableVehicleTools, api as default, definePlayground as define, getActive, getMountPreset, getVehiclePreset, keyboardControls, listVehicleOptions, listVehiclePresets, mount, overlayLayers, overlayZIndex, publicDataAttributeNames, publicDataAttributePrefixes, publicDataAttributes, vehicleTools };
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./embed-chunks/controls~index~embed-x6xN6BFw.js";import{t}from"./embed-chunks/definitions~index~embed-CnmHo4Z4.js";import{i as n,n as r,r as i,t as a}from"./embed-chunks/configuration~index~embed-
|
|
1
|
+
import{r as e}from"./embed-chunks/controls~index~embed-x6xN6BFw.js";import{t}from"./embed-chunks/definitions~index~embed-CnmHo4Z4.js";import{i as n,n as r,r as i,t as a}from"./embed-chunks/configuration~index~embed-CRXVkf5S.js";import{a as o,c as s,i as c,l,t as u}from"./embed-chunks/vehicle-catalog~index~embed-CkmzFsdm.js";import{n as d,r as f}from"./embed-chunks/controls~index~embed~vehicle-popover~JoyRideView~browser-session-core~renderer-Cnf30Q_A.js";import{n as p,r as m,t as h}from"./embed-chunks/src-v40jgxEo.js";export{u as availableVehicleTools,h as default,t as define,p as getActive,n as getMountPreset,o as getVehiclePreset,e as keyboardControls,s as listVehicleOptions,l as listVehiclePresets,m as mount,d as overlayLayers,f as overlayZIndex,a as publicDataAttributeNames,r as publicDataAttributePrefixes,i as publicDataAttributes,c as vehicleTools};
|