UNPKG

@visactor/vrender-core

Version:

```typescript import { xxx } from '@visactor/vrender-core'; ```

22 lines (17 loc) 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.application = exports.getApplicationState = exports.APPLICATION_STATE_SYMBOL = exports.Application = void 0; class Application {} function createApplicationState() { return { application: new Application }; } function getApplicationState() { const scope = globalThis; return scope[exports.APPLICATION_STATE_SYMBOL] || (scope[exports.APPLICATION_STATE_SYMBOL] = createApplicationState()), scope[exports.APPLICATION_STATE_SYMBOL]; } exports.Application = Application, exports.APPLICATION_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/application-state"), exports.getApplicationState = getApplicationState, exports.application = getApplicationState().application;