@jbrowse/react-circular-genome-view2 3.7.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/JBrowseCircularGenomeView/JBrowseCircularGenomeView.d.ts +1 -1
- package/esm/JBrowseCircularGenomeView/JBrowseCircularGenomeView.js +1 -1
- package/esm/JBrowseCircularGenomeView/index.d.ts +1 -1
- package/esm/JBrowseCircularGenomeView/index.js +1 -1
- package/esm/corePlugins.d.ts +2 -2
- package/esm/createModel/createConfigModel.d.ts +25 -29
- package/esm/createModel/createConfigModel.js +1 -1
- package/esm/createModel/createModel.d.ts +517 -680
- package/esm/createModel/createModel.js +5 -5
- package/esm/createModel/createSessionModel.d.ts +247 -327
- package/esm/createModel/createSessionModel.js +5 -4
- package/esm/createModel/index.d.ts +3 -3
- package/esm/createModel/index.js +3 -3
- package/esm/createViewState.d.ts +1305 -1757
- package/esm/createViewState.js +3 -4
- package/esm/index.d.ts +4 -4
- package/esm/index.js +4 -4
- package/esm/loadPlugins.js +1 -1
- package/esm/types.d.ts +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/webpack.d.ts +4 -4
- package/esm/webpack.js +4 -4
- package/package.json +38 -40
- package/dist/JBrowseCircularGenomeView/JBrowseCircularGenomeView.d.ts +0 -5
- package/dist/JBrowseCircularGenomeView/JBrowseCircularGenomeView.js +0 -23
- package/dist/JBrowseCircularGenomeView/index.d.ts +0 -1
- package/dist/JBrowseCircularGenomeView/index.js +0 -8
- package/dist/corePlugins.d.ts +0 -3
- package/dist/corePlugins.js +0 -22
- package/dist/createModel/AboutDialog.d.ts +0 -1
- package/dist/createModel/AboutDialog.js +0 -5
- package/dist/createModel/createConfigModel.d.ts +0 -104
- package/dist/createModel/createConfigModel.js +0 -43
- package/dist/createModel/createModel.d.ts +0 -4588
- package/dist/createModel/createModel.js +0 -117
- package/dist/createModel/createSessionModel.d.ts +0 -1870
- package/dist/createModel/createSessionModel.js +0 -115
- package/dist/createModel/index.d.ts +0 -3
- package/dist/createModel/index.js +0 -12
- package/dist/createViewState.d.ts +0 -11770
- package/dist/createViewState.js +0 -64
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -14
- package/dist/loadPlugins.d.ts +0 -13
- package/dist/loadPlugins.js +0 -12
- package/dist/react-circular-genome-view.umd.production.min.js +0 -229
- package/dist/react-circular-genome-view.umd.production.min.js.LICENSE.txt +0 -145
- package/dist/react-circular-genome-view.umd.production.min.js.map +0 -1
- package/dist/types.d.ts +0 -5
- package/dist/types.js +0 -2
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/webpack.d.ts +0 -7
- package/dist/webpack.js +0 -53
package/esm/createViewState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { onPatch } from '@jbrowse/mobx-state-tree';
|
|
1
2
|
import { autorun } from 'mobx';
|
|
2
|
-
import
|
|
3
|
-
import createModel from './createModel';
|
|
3
|
+
import createModel from "./createModel/index.js";
|
|
4
4
|
export default function createViewState(opts) {
|
|
5
5
|
const { assembly, tracks, internetAccounts, configuration, aggregateTextSearchAdapters, plugins, makeWorkerInstance, onChange, } = opts;
|
|
6
6
|
const { model, pluginManager } = createModel(plugins || [], makeWorkerInstance);
|
|
@@ -39,12 +39,11 @@ export default function createViewState(opts) {
|
|
|
39
39
|
pluginManager.setRootModel(stateTree);
|
|
40
40
|
pluginManager.configure();
|
|
41
41
|
autorun(reaction => {
|
|
42
|
-
var _a;
|
|
43
42
|
const { session, assemblyManager } = stateTree;
|
|
44
43
|
if (!session.view.initialized) {
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
const regions =
|
|
46
|
+
const regions = assemblyManager.get(assembly?.name)?.regions;
|
|
48
47
|
if (!regions) {
|
|
49
48
|
return;
|
|
50
49
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as JBrowseCircularGenomeView } from './JBrowseCircularGenomeView';
|
|
2
|
-
export { default as createModel } from './createModel';
|
|
3
|
-
export { default as createViewState } from './createViewState';
|
|
4
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
1
|
+
export { default as JBrowseCircularGenomeView } from './JBrowseCircularGenomeView/index.ts';
|
|
2
|
+
export { default as createModel } from './createModel/index.ts';
|
|
3
|
+
export { default as createViewState } from './createViewState.ts';
|
|
4
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as JBrowseCircularGenomeView } from
|
|
2
|
-
export { default as createModel } from
|
|
3
|
-
export { default as createViewState } from
|
|
4
|
-
export { default as loadPlugins } from
|
|
1
|
+
export { default as JBrowseCircularGenomeView } from "./JBrowseCircularGenomeView/index.js";
|
|
2
|
+
export { default as createModel } from "./createModel/index.js";
|
|
3
|
+
export { default as createViewState } from "./createViewState.js";
|
|
4
|
+
export { default as loadPlugins } from "./loadPlugins.js";
|
package/esm/loadPlugins.js
CHANGED
|
@@ -2,5 +2,5 @@ import PluginLoader from '@jbrowse/core/PluginLoader';
|
|
|
2
2
|
export default async function loadPlugins(pluginDefinitions, args) {
|
|
3
3
|
const pluginLoader = new PluginLoader(pluginDefinitions, args);
|
|
4
4
|
pluginLoader.installGlobalReExports(window);
|
|
5
|
-
return pluginLoader.load(args
|
|
5
|
+
return pluginLoader.load(args?.baseUrl);
|
|
6
6
|
}
|
package/esm/types.d.ts
CHANGED
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version
|
|
1
|
+
export declare const version = "4.0.1";
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '4.0.1';
|
package/esm/webpack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseCircularGenomeView } from './JBrowseCircularGenomeView';
|
|
3
|
-
export { default as createModel } from './createModel';
|
|
4
|
-
export { default as createViewState } from './createViewState';
|
|
5
|
-
export { default as loadPlugins } from './loadPlugins';
|
|
2
|
+
export { default as JBrowseCircularGenomeView } from './JBrowseCircularGenomeView/index.ts';
|
|
3
|
+
export { default as createModel } from './createModel/index.ts';
|
|
4
|
+
export { default as createViewState } from './createViewState.ts';
|
|
5
|
+
export { default as loadPlugins } from './loadPlugins.ts';
|
|
6
6
|
export * from 'react-dom/client';
|
|
7
7
|
export { React };
|
package/esm/webpack.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export { default as JBrowseCircularGenomeView } from
|
|
3
|
-
export { default as createModel } from
|
|
4
|
-
export { default as createViewState } from
|
|
5
|
-
export { default as loadPlugins } from
|
|
2
|
+
export { default as JBrowseCircularGenomeView } from "./JBrowseCircularGenomeView/index.js";
|
|
3
|
+
export { default as createModel } from "./createModel/index.js";
|
|
4
|
+
export { default as createViewState } from "./createViewState.js";
|
|
5
|
+
export { default as loadPlugins } from "./loadPlugins.js";
|
|
6
6
|
export * from 'react-dom/client';
|
|
7
7
|
export { React };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/react-circular-genome-view2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JBrowse 2 circular genome view React component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -15,48 +15,36 @@
|
|
|
15
15
|
"directory": "products/jbrowse-react-circular-genome-view"
|
|
16
16
|
},
|
|
17
17
|
"author": "JBrowse Team",
|
|
18
|
-
"main": "
|
|
19
|
-
"
|
|
18
|
+
"main": "esm/index.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./esm/index.d.ts",
|
|
22
|
+
"import": "./esm/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
20
25
|
"files": [
|
|
21
|
-
"dist",
|
|
22
26
|
"esm",
|
|
23
27
|
"docs"
|
|
24
28
|
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"prebuild": "npm run clean",
|
|
27
|
-
"build": "npm-run-all build:*",
|
|
28
|
-
"prepublishOnly": "node output-version.js > src/version.js && git add -A src && git commit -m '[skip ci] Bump version.js'",
|
|
29
|
-
"prepack": "npm run build",
|
|
30
|
-
"build:esm": "tsc -b tsconfig.build.esm.json",
|
|
31
|
-
"build:commonjs": "tsc -b tsconfig.build.commonjs.json",
|
|
32
|
-
"build:webpack": "webpack",
|
|
33
|
-
"clean": "rimraf esm dist *.tsbuildinfo",
|
|
34
|
-
"storybook": "storybook dev --port 6006",
|
|
35
|
-
"storybook:build": "storybook build"
|
|
36
|
-
},
|
|
37
29
|
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@emotion/
|
|
40
|
-
"@emotion/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"@jbrowse/
|
|
47
|
-
"@jbrowse/
|
|
48
|
-
"@jbrowse/plugin-
|
|
49
|
-
"@jbrowse/plugin-
|
|
50
|
-
"@jbrowse/plugin-
|
|
51
|
-
"@jbrowse/plugin-
|
|
52
|
-
"@jbrowse/
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"mobx-react": "^9.0.0",
|
|
57
|
-
"mobx-state-tree": "^5.0.0",
|
|
58
|
-
"rxjs": "^7.0.0",
|
|
59
|
-
"tss-react": "^4.4.1"
|
|
30
|
+
"@emotion/cache": "^11.14.0",
|
|
31
|
+
"@emotion/react": "^11.14.0",
|
|
32
|
+
"@emotion/styled": "^11.14.1",
|
|
33
|
+
"@jbrowse/mobx-state-tree": "^5.5.0",
|
|
34
|
+
"@mui/icons-material": "^7.3.6",
|
|
35
|
+
"@mui/material": "^7.3.6",
|
|
36
|
+
"mobx": "^6.15.0",
|
|
37
|
+
"mobx-react": "^9.2.1",
|
|
38
|
+
"@jbrowse/core": "^4.0.1",
|
|
39
|
+
"@jbrowse/embedded-core": "^4.0.1",
|
|
40
|
+
"@jbrowse/plugin-authentication": "^4.0.1",
|
|
41
|
+
"@jbrowse/plugin-circular-view": "^4.0.1",
|
|
42
|
+
"@jbrowse/plugin-config": "^4.0.1",
|
|
43
|
+
"@jbrowse/plugin-data-management": "^4.0.1",
|
|
44
|
+
"@jbrowse/plugin-sequence": "^4.0.1",
|
|
45
|
+
"@jbrowse/plugin-variants": "^4.0.1",
|
|
46
|
+
"@jbrowse/plugin-wiggle": "^4.0.1",
|
|
47
|
+
"@jbrowse/product-core": "^4.0.1"
|
|
60
48
|
},
|
|
61
49
|
"peerDependencies": {
|
|
62
50
|
"react": ">=18.0.0"
|
|
@@ -64,5 +52,15 @@
|
|
|
64
52
|
"publishConfig": {
|
|
65
53
|
"access": "public"
|
|
66
54
|
},
|
|
67
|
-
"
|
|
68
|
-
|
|
55
|
+
"sideEffects": false,
|
|
56
|
+
"scripts": {
|
|
57
|
+
"prebuild": "pnpm clean",
|
|
58
|
+
"build": "pnpm run /^build:/",
|
|
59
|
+
"build:esm": "tsc -p tsconfig.build.esm.json",
|
|
60
|
+
"build:webpack": "webpack",
|
|
61
|
+
"clean": "rimraf esm dist *.tsbuildinfo",
|
|
62
|
+
"storybook": "storybook dev --port 6006",
|
|
63
|
+
"storybook:build": "storybook build"
|
|
64
|
+
},
|
|
65
|
+
"types": "esm/index.d.ts"
|
|
66
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
6
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
7
|
-
const util_1 = require("@jbrowse/core/util");
|
|
8
|
-
const embedded_core_1 = require("@jbrowse/embedded-core");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
|
-
const mobx_react_1 = require("mobx-react");
|
|
11
|
-
const JBrowseCircularGenomeView = (0, mobx_react_1.observer)(function ({ viewState, }) {
|
|
12
|
-
const { session } = viewState;
|
|
13
|
-
const { view } = session;
|
|
14
|
-
const { pluginManager } = (0, util_1.getEnv)(session);
|
|
15
|
-
const viewType = pluginManager.getViewType(view.type);
|
|
16
|
-
if (!viewType) {
|
|
17
|
-
throw new Error(`unknown view type ${view.type}`);
|
|
18
|
-
}
|
|
19
|
-
const { ReactComponent } = viewType;
|
|
20
|
-
const theme = (0, ui_1.createJBrowseTheme)((0, configuration_1.readConfObject)(viewState.config.configuration, 'theme'));
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(embedded_core_1.EmbeddedViewContainer, { view: view, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)("div", { children: "Loading..." }), children: (0, jsx_runtime_1.jsx)(ReactComponent, { model: view, session: session }) }) }, `view-${view.id}`), (0, jsx_runtime_1.jsx)(embedded_core_1.ModalWidget, { session: session })] }));
|
|
22
|
-
});
|
|
23
|
-
exports.default = JBrowseCircularGenomeView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './JBrowseCircularGenomeView';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var JBrowseCircularGenomeView_1 = require("./JBrowseCircularGenomeView");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(JBrowseCircularGenomeView_1).default; } });
|
package/dist/corePlugins.d.ts
DELETED
package/dist/corePlugins.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const plugin_authentication_1 = __importDefault(require("@jbrowse/plugin-authentication"));
|
|
7
|
-
const plugin_circular_view_1 = __importDefault(require("@jbrowse/plugin-circular-view"));
|
|
8
|
-
const plugin_config_1 = __importDefault(require("@jbrowse/plugin-config"));
|
|
9
|
-
const plugin_data_management_1 = __importDefault(require("@jbrowse/plugin-data-management"));
|
|
10
|
-
const plugin_sequence_1 = __importDefault(require("@jbrowse/plugin-sequence"));
|
|
11
|
-
const plugin_variants_1 = __importDefault(require("@jbrowse/plugin-variants"));
|
|
12
|
-
const plugin_wiggle_1 = __importDefault(require("@jbrowse/plugin-wiggle"));
|
|
13
|
-
const corePlugins = [
|
|
14
|
-
plugin_authentication_1.default,
|
|
15
|
-
plugin_config_1.default,
|
|
16
|
-
plugin_data_management_1.default,
|
|
17
|
-
plugin_circular_view_1.default,
|
|
18
|
-
plugin_sequence_1.default,
|
|
19
|
-
plugin_variants_1.default,
|
|
20
|
-
plugin_wiggle_1.default,
|
|
21
|
-
];
|
|
22
|
-
exports.default = corePlugins;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AboutDialog as default } from '@jbrowse/product-core';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
var product_core_1 = require("@jbrowse/product-core");
|
|
5
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return product_core_1.AboutDialog; } });
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
-
export default function createConfigModel(pluginManager: PluginManager, assemblyConfigSchemasType: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
4
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
|
-
rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
-
defaultDriver: {
|
|
7
|
-
type: string;
|
|
8
|
-
description: string;
|
|
9
|
-
defaultValue: string;
|
|
10
|
-
};
|
|
11
|
-
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
12
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
13
|
-
highResolutionScaling: {
|
|
14
|
-
type: string;
|
|
15
|
-
defaultValue: number;
|
|
16
|
-
};
|
|
17
|
-
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
18
|
-
feature: {
|
|
19
|
-
type: string;
|
|
20
|
-
description: string;
|
|
21
|
-
defaultValue: {};
|
|
22
|
-
contextVariable: string[];
|
|
23
|
-
};
|
|
24
|
-
subfeatures: {
|
|
25
|
-
type: string;
|
|
26
|
-
description: string;
|
|
27
|
-
defaultValue: {};
|
|
28
|
-
contextVariable: string[];
|
|
29
|
-
};
|
|
30
|
-
depth: {
|
|
31
|
-
type: string;
|
|
32
|
-
defaultValue: number;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
maxDepth: {
|
|
36
|
-
type: string;
|
|
37
|
-
defaultValue: number;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
41
|
-
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
42
|
-
config: {
|
|
43
|
-
type: string;
|
|
44
|
-
description: string;
|
|
45
|
-
defaultValue: {};
|
|
46
|
-
contextVariable: string[];
|
|
47
|
-
};
|
|
48
|
-
hideUris: {
|
|
49
|
-
type: string;
|
|
50
|
-
defaultValue: boolean;
|
|
51
|
-
};
|
|
52
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
53
|
-
hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
54
|
-
sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
55
|
-
trackNames: {
|
|
56
|
-
type: string;
|
|
57
|
-
defaultValue: boolean;
|
|
58
|
-
};
|
|
59
|
-
categories: {
|
|
60
|
-
type: string;
|
|
61
|
-
defaultValue: boolean;
|
|
62
|
-
};
|
|
63
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
64
|
-
defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
|
-
categoryNames: {
|
|
66
|
-
type: string;
|
|
67
|
-
defaultValue: never[];
|
|
68
|
-
};
|
|
69
|
-
topLevelCategories: {
|
|
70
|
-
type: string;
|
|
71
|
-
defaultValue: boolean;
|
|
72
|
-
};
|
|
73
|
-
subCategories: {
|
|
74
|
-
type: string;
|
|
75
|
-
defaultValue: boolean;
|
|
76
|
-
};
|
|
77
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
78
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
79
|
-
theme: {
|
|
80
|
-
type: string;
|
|
81
|
-
defaultValue: {};
|
|
82
|
-
};
|
|
83
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
-
assembly: AnyConfigurationSchemaType;
|
|
85
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
86
|
-
internetAccounts: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
87
|
-
connections: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
88
|
-
aggregateTextSearchAdapters: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
89
|
-
plugins: import("mobx-state-tree").IType<any, any, any>;
|
|
90
|
-
}, {
|
|
91
|
-
readonly assemblies: ({
|
|
92
|
-
[x: string]: any;
|
|
93
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
94
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
95
|
-
[x: string]: any;
|
|
96
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
97
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
98
|
-
[x: string]: any;
|
|
99
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
100
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
101
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>)[];
|
|
102
|
-
readonly assemblyName: string;
|
|
103
|
-
readonly rpcManager: any;
|
|
104
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = createConfigModel;
|
|
7
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const RpcManager_1 = __importDefault(require("@jbrowse/core/rpc/RpcManager"));
|
|
9
|
-
const product_core_1 = require("@jbrowse/product-core");
|
|
10
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
11
|
-
function createConfigModel(pluginManager, assemblyConfigSchemasType) {
|
|
12
|
-
return mobx_state_tree_1.types
|
|
13
|
-
.model('Configuration', {
|
|
14
|
-
configuration: (0, configuration_1.ConfigurationSchema)('Root', {
|
|
15
|
-
rpc: RpcManager_1.default.configSchema,
|
|
16
|
-
highResolutionScaling: {
|
|
17
|
-
type: 'number',
|
|
18
|
-
defaultValue: 2,
|
|
19
|
-
},
|
|
20
|
-
formatDetails: (0, product_core_1.FormatDetailsConfigSchemaFactory)(),
|
|
21
|
-
formatAbout: (0, product_core_1.FormatAboutConfigSchemaFactory)(),
|
|
22
|
-
hierarchical: (0, product_core_1.HierarchicalConfigSchemaFactory)(),
|
|
23
|
-
theme: { type: 'frozen', defaultValue: {} },
|
|
24
|
-
}),
|
|
25
|
-
assembly: assemblyConfigSchemasType,
|
|
26
|
-
tracks: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('track')),
|
|
27
|
-
internetAccounts: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('internet account')),
|
|
28
|
-
connections: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('connection')),
|
|
29
|
-
aggregateTextSearchAdapters: mobx_state_tree_1.types.array(pluginManager.pluggableConfigSchemaType('text search adapter')),
|
|
30
|
-
plugins: mobx_state_tree_1.types.frozen(),
|
|
31
|
-
})
|
|
32
|
-
.views(self => ({
|
|
33
|
-
get assemblies() {
|
|
34
|
-
return [self.assembly];
|
|
35
|
-
},
|
|
36
|
-
get assemblyName() {
|
|
37
|
-
return (0, configuration_1.readConfObject)(self.assembly, 'name');
|
|
38
|
-
},
|
|
39
|
-
get rpcManager() {
|
|
40
|
-
return (0, mobx_state_tree_1.getParent)(self).rpcManager;
|
|
41
|
-
},
|
|
42
|
-
}));
|
|
43
|
-
}
|