higlass 1.12.0 → 1.12.2
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.
|
@@ -623,7 +623,7 @@ class GenomePositionSearchBox extends React.Component {
|
|
|
623
623
|
let range2 = rangePair[1];
|
|
624
624
|
|
|
625
625
|
if (!range1) {
|
|
626
|
-
this.setPositionText(
|
|
626
|
+
this.setPositionText();
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
629
|
|
|
@@ -750,11 +750,15 @@ class GenomePositionSearchBox extends React.Component {
|
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
|
|
754
|
-
this.
|
|
753
|
+
handleAssemblySelectEvt(evt) {
|
|
754
|
+
this.handleAssemblySelect(evt.target.value);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
handleAssemblySelect(assembly) {
|
|
758
|
+
this.setSelectedAssembly(assembly);
|
|
755
759
|
|
|
756
760
|
this.setState({
|
|
757
|
-
selectedAssembly:
|
|
761
|
+
selectedAssembly: assembly,
|
|
758
762
|
});
|
|
759
763
|
}
|
|
760
764
|
|
|
@@ -790,12 +794,8 @@ class GenomePositionSearchBox extends React.Component {
|
|
|
790
794
|
}}
|
|
791
795
|
className={styles['genome-position-search-bar-button']}
|
|
792
796
|
id={this.uid}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
this.state.selectedAssembly
|
|
796
|
-
? this.state.selectedAssembly
|
|
797
|
-
: '(none)'
|
|
798
|
-
}
|
|
797
|
+
onChange={this.handleAssemblySelectEvt.bind(this)}
|
|
798
|
+
value={this.state.selectedAssembly || undefined}
|
|
799
799
|
>
|
|
800
800
|
{assemblyMenuItems}
|
|
801
801
|
</select>
|
|
@@ -835,7 +835,11 @@ class GenomePositionSearchBox extends React.Component {
|
|
|
835
835
|
</div>
|
|
836
836
|
)}
|
|
837
837
|
renderMenu={this.handleRenderMenu.bind(this)}
|
|
838
|
-
value={
|
|
838
|
+
value={
|
|
839
|
+
this.state.selectedAssembly
|
|
840
|
+
? this.positionText
|
|
841
|
+
: 'No valid assembly selected'
|
|
842
|
+
}
|
|
839
843
|
wrapperStyle={{ width: '100%' }}
|
|
840
844
|
/>
|
|
841
845
|
|
|
@@ -5130,7 +5130,13 @@ class HiGlassComponent extends React.Component {
|
|
|
5130
5130
|
)
|
|
5131
5131
|
}
|
|
5132
5132
|
trackSourceServers={this.state.viewConfig.trackSourceServers}
|
|
5133
|
-
twoD={
|
|
5133
|
+
twoD={
|
|
5134
|
+
!!(
|
|
5135
|
+
view.tracks.left.length ||
|
|
5136
|
+
view.tracks.right.length ||
|
|
5137
|
+
view.tracks.center.length
|
|
5138
|
+
)
|
|
5139
|
+
}
|
|
5134
5140
|
/>
|
|
5135
5141
|
);
|
|
5136
5142
|
};
|
package/app/scripts/icons.jsx
CHANGED
|
@@ -382,11 +382,12 @@ export const svgArrowheadDomainsIcon = parser.parseFromString(
|
|
|
382
382
|
'text/xml',
|
|
383
383
|
).documentElement;
|
|
384
384
|
|
|
385
|
-
export function SearchIcon({ theStyle }) {
|
|
385
|
+
export function SearchIcon({ theStyle, onClick }) {
|
|
386
386
|
return (
|
|
387
387
|
<svg
|
|
388
388
|
className={classes[theStyle]}
|
|
389
389
|
viewBox="0 0 12 13"
|
|
390
|
+
onClick={onClick}
|
|
390
391
|
xmlns="http://www.w3.org/2000/svg"
|
|
391
392
|
>
|
|
392
393
|
<g fill="none" stroke="#6c6c6c" strokeWidth="2">
|
package/dist/hglib.js
CHANGED
|
@@ -14326,7 +14326,7 @@ function _toPrimitive2(input, hint) {
|
|
|
14326
14326
|
return usedTrack;
|
|
14327
14327
|
};
|
|
14328
14328
|
const map$5 = (f2) => (x) => Array.prototype.map.call(x, f2);
|
|
14329
|
-
const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.12.
|
|
14329
|
+
const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.12.2").map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")];
|
|
14330
14330
|
let isInit = false;
|
|
14331
14331
|
const listen = () => {
|
|
14332
14332
|
if (isInit)
|
|
@@ -49457,8 +49457,8 @@ function _toPrimitive2(input, hint) {
|
|
|
49457
49457
|
</svg>
|
|
49458
49458
|
`;
|
|
49459
49459
|
const svgArrowheadDomainsIcon = parser.parseFromString(arrowHeadDomainsStr, "text/xml").documentElement;
|
|
49460
|
-
function SearchIcon({ theStyle }) {
|
|
49461
|
-
return /* @__PURE__ */ React__default.default.createElement("svg", { className: stylesMTHeader[theStyle], viewBox: "0 0 12 13", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.default.createElement("g", { fill: "none", stroke: "#6c6c6c", strokeWidth: "2" }, /* @__PURE__ */ React__default.default.createElement("path", { d: "M11.29 11.71l-4-4" }), /* @__PURE__ */ React__default.default.createElement("circle", { cx: "5", cy: "5", r: "4" })));
|
|
49460
|
+
function SearchIcon({ theStyle, onClick }) {
|
|
49461
|
+
return /* @__PURE__ */ React__default.default.createElement("svg", { className: stylesMTHeader[theStyle], viewBox: "0 0 12 13", onClick, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React__default.default.createElement("g", { fill: "none", stroke: "#6c6c6c", strokeWidth: "2" }, /* @__PURE__ */ React__default.default.createElement("path", { d: "M11.29 11.71l-4-4" }), /* @__PURE__ */ React__default.default.createElement("circle", { cx: "5", cy: "5", r: "4" })));
|
|
49462
49462
|
}
|
|
49463
49463
|
const osm = { type: "osm-tiles", datatype: ["map-tiles"], local: true, orientation: "2d", hidden: true, name: "OSM Tiles", thumbnail: svgGeoMapIcon, availableOptions: ["minPos", "maxPos", "maxZoom", "labelPosition", "labelLeftMargin", "labelRightMargin", "labelTopMargin", "labelBottomMargin", "name"], defaultOptions: { minPos: -180, maxPos: 180, maxZoom: 19, labelPosition: "bottomRight", labelLeftMargin: 0, labelRightMargin: 0, labelTopMargin: 0, labelBottomMargin: 0 } };
|
|
49464
49464
|
const mapbox = { type: "mapbox-tiles", datatype: ["map-tiles"], local: true, orientation: "2d", hidden: true, name: "Mapbox Tiles", thumbnail: svgGeoMapIcon, availableOptions: ["style", "labelPosition", "labelLeftMargin", "labelRightMargin", "labelTopMargin", "labelBottomMargin", "name"], defaultOptions: { style: "mapbox.streets", labelPosition: "bottomRight", labelLeftMargin: 0, labelRightMargin: 0, labelTopMargin: 0, labelBottomMargin: 0 } };
|
|
@@ -68600,7 +68600,7 @@ function _toPrimitive2(input, hint) {
|
|
|
68600
68600
|
}
|
|
68601
68601
|
return new DataFetcher(dataConfig, pubSub);
|
|
68602
68602
|
};
|
|
68603
|
-
const version = "1.12.
|
|
68603
|
+
const version = "1.12.2";
|
|
68604
68604
|
const libraries = { d3Array, d3Axis, d3Brush, d3Color, d3Drag, d3Dsv, d3Format, d3Geo, d3Queue, d3Request, d3Scale, d3Selection, d3Transition, d3Zoom, PIXI: GLOBALS.PIXI, mix, slugid };
|
|
68605
68605
|
const tracks$1 = { Annotations1dTrack, Annotations2dTrack, ArrowheadDomainsTrack, BarTrack, BedLikeTrack, CNVIntervalTrack, Chromosome2DAnnotations, Chromosome2DLabels, ChromosomeGrid, CombinedTrack, CrossRule, DivergentBarTrack, HeatmapTiledPixiTrack, Horizontal1dHeatmapTrack, Horizontal2DDomainsTrack, HorizontalChromosomeLabels, HorizontalGeneAnnotationsTrack, HorizontalHeatmapTrack, HorizontalLine1DPixiTrack, HorizontalMultivecTrack, HorizontalPoint1DPixiTrack, HorizontalRule, HorizontalTiled1DPixiTrack, HorizontalTiledPlot, HorizontalTrack, Id2DTiledPixiTrack, IdHorizontal1DTiledPixiTrack, IdVertical1DTiledPixiTrack, LeftAxisTrack, MapboxTilesTrack, MoveableTrack, OSMTileIdsTrack, OSMTilesTrack, OverlayTrack, PixiTrack, RasterTilesTrack, SVGTrack, SquareMarkersTrack, Tiled1DPixiTrack, TiledPixiTrack, TopAxisTrack, Track, ValueIntervalTrack, VerticalRule, VerticalTiled1DPixiTrack, VerticalTrack, ViewportTracker2D: ViewportTracker2D$1, ViewportTracker2DPixi: ViewportTracker2D, ViewportTrackerHorizontal, ViewportTrackerVertical };
|
|
68606
68606
|
const factories = { ContextMenuItem, DataFetcher, LruCache };
|
|
@@ -73932,7 +73932,7 @@ function _toPrimitive2(input, hint) {
|
|
|
73932
73932
|
const range1 = rangePair[0];
|
|
73933
73933
|
let range2 = rangePair[1];
|
|
73934
73934
|
if (!range1) {
|
|
73935
|
-
this.setPositionText(
|
|
73935
|
+
this.setPositionText();
|
|
73936
73936
|
return;
|
|
73937
73937
|
}
|
|
73938
73938
|
if (range1 && (Number.isNaN(+range1[0]) || Number.isNaN(+range1[1])) || range2 && (Number.isNaN(+range2[0]) || Number.isNaN(+range2[1]))) {
|
|
@@ -73988,9 +73988,11 @@ function _toPrimitive2(input, hint) {
|
|
|
73988
73988
|
this.setState({ menuOpened: isOpen });
|
|
73989
73989
|
} }, { key: "handleRenderMenu", value: function handleRenderMenu(items2) {
|
|
73990
73990
|
return /* @__PURE__ */ React__default.default.createElement(PopupMenu, null, /* @__PURE__ */ React__default.default.createElement("div", { className: styles$2["genome-position-search-bar-suggestions"], style: { left: this.menuPosition.left, top: this.menuPosition.top } }, items2));
|
|
73991
|
-
} }, { key: "
|
|
73992
|
-
this.
|
|
73993
|
-
|
|
73991
|
+
} }, { key: "handleAssemblySelectEvt", value: function handleAssemblySelectEvt(evt) {
|
|
73992
|
+
this.handleAssemblySelect(evt.target.value);
|
|
73993
|
+
} }, { key: "handleAssemblySelect", value: function handleAssemblySelect(assembly) {
|
|
73994
|
+
this.setSelectedAssembly(assembly);
|
|
73995
|
+
this.setState({ selectedAssembly: assembly });
|
|
73994
73996
|
} }, { key: "focusHandler", value: function focusHandler(isFocused) {
|
|
73995
73997
|
this.setState({ isFocused });
|
|
73996
73998
|
} }, { key: "render", value: function render2() {
|
|
@@ -73999,9 +74001,9 @@ function _toPrimitive2(input, hint) {
|
|
|
73999
74001
|
this.gpsbForm = c2;
|
|
74000
74002
|
}, className: clsx({ [styles$2["genome-position-search-focus"]]: this.state.isFocused, [styles$2["genome-position-search"]]: !this.state.isFocused, [styles$2["genome-position-search-dark"]]: this.props.theme === THEME_DARK }) }, !this.props.hideAvailableAssemblies && /* @__PURE__ */ React__default.default.createElement("select", { ref: (c2) => {
|
|
74001
74003
|
this.assemblyPickButton = c2;
|
|
74002
|
-
}, className: styles$2["genome-position-search-bar-button"], id: this.uid,
|
|
74004
|
+
}, className: styles$2["genome-position-search-bar-button"], id: this.uid, onChange: this.handleAssemblySelectEvt.bind(this), value: this.state.selectedAssembly || void 0 }, assemblyMenuItems), /* @__PURE__ */ React__default.default.createElement(Autocomplete, { ref: (c2) => {
|
|
74003
74005
|
this.autocompleteMenu = c2;
|
|
74004
|
-
}, getItemValue: (item) => item.geneName, inputProps: { className: styles$2["genome-position-search-bar"], title: "Current location: enter a symbol or location to change the position of the current view" }, items: this.state.genes, menuStyle: { position: "absolute", left: this.menuPosition.left, top: this.menuPosition.top, border: "1px solid black" }, onChange: this.onAutocompleteChange.bind(this), onFocus: this.focusHandler.bind(this), onMenuVisibilityChange: this.handleMenuVisibilityChange.bind(this), onSelect: (value2, objct) => this.geneSelected(value2, objct), onSubmit: this.searchFieldSubmit.bind(this), renderItem: (item, isHighlighted) => /* @__PURE__ */ React__default.default.createElement("div", { key: item.refseqid, id: item.refseqid, style: isHighlighted ? this.styles.highlightedItem : this.styles.item }, item.geneName), renderMenu: this.handleRenderMenu.bind(this), value: this.positionText, wrapperStyle: { width: "100%" } }), /* @__PURE__ */ React__default.default.createElement(SearchIcon, { onClick: this.buttonClick.bind(this), theStyle: "multitrack-header-icon" }));
|
|
74006
|
+
}, getItemValue: (item) => item.geneName, inputProps: { className: styles$2["genome-position-search-bar"], title: "Current location: enter a symbol or location to change the position of the current view" }, items: this.state.genes, menuStyle: { position: "absolute", left: this.menuPosition.left, top: this.menuPosition.top, border: "1px solid black" }, onChange: this.onAutocompleteChange.bind(this), onFocus: this.focusHandler.bind(this), onMenuVisibilityChange: this.handleMenuVisibilityChange.bind(this), onSelect: (value2, objct) => this.geneSelected(value2, objct), onSubmit: this.searchFieldSubmit.bind(this), renderItem: (item, isHighlighted) => /* @__PURE__ */ React__default.default.createElement("div", { key: item.refseqid, id: item.refseqid, style: isHighlighted ? this.styles.highlightedItem : this.styles.item }, item.geneName), renderMenu: this.handleRenderMenu.bind(this), value: this.state.selectedAssembly ? this.positionText : "No valid assembly selected", wrapperStyle: { width: "100%" } }), /* @__PURE__ */ React__default.default.createElement(SearchIcon, { onClick: this.buttonClick.bind(this), theStyle: "multitrack-header-icon" }));
|
|
74005
74007
|
} }]);
|
|
74006
74008
|
return GenomePositionSearchBox2;
|
|
74007
74009
|
}(React__default.default.Component);
|
|
@@ -82911,7 +82913,7 @@ ${svgString}`;
|
|
|
82911
82913
|
return null;
|
|
82912
82914
|
return /* @__PURE__ */ React__default.default.createElement(GenomePositionSearchBox$1, { key: `gpsb${view.uid}`, ref: (c2) => {
|
|
82913
82915
|
this.genomePositionSearchBoxes[view.uid] = c2;
|
|
82914
|
-
}, autocompleteId: view.genomePositionSearchBox.autocompleteId, autocompleteServer: view.genomePositionSearchBox.autocompleteServer, chromInfoId: view.genomePositionSearchBox.chromInfoId, chromInfoPath: view.genomePositionSearchBox.chromInfoPath, chromInfoServer: view.genomePositionSearchBox.chromInfoServer, hideAvailableAssemblies: view.genomePositionSearchBox.hideAvailableAssemblies, isFocused, onFocus, onGeneSearch: this.geneSearchHandler.bind(this), onSelectedAssemblyChanged: (x, y, server) => this.handleSelectedAssemblyChanged(view.uid, x, y, server), registerViewportChangedListener: (listener) => this.addScalesChangedListener(view.uid, view.uid, listener), removeViewportChangedListener: () => this.removeScalesChangedListener(view.uid, view.uid), setCenters: (centerX, centerY, k, animateTime) => this.setCenters[view.uid](centerX, centerY, k, false, animateTime), trackSourceServers: this.state.viewConfig.trackSourceServers, twoD:
|
|
82916
|
+
}, autocompleteId: view.genomePositionSearchBox.autocompleteId, autocompleteServer: view.genomePositionSearchBox.autocompleteServer, chromInfoId: view.genomePositionSearchBox.chromInfoId, chromInfoPath: view.genomePositionSearchBox.chromInfoPath, chromInfoServer: view.genomePositionSearchBox.chromInfoServer, hideAvailableAssemblies: view.genomePositionSearchBox.hideAvailableAssemblies, isFocused, onFocus, onGeneSearch: this.geneSearchHandler.bind(this), onSelectedAssemblyChanged: (x, y, server) => this.handleSelectedAssemblyChanged(view.uid, x, y, server), registerViewportChangedListener: (listener) => this.addScalesChangedListener(view.uid, view.uid, listener), removeViewportChangedListener: () => this.removeScalesChangedListener(view.uid, view.uid), setCenters: (centerX, centerY, k, animateTime) => this.setCenters[view.uid](centerX, centerY, k, false, animateTime), trackSourceServers: this.state.viewConfig.trackSourceServers, twoD: !!(view.tracks.left.length || view.tracks.right.length || view.tracks.center.length) });
|
|
82915
82917
|
};
|
|
82916
82918
|
const multiTrackHeader = this.isEditable() && !this.isViewHeaderDisabled() && !this.state.viewConfig.hideHeader ? /* @__PURE__ */ React__default.default.createElement(ViewHeader$1, { ref: (c2) => {
|
|
82917
82919
|
this.viewHeaders[view.uid] = c2;
|