Skip to content

Commit

Permalink
Modify 'TODO' comment to reference a version instead of a date to mak…
Browse files Browse the repository at this point in the history
…e the referenced change in code.
  • Loading branch information
Mark Fitzgerald committed Jun 27, 2024
1 parent d07cc75 commit dbb3ec3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/display/Plot/Parametric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { Stroked } from "../Theme"
import { useTransformContext } from "../../context/TransformContext"
import { sampleParametric } from "./PlotUtils"

// TODO: In 1-year's time from this change (written 6/26/2024),
// TODO: (v1.0.0) When the project has it's first major (breaking) update,
// remove the Legacy interface and just have the new props interface (renamed, of course).
// Also, remove the `t` property at that time.
// The 1 year timeline gives consumers time to update their code.
// Waiting until the major update to batch them together,
// and to give time for consumers to update their usage.
interface ParametricPropsLegacy extends Stroked {
/** A function that takes a `t` value and returns a point. */
xy: (t: number) => vec.Vector2
Expand Down

0 comments on commit dbb3ec3

Please sign in to comment.