@jbrowse/plugin-wiggle 2.15.0 → 2.15.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.
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
2
+ import { AnyReactComponentType } from '@jbrowse/core/util';
3
3
  import { Instance } from 'mobx-state-tree';
4
4
  import PluginManager from '@jbrowse/core/PluginManager';
5
5
  import { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
@@ -45,16 +45,14 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
45
45
  maxHeightReached: boolean;
46
46
  ReactComponent: ({ model, }: {
47
47
  model: {
48
- error? /**
49
- * #getter
50
- */: unknown;
48
+ error?: unknown;
51
49
  reload: () => void;
52
50
  message: React.ReactNode;
53
51
  filled?: boolean;
54
52
  status?: string;
55
53
  reactElement?: React.ReactElement;
56
54
  };
57
- }) => React.JSX.Element | undefined;
55
+ }) => import("react").JSX.Element | undefined;
58
56
  renderProps: any;
59
57
  } & {
60
58
  doReload(): void;
@@ -134,13 +132,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
134
132
  id: string;
135
133
  type: string;
136
134
  rpcDriverName: string | undefined;
137
- } & import(
138
- /**
139
- * #stateModel LinearWiggleDisplay
140
- * extends
141
- * - [SharedWiggleMixin](../sharedwigglemixin)
142
- */
143
- "mobx-state-tree/dist/internal").NonEmptyObject & {
135
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
144
136
  rendererTypeName: string;
145
137
  error: unknown;
146
138
  message: string | undefined;
@@ -152,10 +144,10 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
152
144
  rendererTypeName: string;
153
145
  error: unknown;
154
146
  message: string | undefined;
155
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree" /**
147
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
148
+ onHorizontalScroll? /**
156
149
  * #getter
157
- */)._NotCustomized>>;
158
- onHorizontalScroll?: () => void;
150
+ */: () => void;
159
151
  blockState?: Record<string, any>;
160
152
  }>;
