@geneontology/wc-gocam-viz
Advanced tools
Comparing version 0.0.50-beta.8 to 0.0.50-beta.9
@@ -570,2 +570,14 @@ import { Component, Prop, Element, Event, Watch, getAssetPath, h } from '@stencil/core'; | ||
} | ||
scrollDiv(parent, elt) { | ||
const findPosition = (obj) => { | ||
var currenttop = 0; | ||
if (obj.offsetParent) { | ||
do { | ||
currenttop += obj.offsetTop; | ||
} while ((obj = obj.offsetParent)); | ||
return currenttop; | ||
} | ||
}; | ||
parent.scroll(0, findPosition(elt)); | ||
} | ||
onMouseOver(evt) { | ||
@@ -626,4 +638,5 @@ if (evt && evt.target && evt.target.id) { | ||
if (scrollList && elt2) { | ||
elt2.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" }); | ||
//elt2.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" }); | ||
//scrollList.scroll(0, elt2.offsetTop - 220); | ||
this.scrollDiv(scrollList, elt2); | ||
elt2.style["box-shadow"] = "2px 2px 5px 6px rgb(194 194 255)"; | ||
@@ -630,0 +643,0 @@ } |
@@ -253,2 +253,3 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
isAutoFocusing(): any; | ||
scrollDiv(parent: any, elt: any): void; | ||
previousPanelElt: any; | ||
@@ -255,0 +256,0 @@ onMouseOver(evt: any): void; |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as e}from"./p-efb08aa4.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),o(t)})().then((o=>e([["p-2486435a",[[0,"wc-gocam-selector"]]],["p-2c30bcd3",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]],["p-41949b9a",[[0,"wc-gocam-viz",{gocamId:[1,"gocam-id"],showGoCamSelector:[4,"show-go-cam-selector"],showHasInput:[4,"show-has-input"],showHasOutput:[4,"show-has-output"],showGeneProduct:[4,"show-gene-product"],showActivity:[4,"show-activity"],showIsolatedActivity:[4,"show-isolated-activity"],showLegend:[4,"show-legend"],graphFold:[1,"graph-fold"],autoHideModal:[4,"auto-hide-modal"],repository:[1],loading:[32],error:[32],cam:[32],resetView:[64],setAutoFocus:[64]},[[16,"selectChanged","newSelection"],[16,"selectGOCAM","selectGOCAM"]]],[0,"wc-genes-panel",{cam:[16],parentCy:[8,"parent-cy"],enrichedActivities:[32],groupedActivities:[32],scrollToActivity:[64]}]]]],o))); | ||
import{p as o,b as e}from"./p-efb08aa4.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),o(t)})().then((o=>e([["p-2486435a",[[0,"wc-gocam-selector"]]],["p-2c30bcd3",[[0,"wc-light-modal",{modalAnchor:[1,"modal-anchor"],modalTitle:[1,"modal-title"],modalContent:[1,"modal-content"],x:[2],y:[2],open:[64],close:[64],toggle:[64]}]]],["p-056c2aba",[[0,"wc-gocam-viz",{gocamId:[1,"gocam-id"],showGoCamSelector:[4,"show-go-cam-selector"],showHasInput:[4,"show-has-input"],showHasOutput:[4,"show-has-output"],showGeneProduct:[4,"show-gene-product"],showActivity:[4,"show-activity"],showIsolatedActivity:[4,"show-isolated-activity"],showLegend:[4,"show-legend"],graphFold:[1,"graph-fold"],autoHideModal:[4,"auto-hide-modal"],repository:[1],loading:[32],error:[32],cam:[32],resetView:[64],setAutoFocus:[64]},[[16,"selectChanged","newSelection"],[16,"selectGOCAM","selectGOCAM"]]],[0,"wc-genes-panel",{cam:[16],parentCy:[8,"parent-cy"],enrichedActivities:[32],groupedActivities:[32],scrollToActivity:[64]}]]]],o))); |
{ | ||
"name": "@geneontology/wc-gocam-viz", | ||
"version": "0.0.50-beta.8", | ||
"version": "0.0.50-beta.9", | ||
"description": "Web component to visualize GO-CAM", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
10375925
249738