UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

19 lines (18 loc) 897 B
/** * SSR-safe base classes for browser globals that are not available in Node/SSR environments. * * Use these instead of extending browser globals directly so that class definitions * do not throw a ReferenceError at module evaluation time in SSR/Node contexts * (SvelteKit, Next.js, etc.). * * In browser environments each constant is the real global; in SSR it falls back * to a plain empty class so that `class Foo extends HTMLElementBase` is valid. */ /** True when running in an SSR/Node environment (no browser globals). */ export declare const SSR: boolean; /** SSR-safe base class for web components. */ export declare const HTMLElementBase: typeof HTMLElement; /** SSR-safe base class for pointer events. */ export declare const PointerEventBase: typeof PointerEvent; /** SSR-safe base class for keyboard events. */ export declare const KeyboardEventBase: typeof KeyboardEvent;