161
153
  readonly DisplayBlurb: React.FC<{
@@ -222,18 +214,18 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
222
214
  readonly regionTooLargeReason: string;
223
215
  } & {
224
216
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
225
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
217
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
226
218
  } & {
227
219
  featureIdUnderMouse: undefined | string;
228
220
  contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
229
221
  } & {
222
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
230
223
  readonly blockType: "dynamicBlocks" | "staticBlocks";
231
224
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
232
225
  } & {
233
226
  readonly renderDelay: number;
234
- readonly TooltipComponent: React.FC<any>;
227
+ readonly TooltipComponent: AnyReactComponentType;
235
228
  readonly selectedFeatureId: string | undefined;
236
- readonly DisplayMessageComponent: undefined | React.FC<any>;
237
229
  } & {
238
230
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
239
231
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
@@ -255,7 +247,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
255
247
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
256
248
  renderProps(): any;
257
249
  } & {
258
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
250
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
259
251
  afterAttach(): void;
260
252
  } & {
261
253
  message: undefined | string;
@@ -353,7 +345,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
353
345
  /**
354
346
  * #getter
355
347
  */
356
- readonly TooltipComponent: React.FC;
348
+ readonly TooltipComponent: AnyReactComponentType;
357
349
  /**
358
350
  * #getter
359
351
  */
@@ -434,7 +426,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
434
426
  /**
435
427
  * #action
436
428
  */
437
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
429
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
438
430
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
439
431
  export type WiggleDisplayStateModel = ReturnType<typeof stateModelFactory>;
440
432
  export type WiggleDisplayModel = Instance<WiggleDisplayStateModel>;
@@ -33,9 +33,9 @@ const mobx_state_tree_1 = require("mobx-state-tree");
33
33
  const react_d3_axis_mod_1 = require("react-d3-axis-mod");
34
34
  // locals
35
35
  const util_2 = require("../../util");
36
- const Tooltip_1 = __importDefault(require("../components/Tooltip"));
37
36
  const modelShared_1 = __importDefault(require("../../shared/modelShared"));
38
37
  // lazies
38
+ const Tooltip = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/Tooltip'))));
39
39
  const SetColorDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/SetColorDialog'))));
40
40
  // using a map because it preserves order
41
41
  const rendererTypes = new Map([
@@ -61,7 +61,7 @@ function stateModelFactory(pluginManager, configSchema) {
61
61
  * #getter
62
62
  */
63
63
  get TooltipComponent() {
64
- return Tooltip_1.default;
64
+ return Tooltip;
65
65
  },
66
66
  /**
67
67
  * #getter
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { Instance } from 'mobx-state-tree';
3
2
  import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
4
- import { Feature } from '@jbrowse/core/util';
3
+ import { Feature, AnyReactComponentType } from '@jbrowse/core/util';
5
4
  import PluginManager from '@jbrowse/core/PluginManager';
6
5
  import { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
7
6
  interface Source {
@@ -58,7 +57,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
58
57
  status?: string;
59
58
  reactElement?: React.ReactElement;
60
59
  };
61
- }) => React.JSX.Element | undefined;
60
+ }) => import("react").JSX.Element | undefined;
62
61
  renderProps: any;
63
62
  } & {
64
63
  doReload(): void;
@@ -154,9 +153,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
154
153
  rendererTypeName: string;
155
154
  error: unknown;
156
155
  message: string | undefined;
157
- }, import("mobx-state-tree" /**
158
- * #property
159
- */)._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
156
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
160
157
  onHorizontalScroll?: () => void;
161
158
  blockState?: Record<string, any>;
162
159
  }>;
@@ -169,7 +166,9 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
169
166
  rendererTypeName: string;
170
167
  error: unknown;
171
168
  message: string | undefined;
172
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
169
+ } & import("mobx-state-tree" /**
170
+ * #action
171
+ */).IStateTreeNode<import("mobx-state-tree").IModelType<{
173
172
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
174
173
  type: import("mobx-state-tree").ISimpleType<string>;
175
174
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -224,18 +223,18 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
224
223
  readonly regionTooLargeReason: string;
225
224
  } & {
226
225
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
227
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
226
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
228
227
  } & {
229
228
  featureIdUnderMouse: undefined | string;
230
229
  contextMenuFeature: undefined | Feature;
231
230
  } & {
231
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
232
232
  readonly blockType: "dynamicBlocks" | "staticBlocks";
233
233
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
234
234
  } & {
235
235
  readonly renderDelay: number;
236
- readonly TooltipComponent: React.FC<any>;
236
+ readonly TooltipComponent: AnyReactComponentType;
237
237
  readonly selectedFeatureId: string | undefined;
238
- readonly DisplayMessageComponent: undefined | React.FC<any>;
239
238
  } & {
240
239
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
241
240
  readonly featureUnderMouse: Feature | undefined;
@@ -257,7 +256,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
257
256
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
258
257
  renderProps(): any;
259
258
  } & {
260
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
259
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
261
260
  afterAttach(): void;
262
261
  } & {
263
262
  message: undefined | string;
@@ -379,7 +378,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
379
378
  /**
380
379
  * #getter
381
380
  */
382
- readonly TooltipComponent: React.FC;
381
+ readonly TooltipComponent: AnyReactComponentType;
383
382
  /**
384
383
  * #getter
385
384
  */
@@ -522,7 +521,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
522
521
  /**
523
522
  * #action
524
523
  */
525
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
524
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
526
525
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
527
526
  export type WiggleDisplayStateModel = ReturnType<typeof stateModelFactory>;
528
527
  export type WiggleDisplayModel = Instance<WiggleDisplayStateModel>;
@@ -39,10 +39,10 @@ const tracks_1 = require("@jbrowse/core/util/tracks");
39
39
  const colors_1 = require("@jbrowse/core/ui/colors");
40
40
  // locals
41
41
  const util_2 = require("../../util");
42
- const Tooltip_1 = __importDefault(require("../components/Tooltip"));
43
42
  const modelShared_1 = __importDefault(require("../../shared/modelShared"));
44
43
  const randomColor = () => '#000000'.replaceAll('0', () => (~~(Math.random() * 16)).toString(16));
45
44
  // lazies
45
+ const Tooltip = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/Tooltip'))));
46
46
  const SetColorDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/SetColorDialog'))));
47
47
  // using a map because it preserves order
48
48
  const rendererTypes = new Map([
@@ -112,7 +112,7 @@ function stateModelFactory(pluginManager, configSchema) {
112
112
  * #getter
113
113
  */
114
114
  get TooltipComponent() {
115
- return Tooltip_1.default;
115
+ return Tooltip;
116
116
  },
117
117
  /**
118
118
  * #getter
package/dist/Tooltip.js CHANGED
@@ -1,31 +1,38 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
29
+ const react_1 = __importStar(require("react"));
7
30
  const mobx_react_1 = require("mobx-react");
8
- const material_1 = require("@mui/material");
9
31
  const mui_1 = require("tss-react/mui");
10
- const react_2 = require("@floating-ui/react");
32
+ const BaseTooltip_1 = __importDefault(require("@jbrowse/core/ui/BaseTooltip"));
11
33
  // locals
12
34
  const util_1 = require("./util");
13
- const useStyles = (0, mui_1.makeStyles)()(theme => ({
14
- // these styles come from
15
- // https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js
16
- tooltip: {
17
- position: 'absolute',
18
- pointerEvents: 'none',
19
- backgroundColor: (0, material_1.alpha)(theme.palette.grey[700], 0.9),
20
- borderRadius: theme.shape.borderRadius,
21
- color: theme.palette.common.white,
22
- fontFamily: theme.typography.fontFamily,
23
- padding: '4px 8px',
24
- fontSize: theme.typography.pxToRem(12),
25
- lineHeight: `${(0, util_1.round)(14 / 10)}em`,
26
- maxWidth: 300,
27
- wordWrap: 'break-word',
28
- },
35
+ const useStyles = (0, mui_1.makeStyles)()({
29
36
  hoverVertical: {
30
37
  background: '#333',
31
38
  border: 'none',
@@ -36,28 +43,15 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
36
43
  position: 'absolute',
37
44
  pointerEvents: 'none',
38
45
  },
39
- }));
46
+ });
40
47
  const Tooltip = (0, mobx_react_1.observer)(function Tooltip({ model, height, clientMouseCoord, offsetMouseCoord, clientRect, TooltipContents, useClientY, }) {
41
- var _a, _b;
42
- const theme = (0, material_1.useTheme)();
43
48
  const { featureUnderMouse } = model;
44
49
  const { classes } = useStyles();
45
- const { refs, floatingStyles, context } = (0, react_2.useFloating)({
46
- placement: 'right',
47
- strategy: 'fixed',
48
- });
49
50
  const x = clientMouseCoord[0] + 5;
50
51
  const y = useClientY ? clientMouseCoord[1] : (clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0;
51
- const clientPoint = (0, react_2.useClientPoint)(context, { x, y });
52
- const { getFloatingProps } = (0, react_2.useInteractions)([clientPoint]);
53
- const popperTheme = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.MuiPopper;
54
52
  return featureUnderMouse ? (react_1.default.createElement(react_1.default.Fragment, null,
55
- react_1.default.createElement(material_1.Portal, { container: (_b = popperTheme === null || popperTheme === void 0 ? void 0 : popperTheme.defaultProps) === null || _b === void 0 ? void 0 : _b.container },
56
- react_1.default.createElement("div", { className: classes.tooltip, ref: refs.setFloating, style: {
57
- ...floatingStyles,
58
- zIndex: 100000,
59
- pointerEvents: 'none',
60
- }, ...getFloatingProps() },
53
+ react_1.default.createElement(react_1.Suspense, { fallback: null },
54
+ react_1.default.createElement(BaseTooltip_1.default, { clientPoint: { x, y } },
61
55
  react_1.default.createElement(TooltipContents, { model: model, feature: featureUnderMouse }))),
62
56
  react_1.default.createElement("div", { className: classes.hoverVertical, style: {
63
57
  left: offsetMouseCoord[0],
@@ -37,7 +37,7 @@ export default abstract class WiggleBaseRenderer extends FeatureRendererType {
37
37
  height: number;
38
38
  width: number;
39
39
  containsNoTransferables: boolean;
40
- reactElement: import("react").JSX.Element;
40
+ reactElement: React.JSX.Element;
41
41
  html?: string;
42
42
  } | {
43
43
  features: Map<string, Feature>;
package/dist/index.d.ts CHANGED
@@ -18,9 +18,9 @@ export default class WigglePlugin extends Plugin {
18
18
  width: number;
19
19
  height: number;
20
20
  blockKey: string;
21
- onMouseLeave?: (event: import("react").MouseEvent) => void;
22
- onMouseMove?: (event: import("react").MouseEvent, arg?: string) => void;
23
- onFeatureClick?: (event: import("react").MouseEvent, arg?: string) => void;
21
+ onMouseLeave?: (event: React.MouseEvent) => void;
22
+ onMouseMove?: (event: React.MouseEvent, arg?: string) => void;
23
+ onFeatureClick?: (event: React.MouseEvent, arg?: string) => void;
24
24
  }) => import("react").JSX.Element;
25
25
  XYPlotRenderer: typeof XYPlotRenderer;
26
26
  WiggleBaseRenderer: typeof WiggleBaseRenderer;
@@ -31,7 +31,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
31
31
  }, {
32
32
  renderInProgress: AbortController | undefined;
33
33
  filled: boolean;
34
- reactElement: import("react").ReactElement | undefined;
34
+ reactElement: React.ReactElement | undefined;
35
35
  features: Map<string, Feature> | undefined;
36
36
  layout: any;
37
37
  status: string;
@@ -42,12 +42,12 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
42
42
  model: {
43
43
  error?: unknown;
44
44
  reload: () => void;
45
- message: import("react").ReactNode;
45
+ message: React.ReactNode;
46
46
  filled?: boolean;
47
47
  status?: string;
48
48
  reactElement? /**
49
49
  * #property
50
- */: import("react").ReactElement;
50
+ */: React.ReactElement;
51
51
  };
52
52
  }) => import("react").JSX.Element | undefined;
53
53
  renderProps: any;
@@ -58,7 +58,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
58
58
  setLoading(abortController: AbortController): void;
59
59
  setMessage(messageText: string): void;
60
60
  setRendered(props: {
61
- reactElement: import("react").ReactElement;
61
+ reactElement: React.ReactElement;
62
62
  features: Map<string, Feature>;
63
63
  layout: any;
64
64
  maxHeightReached: boolean;
@@ -161,7 +161,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
161
161
  error: unknown;
162
162
  message: string | undefined;
163
163
  } & {
164
- readonly RenderingComponent: import("react").FC<{
164
+ readonly RenderingComponent: React.FC<{
165
165
  model: {
166
166
  id: string;
167
167
  type: string;
@@ -184,7 +184,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
184
184
  onHorizontalScroll?: () => void;
185
185
  blockState?: Record<string, any>;
186
186
  }>;
187
- readonly DisplayBlurb: import("react").FC<{
187
+ readonly DisplayBlurb: React.FC<{
188
188
  model: {
189
189
  id: string;
190
190
  type: string;
@@ -207,7 +207,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
207
207
  readonly parentTrack: any;
208
208
  renderProps(): any;
209
209
  readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
210
- readonly DisplayMessageComponent: undefined | import("react").FC<any>;
210
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
211
211
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
212
212
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
213
213
  regionCannotBeRendered(): null;
@@ -253,13 +253,13 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
253
253
  featureIdUnderMouse: undefined | string;
254
254
  contextMenuFeature: undefined | Feature;
255
255
  } & {
256
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
256
257
  readonly blockType: "dynamicBlocks" | "staticBlocks";
257
258
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
258
259
  } & {
259
260
  readonly renderDelay: number;
260
- readonly TooltipComponent: import("react").FC<any>;
261
+ readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
261
262
  readonly selectedFeatureId: string | undefined;
262
- readonly DisplayMessageComponent: undefined | import("react").FC<any>;
263
263
  } & {
264
264
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
265
265
  readonly featureUnderMouse: Feature | undefined;
@@ -519,7 +519,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
519
519
  }, {
520
520
  renderInProgress: AbortController | undefined;
521
521
  filled: boolean;
522
- reactElement: import("react").ReactElement | undefined;
522
+ reactElement: React.ReactElement | undefined;
523
523
  features: Map<string, Feature> | undefined;
524
524
  layout: any;
525
525
  status: string;
@@ -530,12 +530,12 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
530
530
  model: {
531
531
  error?: unknown;
532
532
  reload: () => void;
533
- message: import("react").ReactNode;
533
+ message: React.ReactNode;
534
534
  filled?: boolean;
535
535
  status?: string;
536
536
  reactElement? /**
537
537
  * #property
538
- */: import("react").ReactElement;
538
+ */: React.ReactElement;
539
539
  };
540
540
  }) => import("react").JSX.Element | undefined;
541
541
  renderProps: any;
@@ -546,7 +546,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
546
546
  setLoading(abortController: AbortController): void;
547
547
  setMessage(messageText: string): void;
548
548
  setRendered(props: {
549
- reactElement: import("react").ReactElement;
549
+ reactElement: React.ReactElement;
550
550
  features: Map<string, Feature>;
551
551
  layout: any;
552
552
  maxHeightReached: boolean;
@@ -588,8 +588,8 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
588
588
  type: string;
589
589
  id: string;
590
590
  configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
591
- rpcDriverName: string | undefined;
592
591
  heightPreConfig: number | undefined;
592
+ rpcDriverName: string | undefined;
593
593
  userBpPerPxLimit: number | undefined;
594
594
  userByteSizeLimit: number | undefined;
595
595
  } & import("mobx-state-tree")._NotCustomized>;
package/dist/util.d.ts CHANGED
@@ -25,7 +25,7 @@ export interface Source {
25
25
  * - pivotValue (number)
26
26
  * - inverted (boolean)
27
27
  */
28
- export declare function getScale({ domain, range, scaleType, pivotValue, inverted, }: ScaleOpts): import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleQuantize<number, never>;
28
+ export declare function getScale({ domain, range, scaleType, pivotValue, inverted, }: ScaleOpts): import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleLogarithmic<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
29
29
  /**
30
30
  * gets the origin for drawing the graph. for linear this is 0, for log this is arbitrarily set to log(1)==0
31
31
  *
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
2
+ import { AnyReactComponentType } from '@jbrowse/core/util';
3
3
  import { Instance } from 'mobx-state-tree';
4
4
  import PluginManager from '@jbrowse/core/PluginManager';
5
5
  import { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
@@ -45,16 +45,14 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
45
45
  maxHeightReached: boolean;
46
46
  ReactComponent: ({ model, }: {
47
47
  model: {
48
- error? /**
49
- * #getter
50
- */: unknown;
48
+ error?: unknown;
51
49
  reload: () => void;
52
50
  message: React.ReactNode;
53
51
  filled?: boolean;
54
52
  status?: string;
55
53
  reactElement?: React.ReactElement;
56
54
  };
57
- }) => React.JSX.Element | undefined;
55
+ }) => import("react").JSX.Element | undefined;
58
56
  renderProps: any;
59
57
  } & {
60
58
  doReload(): void;
@@ -134,13 +132,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
134
132
  id: string;
135
133
  type: string;
136
134
  rpcDriverName: string | undefined;
137
- } & import(
138
- /**
139
- * #stateModel LinearWiggleDisplay
140
- * extends
141
- * - [SharedWiggleMixin](../sharedwigglemixin)
142
- */
143
- "mobx-state-tree/dist/internal").NonEmptyObject & {
135
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
144
136
  rendererTypeName: string;
145
137
  error: unknown;
146
138
  message: string | undefined;
@@ -152,10 +144,10 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
152
144
  rendererTypeName: string;
153
145
  error: unknown;
154
146
  message: string | undefined;
155
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree" /**
147
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
148
+ onHorizontalScroll? /**
156
149
  * #getter
157
- */)._NotCustomized>>;
158
- onHorizontalScroll?: () => void;
150
+ */: () => void;
159
151
  blockState?: Record<string, any>;
160
152
  }>;
161
153
  readonly DisplayBlurb: React.FC<{
@@ -222,18 +214,18 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
222
214
  readonly regionTooLargeReason: string;
223
215
  } & {
224
216
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
225
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
217
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
226
218
  } & {
227
219
  featureIdUnderMouse: undefined | string;
228
220
  contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
229
221
  } & {
222
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
230
223
  readonly blockType: "dynamicBlocks" | "staticBlocks";
231
224
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
232
225
  } & {
233
226
  readonly renderDelay: number;
234
- readonly TooltipComponent: React.FC<any>;
227
+ readonly TooltipComponent: AnyReactComponentType;
235
228
  readonly selectedFeatureId: string | undefined;
236
- readonly DisplayMessageComponent: undefined | React.FC<any>;
237
229
  } & {
238
230
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
239
231
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
@@ -255,7 +247,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
255
247
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
256
248
  renderProps(): any;
257
249
  } & {
258
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
250
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
259
251
  afterAttach(): void;
260
252
  } & {
261
253
  message: undefined | string;
@@ -353,7 +345,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
353
345
  /**
354
346
  * #getter
355
347
  */
356
- readonly TooltipComponent: React.FC;
348
+ readonly TooltipComponent: AnyReactComponentType;
357
349
  /**
358
350
  * #getter
359
351
  */
@@ -434,7 +426,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
434
426
  /**
435
427
  * #action
436
428
  */
437
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
429
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
438
430
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
439
431
  export type WiggleDisplayStateModel = ReturnType<typeof stateModelFactory>;
440
432
  export type WiggleDisplayModel = Instance<WiggleDisplayStateModel>;
@@ -5,9 +5,9 @@ import { types } from 'mobx-state-tree';
5
5
  import { axisPropsFromTickScale } from 'react-d3-axis-mod';
6
6
  // locals
7
7
  import { getScale, YSCALEBAR_LABEL_OFFSET } from '../../util';
8
- import Tooltip from '../components/Tooltip';
9
8
  import SharedWiggleMixin from '../../shared/modelShared';
10
9
  // lazies
10
+ const Tooltip = lazy(() => import('../components/Tooltip'));
11
11
  const SetColorDialog = lazy(() => import('../components/SetColorDialog'));
12
12
  // using a map because it preserves order
13
13
  const rendererTypes = new Map([
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { Instance } from 'mobx-state-tree';
3
2
  import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
4
- import { Feature } from '@jbrowse/core/util';
3
+ import { Feature, AnyReactComponentType } from '@jbrowse/core/util';
5
4
  import PluginManager from '@jbrowse/core/PluginManager';
6
5
  import { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
7
6
  interface Source {
@@ -58,7 +57,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
58
57
  status?: string;
59
58
  reactElement?: React.ReactElement;
60
59
  };
61
- }) => React.JSX.Element | undefined;
60
+ }) => import("react").JSX.Element | undefined;
62
61
  renderProps: any;
63
62
  } & {
64
63
  doReload(): void;
@@ -154,9 +153,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
154
153
  rendererTypeName: string;
155
154
  error: unknown;
156
155
  message: string | undefined;
157
- }, import("mobx-state-tree" /**
158
- * #property
159
- */)._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
156
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
160
157
  onHorizontalScroll?: () => void;
161
158
  blockState?: Record<string, any>;
162
159
  }>;
