![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@nightingale-elements/nightingale-new-core
Advanced tools
Adds the zoom capabilities to a track. It creates a D3 scale between the sequence coordinates (from 1 to the length of the sequence) and the space on screen( from 0 to the width of the component).
The scale get updated either by a zoom event over the component, or by a change on the attributes: display-start
or display-end
.
Once the scale gets updated the super.render()
method is invoked triggering a rerender in your component.
Implements the following mixins:
withDimensions
to be able to calculate values with width
and height
.withMargin
to consider the lost margin space in the marginswithPosition
to re calculate the scale whe displayed coordinates(i.e. display-start
and display-end
) change.xScale?: ScaleLinear<number, number>;
The scale function for the X axis where on the initial state, the domain goes from 1
to the lenght of the sequence, and the range goes from 0
to the width of the SVG component.
The domain gets updated when the zoom and panning levels change.
The range gets updated when the width is changed.
svg?: Selection< SVGSVGElement, unknown, HTMLElement | SVGElement | null, unknown >
;The D3 selection to the root svg
element rendered in the component. The zooming events will be bind to this element.
getSingleBaseWidth(): number
Uses the current scale to calculate the with of a single base on the sequence.
getXFromSeqPosition(position: number): number
Gets the coordinates in the SVG for a given position in the sequence
updateScaleDomain(): void
called this method to trigger an update on the scale. This only will have an effect if length
, width
or margin-*
have been modified manually.
Implements the mixins: withMargin
, withPosition
, withResizable
, and withDimensions
FAQs
Base Elements for Nightingale Components
The npm package @nightingale-elements/nightingale-new-core receives a total of 0 weekly downloads. As such, @nightingale-elements/nightingale-new-core popularity was classified as not popular.
We found that @nightingale-elements/nightingale-new-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.