UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

23 lines 587 B
/** * SSR (Server-Side Rendering) environment detection utilities */ /** * Check if running in SSR (Node.js) environment * Returns true if window is not defined (typical Node.js environment) */ export function isSSR() { return typeof window === 'undefined'; } /** * Check if document is available (browser environment) */ export function hasDocument() { return typeof document !== 'undefined'; } /** * Check if navigator is available (browser environment) */ export function hasNavigator() { return typeof navigator !== 'undefined'; } //# sourceMappingURL=ssr.js.map