equinor / esv-intersection

A reusable component to create intersection visualizations for wells
https://equinor.github.io/esv-intersection/storybook/latest
MIT License
12 stars 7 forks source link

[Snyk] Upgrade curve-interpolator from 3.0.1 to 3.1.0 #541

Closed snyk-bot closed 1 year ago

snyk-bot commented 1 year ago

Snyk has created this PR to upgrade curve-interpolator from 3.0.1 to 3.1.0.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Release notes
Package name: curve-interpolator
  • 3.1.0 - 2023-02-21

    A complete re-write of the library for a better developer experience, improved performance and of course, some new features.

    New features:

    • get curvature at any point or time along the curve
    • get nearest position on curve from a given point
    • get normal and tangent at any point or time
    • convenience functions added to get position or time at knot points
    • convenience functions added for mapping between position (u) and time (t)
    • convenience functions added for mapping between length and normalized length/position (u)
    • convenience functions added for iterating over a range of the curve (map, reduce and forEach)
    • numerical integral method now used as default for calculating length and mapping between time and position (if arcDivisions option = 0 or not provided)
    • improved performance and accuracy

    Some existing functions are still available, but marked as deprecated and put into the legacy folder in the source code. These will be removed from the library shortly.

    As this is a rewrite of the library from the ground up, there are a a few breaking changes to be aware of:

    • CurveInterpolator.getT is now named CurveInterpolator.getTimeFromPosition
    • CurveInterpolator.lookup is now named CurveInterpolator.getIntersects
    • CurveInterpolator.lookupPositions is now named CurveInterpolator.getIntersectsAsPositions

    If you used any of the old core functions, like getPointAtT , getTangentAtT etc. you should now instantiate and use the CurveInterpolator class. The reason for this is to allow caching of coefficients and other pre-calculated values. The CurveInterpolator has functions such as CurveInterpolator.getPointAtTime and CurveInterpolator.getTangentAtTime etc. that serves the same purpose.

    Please report an issue if you find a bug, have issues migrating to the new version or just have questions. Hope you find this library useful!

    Take a look at the new demo at ObservableHQ: https://observablehq.com/@ kjerandp/curve-interpolator-demo

  • 3.1.0-beta.6 - 2023-02-21
  • 3.1.0-beta.5 - 2023-02-20
  • 3.1.0-beta.4 - 2023-02-17
  • 3.1.0-beta.3 - 2023-02-15
  • 3.1.0-beta.2 - 2023-01-31
  • 3.1.0-beta.1 - 2023-01-27
  • 3.0.1 - 2023-01-10

    Fixed issue where calculating arc lengths would fail when input points contained adjacent duplicates

from curve-interpolator GitHub release notes
Commit messages
Package name: curve-interpolator
  • f7c49f4 Merge remote-tracking branch 'origin/v3.1.0-beta'
  • 32dd240 regen docs
  • 9dcc271 Added time equivalent functions for tangent, normal and curvature + map, reduce and forEach functions for iterating over a curve range
  • 1cf3717 bumped beta version and re-gen docs
  • 29d5ef4 Renamed lookup function to getIntersects + some tweaks
  • 18c2d1b Added unit test
  • 76fffb4 regen docs
  • a6078eb Added function for getting the nearest position on curve from a point ref issue #13
  • 922db5c bumped version to v3.1.0-beta.3 and re-generated docs
  • 3f574d4 Curvature function now returns a direction and tangent vector. Refactored and added a reset function that may be used in order to invalidate cache if deliberatly mutating input points.
  • d58d3f0 regen docs
  • bfb6040 Added function for calculating the curvature ref issue #13
  • 589bb3a improve test and comments coverage + re-gen. docs
  • b07c039 Rewrite and clean-up to support different curve mapping techniques (u <-> t)
  • b5fa3b9 Update npmpublish.yml
Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

ovineq commented 1 year ago

curve-interpolator@3.1.1 is updated in https://github.com/equinor/esv-intersection/pull/546

Can close this one after its merged.

venikx commented 1 year ago

Closed in favour of https://github.com/equinor/esv-intersection/pull/546