CGView.js
Expand
Collapse
Examples
Tutorials
Docs
API
JSON
API Home
Anchor
Members
name
xPercent
yPercent
Methods
toJSON
toString
Annotation
Members
canvas
color
font
labelLineLength
layout
length
meta
priorityMax
sequence
viewer
visible
Methods
addLabel
deleteFromObjects
invertColors
labels
removeLabels
toJSON
toString
update
Backbone
Members
adjustedCenterOffset
adjustedThickness
bpThicknessAddition
canvas
centerOffset
color
colorAlternate
decoration
layout
maxThickness
meta
sequence
thickness
viewer
visible
visibleRange
Methods
containsCenterOffset
deleteFromObjects
maxZoomFactor
pixelsPerBp
toJSON
toString
update
Bookmark
Members
bp
canvas
favorite
format
layout
meta
name
sequence
shortcut
viewer
visible
zoom
Methods
deleteFromObjects
moveTo
remove
toJSON
toString
update
Box
Members
anchor
bottom
bottomPadded
centerX
centerY
height
left
leftPadded
on
paddedX
paddedY
padding
position
right
rightPadded
top
topPadded
width
x
y
Methods
clear
containsPt
toString
Canvas
Members
cursor
height
layerNames
layout
pixelRatio
sequence
viewer
width
Methods
clear
resize
Caption
Members
anchor
backgroundColor
canvas
font
fontColor
layout
meta
name
on
onCanvas
onMap
position
sequence
textAlignment
viewer
visible
Methods
clear
deleteFromObjects
draw
highlight
invertColors
move
moveTo
remove
toJSON
toString
update
CGArray
Members
first
last
Methods
arrayerize
attr
each
empty
get
move
present
remove
toString
unique
CGObject
Members
canvas
layout
meta
sequence
viewer
visible
Methods
deleteFromObjects
toString
CGRange
Members
contig
length
mapStart
mapStop
middle
sequence
start
stop
Methods
containsMapBp
copy
getStartPlus
getStopPlus
isMapLength
isWrapped
mergeWithRange
normalize
overHalfMapLength
overlapsMapRange
CodonTable
Members
availableGeneticCodeIDs
definitions
codons
geneticCodeID
name
starts
stops
table
Methods
toString
translate
CodonTables
Members
tables
Methods
byID
names
translate
Color
Members
hsv
opacity
rgb
rgba
rgbaString
rgbString
Methods
names
copy
equals
invert
setColor
toString
Contig
Members
canvas
color
id
index
layout
length
lengthOffset
mapRange
mapStart
mapStop
meta
name
orientation
seq
sequence
viewer
visible
Methods
asFasta
deleteFromObjects
features
hasSeq
move
moveTo
remove
reverseComplement
toJSON
toString
update
Divider
Members
adjustedSpacing
adjustedThickness
canvas
color
layout
meta
mirror
name
sequence
spacing
thickness
viewer
visible
Methods
deleteFromObjects
toString
update
Dividers
Members
dividersMirrored
slot
track
Methods
invertColors
toJSON
toString
EventMonitor
Members
canvas
viewer
Events
Methods
off
on
trigger
Feature
Members
canvas
codonStart
color
contig
decoration
extractedFromSequence
favorite
geneticCode
label
layout
legend
legendItem
mapRange
mapStart
mapStop
meta
name
range
score
seq
sequence
start
stop
type
viewer
visible
Methods
deleteFromObjects
highlight
moveTo
remove
slots
toString
tracks
translate
update
Font
Members
bold
css
family
height
italic
size
string
style
Methods
toString
width
Highlighter
Members
backbone
canvas
contig
feature
layout
meta
plot
sequence
viewer
visible
Methods
deleteFromObjects
toString
HighlighterElement
Members
highlighting
popover
popoverContents
type
IO
Members
viewer
Methods
downloadFasta
downloadImage
downloadJSON
loadJSON
toJSON
Layout
Members
backbone
bbInsideOffset
bbOutsideOffset
canvas
centerInsideOffset
centerOutsideOffset
height
maxSlotThickness
minSlotThickness
scale
sequence
type
viewer
width
Methods
adjustedBackboneCenterOffset
bpForPoint
centerOffsetForPoint
clockPositionForBp
domainsFor
path
pixelsPerBp
pointForBp
visibleRangeForCenterOffset
LayoutLinear
Legend
Members
anchor
backgroundColor
canvas
defaultFont
defaultFontColor
layout
meta
on
position
sequence
textAlignment
viewer
visible
Methods
addItems
clear
deleteFromObjects
findLegendItemByName
findLegendItemOrCreate
invertColors
items
moveItem
moveTo
removeItems
toJSON
toString
update
updateItems
LegendItem
Members
canvas
decoration
drawSwatch
font
fontColor
height
layout
legend
meta
name
sequence
swatchColor
swatchWidth
usingDefaultFont
viewer
visible
width
Methods
deleteFromObjects
features
highlight
invertColors
move
plots
remove
toJSON
toString
update
Messenger
Members
fadeTime
viewer
visible
Methods
close
open
toString
NCList
Members
length
Methods
_normalize
end
fill
start
sublist
Plot
Members
axisMax
axisMin
baseline
canvas
color
extractedFromSequence
layout
legend
legendItem
legendItemNegative
legendItemPositive
legendNegative
legendPositive
length
meta
name
positions
score
sequence
type
viewer
visible
Methods
deleteFromObjects
highlight
remove
toString
Position
Members
on
point
x
y
Methods
toString
Rect
Members
bottom
height
left
right
top
width
x
y
Methods
containsPt
overlap
Ruler
Members
canvas
color
layout
majorTicks
majorTickStep
meta
minorTicks
minorTickStep
sequence
tickFormater
viewer
visible
Methods
_createTickFormatter
deleteFromObjects
toString
Sequence
Members
bpMargin
bpSpacing
canvas
color
font
hasSeq
layout
length
mapContig
meta
seq
sequence
sequenceExtractor
thickness
viewer
visible
Methods
complement
random
addBp
addContigs
asFasta
bpForContig
constrain
contigForBp
contigs
contigsForMapRange
deleteFromObjects
findPattern
forRange
moveContig
removeContigs
subtractBp
toString
updateContigs
SequenceExtractor
Members
length
sequence
viewer
Settings
Members
arrowHeadLength
backgroundColor
format
showShading
Methods
toString
Slot
Members
bbOffset
canvas
centerOffset
inside
layout
meta
outside
position
proportionOfMap
sequence
thickness
thicknessRatio
track
type
viewer
visible
visibleRange
Methods
containsCenterOffset
deleteFromObjects
findFeaturesForBp
pixelsPerBp
removeFeatures
removePlot
toString
Track
Members
canvas
dataKeys
dataMethod
dataOptions
dataType
id
itemCount
layout
loadProgress
meta
name
plot
position
separateFeaturesBy
sequence
thicknessRatio
type
viewer
visible
Methods
deleteFromObjects
features
removeFeatures
removePlot
toString
uniqueFeatures
Viewer
Members
annotation
bbOffset
bp
dataHasChanged
dividers
events
format
geneticCode
height
id
layout
legend
loading
maxDimension
maxZoomFactor
minDimension
minZoomFactor
name
scale
sequence
width
zoomFactor
Methods
addBookmarks
addCaptions
addFeatures
addPlots
addTracks
bookmarks
captions
clear
contigs
features
flash
invertColors
moveCaption
moveLeft
moveRight
moveTo
objects
off
on
plots
recenterTracks
recordsWithChangedAttributes
removeBookmarks
removeFeatures
reset
resize
slots
sources
tracks
trigger
updateBookmarks
updateFeatures
updatePlots
updateTracks
zoomIn
zoomOut
zoomTo
Class: LayoutLinear
LayoutLinear
This Layout is in control of handling and drawing the map as a line
new LayoutLinear
()
LayoutLinear.js
,
line 15
Create a Layout