@@ -169,7 +166,9 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
169
166
  rendererTypeName: string;
170
167
  error: unknown;
171
168
  message: string | undefined;
172
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
169
+ } & import("mobx-state-tree" /**
170
+ * #action
171
+ */).IStateTreeNode<import("mobx-state-tree").IModelType<{
173
172
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
174
173
  type: import("mobx-state-tree").ISimpleType<string>;
175
174
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -224,18 +223,18 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
224
223
  readonly regionTooLargeReason: string;
225
224
  } & {
226
225
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
227
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
226
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
228
227
  } & {
229
228
  featureIdUnderMouse: undefined | string;
230
229
  contextMenuFeature: undefined | Feature;
231
230
  } & {
231
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
232
232
  readonly blockType: "dynamicBlocks" | "staticBlocks";
233
233
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
234
234
  } & {
235
235
  readonly renderDelay: number;
236
- readonly TooltipComponent: React.FC<any>;
236
+ readonly TooltipComponent: AnyReactComponentType;
237
237
  readonly selectedFeatureId: string | undefined;
238
- readonly DisplayMessageComponent: undefined | React.FC<any>;
239
238
  } & {
240
239
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
241
240
  readonly featureUnderMouse: Feature | undefined;
@@ -257,7 +256,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
257
256
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
258
257
  renderProps(): any;
259
258
  } & {
260
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
259
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
261
260
  afterAttach(): void;
262
261
  } & {
263
262
  message: undefined | string;
@@ -379,7 +378,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
379
378
  /**
380
379
  * #getter
381
380
  */
382
- readonly TooltipComponent: React.FC;
381
+ readonly TooltipComponent: AnyReactComponentType;
383
382
  /**
384
383
  * #getter
385
384
  */
@@ -522,7 +521,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
522
521
  /**
523
522
  * #action
524
523
  */
525
- renderSvg(opts: ExportSvgDisplayOptions): Promise<React.JSX.Element>;
524
+ renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
526
525
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
527
526
  export type WiggleDisplayStateModel = ReturnType<typeof stateModelFactory>;
528
527
  export type WiggleDisplayModel = Instance<WiggleDisplayStateModel>;
@@ -10,10 +10,10 @@ import { getRpcSessionId } from '@jbrowse/core/util/tracks';
10
10
  import { set1 as colors } from '@jbrowse/core/ui/colors';
11
11
  // locals
12
12
  import { getScale, YSCALEBAR_LABEL_OFFSET } from '../../util';
13
- import Tooltip from '../components/Tooltip';
14
13
  import SharedWiggleMixin from '../../shared/modelShared';
15
14
  const randomColor = () => '#000000'.replaceAll('0', () => (~~(Math.random() * 16)).toString(16));
16
15
  // lazies
16
+ const Tooltip = lazy(() => import('../components/Tooltip'));
17
17
  const SetColorDialog = lazy(() => import('../components/SetColorDialog'));
18
18
  // using a map because it preserves order
19
19
  const rendererTypes = new Map([
package/esm/Tooltip.js CHANGED
@@ -1,26 +1,10 @@
1
- import React from 'react';
1
+ import React, { Suspense } from 'react';
2
2
  import { observer } from 'mobx-react';
3
- import { alpha, Portal, useTheme } from '@mui/material';
4
3
  import { makeStyles } from 'tss-react/mui';
5
- import { useClientPoint, useFloating, useInteractions, } from '@floating-ui/react';
4
+ import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
6
5
  // locals
7
- import { YSCALEBAR_LABEL_OFFSET, round } from './util';
8
- const useStyles = makeStyles()(theme => ({
9
- // these styles come from
10
- // https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js
11
- tooltip: {
12
- position: 'absolute',
13
- pointerEvents: 'none',
14
- backgroundColor: alpha(theme.palette.grey[700], 0.9),
15
- borderRadius: theme.shape.borderRadius,
16
- color: theme.palette.common.white,
17
- fontFamily: theme.typography.fontFamily,
18
- padding: '4px 8px',
19
- fontSize: theme.typography.pxToRem(12),
20
- lineHeight: `${round(14 / 10)}em`,
21
- maxWidth: 300,
22
- wordWrap: 'break-word',
23
- },
6
+ import { YSCALEBAR_LABEL_OFFSET } from './util';
7
+ const useStyles = makeStyles()({
24
8
  hoverVertical: {
25
9
  background: '#333',
26
10
  border: 'none',
@@ -31,28 +15,15 @@ const useStyles = makeStyles()(theme => ({
31
15
  position: 'absolute',
32
16
  pointerEvents: 'none',
33
17
  },
34
- }));
18
+ });
35
19
  const Tooltip = observer(function Tooltip({ model, height, clientMouseCoord, offsetMouseCoord, clientRect, TooltipContents, useClientY, }) {
36
- var _a, _b;
37
- const theme = useTheme();
38
20
  const { featureUnderMouse } = model;
39
21
  const { classes } = useStyles();
40
- const { refs, floatingStyles, context } = useFloating({
41
- placement: 'right',
42
- strategy: 'fixed',
43
- });
44
22
  const x = clientMouseCoord[0] + 5;
45
23
  const y = useClientY ? clientMouseCoord[1] : (clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0;
46
- const clientPoint = useClientPoint(context, { x, y });
47
- const { getFloatingProps } = useInteractions([clientPoint]);
48
- const popperTheme = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.MuiPopper;
49
24
  return featureUnderMouse ? (React.createElement(React.Fragment, null,
50
- React.createElement(Portal, { container: (_b = popperTheme === null || popperTheme === void 0 ? void 0 : popperTheme.defaultProps) === null || _b === void 0 ? void 0 : _b.container },
51
- React.createElement("div", { className: classes.tooltip, ref: refs.setFloating, style: {
52
- ...floatingStyles,
53
- zIndex: 100000,
54
- pointerEvents: 'none',
55
- }, ...getFloatingProps() },
25
+ React.createElement(Suspense, { fallback: null },
26
+ React.createElement(BaseTooltip, { clientPoint: { x, y } },
56
27
  React.createElement(TooltipContents, { model: model, feature: featureUnderMouse }))),
57
28
  React.createElement("div", { className: classes.hoverVertical, style: {
58
29
  left: offsetMouseCoord[0],
@@ -37,7 +37,7 @@ export default abstract class WiggleBaseRenderer extends FeatureRendererType {
37
37
  height: number;
38
38
  width: number;
39
39
  containsNoTransferables: boolean;
40
- reactElement: import("react").JSX.Element;
40
+ reactElement: React.JSX.Element;
41
41
  html?: string;
42
42
  } | {
43
43
  features: Map<string, Feature>;
package/esm/index.d.ts CHANGED
@@ -18,9 +18,9 @@ export default class WigglePlugin extends Plugin {
18
18
  width: number;
19
19
  height: number;
20
20
  blockKey: string;
21
- onMouseLeave?: (event: import("react").MouseEvent) => void;
22
- onMouseMove?: (event: import("react").MouseEvent, arg?: string) => void;
23
- onFeatureClick?: (event: import("react").MouseEvent, arg?: string) => void;
21
+ onMouseLeave?: (event: React.MouseEvent) => void;
22
+ onMouseMove?: (event: React.MouseEvent, arg?: string) => void;
23
+ onFeatureClick?: (event: React.MouseEvent, arg?: string) => void;
24
24
  }) => import("react").JSX.Element;
25
25
  XYPlotRenderer: typeof XYPlotRenderer;
26
26
  WiggleBaseRenderer: typeof WiggleBaseRenderer;
@@ -31,7 +31,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
31
31
  }, {
32
32
  renderInProgress: AbortController | undefined;
33
33
  filled: boolean;
34
- reactElement: import("react").ReactElement | undefined;
34
+ reactElement: React.ReactElement | undefined;
35
35
  features: Map<string, Feature> | undefined;
36
36
  layout: any;
37
37
  status: string;
@@ -42,12 +42,12 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
42
42
  model: {
43
43
  error?: unknown;
44
44
  reload: () => void;
45
- message: import("react").ReactNode;
45
+ message: React.ReactNode;
46
46
  filled?: boolean;
47
47
  status?: string;
48
48
  reactElement? /**
49
49
  * #property
50
- */: import("react").ReactElement;
50
+ */: React.ReactElement;
51
51
  };
52
52
  }) => import("react").JSX.Element | undefined;
53
53
  renderProps: any;
@@ -58,7 +58,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
58
58
  setLoading(abortController: AbortController): void;
59
59
  setMessage(messageText: string): void;
60
60
  setRendered(props: {
61
- reactElement: import("react").ReactElement;
61
+ reactElement: React.ReactElement;
62
62
  features: Map<string, Feature>;
63
63
  layout: any;
64
64
  maxHeightReached: boolean;
@@ -161,7 +161,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
161
161
  error: unknown;
162
162
  message: string | undefined;
163
163
  } & {
164
- readonly RenderingComponent: import("react").FC<{
164
+ readonly RenderingComponent: React.FC<{
165
165
  model: {
166
166
  id: string;
167
167
  type: string;
@@ -184,7 +184,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
184
184
  onHorizontalScroll?: () => void;
185
185
  blockState?: Record<string, any>;
186
186
  }>;
187
- readonly DisplayBlurb: import("react").FC<{
187
+ readonly DisplayBlurb: React.FC<{
188
188
  model: {
189
189
  id: string;
190
190
  type: string;
@@ -207,7 +207,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
207
207
  readonly parentTrack: any;
208
208
  renderProps(): any;
209
209
  readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
210
- readonly DisplayMessageComponent: undefined | import("react").FC<any>;
210
+ readonly DisplayMessageComponent: undefined | React.FC<any>;
211
211
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
212
212
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
213
213
  regionCannotBeRendered(): null;
@@ -253,13 +253,13 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
253
253
  featureIdUnderMouse: undefined | string;
254
254
  contextMenuFeature: undefined | Feature;
255
255
  } & {
256
+ readonly DisplayMessageComponent: import("react").FC<any> | undefined;
256
257
  readonly blockType: "dynamicBlocks" | "staticBlocks";
257
258
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
258
259
  } & {
259
260
  readonly renderDelay: number;
260
- readonly TooltipComponent: import("react").FC<any>;
261
+ readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
261
262
  readonly selectedFeatureId: string | undefined;
262
- readonly DisplayMessageComponent: undefined | import("react").FC<any>;
263
263
  } & {
264
264
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
265
265
  readonly featureUnderMouse: Feature | undefined;
@@ -519,7 +519,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
519
519
  }, {
520
520
  renderInProgress: AbortController | undefined;
521
521
  filled: boolean;
522
- reactElement: import("react").ReactElement | undefined;
522
+ reactElement: React.ReactElement | undefined;
523
523
  features: Map<string, Feature> | undefined;
524
524
  layout: any;
525
525
  status: string;
@@ -530,12 +530,12 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
530
530
  model: {
531
531
  error?: unknown;
532
532
  reload: () => void;
533
- message: import("react").ReactNode;
533
+ message: React.ReactNode;
534
534
  filled?: boolean;
535
535
  status?: string;
536
536
  reactElement? /**
537
537
  * #property
538
- */: import("react").ReactElement;
538
+ */: React.ReactElement;
539
539
  };
540
540
  }) => import("react").JSX.Element | undefined;
541
541
  renderProps: any;
@@ -546,7 +546,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
546
546
  setLoading(abortController: AbortController): void;
547
547
  setMessage(messageText: string): void;
548
548
  setRendered(props: {
549
- reactElement: import("react").ReactElement;
549
+ reactElement: React.ReactElement;
550
550
  features: Map<string, Feature>;
551
551
  layout: any;
552
552
  maxHeightReached: boolean;
@@ -588,8 +588,8 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
588
588
  type: string;
589
589
  id: string;
590
590
  configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
591
- rpcDriverName: string | undefined;
592
591
  heightPreConfig: number | undefined;
592
+ rpcDriverName: string | undefined;
593
593
  userBpPerPxLimit: number | undefined;
594
594
  userByteSizeLimit: number | undefined;
595
595
  } & import("mobx-state-tree")._NotCustomized>;
package/esm/util.d.ts CHANGED
@@ -25,7 +25,7 @@ export interface Source {
25
25
  * - pivotValue (number)
26
26
  * - inverted (boolean)
27
27
  */
28
- export declare function getScale({ domain, range, scaleType, pivotValue, inverted, }: ScaleOpts): import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number, never> | import("@mui/x-charts-vendor/d3-scale").ScaleQuantize<number, never>;
28
+ export declare function getScale({ domain, range, scaleType, pivotValue, inverted, }: ScaleOpts): import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleLogarithmic<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
29
29
  /**
30
30
  * gets the origin for drawing the graph. for linear this is 0, for log this is arbitrarily set to log(1)==0
31
31
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-wiggle",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "JBrowse 2 wiggle adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -65,5 +65,5 @@
65
65
  "distModule": "esm/index.js",
66
66
  "srcModule": "src/index.ts",
67
67
  "module": "esm/index.js",
68
- "gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
68
+ "gitHead": "86ed70124fc5a0b1161266659d1ca9f8796bf3fe"
69
69
  }