@jbrowse/wiggle-core 5.0.0-beta.13 → 5.0.0-beta.14
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.
- package/README.md +8 -7
- package/esm/ResolutionStepper.js +1 -1
- package/esm/ScoreAxisWidget/ReferenceLines.d.ts +1 -1
- package/esm/ScoreAxisWidget/ReferenceLines.js +1 -1
- package/esm/ScoreAxisWidget/ResetAxisButton.d.ts +3 -2
- package/esm/ScoreAxisWidget/ResetAxisButton.js +4 -2
- package/esm/ScoreAxisWidget/ScoreAxisWidget.js +1 -1
- package/esm/ScoreAxisWidget/Section.d.ts +3 -2
- package/esm/ScoreAxisWidget/Section.js +4 -2
- package/esm/ScorePlotChrome.d.ts +8 -8
- package/esm/ScorePlotChrome.js +16 -8
- package/esm/ScoreScaleMixin.d.ts +2 -9
- package/esm/ScoreScaleMixin.js +2 -16
- package/esm/WiggleScoreConfigMixin.d.ts +5 -22
- package/esm/WiggleScoreConfigMixin.js +5 -25
- package/esm/{ScoreFieldConfigMixin.d.ts → YFieldConfigMixin.d.ts} +11 -15
- package/esm/YFieldConfigMixin.js +25 -0
- package/esm/autoscale.d.ts +10 -9
- package/esm/autoscale.js +21 -25
- package/esm/chrome.d.ts +1 -2
- package/esm/chrome.js +1 -1
- package/esm/dataTypes.d.ts +2 -0
- package/esm/index.d.ts +5 -6
- package/esm/index.js +4 -5
- package/esm/pointSizeMenu.d.ts +12 -24
- package/esm/pointSizeMenu.js +9 -20
- package/esm/renderingBackendTypes.d.ts +1 -0
- package/esm/renderingBackendTypes.js +1 -1
- package/esm/scale.d.ts +5 -4
- package/esm/scale.js +5 -9
- package/esm/valueScaleConfigSchema.d.ts +76 -1
- package/esm/valueScaleConfigSchema.js +49 -11
- package/esm/yFieldConfigSchemaFields.d.ts +10 -0
- package/esm/yFieldConfigSchemaFields.js +8 -0
- package/package.json +8 -8
- package/esm/ScoreFieldConfigMixin.js +0 -25
- package/esm/rowLabelOffset.d.ts +0 -8
- package/esm/rowLabelOffset.js +0 -16
- package/esm/scoreFieldConfigSchemaFields.d.ts +0 -10
- package/esm/scoreFieldConfigSchemaFields.js +0 -8
package/esm/rowLabelOffset.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { axisDrawn, axisGutterLeft, axisGutterWidth, } from '@jbrowse/display-ui/axisPlacement';
|
|
2
|
-
const AXIS_TO_LABEL_GAP_PX = 4;
|
|
3
|
-
/**
|
|
4
|
-
* Where row labels start: `offset`, past the dendrogram, or past the axis each
|
|
5
|
-
* row repeats where one draws, since a label grows rightward over the plot.
|
|
6
|
-
* `exportContentLeft` is the export shell's, which moves an axis nothing
|
|
7
|
-
* pushes right into the margin, so the labels follow it there.
|
|
8
|
-
*/
|
|
9
|
-
export function rowLabelOffset(axes, offset, exportContentLeft) {
|
|
10
|
-
const axis = axes.find(axisDrawn);
|
|
11
|
-
return axis
|
|
12
|
-
? Math.max(offset, axisGutterLeft(axis, 0, 0, exportContentLeft) +
|
|
13
|
-
axisGutterWidth(axis) +
|
|
14
|
-
AXIS_TO_LABEL_GAP_PX)
|
|
15
|
-
: offset;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ConfigModelForFields } from '@jbrowse/core/configuration';
|
|
2
|
-
export declare const DEFAULT_SCORE_FIELD = "score";
|
|
3
|
-
export declare const scoreFieldConfigSchemaFields: {
|
|
4
|
-
readonly scoreField: {
|
|
5
|
-
readonly type: 'string';
|
|
6
|
-
readonly defaultValue: "score";
|
|
7
|
-
readonly description: "Feature field plotted on the score axis, read natively off each feature. The default `score` is the field every adapter serves — including the value a BED adapter's `scoreColumn` rewrote it to — so an explicit name here reaches a raw column the adapter left alone (a BED extra column, a GFF attribute) and takes precedence over that adapter-tier rewrite. The Manhattan plot skips a feature with no finite value in the field; the wiggle renderings plot it at 0";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export type ScoreFieldConfigModel = ConfigModelForFields<typeof scoreFieldConfigSchemaFields>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_SCORE_FIELD = 'score';
|
|
2
|
-
export const scoreFieldConfigSchemaFields = {
|
|
3
|
-
scoreField: {
|
|
4
|
-
type: 'string',
|
|
5
|
-
defaultValue: DEFAULT_SCORE_FIELD,
|
|
6
|
-
description: "Feature field plotted on the score axis, read natively off each feature. The default `score` is the field every adapter serves — including the value a BED adapter's `scoreColumn` rewrote it to — so an explicit name here reaches a raw column the adapter left alone (a BED extra column, a GFF attribute) and takes precedence over that adapter-tier rewrite. The Manhattan plot skips a feature with no finite value in the field; the wiggle renderings plot it at 0",
|
|
7
|
-
},
|
|
8
|
-
};
|