@visactor/vrender-core
Version:
```typescript import { xxx } from '@visactor/vrender-core'; ```
45 lines (39 loc) • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.createBrowserApp = exports.BrowserEntry = void 0;
const app_context_1 = require("./app-context");
class BrowserEntry {
constructor(options = {}) {
this.context = new app_context_1.AppContext(options.context);
}
get registry() {
return this.context.registry;
}
get factory() {
return this.context.factory;
}
get released() {
return this.context.released;
}
installPlugin(plugin) {
this.context.installPlugin(plugin);
}
installPlugins(plugins) {
this.context.installPlugins(plugins);
}
uninstallPlugin(name) {
this.context.uninstallPlugin(name);
}
createStage(params = {}) {
return this.context.createStage(params);
}
release() {
this.context.release();
}
}
function createBrowserApp(options = {}) {
return new BrowserEntry(options);
}
exports.BrowserEntry = BrowserEntry, exports.createBrowserApp = createBrowserApp;
//# sourceMappingURL=browser.js.map