@dcl/playground-assets 7.19.1-21654129874.commit-4307fca → 7.19.1-21669888843.commit-dab8cfb

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/dist/alpha.d.ts CHANGED
@@ -2332,6 +2332,16 @@ export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => Eve
2332
2332
  */
2333
2333
  export declare function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
2334
2334
 
2335
+ /**
2336
+ * Utilities for standardized globalThis access.
2337
+ * @public
2338
+ */
2339
+ /**
2340
+ * Type-safe globalThis property access.
2341
+ * @public
2342
+ */
2343
+ export declare function getGlobal<T>(key: string): T | undefined;
2344
+
2335
2345
  /**
2336
2346
  * Get the world position of an entity, taking into account the full parent hierarchy.
2337
2347
  * This computes the world-space position by accumulating all parent transforms
@@ -8542,6 +8552,12 @@ export declare namespace ScrollPositionValue {
8542
8552
  */
8543
8553
  export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
8544
8554
 
8555
+ /**
8556
+ * Sets a globalThis property as a polyfill (only if undefined/null).
8557
+ * @public
8558
+ */
8559
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
8560
+
8545
8561
  /**
8546
8562
  * @public
8547
8563
  */
package/dist/beta.d.ts CHANGED
@@ -2332,6 +2332,16 @@ export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => Eve
2332
2332
  */
2333
2333
  export declare function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
2334
2334
 
2335
+ /**
2336
+ * Utilities for standardized globalThis access.
2337
+ * @public
2338
+ */
2339
+ /**
2340
+ * Type-safe globalThis property access.
2341
+ * @public
2342
+ */
2343
+ export declare function getGlobal<T>(key: string): T | undefined;
2344
+
2335
2345
  /**
2336
2346
  * Get the world position of an entity, taking into account the full parent hierarchy.
2337
2347
  * This computes the world-space position by accumulating all parent transforms
@@ -8514,6 +8524,12 @@ export declare namespace ScrollPositionValue {
8514
8524
  */
8515
8525
  export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
8516
8526
 
8527
+ /**
8528
+ * Sets a globalThis property as a polyfill (only if undefined/null).
8529
+ * @public
8530
+ */
8531
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
8532
+
8517
8533
  /**
8518
8534
  * @public
8519
8535
  */
@@ -2332,6 +2332,16 @@ export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => Eve
2332
2332
  */
2333
2333
  export declare function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
2334
2334
 
2335
+ /**
2336
+ * Utilities for standardized globalThis access.
2337
+ * @public
2338
+ */
2339
+ /**
2340
+ * Type-safe globalThis property access.
2341
+ * @public
2342
+ */
2343
+ export declare function getGlobal<T>(key: string): T | undefined;
2344
+
2335
2345
  /**
2336
2346
  * Get the world position of an entity, taking into account the full parent hierarchy.
2337
2347
  * This computes the world-space position by accumulating all parent transforms
@@ -8514,6 +8524,12 @@ export declare namespace ScrollPositionValue {
8514
8524
  */
8515
8525
  export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
8516
8526
 
8527
+ /**
8528
+ * Sets a globalThis property as a polyfill (only if undefined/null).
8529
+ * @public
8530
+ */
8531
+ export declare function setGlobalPolyfill<T>(key: string, value: T): void;
8532
+
8517
8533
  /**
8518
8534
  * @public
8519
8535
  */