@jbrowse/plugin-circular-view 2.2.2 → 2.3.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.
Files changed (66) hide show
  1. package/README.md +13 -4
  2. package/dist/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
  3. package/dist/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
  4. package/dist/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
  5. package/dist/BaseChordDisplay/components/DisplayError.js +1 -1
  6. package/dist/BaseChordDisplay/components/DisplayError.js.map +1 -1
  7. package/dist/BaseChordDisplay/components/Loading.js +1 -2
  8. package/dist/BaseChordDisplay/components/Loading.js.map +1 -1
  9. package/dist/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +5 -4
  10. package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js +198 -194
  11. package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
  12. package/dist/BaseChordDisplay/models/renderReaction.d.ts +2 -0
  13. package/dist/BaseChordDisplay/models/renderReaction.js +12 -3
  14. package/dist/BaseChordDisplay/models/renderReaction.js.map +1 -1
  15. package/dist/CircularView/components/CircularView.js +2 -2
  16. package/dist/CircularView/components/CircularView.js.map +1 -1
  17. package/dist/CircularView/index.d.ts +3 -0
  18. package/dist/CircularView/index.js +40 -0
  19. package/dist/CircularView/index.js.map +1 -0
  20. package/dist/LaunchCircularView/index.d.ts +3 -0
  21. package/dist/LaunchCircularView/index.js +22 -0
  22. package/dist/LaunchCircularView/index.js.map +1 -0
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +7 -50
  25. package/dist/index.js.map +1 -1
  26. package/esm/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
  27. package/esm/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
  28. package/esm/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
  29. package/esm/BaseChordDisplay/components/DisplayError.js +1 -1
  30. package/esm/BaseChordDisplay/components/DisplayError.js.map +1 -1
  31. package/esm/BaseChordDisplay/components/Loading.js +1 -2
  32. package/esm/BaseChordDisplay/components/Loading.js.map +1 -1
  33. package/esm/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +5 -4
  34. package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js +199 -195
  35. package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
  36. package/esm/BaseChordDisplay/models/renderReaction.d.ts +2 -0
  37. package/esm/BaseChordDisplay/models/renderReaction.js +9 -3
  38. package/esm/BaseChordDisplay/models/renderReaction.js.map +1 -1
  39. package/esm/CircularView/components/CircularView.js +2 -2
  40. package/esm/CircularView/components/CircularView.js.map +1 -1
  41. package/esm/CircularView/index.d.ts +3 -0
  42. package/esm/CircularView/index.js +12 -0
  43. package/esm/CircularView/index.js.map +1 -0
  44. package/esm/LaunchCircularView/index.d.ts +3 -0
  45. package/esm/LaunchCircularView/index.js +20 -0
  46. package/esm/LaunchCircularView/index.js.map +1 -0
  47. package/esm/index.d.ts +1 -1
  48. package/esm/index.js +6 -26
  49. package/esm/index.js.map +1 -1
  50. package/package.json +5 -4
  51. package/src/BaseChordDisplay/components/BaseChordDisplay.tsx +16 -6
  52. package/src/BaseChordDisplay/components/DisplayError.tsx +41 -43
  53. package/src/BaseChordDisplay/components/Loading.tsx +55 -58
  54. package/src/BaseChordDisplay/models/BaseChordDisplayModel.ts +241 -232
  55. package/src/BaseChordDisplay/models/renderReaction.ts +9 -3
  56. package/src/CircularView/components/CircularView.tsx +73 -75
  57. package/src/CircularView/index.ts +16 -0
  58. package/src/LaunchCircularView/index.ts +48 -0
  59. package/src/index.ts +10 -55
  60. package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
  61. package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -73
  62. package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
  63. package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
  64. package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -48
  65. package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
  66. 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 is always less than or equal to the end. If the slice goes through the origin, the end coordinate may be greater than 2π.
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. Slices are roughly equivalent to the "blocks" in linear tracks, except they each have their own polar coordinate system. All drawing in the slice is done relative to the slice's coordinate system, which will have its own origin and figure radius.
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, while tracks that draw arcs "across the circle" or other whole-figure overlays will probably not want to use these slices.
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 in theta have the same rules as slices.
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
- /// <reference types="react" />
2
- declare function BaseChordDisplay({ display }: any): JSX.Element;
3
- declare const _default: typeof BaseChordDisplay;
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
- const RpcRenderedSvgGroup_1 = __importDefault(require("./RpcRenderedSvgGroup"));
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 react_1.default.createElement(RpcRenderedSvgGroup_1.default, { model: display });
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;AACrC,wDAA+B;AAC/B,kEAAyC;AACzC,gFAAuD;AACvD,8DAA8D;AAC9D,SAAS,gBAAgB,CAAC,EAAE,OAAO,EAAO;IACxC,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;IACD,OAAO,8BAAC,6BAAmB,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;AAChD,CAAC;AACD,kBAAe,IAAA,qBAAQ,EAAC,gBAAgB,CAAC,CAAA"}
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,EAC3B,CAAC,EACC,KAAK,GAGN,EAAE,EAAE;IACH,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,CACF,CAAA;AAED,kBAAe,YAAY,CAAA"}
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
- // 'repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.5) 5px, rgba(255,255,255,.5) 10px)',
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,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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,7 +77,7 @@ export declare const BaseChordDisplayModel: import("mobx-state-tree").IModelType
77
77
  /**
78
78
  * #getter
79
79
  */
