Skip to content

Commit

Permalink
Merge branch 'master' into dat_zoom_label_z_index
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso authored Nov 29, 2023
2 parents 44ee32c + e6fc564 commit 6899f71
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 258 deletions.
1 change: 1 addition & 0 deletions css/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ $igv-save-png-image-x-origin: 3*$igv-navbar-icon-button-size/4;
align-items: center;

.igv-navbar-toggle-button-container {
position: relative;
display: flex;
flex-flow: row;
flex-wrap: nowrap;
Expand Down
1 change: 1 addition & 0 deletions css/dom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion css/dom.css.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions dev/misc/navbar-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@

<body>

<div id="myDiv" style="padding-top: 50px;padding-bottom: 20px; height: auto">
<div id="igv-container" style="position: relative; padding-top: 50px;padding-bottom: 20px; height: auto">

</div>

<script type="module">

import igv from "../../js/index.js";
// import igv from "../../dist/igv.esm.js";

const config =
{

Expand Down Expand Up @@ -129,10 +127,13 @@
"order": 1000000
}
]
}
};

const parent = document.getElementById("igv-container")

igv.createBrowser(document.getElementById("myDiv"), config).then(function (browser) {
});
igv.createBrowser(parent, config).then(browser => {
console.log(`browser ${ browser.guid } is good to go`)
})


</script>
Expand Down
2 changes: 1 addition & 1 deletion js/embedCss.js

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions js/ui/navbarButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,20 @@ class NavbarButton {
this.setState(initialButtonState)

browser.on('navbar-resize', navbarButtonCSSClass => {
const key = 'igv-navbar-icon-button' === navbarButtonCSSClass ? 'image' : 'text'
if (key !== this.responsiveKey) {
this.responsiveKey = key
this.configureButton(title)
this.setState(undefined)
}
this.navbarResizeHandler(navbarButtonCSSClass)
})

}

navbarResizeHandler(navbarButtonCSSClass) {
const key = 'igv-navbar-icon-button' === navbarButtonCSSClass ? 'image' : 'text'
if (key !== this.responsiveKey) {
this.responsiveKey = key
this.configureButton(this.title)
this.setState(undefined)
}
}

configureButton(title) {

this.groupElement = undefined
Expand Down
36 changes: 18 additions & 18 deletions js/ui/navbarIcons/multiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ const multiSelectImage =
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="multi-select">
<rect id="backdrop-copy-3" stroke="#737373" stroke-width="12" fill="#FFFFFF" x="6" y="6" width="613" height="613" rx="135"></rect>
<g id="row-copy-3" transform="translate(81, 427)" fill="#737373">
<rect id="Rectangle" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" x="0" y="0" width="70" height="70"></rect>
<g id="row-copy-3" transform="translate(81, 427)">
<rect id="Rectangle" fill="#737373" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" stroke="#979797" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
<g id="row-copy-2" transform="translate(82, 277)" fill="#CFCECE">
<rect id="Rectangle" fill-opacity="0.33" x="133" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" fill-opacity="0.333506337" x="0" y="0" width="70" height="70"></rect>
<g id="row-copy-2" transform="translate(82, 277)">
<rect id="Rectangle" fill-opacity="0.33" fill="#CFCECE" x="133" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" stroke-opacity="0.32659528" stroke="#CFCECE" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
<g id="row-copy" transform="translate(81, 119)" fill="#737373">
<rect id="Rectangle" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-17" x="0" y="0" width="70" height="70"></rect>
<g id="row-copy" transform="translate(81, 119)">
<rect id="Rectangle" fill="#737373" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-17" stroke="#979797" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
</g>
</g>
Expand All @@ -26,17 +26,17 @@ const multiSelectImageHover =
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="multi-select-hover">
<rect id="backdrop-copy-4" stroke="#737373" stroke-width="12" fill="#737373" x="6" y="6" width="613" height="613" rx="135"></rect>
<g id="row-copy-3" transform="translate(81, 427)" fill="#FFFFFF">
<rect id="Rectangle" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" x="0" y="0" width="70" height="70"></rect>
<g id="row-copy-3" transform="translate(81, 427)">
<rect id="Rectangle" fill="#FFFFFF" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" stroke="#FFFFFF" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
<g id="row-copy-2" transform="translate(67.0769, 277)" fill="#FFFFFF">
<rect id="Rectangle" x="147.923077" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" x="14.9230769" y="0" width="70" height="70"></rect>
<g id="row-copy-2" transform="translate(82, 277)">
<rect id="Rectangle" fill-opacity="0.33" fill="#CFCECE" x="133" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-16" stroke-opacity="0.33" stroke="#CFCECE" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
<g id="row-copy" transform="translate(81, 119)" fill="#FFFFFF">
<rect id="Rectangle" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-17" x="0" y="0" width="70" height="70"></rect>
<g id="row-copy" transform="translate(81, 119)">
<rect id="Rectangle" fill="#FFFFFF" x="134" y="0" width="329" height="70"></rect>
<rect id="Rectangle-Copy-17" stroke="#FFFFFF" stroke-width="12" x="6" y="6" width="58" height="58"></rect>
</g>
</g>
</g>
Expand Down
Loading

0 comments on commit 6899f71

Please sign in to comment.