@jbrowse/plugin-variants 2.2.2 → 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.
Files changed (78) hide show
  1. package/dist/ChordVariantDisplay/index.js +1 -0
  2. package/dist/ChordVariantDisplay/index.js.map +1 -1
  3. package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +4 -2
  4. package/dist/ChordVariantDisplay/models/stateModelFactory.js +1 -2
  5. package/dist/ChordVariantDisplay/models/stateModelFactory.js.map +1 -1
  6. package/dist/LinearVariantDisplay/index.js +1 -0
  7. package/dist/LinearVariantDisplay/index.js.map +1 -1
  8. package/dist/LinearVariantDisplay/model.d.ts +1 -1
  9. package/dist/StructuralVariantChordRenderer/Chord.d.ts +32 -0
  10. package/dist/StructuralVariantChordRenderer/Chord.js +88 -0
  11. package/dist/StructuralVariantChordRenderer/Chord.js.map +1 -0
  12. package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +1 -17
  13. package/dist/StructuralVariantChordRenderer/ReactComponent.js +11 -93
  14. package/dist/StructuralVariantChordRenderer/ReactComponent.js.map +1 -1
  15. package/dist/StructuralVariantChordRenderer/index.d.ts +2 -2
  16. package/dist/StructuralVariantChordRenderer/index.js +2 -2
  17. package/dist/StructuralVariantChordRenderer/index.js.map +1 -1
  18. package/dist/VariantFeatureWidget/BreakendOptionDialog.js +12 -7
  19. package/dist/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
  20. package/dist/VariantTrack/index.js +1 -0
  21. package/dist/VariantTrack/index.js.map +1 -1
  22. package/dist/VcfAdapter/VcfAdapter.js +1 -0
  23. package/dist/VcfAdapter/VcfAdapter.js.map +1 -1
  24. package/dist/VcfAdapter/index.js +1 -0
  25. package/dist/VcfAdapter/index.js.map +1 -1
  26. package/dist/VcfTabixAdapter/VcfTabixAdapter.js +8 -11
  27. package/dist/VcfTabixAdapter/VcfTabixAdapter.js.map +1 -1
  28. package/dist/VcfTabixAdapter/index.js +1 -0
  29. package/dist/VcfTabixAdapter/index.js.map +1 -1
  30. package/esm/ChordVariantDisplay/index.js +1 -0
  31. package/esm/ChordVariantDisplay/index.js.map +1 -1
  32. package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +4 -2
  33. package/esm/ChordVariantDisplay/models/stateModelFactory.js +1 -2
  34. package/esm/ChordVariantDisplay/models/stateModelFactory.js.map +1 -1
  35. package/esm/LinearVariantDisplay/index.js +1 -0
  36. package/esm/LinearVariantDisplay/index.js.map +1 -1
  37. package/esm/LinearVariantDisplay/model.d.ts +1 -1
  38. package/esm/StructuralVariantChordRenderer/Chord.d.ts +32 -0
  39. package/esm/StructuralVariantChordRenderer/Chord.js +83 -0
  40. package/esm/StructuralVariantChordRenderer/Chord.js.map +1 -0
  41. package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +1 -17
  42. package/esm/StructuralVariantChordRenderer/ReactComponent.js +7 -92
  43. package/esm/StructuralVariantChordRenderer/ReactComponent.js.map +1 -1
  44. package/esm/StructuralVariantChordRenderer/index.d.ts +2 -2
  45. package/esm/StructuralVariantChordRenderer/index.js +2 -2
  46. package/esm/StructuralVariantChordRenderer/index.js.map +1 -1
  47. package/esm/VariantFeatureWidget/BreakendOptionDialog.js +12 -7
  48. package/esm/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
  49. package/esm/VariantTrack/index.js +1 -0
  50. package/esm/VariantTrack/index.js.map +1 -1
  51. package/esm/VcfAdapter/VcfAdapter.js +1 -0
  52. package/esm/VcfAdapter/VcfAdapter.js.map +1 -1
  53. package/esm/VcfAdapter/index.js +1 -0
  54. package/esm/VcfAdapter/index.js.map +1 -1
  55. package/esm/VcfTabixAdapter/VcfTabixAdapter.js +8 -11
  56. package/esm/VcfTabixAdapter/VcfTabixAdapter.js.map +1 -1
  57. package/esm/VcfTabixAdapter/index.js +1 -0
  58. package/esm/VcfTabixAdapter/index.js.map +1 -1
  59. package/package.json +3 -4
  60. package/src/ChordVariantDisplay/index.ts +1 -0
  61. package/src/ChordVariantDisplay/models/stateModelFactory.ts +1 -3
  62. package/src/LinearVariantDisplay/index.ts +1 -0
  63. package/src/StructuralVariantChordRenderer/Chord.tsx +141 -0
  64. package/src/StructuralVariantChordRenderer/ReactComponent.tsx +10 -149
  65. package/src/StructuralVariantChordRenderer/index.ts +2 -3
  66. package/src/VariantFeatureWidget/BreakendOptionDialog.tsx +15 -8
  67. package/src/VariantTrack/index.ts +1 -0
  68. package/src/VcfAdapter/VcfAdapter.ts +2 -0
  69. package/src/VcfAdapter/index.ts +1 -0
  70. package/src/VcfTabixAdapter/VcfTabixAdapter.ts +10 -15
  71. package/src/VcfTabixAdapter/index.ts +1 -0
  72. package/dist/ChordVariantDisplay/models/ChordVariantDisplay.d.ts +0 -117
  73. package/dist/ChordVariantDisplay/models/ChordVariantDisplay.js +0 -62
  74. package/dist/ChordVariantDisplay/models/ChordVariantDisplay.js.map +0 -1
  75. package/esm/ChordVariantDisplay/models/ChordVariantDisplay.d.ts +0 -117
  76. package/esm/ChordVariantDisplay/models/ChordVariantDisplay.js +0 -57
  77. package/esm/ChordVariantDisplay/models/ChordVariantDisplay.js.map +0 -1
  78. package/src/ChordVariantDisplay/models/ChordVariantDisplay.ts +0 -69
