Skip to content
Snippets Groups Projects
Commit 33d04f7e authored by Alexander Rose's avatar Alexander Rose
Browse files

commented out wedge visual from cartoon

parent d4000165
Branches
Tags
No related merge requests found
...@@ -13,7 +13,7 @@ import { MarkerAction } from '../../../util/marker-data'; ...@@ -13,7 +13,7 @@ import { MarkerAction } from '../../../util/marker-data';
import { PolymerTraceVisual, DefaultPolymerTraceProps } from '../visual/polymer-trace-mesh'; import { PolymerTraceVisual, DefaultPolymerTraceProps } from '../visual/polymer-trace-mesh';
import { PolymerGapVisual, DefaultPolymerGapProps } from '../visual/polymer-gap-cylinder'; import { PolymerGapVisual, DefaultPolymerGapProps } from '../visual/polymer-gap-cylinder';
import { NucleotideBlockVisual, DefaultNucleotideBlockProps } from '../visual/nucleotide-block-mesh'; import { NucleotideBlockVisual, DefaultNucleotideBlockProps } from '../visual/nucleotide-block-mesh';
import { PolymerDirectionVisual, DefaultPolymerDirectionProps } from '../visual/polymer-direction-wedge'; import { /* PolymerDirectionVisual, */ DefaultPolymerDirectionProps } from '../visual/polymer-direction-wedge';
export const DefaultCartoonProps = { export const DefaultCartoonProps = {
...DefaultPolymerTraceProps, ...DefaultPolymerTraceProps,
...@@ -29,7 +29,7 @@ export function CartoonRepresentation(): CartoonRepresentation { ...@@ -29,7 +29,7 @@ export function CartoonRepresentation(): CartoonRepresentation {
const traceRepr = UnitsRepresentation(PolymerTraceVisual) const traceRepr = UnitsRepresentation(PolymerTraceVisual)
const gapRepr = UnitsRepresentation(PolymerGapVisual) const gapRepr = UnitsRepresentation(PolymerGapVisual)
const blockRepr = UnitsRepresentation(NucleotideBlockVisual) const blockRepr = UnitsRepresentation(NucleotideBlockVisual)
const directionRepr = UnitsRepresentation(PolymerDirectionVisual) // const directionRepr = UnitsRepresentation(PolymerDirectionVisual)
let currentProps: CartoonProps let currentProps: CartoonProps
return { return {
...@@ -47,30 +47,31 @@ export function CartoonRepresentation(): CartoonRepresentation { ...@@ -47,30 +47,31 @@ export function CartoonRepresentation(): CartoonRepresentation {
await traceRepr.createOrUpdate(currentProps, structure).runInContext(ctx) await traceRepr.createOrUpdate(currentProps, structure).runInContext(ctx)
await gapRepr.createOrUpdate(currentProps, structure).runInContext(ctx) await gapRepr.createOrUpdate(currentProps, structure).runInContext(ctx)
await blockRepr.createOrUpdate(currentProps, structure).runInContext(ctx) await blockRepr.createOrUpdate(currentProps, structure).runInContext(ctx)
await directionRepr.createOrUpdate(currentProps, structure).runInContext(ctx) // await directionRepr.createOrUpdate(currentProps, structure).runInContext(ctx)
}) })
}, },
getLoci: (pickingId: PickingId) => { getLoci: (pickingId: PickingId) => {
const traceLoci = traceRepr.getLoci(pickingId) const traceLoci = traceRepr.getLoci(pickingId)
const gapLoci = gapRepr.getLoci(pickingId) const gapLoci = gapRepr.getLoci(pickingId)
const blockLoci = blockRepr.getLoci(pickingId) const blockLoci = blockRepr.getLoci(pickingId)
const directionLoci = directionRepr.getLoci(pickingId) // const directionLoci = directionRepr.getLoci(pickingId)
return !isEmptyLoci(traceLoci) ? traceLoci return !isEmptyLoci(traceLoci) ? traceLoci
: !isEmptyLoci(gapLoci) ? gapLoci : !isEmptyLoci(gapLoci) ? gapLoci
: !isEmptyLoci(blockLoci) ? blockLoci : blockLoci
: directionLoci // : !isEmptyLoci(blockLoci) ? blockLoci
// : directionLoci
}, },
mark: (loci: Loci, action: MarkerAction) => { mark: (loci: Loci, action: MarkerAction) => {
traceRepr.mark(loci, action) traceRepr.mark(loci, action)
gapRepr.mark(loci, action) gapRepr.mark(loci, action)
blockRepr.mark(loci, action) blockRepr.mark(loci, action)
directionRepr.mark(loci, action) // directionRepr.mark(loci, action)
}, },
destroy() { destroy() {
traceRepr.destroy() traceRepr.destroy()
gapRepr.destroy() gapRepr.destroy()
blockRepr.destroy() blockRepr.destroy()
directionRepr.destroy() // directionRepr.destroy()
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment