new Bookmark(viewer, options, meta)
Create a new bookmark.
Name | Type | Description |
---|---|---|
viewer |
Viewer |
The viewer |
options |
Object |
Attributes used to create the bookmark |
meta |
Object |
optional
User-defined Meta data to add to the bookmark. |
Extends
Members
-
bpNumber
-
Get or set the basepair position for the bookmark.
-
canvasCanvas
-
Get the canvas.
-
favoriteBoolean
-
Get or set the favorite
-
formatString
-
Get or set the format
-
layoutLayout
-
Get the layout.
-
metaBoolean
-
Get or Set the meta data of this object. See the meta data tutorial for details.
-
nameString
-
Get or set the name
-
sequenceSequence
-
Get the sequence.
-
shortcutCharacter
-
Get or set the shortcut
-
viewerViewer
-
Get the Viewer
-
visibleBoolean
-
Get or Set the visibility of this object.
-
zoomNumber
-
Get or set the zoom
Methods
-
inherited deleteFromObjects()
-
Remove the object from Viewer.objects
-
moveTo(duration)
-
Move and zoom the map to this Bookmarks position.
Name Type Default Description duration
Number 1000 length of time for the animation
-
remove()
-
Remove bookmark. See removing records for details.
-
toJSON()
-
Returns JSON representing the object
-
toString(){String}
-
Return the class name as a string.
Returns:
Type Description String 'Bookmark' -
update(attributes)
-
Update bookmark attributes. See updating records for details.
Name Type Description attributes
Object Object describing the properties to change