80
- readonly blockDefinitions: any;
80
+ readonly blockDefinitions: import("../../CircularView/models/slices").Slice[];
81
81
  /**
82
82
  * #method
83
83
  */
@@ -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 stateModelFactory() {
21
- return mobx_state_tree_1.types
22
- .compose('BaseChordDisplay', models_1.BaseDisplay, mobx_state_tree_1.types.model({
23
- /**
24
- * #property
25
- */
26
- bezierRadiusRatio: 0.1,
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
- * #property
51
+ * #action
29
52
  */
30
- assemblyName: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.string),
31
- }))
32
- .volatile(() => {
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
- // NOTE: all this volatile stuff has to be filled in at once
35
- // so that it stays consistent
36
- filled: false,
37
- reactElement: undefined,
38
- data: undefined,
39
- message: '',
40
- renderingComponent: undefined,
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
- .actions(self => {
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 track = self;
47
- return {
48
- /**
49
- * #action
50
- */
51
- onChordClick(feature) {
52
- (0, configuration_1.getConf)(self, 'onChordClick', { feature, track, pluginManager });
53
- },
54
- };
55
- })
56
- .views(self => ({
57
- /**
58
- * #getter
59
- */
60
- get blockDefinitions() {
61
- const origSlices = (0, util_1.getContainingView)(self)
62
- .staticSlices;
63
- if (!self.refNameMap) {
64
- return origSlices;
65
- }
66
- const slices = JSON.parse(JSON.stringify(origSlices));
67
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
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 display'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
- .actions(self => ({
142
- /**
143
- * #action
144
- */
145
- renderStarted() {
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
- * #action
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 = undefined;
183
- self.data = undefined;
184
- self.error = error;
185
- self.renderingComponent = undefined;
186
- },
187
- /**
188
- * #action
189
- */
190
- setRefNameMap(refNameMap) {
191
- self.refNameMap = refNameMap;
192
- },
193
- }))
194
- .actions(self => ({
195
- afterAttach() {
196
- (0, util_1.makeAbortableReaction)(self, renderReaction_1.renderReactionData,
197
- // @ts-ignore
198
- renderReaction_1.renderReactionEffect, {
199
- name: `${self.type} ${self.id} rendering`,
200
- // delay: self.renderDelay || 300,
201
- fireImmediately: true,
202
- }, self.renderStarted, self.renderSuccess, self.renderError);
203
- (0, util_1.makeAbortableReaction)(self, () => ({
204
- assemblyNames: (0, tracks_1.getTrackAssemblyNames)(self.parentTrack),
205
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
206
- adapter: (0, configuration_1.getConf)((0, mobx_state_tree_1.getParent)(self, 2), 'adapter'),
207
- assemblyManager: (0, util_1.getSession)(self).assemblyManager,
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
- async ({ assemblyNames, adapter, assemblyManager }, signal) => {
211
- return assemblyManager.getRefNameMapForAdapter(adapter, assemblyNames[0], { signal, sessionId: (0, tracks_1.getRpcSessionId)(self) });
212
- }, {
213
- name: `${self.type} ${self.id} getting refNames`,
214
- fireImmediately: true,
215
- }, () => { }, refNameMap => {
216
- self.setRefNameMap(refNameMap);
217
- }, error => {
218
- console.error(error);
219
- self.setError(error);
220
- });
221
- },
222
- }));
223
- }
224
- exports.BaseChordDisplayModel = stateModelFactory();
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,6CAM2B;AAC3B,oEAAqE;AACrE,sDAIkC;AAElC,qDAA2D;AAE3D,SAAS;AACT,qDAA2E;AAG3E;;;GAGG;AACH,SAAS,iBAAiB;IACxB,OAAO,uBAAK;SACT,OAAO,CACN,kBAAkB,EAClB,oBAAW,EACX,uBAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,iBAAiB,EAAE,GAAG;QACtB;;WAEG;QACH,YAAY,EAAE,uBAAK,CAAC,KAAK,CAAC,uBAAK,CAAC,MAAM,CAAC;KACxC,CAAC,CACH;SACA,QAAQ,CAAC,GAAG,EAAE;QACb,OAAO;YACL,4DAA4D;YAC5D,8BAA8B;YAC9B,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,SAA2C;YACzD,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,EAAE;YACX,kBAAkB,EAAE,SAA8C;YAClE,UAAU,EAAE,SAA+C;SAC5D,CAAA;IACH,CAAC,CAAC;SACD,OAAO,CAAC,IAAI,CAAC,EAAE;QACd,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,aAAM,EAAC,IAAI,CAAC,CAAA;QACtC,MAAM,KAAK,GAAG,IAAI,CAAA;QAClB,OAAO;YACL;;eAEG;YACH,YAAY,CAAC,OAAgB;gBAC3B,IAAA,uBAAO,EAAC,IAAI,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAA;YAClE,CAAC;SACF,CAAA;IACH,CAAC,CAAC;SACD,KAAK,C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ACX,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;YAChC,CAAC,EACD,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;gBACpB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC,CACF,CAAA;QACH,CAAC;KACF,CAAC,CAAC,CAAA;AACP,CAAC;AAEY,QAAA,qBAAqB,GAAG,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"BaseChordDisplayModel.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/BaseChordDisplayModel.ts"],"names":[],"mappings":";;;;;;AACA,kDAAyB;AACzB,qDAA2D;AAE3D,UAAU;AACV,+DAAqD;AACrD,uEAAwE;AACxE,wIAA+G;AAE/G,6CAS2B;AAC3B,sDAIkC;AAElC,SAAS;AACT,qDAA2E;AAG3E;;;GAGG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAE3D,QAAA,qBAAqB,GAAG,uBAAK;KACvC,OAAO,CACN,kBAAkB,EAClB,oBAAW,EACX,uBAAK,CAAC,KAAK,CAAC;IACV;;OAEG;IACH,iBAAiB,EAAE,GAAG;IACtB;;OAEG;IACH,YAAY,EAAE,uBAAK,CAAC,KAAK,CAAC,uBAAK,CAAC,MAAM,CAAC;CACxC,CAAC,CACH;KACA,QAAQ,CAAC,GAAG,EAAE;IACb,OAAO;QACL,4DAA4D;QAC5D,8BAA8B;QAC9B,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,SAA2C;QACzD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAA+B;QACrC,OAAO,EAAE,EAAE;QACX,kBAAkB,EAAE,SAA8C;QAClE,UAAU,EAAE,SAA+C;KAC5D,CAAA;AACH,CAAC,CAAC;KACD,OAAO,CAAC,IAAI,CAAC,EAAE;IACd,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,aAAM,EAAC,IAAI,CAAC,CAAA;IACtC,MAAM,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AO,eAAe,CAAC,uBAAuB,CAC5C,OAAO,EACP,aAAa,CAAC,CAAC,CAAC,EAChB,EAAE,MAAM,EAAE,SAAS,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EAAE,CAC7C,CAAA;QACH,CAAC,EACD;YACE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,mBAAmB;YAChD,eAAe,EAAE,IAAI;SACtB,EACD,GAAG,EAAE,GAAE,CAAC,EACR,UAAU,CAAC,EAAE;YACX,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAChC,CAAC,EACD,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,KAAK,CAAC,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
  }>;