@visactor/vrender-core
Version:
```typescript import { xxx } from '@visactor/vrender-core'; ```
21 lines (17 loc) • 770 B
JavaScript
import { createLegacyBindingContext } from "../legacy/binding-context";
export const RUNTIME_INSTALLER_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/runtime-installer-state");
function createRuntimeInstallerState() {
return {
runtimeInstallerContext: createLegacyBindingContext(),
preloaded: !1,
runtimeEntryKeys: new WeakMap,
runtimeDrawContributions: new WeakMap,
loadedRuntimeContributionModules: new WeakMap
};
}
export function getRuntimeInstallerState() {
const scope = globalThis;
return scope[RUNTIME_INSTALLER_STATE_SYMBOL] || (scope[RUNTIME_INSTALLER_STATE_SYMBOL] = createRuntimeInstallerState()),
scope[RUNTIME_INSTALLER_STATE_SYMBOL];
}
//# sourceMappingURL=runtime-installer-state.js.map