Skip to content

Commit ddc3723

Browse files
yaustarsteveny-sc
andauthored
Reverting JS docs for curveset but correcting the example code (playcanvas#3319)
* Reverting JS docs for curveset but correcting the example code * Update src/math/curve-set.js Co-authored-by: Steven Yau <syau@snapchat.com>
1 parent 584c3a6 commit ddc3723

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/math/curve-set.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { CurveEvaluator } from './curve-evaluator.js';
77
* @name CurveSet
88
* @classdesc A curve set is a collection of curves.
99
* @description Creates a new curve set.
10-
* @param {...number[]} curveKeys - 0 or many arguments of arrays of keys (pairs of numbers with
10+
* @param {Array<number[]>} curveKeys - An array of arrays of keys (pairs of numbers with
1111
* the time first and value second).
1212
* @example
13-
* var curveSet = new pc.CurveSet(
13+
* var curveSet = new pc.CurveSet([
1414
* [
1515
* 0, 0, // At 0 time, value of 0
1616
* 0.33, 2, // At 0.33 time, value of 2
@@ -23,7 +23,7 @@ import { CurveEvaluator } from './curve-evaluator.js';
2323
* 0.66, 36,
2424
* 1, 37
2525
* ]
26-
* );
26+
* ]);
2727
*/
2828
class CurveSet {
2929
constructor() {

0 commit comments

Comments
 (0)