@jbrowse/plugin-breakpoint-split-view 2.11.0 → 2.11.2

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.
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function BreakpointAlignmentsFeatureDetailF(pluginManager: PluginManager): void;
@@ -43,7 +43,7 @@ const stateModel = mobx_state_tree_1.types
43
43
  self.featureData = undefined;
44
44
  },
45
45
  }));
46
- exports.default = (pluginManager) => {
46
+ function BreakpointAlignmentsFeatureDetailF(pluginManager) {
47
47
  pluginManager.addWidgetType(() => {
48
48
  return new pluggableElementTypes_1.WidgetType({
49
49
  name: 'BreakpointAlignmentsWidget',
@@ -53,4 +53,5 @@ exports.default = (pluginManager) => {
53
53
  ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./BreakpointAlignmentsFeatureDetail')))),
54
54
  });
55
55
  });
56
- };
56
+ }
57
+ exports.default = BreakpointAlignmentsFeatureDetailF;
@@ -28,7 +28,6 @@ const mobx_react_1 = require("mobx-react");
28
28
  const mobx_state_tree_1 = require("mobx-state-tree");
29
29
  const material_1 = require("@mui/material");
30
30
  const util_1 = require("@jbrowse/core/util");
31
- const colord_1 = require("@jbrowse/core/util/colord");
32
31
  // locals
33
32
  const util_2 = require("./util");
34
33
  const util_3 = require("../util");
@@ -43,7 +42,6 @@ const AlignmentConnections = (0, mobx_react_1.observer)(function ({ model, track
43
42
  (0, util_3.useNextFrame)(snap);
44
43
  const allFeatures = model.getTrackFeatures(trackId);
45
44
  const hasPaired = (0, react_1.useMemo)(() => (0, util_2.hasPairedReads)(allFeatures), [allFeatures]);
46
- const { r, g, b, a } = (0, colord_1.colord)(theme.palette.text.disabled).rgba;
47
45
  const layoutMatches = (0, react_1.useMemo)(() => {
48
46
  const layoutMatches = model.getMatchedFeaturesInLayout(trackId, hasPaired
49
47
  ? (0, util_2.getBadlyPairedAlignments)(allFeatures)
@@ -61,7 +59,7 @@ const AlignmentConnections = (0, mobx_react_1.observer)(function ({ model, track
61
59
  const rect = parentRef.current.getBoundingClientRect();
62
60
  yOffset = rect.top;
63
61
  }
64
- return assembly ? (react_1.default.createElement("g", { fill: "none", stroke: `rgb(${r},${g},${b})`, strokeOpacity: a, "data-testid": layoutMatches.length ? `${trackId}-loaded` : trackId }, layoutMatches.map(chunk => {
62
+ return assembly ? (react_1.default.createElement("g", { fill: "none", ...(0, util_1.getStrokeProps)(theme.palette.text.disabled), "data-testid": layoutMatches.length ? `${trackId}-loaded` : trackId }, layoutMatches.map(chunk => {
65
63
  const ret = [];
66
64
  // we follow a path in the list of chunks, not from top to bottom, just in series
67
65
  // following x1,y1 -> x2,y2
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function BreakpointSplitViewF(pluginManager: PluginManager): void;
@@ -30,7 +30,7 @@ const react_1 = require("react");
30
30
  // locals
31
31
  const BreakpointSplitView_1 = __importDefault(require("./BreakpointSplitView"));
32
32
  const model_1 = __importDefault(require("./model"));
33
- exports.default = (pluginManager) => {
33
+ function BreakpointSplitViewF(pluginManager) {
34
34
  pluginManager.addViewType(() => {
35
35
  return new BreakpointSplitView_1.default({
36
36
  name: 'BreakpointSplitView',
@@ -39,4 +39,5 @@ exports.default = (pluginManager) => {
39
39
  ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/BreakpointSplitView')))),
40
40
  });
41
41
  });
42
- };
42
+ }
43
+ exports.default = BreakpointSplitViewF;
@@ -161,6 +161,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
161
161
  getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): {
162
162
  start: number;
163
163
  end: number;
164
+ type: string;
164
165
  regionNumber?: number | undefined;
165
166
  reversed?: boolean | undefined;
166
167
  refName: string;
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function BreakpointAlignmentsFeatureDetailF(pluginManager: PluginManager): void;
@@ -18,7 +18,7 @@ const stateModel = types
18
18
  self.featureData = undefined;
19
19
  },
20
20
  }));
21
- export default (pluginManager) => {
21
+ export default function BreakpointAlignmentsFeatureDetailF(pluginManager) {
22
22
  pluginManager.addWidgetType(() => {
23
23
  return new WidgetType({
24
24
  name: 'BreakpointAlignmentsWidget',
@@ -28,4 +28,4 @@ export default (pluginManager) => {
28
28
  ReactComponent: lazy(() => import('./BreakpointAlignmentsFeatureDetail')),
29
29
  });
30
30
  });
31
- };
31
+ }
@@ -2,8 +2,7 @@ import React, { useMemo, useState } from 'react';
2
2
  import { observer } from 'mobx-react';
3
3
  import { getSnapshot } from 'mobx-state-tree';
4
4
  import { useTheme } from '@mui/material';
5
- import { getSession } from '@jbrowse/core/util';
6
- import { colord } from '@jbrowse/core/util/colord';
5
+ import { getSession, getStrokeProps } from '@jbrowse/core/util';
7
6
  // locals
8
7
  import { getBadlyPairedAlignments, getMatchedAlignmentFeatures, hasPairedReads, } from './util';
9
8
  import { yPos, useNextFrame, getPxFromCoordinate } from '../util';
@@ -18,7 +17,6 @@ const AlignmentConnections = observer(function ({ model, trackId, parentRef, get
18
17
  useNextFrame(snap);
19
18
  const allFeatures = model.getTrackFeatures(trackId);
20
19
  const hasPaired = useMemo(() => hasPairedReads(allFeatures), [allFeatures]);
21
- const { r, g, b, a } = colord(theme.palette.text.disabled).rgba;
22
20
  const layoutMatches = useMemo(() => {
23
21
  const layoutMatches = model.getMatchedFeaturesInLayout(trackId, hasPaired
24
22
  ? getBadlyPairedAlignments(allFeatures)
@@ -36,7 +34,7 @@ const AlignmentConnections = observer(function ({ model, trackId, parentRef, get
36
34
  const rect = parentRef.current.getBoundingClientRect();
37
35
  yOffset = rect.top;
38
36
  }
39
- return assembly ? (React.createElement("g", { fill: "none", stroke: `rgb(${r},${g},${b})`, strokeOpacity: a, "data-testid": layoutMatches.length ? `${trackId}-loaded` : trackId }, layoutMatches.map(chunk => {
37
+ return assembly ? (React.createElement("g", { fill: "none", ...getStrokeProps(theme.palette.text.disabled), "data-testid": layoutMatches.length ? `${trackId}-loaded` : trackId }, layoutMatches.map(chunk => {
40
38
  const ret = [];
41
39
  // we follow a path in the list of chunks, not from top to bottom, just in series
42
40
  // following x1,y1 -> x2,y2
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function BreakpointSplitViewF(pluginManager: PluginManager): void;
@@ -2,7 +2,7 @@ import { lazy } from 'react';
2
2
  // locals
3
3
  import BreakpointSplitView from './BreakpointSplitView';
4
4
  import stateModelFactory from './model';
5
- export default (pluginManager) => {
5
+ export default function BreakpointSplitViewF(pluginManager) {
6
6
  pluginManager.addViewType(() => {
7
7
  return new BreakpointSplitView({
8
8
  name: 'BreakpointSplitView',
@@ -11,4 +11,4 @@ export default (pluginManager) => {
11
11
  ReactComponent: lazy(() => import('./components/BreakpointSplitView')),
12
12
  });
13
13
  });
14
- };
14
+ }
@@ -161,6 +161,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
161
161
  getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): {
162
162
  start: number;
163
163
  end: number;
164
+ type: string;
164
165
  regionNumber?: number | undefined;
165
166
  reversed?: boolean | undefined;
166
167
  refName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-breakpoint-split-view",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "JBrowse 2 breakpoint detail split view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
61
+ "gitHead": "511048cb6965f0bf624c96de244e7fd47fce17d6"
62
62
  }