@@ -1,117 +0,0 @@
1
- /// <reference types="react" />
2
- import PluginManager from '@jbrowse/core/PluginManager';
3
- /**
4
- * #stateModel ChordVariantDisplay
5
- * extends `BaseChordDisplay`
6
- */
7
- declare const ChordVariantDisplayF: (pluginManager: PluginManager) => {
8
- stateModel: import("mobx-state-tree").IModelType<{
9
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
10
- type: import("mobx-state-tree").ISimpleType<string>;
11
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
- } & {
13
- bezierRadiusRatio: import("mobx-state-tree").IType<number | undefined, number, number>;
14
- assemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
15
- } & {
16
- /**
17
- * #property
18
- */
19
- type: import("mobx-state-tree").ISimpleType<"ChordVariantDisplay">;
20
- /**
21
- * #property
22
- */
23
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
24
- }, {
25
- rendererTypeName: string;
26
- error: unknown;
27
- } & {
28
- readonly RenderingComponent: import("react").FC<{
29
- model: {
30
- id: string; /**
31
- * #property
32
- */
33
- type: string;
34
- rpcDriverName: string | undefined;
35
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
36
- rendererTypeName: string;
37
- error: unknown;
38
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
39
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
40
- type: import("mobx-state-tree").ISimpleType<string>;
41
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
42
- }, {
43
- rendererTypeName: string;
44
- error: unknown;
45
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
46
- onHorizontalScroll?: Function | undefined;
47
- blockState?: Record<string, any> | undefined;
48
- }>;
49
- readonly DisplayBlurb: import("react").FC<{
50
- model: {
51
- id: string;
52
- type: string;
53
- rpcDriverName: string | undefined;
54
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
55
- rendererTypeName: string;
56
- error: unknown;
57
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
58
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
59
- type: import("mobx-state-tree").ISimpleType<string>;
60
- rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
61
- }, {
62
- rendererTypeName: string;
63
- error: unknown;
64
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
65
- }> | null;
66
- readonly adapterConfig: any;
67
- readonly parentTrack: any;
68
- renderProps(): any;
69
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
70
- readonly DisplayMessageComponent: import("react").FC<any> | undefined;
71
- trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
72
- readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
73
- regionCannotBeRendered(): undefined;
74
- } & {
75
- setError(error?: unknown): void;
76
- setRpcDriverName(rpcDriverName: string): void;
77
- reload(): void;
78
- } & {
79
- filled: boolean;
80
- reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
81
- data: undefined;
82
- message: string;
83
- renderingComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
84
- refNameMap: Record<string, string> | undefined;
85
- } & {
86
- onChordClick(feature: import("@jbrowse/core/util").Feature): void;
87
- } & {
88
- readonly blockDefinitions: any;
89
- renderProps(): any;
90
- readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
91
- isCompatibleWithRenderer(renderer: import("@jbrowse/core/pluggableElementTypes").RendererType): boolean;
92
- readonly selectedFeatureId: string | undefined;
93
- } & {
94
- renderStarted(): void;
95
- renderSuccess({ message, data, reactElement, renderingComponent, }: {
96
- message: string;
97
- data: any;
98
- reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
99
- renderingComponent: import("@jbrowse/core/util").AnyReactComponentType;
100
- }): void;
101
- renderError(error: unknown): void;
102
- setRefNameMap(refNameMap: Record<string, string>): void;
103
- } & {
104
- afterAttach(): void;
105
- } & {
106
- /**
107
- * #getter
108
- */
109
- readonly rendererTypeName: any;
110
- /**
111
- * #method
112
- */
113
- renderProps(): Record<string, unknown>;
114
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
115
- configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
116
- };
117
- export default ChordVariantDisplayF;
@@ -1,57 +0,0 @@
1
- import { BaseChordDisplayModel } from '@jbrowse/plugin-circular-view';
2
- import { ConfigurationReference } from '@jbrowse/core/configuration';
3
- import { types } from 'mobx-state-tree';
4
- import { getContainingView } from '@jbrowse/core/util';
5
- import { getParentRenderProps } from '@jbrowse/core/util/tracks';
6
- // locals
7
- import configSchemaF from './configSchema';
8
- /**
9
- * #stateModel ChordVariantDisplay
10
- * extends `BaseChordDisplay`
11
- */
12
- const ChordVariantDisplayF = (pluginManager) => {
13
- const configSchema = configSchemaF(pluginManager);
14
- const stateModel = types
15
- .compose('ChordVariantDisplay', BaseChordDisplayModel, types.model({
16
- /**
17
- * #property
18
- */
19
- type: types.literal('ChordVariantDisplay'),
20
- /**
21
- * #property
22
- */
23
- configuration: ConfigurationReference(configSchema),
24
- }))
25
- .views(self => ({
26
- /**
27
- * #getter
28
- */
29
- get rendererTypeName() {
30
- return self.configuration.renderer.type;
31
- },
32
- /**
33
- * #method
34
- */
35
- renderProps() {
36
- const view = getContainingView(self);
37
- return {
38
- ...getParentRenderProps(self),
39
- rpcDriverName: self.rpcDriverName,
40
- displayModel: self,
41
- bezierRadius: view.radiusPx * self.bezierRadiusRatio,
42
- radius: view.radiusPx,
43
- // @ts-ignore
44
- blockDefinitions: this.blockDefinitions,
45
- config: self.configuration.renderer,
46
- onChordClick: self.onChordClick,
47
- };
48
- },
49
- }));
50
- return { stateModel, configSchema };
51
- };
52
- // http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
53
- // render request is for 1.5x the current viewing window
54
- // tracks all have a height
55
- //
56
- export default ChordVariantDisplayF;
57
- //# sourceMappingURL=ChordVariantDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChordVariantDisplay.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/ChordVariantDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,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AAExD,2BAA2B;AAC3B,EAAE;AACF,eAAe,oBAAoB,CAAA"}
@@ -1,69 +0,0 @@
1
- import { BaseChordDisplayModel } from '@jbrowse/plugin-circular-view'
2
- import { ConfigurationReference } from '@jbrowse/core/configuration'
3
- import { types } from 'mobx-state-tree'
4
- import { getContainingView } from '@jbrowse/core/util'
5
- import { getParentRenderProps } from '@jbrowse/core/util/tracks'
6
- import PluginManager from '@jbrowse/core/PluginManager'
7
-
8
- // locals
9
- import configSchemaF from './configSchema'
10
-
11
- /**
12
- * #stateModel ChordVariantDisplay
13
- * extends `BaseChordDisplay`
14
- */
15
- const ChordVariantDisplayF = (pluginManager: PluginManager) => {
16
- const configSchema = configSchemaF(pluginManager)
17
- const stateModel = types
18
- .compose(
19
- 'ChordVariantDisplay',
20
- BaseChordDisplayModel,
21
- types.model({
22
- /**
23
- * #property
24
- */
25
- type: types.literal('ChordVariantDisplay'),
26
- /**
27
- * #property
28
- */
29
- configuration: ConfigurationReference(configSchema),
30
- }),
31
- )
32
- .views(self => ({
33
- /**
34
- * #getter
35
- */
36
- get rendererTypeName() {
37
- return self.configuration.renderer.type
38
- },
39
-
40
- /**
41
- * #method
42
- */
43
- renderProps(): Record<string, unknown> {
44
- const view = getContainingView(self)
45
- return {
46
- ...getParentRenderProps(self),
47
- rpcDriverName: self.rpcDriverName,
48
- displayModel: self,
49
- bezierRadius: view.radiusPx * self.bezierRadiusRatio,
50
- radius: view.radiusPx,
51
-
52
- // @ts-ignore
53
- blockDefinitions: this.blockDefinitions,
54
- config: self.configuration.renderer,
55
- onChordClick: self.onChordClick,
56
- }
57
- },
58
- }))
59
-
60
- return { stateModel, configSchema }
61
- }
62
-
63
- // http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
64
-
65
- // render request is for 1.5x the current viewing window
66
-
67
- // tracks all have a height
68
- //
69
- export default ChordVariantDisplayF