Skip to content

Commit

Permalink
Add missing Path2DControlPoint properties and constructor (#1225)
Browse files Browse the repository at this point in the history
The type was introduced in #1178 but the purpose of the addition was to
fix the failing CI (unimplemented back then).


https://create.roblox.com/docs/reference/engine/datatypes/Path2DControlPoint
  • Loading branch information
rimuy authored Apr 21, 2024
1 parent c953eac commit 3f34977
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1944,8 +1944,25 @@ interface Path2DControlPoint {
* @deprecated
*/
readonly _nominal_Path2DControlPoint: unique symbol;
/** The position of the `Path2DControlPoint`. */
Position: UDim2;
/** The left tangent of the `Path2DControlPoint`. */
LeftTangent: UDim2;
/** The right tangent of the `Path2DControlPoint`. */
RightTangent: UDim2;
}

interface Path2DControlPointConstructor {
/** Returns an empty `Path2DControlPoint`. */
new (): Path2DControlPoint;
/** Returns a `Path2DControlPoint` with only the position set. */
new (position: UDim2): Path2DControlPoint;
/** Returns a `Path2DControlPoint` with the position, left tangent, and right tangent set. */
new (position: UDim2, leftTangent: UDim2, rightTangent: UDim2): Path2DControlPoint;
}

declare const Path2DControlPoint: Path2DControlPointConstructor;

// PhysicalProperties
interface PhysicalProperties {
/**
Expand Down

0 comments on commit 3f34977

Please sign in to comment.