@jbrowse/plugin-circular-view 2.2.1 → 2.3.0
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/README.md +13 -4
- package/dist/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
- package/dist/BaseChordDisplay/components/DisplayError.js +1 -1
- package/dist/BaseChordDisplay/components/DisplayError.js.map +1 -1
- package/dist/BaseChordDisplay/components/Loading.js +1 -2
- package/dist/BaseChordDisplay/components/Loading.js.map +1 -1
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +6 -5
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js +198 -194
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
- package/dist/BaseChordDisplay/models/renderReaction.d.ts +2 -0
- package/dist/BaseChordDisplay/models/renderReaction.js +12 -3
- package/dist/BaseChordDisplay/models/renderReaction.js.map +1 -1
- package/dist/CircularView/components/CircularView.js +2 -2
- package/dist/CircularView/components/CircularView.js.map +1 -1
- package/dist/CircularView/index.d.ts +3 -0
- package/dist/CircularView/index.js +40 -0
- package/dist/CircularView/index.js.map +1 -0
- package/dist/LaunchCircularView/index.d.ts +3 -0
- package/dist/LaunchCircularView/index.js +22 -0
- package/dist/LaunchCircularView/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -50
- package/dist/index.js.map +1 -1
- package/esm/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
- package/esm/BaseChordDisplay/components/DisplayError.js +1 -1
- package/esm/BaseChordDisplay/components/DisplayError.js.map +1 -1
- package/esm/BaseChordDisplay/components/Loading.js +1 -2
- package/esm/BaseChordDisplay/components/Loading.js.map +1 -1
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +6 -5
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js +199 -195
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
- package/esm/BaseChordDisplay/models/renderReaction.d.ts +2 -0
- package/esm/BaseChordDisplay/models/renderReaction.js +9 -3
- package/esm/BaseChordDisplay/models/renderReaction.js.map +1 -1
- package/esm/CircularView/components/CircularView.js +2 -2
- package/esm/CircularView/components/CircularView.js.map +1 -1
- package/esm/CircularView/index.d.ts +3 -0
- package/esm/CircularView/index.js +12 -0
- package/esm/CircularView/index.js.map +1 -0
- package/esm/LaunchCircularView/index.d.ts +3 -0
- package/esm/LaunchCircularView/index.js +20 -0
- package/esm/LaunchCircularView/index.js.map +1 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +6 -26
- package/esm/index.js.map +1 -1
- package/package.json +6 -5
- package/src/BaseChordDisplay/components/BaseChordDisplay.tsx +16 -6
- package/src/BaseChordDisplay/components/DisplayError.tsx +41 -43
- package/src/BaseChordDisplay/components/Loading.tsx +55 -58
- package/src/BaseChordDisplay/models/BaseChordDisplayModel.ts +241 -232
- package/src/BaseChordDisplay/models/renderReaction.ts +9 -3
- package/src/CircularView/components/CircularView.tsx +73 -75
- package/src/CircularView/index.ts +16 -0
- package/src/LaunchCircularView/index.ts +48 -0
- package/src/index.ts +10 -55
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -73
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -48
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
- package/src/BaseChordDisplay/components/RpcRenderedSvgGroup.tsx +0 -69
package/README.md
CHANGED
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## slices
|
|
4
4
|
|
|
5
|
-
A slice is a range in angle (theta) space. Start radians, end radians. The start
|
|
5
|
+
A slice is a range in angle (theta) space. Start radians, end radians. The start
|
|
6
|
+
is always less than or equal to the end. If the slice goes through the origin,
|
|
7
|
+
the end coordinate may be greater than 2π.
|
|
6
8
|
|
|
7
|
-
Each circular view is divided into "slices", one or more per displayed region.
|
|
9
|
+
Each circular view is divided into "slices", one or more per displayed region.
|
|
10
|
+
Slices are roughly equivalent to the "blocks" in linear tracks, except they each
|
|
11
|
+
have their own polar coordinate system. All drawing in the slice is done
|
|
12
|
+
relative to the slice's coordinate system, which will have its own origin and
|
|
13
|
+
figure radius.
|
|
8
14
|
|
|
9
|
-
Tracks that draw "around the circle" will want to use these slices to draw,
|
|
15
|
+
Tracks that draw "around the circle" will want to use these slices to draw,
|
|
16
|
+
while tracks that draw arcs "across the circle" or other whole-figure overlays
|
|
17
|
+
will probably not want to use these slices.
|
|
10
18
|
|
|
11
19
|
## sections
|
|
12
20
|
|
|
13
|
-
A section is a range in both angle (theta) and radius (rho) space. Start and end
|
|
21
|
+
A section is a range in both angle (theta) and radius (rho) space. Start and end
|
|
22
|
+
in theta have the same rules as slices.
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({ display, }: {
|
|
3
|
+
display: {
|
|
4
|
+
filled: boolean;
|
|
5
|
+
error: unknown;
|
|
6
|
+
reactElement: React.ReactElement;
|
|
7
|
+
renderProps: {
|
|
8
|
+
radius: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}) => JSX.Element;
|
|
4
12
|
export default _default;
|
|
@@ -5,18 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
|
+
// locals
|
|
8
9
|
const Loading_1 = __importDefault(require("./Loading"));
|
|
9
10
|
const DisplayError_1 = __importDefault(require("./DisplayError"));
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
function BaseChordDisplay({ display }) {
|
|
11
|
+
exports.default = (0, mobx_react_1.observer)(function BaseChordDisplay({ display, }) {
|
|
13
12
|
if (display.error) {
|
|
14
13
|
return react_1.default.createElement(DisplayError_1.default, { model: display });
|
|
15
14
|
}
|
|
16
15
|
if (!display.filled) {
|
|
17
16
|
return react_1.default.createElement(Loading_1.default, { model: display });
|
|
18
17
|
}
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
exports.default = (0, mobx_react_1.observer)(BaseChordDisplay);
|
|
18
|
+
return display.reactElement;
|
|
19
|
+
});
|
|
22
20
|
//# sourceMappingURL=BaseChordDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChordDisplay.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/BaseChordDisplay.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2CAAqC;
|
|
1
|
+
{"version":3,"file":"BaseChordDisplay.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/BaseChordDisplay.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2CAAqC;AAErC,SAAS;AACT,wDAA+B;AAC/B,kEAAyC;AAEzC,kBAAe,IAAA,qBAAQ,EAAC,SAAS,gBAAgB,CAAC,EAChD,OAAO,GAQR;IACC,IAAI,OAAO,CAAC,KAAK,EAAE;QACjB,OAAO,8BAAC,sBAAY,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;KACxC;IACD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB,OAAO,8BAAC,iBAAO,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;KACnC;IAED,OAAO,OAAO,CAAC,YAAY,CAAA;AAC7B,CAAC,CAAC,CAAA"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
7
|
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const DisplayError = (0, mobx_react_1.observer)(({ model, })
|
|
8
|
+
const DisplayError = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
9
9
|
const { renderProps: { radius }, error, } = model;
|
|
10
10
|
return (react_1.default.createElement("g", null,
|
|
11
11
|
react_1.default.createElement("defs", null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayError.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/DisplayError.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2CAAqC;AAErC,MAAM,YAAY,GAAG,IAAA,qBAAQ,
|
|
1
|
+
{"version":3,"file":"DisplayError.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/DisplayError.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2CAAqC;AAErC,MAAM,YAAY,GAAG,IAAA,qBAAQ,EAAC,UAAU,EACtC,KAAK,GAGN;IACC,MAAM,EACJ,WAAW,EAAE,EAAE,MAAM,EAAE,EACvB,KAAK,GACN,GAAG,KAAK,CAAA;IACT,OAAO,CACL;QACE;YACE,2CACE,EAAE,EAAC,eAAe,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,gBAAgB,EAAC,gBAAgB,EACjC,YAAY,EAAC,gBAAgB;gBAE7B,wCACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,WAAW,EAAE,EAAE,EAAE,GACvD,CACM,CACL;QACP,0CAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,SAAS,GAAG;QAClD,0CAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,qBAAqB,GAAG;QAC9D,wCACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,gBAAgB,EAC1B,gBAAgB,EAAC,QAAQ,EACzB,UAAU,EAAC,QAAQ,IAElB,MAAM,CAAC,KAAK,CAAC,CACT,CACL,CACL,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,kBAAe,YAAY,CAAA"}
|
|
@@ -68,8 +68,7 @@ const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
|
-
|
|
72
|
-
const Loading = (0, mobx_react_1.observer)(({ model: { renderProps: { radius }, }, }) => {
|
|
71
|
+
const Loading = (0, mobx_react_1.observer)(function ({ model: { renderProps: { radius }, }, }) {
|
|
73
72
|
const { classes } = useStyles();
|
|
74
73
|
// only show the loading message after 400ms to prevent excessive flickering
|
|
75
74
|
const [shown, setShown] = (0, react_1.useState)(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/Loading.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAClD,uCAA0C;AAC1C,2CAAqC;AAErC,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC,KAAK,CAAC,EAAE;IACrC,MAAM,MAAM,GAAG,CAAC,CAAA;IAChB,MAAM,QAAQ,GAAG,GAAG,CAAA;IAEpB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;IAClE,OAAO;QACL,IAAI,EAAE;YACJ,eAAe,EAAE,GAAG;YACpB,gBAAgB,EAAE,EAAE;YACpB,SAAS,EAAE,SAAS,QAAQ,mCAC1B,QAAQ,GAAG,CACb,wBAAwB;SACzB;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,KAAK;aACtB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,SAAS,CAAC,KAAK;aACxB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,QAAQ,CAAC,KAAK;aACvB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,UAAU,CAAC,KAAK;aACzB;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,OAAO,CAAC,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE;gBACJ,gBAAgB,EAAE,MAAM;aACzB;YACD,KAAK,EAAE;gBACL,gBAAgB,EAAE,MAAM,GAAG,CAAC;gBAC5B,SAAS,EAAE,gBAAgB;aAC5B;YACD,MAAM,EAAE;gBACN,gBAAgB,EAAE,MAAM;gBACxB,SAAS,EAAE,gBAAgB;aAC5B;SACF;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,
|
|
1
|
+
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/Loading.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAClD,uCAA0C;AAC1C,2CAAqC;AAErC,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC,KAAK,CAAC,EAAE;IACrC,MAAM,MAAM,GAAG,CAAC,CAAA;IAChB,MAAM,QAAQ,GAAG,GAAG,CAAA;IAEpB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;IAClE,OAAO;QACL,IAAI,EAAE;YACJ,eAAe,EAAE,GAAG;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,CAAC,IAAI,CAAC,CAAC,CAAC,CACrB;QACE;YACE,2CACE,EAAE,EAAC,eAAe,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,gBAAgB,EAAC,gBAAgB,EACjC,YAAY,EAAC,gBAAgB;gBAE7B,wCACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,EAAE,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAE,EAAE,EAAE,GAC3D,CACM,CACL;QACP,0CAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,SAAS,GAAG;QAClD,0CAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,qBAAqB,GAAG;QAC9D,wCACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,gBAAgB,EAC1B,gBAAgB,EAAC,QAAQ,EACzB,UAAU,EAAC,QAAQ,oBAGd;QACP,0CACE,SAAS,EAAE,OAAO,CAAC,IAAI,EACvB,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,IAAI,GACN,CACA,CACL,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,kBAAe,OAAO,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import RendererType from '@jbrowse/core/pluggableElementTypes/renderers/RendererType';
|
|
3
|
-
import { AnyReactComponentType } from '@jbrowse/core/util';
|
|
4
|
-
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
3
|
+
import { AnyReactComponentType, Feature } from '@jbrowse/core/util';
|
|
5
4
|
export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType<{
|
|
6
5
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
7
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -65,6 +64,7 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
|
|
|
65
64
|
filled: boolean;
|
|
66
65
|
reactElement: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
67
66
|
data: undefined;
|
|
67
|
+
html: string | undefined;
|
|
68
68
|
message: string;
|
|
69
69
|
renderingComponent: AnyReactComponentType | undefined;
|
|
70
70
|
refNameMap: Record<string, string> | undefined;
|
|
@@ -77,14 +77,14 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
|
|
|
77
77
|
/**
|
|
78
78
|
* #getter
|
|
79
79
|
*/
|
|
80
|
-
readonly blockDefinitions:
|
|
80
|
+
readonly blockDefinitions: import("../../CircularView/models/slices").Slice[];
|
|
81
81
|
/**
|
|
82
82
|
* #method
|
|
83
83
|
*/
|
|
84
84
|
renderProps(): any;
|
|
85
85
|
/**
|
|
86
86
|
* #getter
|
|
87
|
-
* the pluggable element type object for this
|
|
87
|
+
* the pluggable element type object for this display's
|
|
88
88
|
* renderer
|
|
89
89
|
*/
|
|
90
90
|
readonly rendererType: RendererType;
|
|
@@ -106,9 +106,10 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
|
|
|
106
106
|
/**
|
|
107
107
|
* #action
|
|
108
108
|
*/
|
|
109
|
-
renderSuccess({ message, data, reactElement, renderingComponent, }: {
|
|
109
|
+
renderSuccess({ message, data, reactElement, html, renderingComponent, }: {
|
|
110
110
|
message: string;
|
|
111
111
|
data: any;
|
|
112
|
+
html: string;
|
|
112
113
|
reactElement: React.ReactElement;
|
|
113
114
|
renderingComponent: AnyReactComponentType;
|
|
114
115
|
}): void;
|
|
@@ -4,222 +4,226 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BaseChordDisplayModel = void 0;
|
|
7
|
+
const clone_1 = __importDefault(require("clone"));
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
+
// jbrowse
|
|
7
10
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
11
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
9
12
|
const CircularChordRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType"));
|
|
10
13
|
const util_1 = require("@jbrowse/core/util");
|
|
11
|
-
const simpleFeature_1 = require("@jbrowse/core/util/simpleFeature");
|
|
12
14
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
13
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
14
15
|
// locals
|
|
15
16
|
const renderReaction_1 = require("./renderReaction");
|
|
16
17
|
/**
|
|
17
18
|
* #stateModel BaseChordDisplay
|
|
18
19
|
* extends `BaseDisplay`
|
|
19
20
|
*/
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
22
|
+
exports.BaseChordDisplayModel = mobx_state_tree_1.types
|
|
23
|
+
.compose('BaseChordDisplay', models_1.BaseDisplay, mobx_state_tree_1.types.model({
|
|
24
|
+
/**
|
|
25
|
+
* #property
|
|
26
|
+
*/
|
|
27
|
+
bezierRadiusRatio: 0.1,
|
|
28
|
+
/**
|
|
29
|
+
* #property
|
|
30
|
+
*/
|
|
31
|
+
assemblyName: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
|
|
32
|
+
}))
|
|
33
|
+
.volatile(() => {
|
|
34
|
+
return {
|
|
35
|
+
// NOTE: all this volatile stuff has to be filled in at once
|
|
36
|
+
// so that it stays consistent
|
|
37
|
+
filled: false,
|
|
38
|
+
reactElement: undefined,
|
|
39
|
+
data: undefined,
|
|
40
|
+
html: undefined,
|
|
41
|
+
message: '',
|
|
42
|
+
renderingComponent: undefined,
|
|
43
|
+
refNameMap: undefined,
|
|
44
|
+
};
|
|
45
|
+
})
|
|
46
|
+
.actions(self => {
|
|
47
|
+
const { pluginManager } = (0, util_1.getEnv)(self);
|
|
48
|
+
const track = self;
|
|
49
|
+
return {
|
|
27
50
|
/**
|
|
28
|
-
* #
|
|
51
|
+
* #action
|
|
29
52
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
53
|
+
onChordClick(feature) {
|
|
54
|
+
(0, configuration_1.getConf)(self, 'onChordClick', { feature, track, pluginManager });
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
})
|
|
58
|
+
.views(self => ({
|
|
59
|
+
/**
|
|
60
|
+
* #getter
|
|
61
|
+
*/
|
|
62
|
+
get blockDefinitions() {
|
|
63
|
+
const origSlices = (0, util_1.getContainingView)(self)
|
|
64
|
+
.staticSlices;
|
|
65
|
+
if (!self.refNameMap) {
|
|
66
|
+
return origSlices;
|
|
67
|
+
}
|
|
68
|
+
const slices = (0, clone_1.default)(origSlices);
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
70
|
+
slices.forEach((slice) => {
|
|
71
|
+
const regions = slice.region.elided
|
|
72
|
+
? slice.region.regions
|
|
73
|
+
: [slice.region];
|
|
74
|
+
regions.forEach((region) => {
|
|
75
|
+
var _a;
|
|
76
|
+
const renamed = (_a = self.refNameMap) === null || _a === void 0 ? void 0 : _a[region.refName];
|
|
77
|
+
if (renamed && region.refName !== renamed) {
|
|
78
|
+
region.refName = renamed;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
return slices;
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* #method
|
|
86
|
+
*/
|
|
87
|
+
renderProps() {
|
|
88
|
+
const view = (0, util_1.getContainingView)(self);
|
|
33
89
|
return {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
refNameMap: undefined,
|
|
90
|
+
...(0, tracks_1.getParentRenderProps)(self),
|
|
91
|
+
rpcDriverName: self.rpcDriverName,
|
|
92
|
+
displayModel: self,
|
|
93
|
+
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
94
|
+
radius: view.radiusPx,
|
|
95
|
+
blockDefinitions: this.blockDefinitions,
|
|
96
|
+
onChordClick: self.onChordClick,
|
|
42
97
|
};
|
|
43
|
-
}
|
|
44
|
-
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* #getter
|
|
101
|
+
* the pluggable element type object for this display's
|
|
102
|
+
* renderer
|
|
103
|
+
*/
|
|
104
|
+
get rendererType() {
|
|
105
|
+
const display = self;
|
|
45
106
|
const { pluginManager } = (0, util_1.getEnv)(self);
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
slices.forEach((slice) => {
|
|
69
|
-
const regions = slice.region.elided
|
|
70
|
-
? slice.region.regions
|
|
71
|
-
: [slice.region];
|
|
72
|
-
regions.forEach((region) => {
|
|
73
|
-
var _a;
|
|
74
|
-
const renamed = (_a = self.refNameMap) === null || _a === void 0 ? void 0 : _a[region.refName];
|
|
75
|
-
if (renamed && region.refName !== renamed) {
|
|
76
|
-
region.refName = renamed;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
return slices;
|
|
81
|
-
},
|
|
82
|
-
/**
|
|
83
|
-
* #method
|
|
84
|
-
*/
|
|
85
|
-
renderProps() {
|
|
86
|
-
const view = (0, util_1.getContainingView)(self);
|
|
87
|
-
return {
|
|
88
|
-
...(0, tracks_1.getParentRenderProps)(self),
|
|
89
|
-
rpcDriverName: self.rpcDriverName,
|
|
90
|
-
displayModel: self,
|
|
91
|
-
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
92
|
-
radius: view.radiusPx,
|
|
93
|
-
blockDefinitions: this.blockDefinitions,
|
|
94
|
-
onChordClick: self.onChordClick,
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* #getter
|
|
99
|
-
* the pluggable element type object for this diplay's
|
|
100
|
-
* renderer
|
|
101
|
-
*/
|
|
102
|
-
get rendererType() {
|
|
103
|
-
const display = self;
|
|
104
|
-
const { pluginManager } = (0, util_1.getEnv)(self);
|
|
105
|
-
const ThisRendererType = pluginManager.getRendererType(self.rendererTypeName);
|
|
106
|
-
if (!ThisRendererType) {
|
|
107
|
-
throw new Error(`renderer "${display.rendererTypeName}" not found`);
|
|
108
|
-
}
|
|
109
|
-
if (!ThisRendererType.ReactComponent) {
|
|
110
|
-
throw new Error(`renderer ${display.rendererTypeName} has no ReactComponent, it may not be completely implemented yet`);
|
|
111
|
-
}
|
|
112
|
-
return ThisRendererType;
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
* #method
|
|
116
|
-
*/
|
|
117
|
-
isCompatibleWithRenderer(renderer) {
|
|
118
|
-
return !!(renderer instanceof CircularChordRendererType_1.default);
|
|
119
|
-
},
|
|
120
|
-
/**
|
|
121
|
-
* #getter
|
|
122
|
-
* returns a string feature ID if the globally-selected object
|
|
123
|
-
* is probably a feature
|
|
124
|
-
*/
|
|
125
|
-
get selectedFeatureId() {
|
|
126
|
-
if (!(0, mobx_state_tree_1.isAlive)(self)) {
|
|
127
|
-
return undefined;
|
|
128
|
-
}
|
|
129
|
-
const session = (0, util_1.getSession)(self);
|
|
130
|
-
if (!session) {
|
|
131
|
-
return undefined;
|
|
132
|
-
}
|
|
133
|
-
const { selection } = session;
|
|
134
|
-
// does it quack like a feature?
|
|
135
|
-
if ((0, simpleFeature_1.isFeature)(selection)) {
|
|
136
|
-
return selection.id();
|
|
137
|
-
}
|
|
107
|
+
const ThisRendererType = pluginManager.getRendererType(self.rendererTypeName);
|
|
108
|
+
if (!ThisRendererType) {
|
|
109
|
+
throw new Error(`renderer "${display.rendererTypeName}" not found`);
|
|
110
|
+
}
|
|
111
|
+
if (!ThisRendererType.ReactComponent) {
|
|
112
|
+
throw new Error(`renderer ${display.rendererTypeName} has no ReactComponent, it may not be completely implemented yet`);
|
|
113
|
+
}
|
|
114
|
+
return ThisRendererType;
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* #method
|
|
118
|
+
*/
|
|
119
|
+
isCompatibleWithRenderer(renderer) {
|
|
120
|
+
return !!(renderer instanceof CircularChordRendererType_1.default);
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
* #getter
|
|
124
|
+
* returns a string feature ID if the globally-selected object
|
|
125
|
+
* is probably a feature
|
|
126
|
+
*/
|
|
127
|
+
get selectedFeatureId() {
|
|
128
|
+
if (!(0, mobx_state_tree_1.isAlive)(self)) {
|
|
138
129
|
return undefined;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
130
|
+
}
|
|
131
|
+
const session = (0, util_1.getSession)(self);
|
|
132
|
+
if (!session) {
|
|
133
|
+
return undefined;
|
|
134
|
+
}
|
|
135
|
+
const { selection } = session;
|
|
136
|
+
// does it quack like a feature?
|
|
137
|
+
if ((0, util_1.isFeature)(selection)) {
|
|
138
|
+
return selection.id();
|
|
139
|
+
}
|
|
140
|
+
return undefined;
|
|
141
|
+
},
|
|
142
|
+
}))
|
|
143
|
+
.actions(self => ({
|
|
144
|
+
/**
|
|
145
|
+
* #action
|
|
146
|
+
*/
|
|
147
|
+
renderStarted() {
|
|
148
|
+
self.filled = false;
|
|
149
|
+
self.message = '';
|
|
150
|
+
self.reactElement = undefined;
|
|
151
|
+
self.data = undefined;
|
|
152
|
+
self.html = undefined;
|
|
153
|
+
self.error = undefined;
|
|
154
|
+
self.renderingComponent = undefined;
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* #action
|
|
158
|
+
*/
|
|
159
|
+
renderSuccess({ message, data, reactElement, html, renderingComponent, }) {
|
|
160
|
+
if (message) {
|
|
146
161
|
self.filled = false;
|
|
147
|
-
self.message =
|
|
162
|
+
self.message = message;
|
|
148
163
|
self.reactElement = undefined;
|
|
149
164
|
self.data = undefined;
|
|
165
|
+
self.html = undefined;
|
|
150
166
|
self.error = undefined;
|
|
151
167
|
self.renderingComponent = undefined;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
*/
|
|
156
|
-
renderSuccess({ message, data, reactElement, renderingComponent, }) {
|
|
157
|
-
if (message) {
|
|
158
|
-
self.filled = false;
|
|
159
|
-
self.message = message;
|
|
160
|
-
self.reactElement = undefined;
|
|
161
|
-
self.data = undefined;
|
|
162
|
-
self.error = undefined;
|
|
163
|
-
self.renderingComponent = undefined;
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
self.filled = true;
|
|
167
|
-
self.message = '';
|
|
168
|
-
self.reactElement = reactElement;
|
|
169
|
-
self.data = data;
|
|
170
|
-
self.error = undefined;
|
|
171
|
-
self.renderingComponent = renderingComponent;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
/**
|
|
175
|
-
* #action
|
|
176
|
-
*/
|
|
177
|
-
renderError(error) {
|
|
178
|
-
console.error(error);
|
|
179
|
-
// the rendering failed for some reason
|
|
180
|
-
self.filled = false;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
self.filled = true;
|
|
181
171
|
self.message = '';
|
|
182
|
-
self.reactElement =
|
|
183
|
-
self.data =
|
|
184
|
-
self.
|
|
185
|
-
self.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
172
|
+
self.reactElement = reactElement;
|
|
173
|
+
self.data = data;
|
|
174
|
+
self.html = html;
|
|
175
|
+
self.error = undefined;
|
|
176
|
+
self.renderingComponent = renderingComponent;
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* #action
|
|
181
|
+
*/
|
|
182
|
+
renderError(error) {
|
|
183
|
+
console.error(error);
|
|
184
|
+
// the rendering failed for some reason
|
|
185
|
+
self.filled = false;
|
|
186
|
+
self.message = '';
|
|
187
|
+
self.reactElement = undefined;
|
|
188
|
+
self.html = undefined;
|
|
189
|
+
self.data = undefined;
|
|
190
|
+
self.error = error;
|
|
191
|
+
self.renderingComponent = undefined;
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* #action
|
|
195
|
+
*/
|
|
196
|
+
setRefNameMap(refNameMap) {
|
|
197
|
+
self.refNameMap = refNameMap;
|
|
198
|
+
},
|
|
199
|
+
}))
|
|
200
|
+
.actions(self => ({
|
|
201
|
+
afterAttach() {
|
|
202
|
+
(0, util_1.makeAbortableReaction)(self, renderReaction_1.renderReactionData,
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
renderReaction_1.renderReactionEffect, {
|
|
205
|
+
name: `${self.type} ${self.id} rendering`,
|
|
206
|
+
// delay: self.renderDelay || 300,
|
|
207
|
+
fireImmediately: true,
|
|
208
|
+
}, self.renderStarted, self.renderSuccess, self.renderError);
|
|
209
|
+
(0, util_1.makeAbortableReaction)(self, () => ({
|
|
210
|
+
assemblyNames: (0, tracks_1.getTrackAssemblyNames)(self.parentTrack),
|
|
209
211
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
212
|
+
adapter: (0, configuration_1.getConf)((0, mobx_state_tree_1.getParent)(self, 2), 'adapter'),
|
|
213
|
+
assemblyManager: (0, util_1.getSession)(self).assemblyManager,
|
|
214
|
+
}),
|
|
215
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
216
|
+
async ({ assemblyNames, adapter, assemblyManager }, signal) => {
|
|
217
|
+
return assemblyManager.getRefNameMapForAdapter(adapter, assemblyNames[0], { signal, sessionId: (0, tracks_1.getRpcSessionId)(self) });
|
|
218
|
+
}, {
|
|
219
|
+
name: `${self.type} ${self.id} getting refNames`,
|
|
220
|
+
fireImmediately: true,
|
|
221
|
+
}, () => { }, refNameMap => {
|
|
222
|
+
self.setRefNameMap(refNameMap);
|
|
223
|
+
}, error => {
|
|
224
|
+
console.error(error);
|
|
225
|
+
self.setError(error);
|
|
226
|
+
});
|
|
227
|
+
},
|
|
228
|
+
}));
|
|
225
229
|
//# sourceMappingURL=BaseChordDisplayModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChordDisplayModel.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/BaseChordDisplayModel.ts"],"names":[],"mappings":";;;;;;AACA,+DAAqD;AACrD,uEAAwE;AACxE,wIAA+G;AAE/G,
|
|
1
|
+
{"version":3,"file":"BaseChordDisplayModel.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/BaseChordDisplayModel.ts"],"names":[],"mappings":";;;;;;AACA,kDAAyB;AACzB,qDAA2D;A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,KAAK,CAAC,CAAA;YACpB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC,CACF,CAAA;IACH,CAAC;CACF,CAAC,CAAC,CAAA"}
|
|
@@ -16,10 +16,12 @@ export declare function renderReactionEffect(props: any, signal: AbortSignal, se
|
|
|
16
16
|
message: any;
|
|
17
17
|
html?: undefined;
|
|
18
18
|
data?: undefined;
|
|
19
|
+
reactElement?: undefined;
|
|
19
20
|
renderingComponent?: undefined;
|
|
20
21
|
} | {
|
|
21
22
|
html: any;
|
|
22
23
|
data: any;
|
|
24
|
+
reactElement: any;
|
|
23
25
|
renderingComponent: any;
|
|
24
26
|
message?: undefined;
|
|
25
27
|
}>;
|