@weng-lab/genomebrowser 1.1.1 → 1.2.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.
@@ -0,0 +1,11 @@
1
+ export declare function useMouseToIndex(svgRef: React.RefObject<SVGSVGElement | null> | null, dataLength: number, marginWidth: number, sideWidth: number): {
2
+ mouseState: {
3
+ pos: {
4
+ x: number;
5
+ y: number;
6
+ } | null;
7
+ index: number | null;
8
+ };
9
+ updateMouseState: (e: React.MouseEvent) => void;
10
+ clearMouseState: () => void;
11
+ };
package/dist/lib.d.ts CHANGED
@@ -5,6 +5,7 @@ import { BigWigConfig, FullBigWigProps, DenseBigWigProps, ValuedPoint, BigWigDat
5
5
  import { ImportanceConfig, ImportanceProps, ImportanceTrackData } from './components/tracks/importance/types';
6
6
  import { MotifConfig, SquishMotifProps, DenseMotifProps, MotifRect } from './components/tracks/motif/types';
7
7
  import { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, TranscriptList, Transcript } from './components/tracks/transcript/types';
8
+ import { MethylCConfig, MethylCProps, MethylData } from './components/tracks/methylC/types';
8
9
  import { createBrowserStore, InitialBrowserState, BrowserStoreInstance } from './store/browserStore';
9
10
  import { createTrackStore, Track, TrackStoreInstance } from './store/trackStore';
10
11
  import { Highlight } from './components/highlight/types';
@@ -20,6 +21,7 @@ export type { BigWigConfig, FullBigWigProps, DenseBigWigProps, ValuedPoint, BigW
20
21
  export type { ImportanceConfig, ImportanceProps, ImportanceTrackData };
21
22
  export type { MotifConfig, SquishMotifProps, DenseMotifProps, MotifRect };
22
23
  export type { TranscriptConfig, SquishTranscriptProps, PackTranscriptProps, TranscriptList, Transcript };
24
+ export type { MethylCConfig, MethylCProps, MethylData };
23
25
  export { createBrowserStore, type InitialBrowserState, type BrowserStoreInstance };
24
26
  export { createTrackStore, type Track, type TrackStoreInstance };
25
27
  export type { Highlight };
@@ -5,13 +5,14 @@ import { TranscriptConfig } from '../components/tracks/transcript/types';
5
5
  import { MotifConfig } from '../components/tracks/motif/types';
6
6
  import { ImportanceConfig } from '../components/tracks/importance/types';
7
7
  import { LDTrackConfig } from '../components/tracks/ldtrack/types';
8
+ import { MethylCConfig } from '../components/tracks/methylC/types';
8
9
  type WrapperDimensions = {
9
10
  trackMargin: number;
10
11
  titleSize: number;
11
12
  totalVerticalMargin: number;
12
13
  wrapperHeight: number;
13
14
  };
14
- export type Track = BigWigConfig | BigBedConfig | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig;
15
+ export type Track = BigWigConfig | BigBedConfig | BulkBedConfig | TranscriptConfig | MotifConfig | ImportanceConfig | LDTrackConfig | MethylCConfig;
15
16
  export interface TrackStore {
16
17
  tracks: Track[];
17
18
  ids: string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weng-lab/genomebrowser",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.2.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "files": [
@@ -12,26 +12,24 @@
12
12
  "dependencies": {
13
13
  "@apollo/client": "^3.11.10",
14
14
  "graphql": "^16.9.0",
15
- "logo-test": "^0.0.4",
15
+ "logo-test": "^0.0.5",
16
16
  "react-colorful": "^5.6.1",
17
17
  "react-draggable": "^4.4.6",
18
18
  "zustand": "^5.0.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "react": "^19.1.0",
22
- "react-dom": "^19.1.0"
21
+ "react": "^18.0.0 || ^19.0.0",
22
+ "react-dom": "^18.0.0 || ^19.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@chromatic-com/storybook": "^4.0.0",
26
26
  "@eslint/js": "^9.22.0",
27
27
  "@storybook/addon-a11y": "9.0.4",
28
- "@storybook/addon-docs": "9.0.4",
29
- "@storybook/addon-onboarding": "9.0.4",
30
28
  "@storybook/addon-vitest": "9.0.4",
31
29
  "@storybook/react-vite": "9.0.4",
32
30
  "@types/node": "^24.0.0",
33
- "@types/react": "^19.0.10",
34
- "@types/react-dom": "^19.0.4",
31
+ "@types/react": "^18.0.0 || ^19.0.0",
32
+ "@types/react-dom": "^18.0.0 || ^19.0.0",
35
33
  "@vitejs/plugin-react": "^4.3.4",
36
34
  "@vitest/browser": "^3.2.0",
37
35
  "@vitest/coverage-v8": "^3.2.0",