From 8d1f43da5d8dd40f8b92befb947dfe2067b8c4ee Mon Sep 17 00:00:00 2001
From: Joe Pea
Date: Sun, 5 May 2024 11:00:28 -0700
Subject: [PATCH 1/4] improve KeyframeTrack and subtype docs
---
.../api/en/animation/tracks/BooleanKeyframeTrack.html | 6 +++++-
docs/api/en/animation/tracks/ColorKeyframeTrack.html | 2 +-
docs/api/en/animation/tracks/NumberKeyframeTrack.html | 2 +-
.../en/animation/tracks/QuaternionKeyframeTrack.html | 10 +++++-----
docs/api/en/animation/tracks/StringKeyframeTrack.html | 11 ++++++-----
docs/api/en/animation/tracks/VectorKeyframeTrack.html | 2 +-
src/animation/tracks/BooleanKeyframeTrack.js | 11 ++++++++++-
src/animation/tracks/QuaternionKeyframeTrack.js | 3 +--
src/animation/tracks/StringKeyframeTrack.js | 11 ++++++++++-
9 files changed, 40 insertions(+), 18 deletions(-)
diff --git a/docs/api/en/animation/tracks/BooleanKeyframeTrack.html b/docs/api/en/animation/tracks/BooleanKeyframeTrack.html
index af3d582f2bdc66..f0f545bf279338 100644
--- a/docs/api/en/animation/tracks/BooleanKeyframeTrack.html
+++ b/docs/api/en/animation/tracks/BooleanKeyframeTrack.html
@@ -23,6 +23,10 @@
[page:Array times] - (required) array of keyframe times.
[page:Array values] - values for the keyframes at the times specified.
+
+ This keyframe track type has no interpolation parameter because the
+ interpolation is always [page:Animation InterpolateDiscrete].
+
Properties
@@ -30,7 +34,7 @@ Properties
[property:Constant DefaultInterpolation]
- The default interpolation type to use, [page:Animation InterpolateDiscrete].
+ The default interpolation type to use. Only [page:Animation InterpolateDiscrete] makes sense for this track type.
[property:Array ValueBufferType]
diff --git a/docs/api/en/animation/tracks/ColorKeyframeTrack.html b/docs/api/en/animation/tracks/ColorKeyframeTrack.html
index 1ed0c6aedbfe13..fcaf4da8614ab7 100644
--- a/docs/api/en/animation/tracks/ColorKeyframeTrack.html
+++ b/docs/api/en/animation/tracks/ColorKeyframeTrack.html
@@ -20,7 +20,7 @@ [name]
Constructor
- [name]( [param:String name], [param:Array times], [param:Array values] )
+ [name]( [param:String name], [param:Array times], [param:Array values], [param:Constant interpolation] )
[page:String name] - (required) identifier for the KeyframeTrack.
diff --git a/docs/api/en/animation/tracks/NumberKeyframeTrack.html b/docs/api/en/animation/tracks/NumberKeyframeTrack.html
index 94b3fef4cf2001..c505f9b8b8994b 100644
--- a/docs/api/en/animation/tracks/NumberKeyframeTrack.html
+++ b/docs/api/en/animation/tracks/NumberKeyframeTrack.html
@@ -16,7 +16,7 @@
[name]
Constructor
- [name]( [param:String name], [param:Array times], [param:Array values] )
+ [name]( [param:String name], [param:Array times], [param:Array values], [param:Constant interpolation] )
[page:String name] - (required) identifier for the KeyframeTrack.
diff --git a/docs/api/en/animation/tracks/QuaternionKeyframeTrack.html b/docs/api/en/animation/tracks/QuaternionKeyframeTrack.html
index 7f1b7a05512d81..da3a545a0d808b 100644
--- a/docs/api/en/animation/tracks/QuaternionKeyframeTrack.html
+++ b/docs/api/en/animation/tracks/QuaternionKeyframeTrack.html
@@ -16,14 +16,14 @@
[name]
Constructor
- [name]( [param:String name], [param:Array times], [param:Array values] )
+ [name]( [param:String name], [param:Array times], [param:Array values], [param:Constant interpolation] )
- [page:String name] (required) identifier for the KeyframeTrack.
- [page:Array times] (required) array of keyframe times.
- [page:Array values] values for the keyframes at the times specified, a
+ [page:String name] - (required) identifier for the KeyframeTrack.
+ [page:Array times] - (required) array of keyframe times.
+ [page:Array values] - values for the keyframes at the times specified, a
flat array of quaternion components.
- [page:Constant interpolation] the type of interpolation to use. See
+ [page:Constant interpolation] - the type of interpolation to use. See
[page:Animation Animation Constants] for possible values. Default is
[page:Animation InterpolateLinear].
diff --git a/docs/api/en/animation/tracks/StringKeyframeTrack.html b/docs/api/en/animation/tracks/StringKeyframeTrack.html
index 8464687c2e6acd..9a471ef3a0236a 100644
--- a/docs/api/en/animation/tracks/StringKeyframeTrack.html
+++ b/docs/api/en/animation/tracks/StringKeyframeTrack.html
@@ -24,9 +24,10 @@
[page:String name] - (required) identifier for the KeyframeTrack.
[page:Array times] - (required) array of keyframe times.
[page:Array values] - values for the keyframes at the times specified.
- [page:Constant interpolation] - the type of interpolation to use. See
- [page:Animation Animation Constants] for possible values. Default is
- [page:Animation InterpolateDiscrete].
+
+
+ This keyframe track type has no interpolation parameter because the
+ interpolation is always [page:Animation InterpolateDiscrete].
Properties
@@ -35,7 +36,7 @@ Properties
[property:Constant DefaultInterpolation]
- The default interpolation type to use, [page:Animation InterpolateDiscrete].
+ The default interpolation type to use. Only [page:Animation InterpolateDiscrete] makes sense for this track type.
[property:Array ValueBufferType]
@@ -70,4 +71,4 @@ Source