gosling.js 1.0.3 → 1.0.5
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/dist/gosling.js
CHANGED
|
@@ -36,7 +36,7 @@ import React, { forwardRef, useState, useEffect, useMemo, useRef, useImperativeH
|
|
|
36
36
|
import { HiGlassComponent } from "higlass";
|
|
37
37
|
import { ResizeSensor } from "css-element-queries";
|
|
38
38
|
const name = "gosling.js";
|
|
39
|
-
const version = "1.0.
|
|
39
|
+
const version = "1.0.5";
|
|
40
40
|
const $ref = "#/definitions/Theme";
|
|
41
41
|
const $schema = "http://json-schema.org/draft-07/schema#";
|
|
42
42
|
const definitions = { "AxisStyle": { "additionalProperties": false, "properties": { "baselineColor": { "type": "string" }, "gridColor": { "type": "string" }, "gridStrokeDash": { "items": { "type": "number" }, "maxItems": 2, "minItems": 2, "type": "array" }, "gridStrokeType": { "enum": ["solid", "dashed"], "type": "string" }, "gridStrokeWidth": { "type": "number" }, "labelColor": { "type": "string" }, "labelExcludeChrPrefix": { "description": "If `true`, labels of genomics axes excludes the chromosome prefix (e.g., `chr1` -> `1`).", "type": "boolean" }, "labelFontFamily": { "type": "string" }, "labelFontSize": { "type": "number" }, "labelFontWeight": { "enum": ["bold", "normal", "light"], "type": "string" }, "labelMargin": { "description": "The margin around labels for calculating visual overlaps between labels. This is mainly used for determining the visibility of axis labels. `0` if no margin to use. Negative values (`-1`) for showing all labels even if they overlap.", "type": "number" }, "tickColor": { "type": "string" } }, "type": "object" }, "LegendStyle": { "additionalProperties": false, "properties": { "background": { "type": "string" }, "backgroundOpacity": { "type": "number" }, "backgroundStroke": { "type": "string" }, "labelColor": { "type": "string" }, "labelFontFamily": { "type": "string" }, "labelFontSize": { "type": "number" }, "labelFontWeight": { "enum": ["bold", "normal", "light"], "type": "string" }, "position": { "enum": ["top", "right"], "type": "string" }, "tickColor": { "type": "string" } }, "type": "object" }, "MarkStyle": { "additionalProperties": false, "properties": { "color": { "type": "string" }, "nominalColorRange": { "items": { "type": "string" }, "type": "array" }, "opacity": { "type": "number" }, "quantitativeSizeRange": { "items": { "type": "number" }, "maxItems": 2, "minItems": 2, "type": "array" }, "size": { "type": "number" }, "stroke": { "type": "string" }, "strokeWidth": { "type": "number" } }, "type": "object" }, "RootStyle": { "additionalProperties": false, "properties": { "background": { "type": "string" }, "mousePositionColor": { "type": "string" }, "showMousePosition": { "type": "boolean" }, "subtitleAlign": { "enum": ["left", "middle", "right"], "type": "string" }, "subtitleBackgroundColor": { "type": "string" }, "subtitleColor": { "type": "string" }, "subtitleFontFamily": { "type": "string" }, "subtitleFontSize": { "type": "number" }, "subtitleFontWeight": { "enum": ["bold", "normal", "light"], "type": "string" }, "titleAlign": { "enum": ["left", "middle", "right"], "type": "string" }, "titleBackgroundColor": { "type": "string" }, "titleColor": { "type": "string" }, "titleFontFamily": { "type": "string" }, "titleFontSize": { "type": "number" }, "titleFontWeight": { "enum": ["bold", "normal", "light"], "type": "string" } }, "type": "object" }, "Theme": { "anyOf": [{ "$ref": "#/definitions/ThemeType" }, { "$ref": "#/definitions/ThemeDeep" }] }, "ThemeDeep": { "additionalProperties": false, "properties": { "area": { "$ref": "#/definitions/MarkStyle" }, "axis": { "$ref": "#/definitions/AxisStyle" }, "bar": { "$ref": "#/definitions/MarkStyle" }, "base": { "$ref": "#/definitions/ThemeType" }, "brush": { "$ref": "#/definitions/MarkStyle" }, "legend": { "$ref": "#/definitions/LegendStyle" }, "line": { "$ref": "#/definitions/MarkStyle" }, "link": { "$ref": "#/definitions/MarkStyle" }, "markCommon": { "$ref": "#/definitions/MarkStyle" }, "point": { "$ref": "#/definitions/MarkStyle" }, "rect": { "$ref": "#/definitions/MarkStyle" }, "root": { "$ref": "#/definitions/RootStyle" }, "rule": { "$ref": "#/definitions/MarkStyle" }, "text": { "additionalProperties": false, "properties": { "color": { "type": "string" }, "nominalColorRange": { "items": { "type": "string" }, "type": "array" }, "opacity": { "type": "number" }, "quantitativeSizeRange": { "items": { "type": "number" }, "maxItems": 2, "minItems": 2, "type": "array" }, "size": { "type": "number" }, "stroke": { "type": "string" }, "strokeWidth": { "type": "number" }, "textAnchor": { "enum": ["start", "middle", "end"], "type": "string" }, "textFontWeight": { "enum": ["bold", "normal"], "type": "string" } }, "type": "object" }, "track": { "$ref": "#/definitions/TrackStyle" }, "triangle": { "$ref": "#/definitions/MarkStyle" } }, "required": ["base"], "type": "object" }, "ThemeType": { "enum": ["light", "dark", "warm", "ggplot", "igv", "ensembl", "jbrowse", "ucsc", "washu", "excel", "google"], "type": "string" }, "TrackStyle": { "additionalProperties": false, "properties": { "alternatingBackground": { "type": "string" }, "background": { "type": "string" }, "outline": { "type": "string" }, "outlineWidth": { "type": "number" }, "titleAlign": { "enum": ["left", "middle", "right"], "type": "string" }, "titleBackground": { "type": "string" }, "titleColor": { "type": "string" }, "titleFontSize": { "type": "number" } }, "type": "object" } };
|
|
@@ -10181,7 +10181,7 @@ function embed(element, spec, opts = {}) {
|
|
|
10181
10181
|
async (hsSpec, size, _, trackInfos, idTable) => {
|
|
10182
10182
|
const hg = await launchHiglass(element, hsSpec, size, options);
|
|
10183
10183
|
const api = createApi(hg, hsSpec, trackInfos, theme, idTable);
|
|
10184
|
-
resolve(api);
|
|
10184
|
+
resolve({ ...api, _hgApi: hg });
|
|
10185
10185
|
},
|
|
10186
10186
|
[...GoslingTemplates],
|
|
10187
10187
|
theme,
|