loom-browser 0.0.8 → 0.0.9

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.
@@ -16,7 +16,7 @@
16
16
  * browser.setLocus({ chr: 'chr17', start: 7670000, end: 7680000 })
17
17
  * browser.dispose()
18
18
  */
19
- import type { Locus, Track, DataSource, FeatureCacheEntry, SessionConfig, TrackSessionConfig, DataSourceConfig, TrackInteractionEvent, TrackContextMenuEvent, WindowFunction, WigFeature, AnnotationFeature, WigRenderConfig, AnnotationRenderConfig, RulerRenderConfig, SequenceRenderConfig, InteractionRenderConfig, TextFileFormat, SequenceProvider, Genome, ROI, ROISetConfig, ROIInteractionEvent } from './types';
19
+ import type { Locus, Track, DataSource, FeatureCacheEntry, SessionConfig, TrackSessionConfig, DataSourceConfig, TrackInteractionEvent, TrackContextMenuEvent, WindowFunction, WigFeature, BedFeature, WigRenderConfig, AnnotationRenderConfig, RulerRenderConfig, SequenceRenderConfig, InteractionRenderConfig, TextFileFormat, SequenceProvider, Genome, ROI, ROISetConfig, ROIInteractionEvent } from './types';
20
20
  import { ROISet } from './roi/roiSet';
21
21
  import type { CanvasProvider } from './canvasProvider';
22
22
  import type { WorkerProvider } from './workerProvider';
@@ -497,9 +497,7 @@ export declare class HeadlessGenomeBrowser {
497
497
  /** Add a BigWig-style signal track backed by in-memory features (no URL required). */
498
498
  addWigTrackWithFeatures(features: WigFeature[], options?: AddWigTrackWithFeaturesOptions): WigTrackCanvas;
499
499
  /** Add a BED/annotation track backed by in-memory features (no URL required). Features must include `chr`. */
500
- addBedTrackWithFeatures(features: (AnnotationFeature & {
501
- chr: string;
502
- })[], options?: AddBedTrackWithFeaturesOptions): AnnotationTrackCanvas;
500
+ addBedTrackWithFeatures(features: BedFeature[], options?: AddBedTrackWithFeaturesOptions): AnnotationTrackCanvas;
503
501
  /** Add a DNA/RNA sequence track. Data fetching is handled automatically via the genome's sequence provider. */
504
502
  addSequenceTrack(options?: AddSequenceTrackOptions): SequenceTrackCanvas;
505
503
  /** Apply a new render theme to the browser and all existing tracks. */
@@ -1,8 +1,5 @@
1
- import type { AnnotationFeature, AnnotationRenderConfig, TextFileFormat } from '../../types';
1
+ import type { BedFeature, AnnotationRenderConfig, TextFileFormat } from '../../types';
2
2
  import type { TrackClickEvent } from '../hooks/useTrackManager';
3
- type BedFeature = AnnotationFeature & {
4
- chr: string;
5
- };
6
3
  export interface BedTrackProps {
7
4
  /** URL to a BED/peak file. Mutually exclusive with `features`. */
8
5
  url?: string;
@@ -25,4 +22,3 @@ export interface BedTrackProps {
25
22
  onContextMenu?: (event: TrackClickEvent<BedFeature>) => void;
26
23
  }
27
24
  export declare function BedTrack({ url, features, config, height, background, format, indexURL, indexed, maxTrackHeight, name, metadata, colorBy, onClick, onContextMenu }: BedTrackProps): null;
28
- export {};
@@ -146,7 +146,7 @@ export interface Exon {
146
146
  export interface AnnotationFeature {
147
147
  start: number;
148
148
  end: number;
149
- strand?: '+' | '-';
149
+ strand?: Strand;
150
150
  /** Gene name (e.g., "TP53"). */
151
151
  name?: string;
152
152
  /** Transcript ID (e.g., "NM_000546.6"). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loom-browser",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "dist/loom.esm.js",
5
5
  "module": "dist/loom.esm.js",
6
6
  "types": "dist/types/index.d.ts",