@jbrowse/plugin-alignments 1.7.8 → 1.7.11

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.
@@ -152,7 +152,7 @@ declare const stateModelFactory: (pluginManager: PluginManager, configSchema: An
152
152
  estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
153
153
  estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
154
154
  } & {
155
- readonly blockType: "staticBlocks" | "dynamicBlocks";
155
+ readonly blockType: "dynamicBlocks" | "staticBlocks";
156
156
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
157
157
  } & {
158
158
  readonly renderDelay: number;
@@ -305,8 +305,8 @@ declare const stateModelFactory: (pluginManager: PluginManager, configSchema: An
305
305
  }): void;
306
306
  setColorBy(colorBy?: {
307
307
  type: string;
308
- tag?: string | undefined;
309
- } | undefined): void;
308
+ tag?: string;
309
+ }): void;
310
310
  updateModificationColorMap(uniqueModifications: string[]): void;
311
311
  } & {
312
312
  readonly rendererConfig: any;
@@ -65,24 +65,56 @@ export default class PileupRenderer extends BoxRendererType {
65
65
  getOrientation(feature: Feature, config: AnyConfigurationModel): string;
66
66
  colorByInsertSize(feature: Feature, _config: AnyConfigurationModel): string;
67
67
  colorByStranded(feature: Feature, _config: AnyConfigurationModel): "color_rev_strand" | "color_fwd_strand" | "color_rev_missing_mate" | "color_fwd_missing_mate" | "color_rev_strand_not_proper" | "color_fwd_strand_not_proper" | "color_fwd_diff_chr" | "color_rev_diff_chr";
68
- colorByPerBaseLettering(ctx: CanvasRenderingContext2D, feat: LayoutFeature, _config: AnyConfigurationModel, region: Region, bpPerPx: number, props: {
68
+ colorByPerBaseLettering({ ctx, feat, region, bpPerPx, colorForBase, contrastForBase, charWidth, charHeight, canvasWidth, }: {
69
+ ctx: CanvasRenderingContext2D;
70
+ feat: LayoutFeature;
71
+ region: Region;
72
+ bpPerPx: number;
69
73
  colorForBase: Record<string, string>;
70
74
  contrastForBase: Record<string, string>;
71
75
  charWidth: number;
72
76
  charHeight: number;
77
+ canvasWidth: number;
78
+ }): void;
79
+ colorByPerBaseQuality({ ctx, feat, region, bpPerPx, canvasWidth, }: {
80
+ ctx: CanvasRenderingContext2D;
81
+ feat: LayoutFeature;
82
+ region: Region;
83
+ bpPerPx: number;
84
+ canvasWidth: number;
85
+ }): void;
86
+ colorByModifications({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, }: {
87
+ ctx: CanvasRenderingContext2D;
88
+ feat: LayoutFeature;
89
+ region: Region;
90
+ bpPerPx: number;
91
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
92
+ canvasWidth: number;
93
+ }): void;
94
+ colorByMethylation({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, }: {
95
+ ctx: CanvasRenderingContext2D;
96
+ feat: LayoutFeature;
97
+ region: Region;
98
+ bpPerPx: number;
99
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
100
+ canvasWidth: number;
73
101
  }): void;
74
- colorByPerBaseQuality(ctx: CanvasRenderingContext2D, feat: LayoutFeature, _config: AnyConfigurationModel, region: Region, bpPerPx: number): void;
75
- colorByModifications(ctx: CanvasRenderingContext2D, layoutFeature: LayoutFeature, _config: AnyConfigurationModel, region: Region, bpPerPx: number, props: RenderArgsDeserializedWithFeaturesAndLayout): void;
76
- colorByMethylation(ctx: CanvasRenderingContext2D, layoutFeature: LayoutFeature, _config: AnyConfigurationModel, region: Region, bpPerPx: number, props: RenderArgsDeserializedWithFeaturesAndLayout): void;
77
102
  drawRect(ctx: CanvasRenderingContext2D, feat: LayoutFeature, props: RenderArgsDeserialized): void;
78
- drawAlignmentRect(ctx: CanvasRenderingContext2D, feat: LayoutFeature, props: RenderArgsDeserializedWithFeaturesAndLayout & {
103
+ drawAlignmentRect({ ctx, feat, renderArgs, colorForBase, contrastForBase, charWidth, charHeight, defaultColor, canvasWidth, }: {
104
+ ctx: CanvasRenderingContext2D;
105
+ feat: LayoutFeature;
106
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
79
107
  colorForBase: Record<string, string>;
80
108
  contrastForBase: Record<string, string>;
81
109
  charWidth: number;
82
110
  charHeight: number;
83
111
  defaultColor: boolean;
112
+ canvasWidth: number;
84
113
  }): void;
85
- drawMismatches(ctx: CanvasRenderingContext2D, feat: LayoutFeature, props: RenderArgsDeserializedWithFeaturesAndLayout, opts: {
114
+ drawMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInsertionIndicatorScale, mismatchAlpha, charWidth, charHeight, colorForBase, contrastForBase, canvasWidth, drawSNPs, drawIndels, }: {
115
+ ctx: CanvasRenderingContext2D;
116
+ feat: LayoutFeature;
117
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
86
118
  colorForBase: {
87
119
  [key: string]: string;
88
120
  };
@@ -96,18 +128,42 @@ export default class PileupRenderer extends BoxRendererType {
96
128
  largeInsertionIndicatorScale: number;
97
129
  charWidth: number;
98
130
  charHeight: number;
131
+ canvasWidth: number;
132
+ }): void;
133
+ drawSoftClipping({ ctx, feat, renderArgs, config, theme, canvasWidth, }: {
134
+ ctx: CanvasRenderingContext2D;
135
+ feat: LayoutFeature;
136
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
137
+ config: AnyConfigurationModel;
138
+ theme: Theme;
139
+ canvasWidth: number;
140
+ }): void;
141
+ makeImageData({ ctx, layoutRecords, canvasWidth, renderArgs, }: {
142
+ ctx: CanvasRenderingContext2D;
143
+ canvasWidth: number;
144
+ layoutRecords: (LayoutFeature | null)[];
145
+ renderArgs: RenderArgsDeserializedWithFeaturesAndLayout;
99
146
  }): void;
100
- drawSoftClipping(ctx: CanvasRenderingContext2D, feat: LayoutFeature, props: RenderArgsDeserializedWithFeaturesAndLayout, config: AnyConfigurationModel, theme: Theme): void;
101
- makeImageData(ctx: CanvasRenderingContext2D, layoutRecords: (LayoutFeature | null)[], props: RenderArgsDeserializedWithFeaturesAndLayout): void;
102
147
  layoutFeats(props: RenderArgsDeserializedWithFeaturesAndLayout): (LayoutRecord | null)[];
103
148
  fetchSequence(renderProps: RenderArgsDeserialized): Promise<any>;
104
149
  render(renderProps: RenderArgsDeserialized): Promise<{
150
+ features: Map<any, any>;
151
+ layout: import("@jbrowse/core/util/layouts").GranularRectLayout<unknown>;
152
+ height: number;
153
+ width: number;
154
+ maxHeightReached: boolean;
155
+ canvasRecordedData: any;
156
+ reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
157
+ imageData?: undefined;
158
+ html?: string | undefined;
159
+ } | {
105
160
  features: Map<any, any>;
106
161
  layout: import("@jbrowse/core/util/layouts").GranularRectLayout<unknown>;
107
162
  height: number;
108
163
  width: number;
109
164
  maxHeightReached: boolean;
110
165
  reactElement: JSX.Element;
166
+ canvasRecordedData?: undefined;
111
167
  imageData?: undefined;
112
168
  html?: string | undefined;
113
169
  } | {
@@ -116,7 +172,8 @@ export default class PileupRenderer extends BoxRendererType {
116
172
  height: number;
117
173
  width: number;
118
174
  maxHeightReached: boolean;
119
- imageData: import("@jbrowse/core/util/offscreenCanvas/types").AbstractImageBitmap;
175
+ imageData: any;
176
+ canvasRecordedData?: undefined;
120
177
  reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
121
178
  html?: string | undefined;
122
179
  }>;