Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nightingale-elements/nightingale-navigation

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nightingale-elements/nightingale-navigation

Navigation component for the Nightingale tool

  • 5.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

nightingale-navigation

Published on NPM

This custom element can be used to zoom and navigate along the sequence displayed in Nightingale. When a user interacts with the component, a change event is triggered which uses to change display-start and display-end values on relevant custom elements.

Usage

<nightingale-navigation
  length="456"
  display-start="143"
  display-end="400"
  highlight="23:45"
  rulerstart="1"
/>

API Reference

Attributes

ruler-start: number (default 1)

The scale of coordinates will start from this value.

ruler-padding: number (default 10)

a horizontal padding to add on the ruler, to give the component a zooming efect even when the whole sequence is selected

scale-factor: number (default 10)

The quanity use to scale in or out when using the methods zoomIn or zoomOut

show-highlight: boolean (default false)

A shade representing a highlighted area can be added over the component.

Methods

locate(start: number, end: number)

Locates the selected area of the navigation component triggering the events related to it.

zoomIn()

Reduces the selected area of the navigation component by the quantity specified in the scale-factor attribute.

zoomOut()

Extends the selected area of the navigation component by the quantity specified in the scale-factor attribute.

Other attributes and parameters

This component inherits from NightingaleElement.

The component implements the following mixins: withManager, withResizable, withMargin, withPosition, withDimensions, withHighlight

Keywords

FAQs

Package last updated on 22 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc