Skip to content

Commit

Permalink
No consolelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 6, 2024
1 parent 2a2af84 commit 9aaa5ba
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ function renderBlockData(self: LinearComparativeDisplay) {
const parent = getContainingView(self) as LinearComparativeViewModel
const sessionId = getRpcSessionId(self)
getSnapshot(parent)
// @ts-expect-error
console.log(getParent(self, 4).level)

return parent.initialized
? {
rpcManager,
Expand Down Expand Up @@ -203,7 +200,6 @@ async function renderBlockEffect(props: ReturnType<typeof renderBlockData>) {
sessionId: 'getFeats',
adapterConfig,
})) as Feature[]
console.log({ features, level })

return {
features: dedupe(features, f => f.id()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import MoreVertIcon from '@mui/icons-material/MoreVert'
import { LinearComparativeViewModel } from '../model'
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons'

type LCV = LinearComparativeViewModel

const useStyles = makeStyles()(() => ({
headerBar: {
gridArea: '1/1/auto/span 2',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function doAfterAttach(self: LinearSyntenyDisplayModel) {
}
const { assemblyManager } = getSession(self)
const view = getContainingView(self) as LSV
// @ts-expect-error
const level = getParent(self, 4).level
const viewSnaps = view.views.map(view => ({
...getSnapshot(view),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { getId, MAX_COLOR_RANGE } from '../drawSynteny'
import { LinearSyntenyViewModel } from '../../LinearSyntenyView/model'
import SyntenyContextMenu from './SyntenyContextMenu'
import { ClickCoord, getTooltip, onSynClick, onSynContextClick } from './util'
import { getParent } from 'mobx-state-tree'

type Timer = ReturnType<typeof setTimeout>

Expand Down Expand Up @@ -43,7 +42,6 @@ const LinearSyntenyRendering = observer(function ({
const currScrollFrame = useRef<number>()
const view = getContainingView(model) as LinearSyntenyViewModel
const width = view.width
console.log('wow', getParent(model, 4).level)
const delta = useRef(0)
const timeout = useRef<Timer>()
const [anchorEl, setAnchorEl] = useState<ClickCoord>()
Expand Down Expand Up @@ -89,8 +87,8 @@ const LinearSyntenyRendering = observer(function ({
}, 300)
} else {
if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {
event.preventDefault()
xOffset.current += event.deltaX / 2
event.preventDefault()
xOffset.current += event.deltaX / 2
}
if (currScrollFrame.current === undefined) {
currScrollFrame.current = requestAnimationFrame(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export function drawRef(

ctx1.beginPath()
const offsets = view.views.map(v => v.offsetPx)
console.log('here', { level, featPositions })

const unitMultiplier = Math.floor(MAX_COLOR_RANGE / featPositions.length)

// this loop is optimized to draw many thin lines with a single ctx.stroke
Expand All @@ -66,7 +64,6 @@ export function drawRef(
const x22 = p22.offsetPx - offsets[level + 1]
const l1 = Math.abs(x12 - x11)
const l2 = Math.abs(x22 - x21)
console.log({ level, x11, x12, x21, x22, l1, l2 })
const y1 = 0
const y2 = height
const mid = (y2 - y1) / 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function stateModelFactory(configSchema: AnyConfigurationSchemaType) {
* #action
*/
setFeatPositions(arg: FeatPos[]) {
console.log({ arg })
self.featPositions = arg
},
/**
Expand Down

0 comments on commit 9aaa5ba

Please sign in to comment.