Skip to content

Commit 9c5bad0

Browse files
committed
update build
1 parent 6a2163d commit 9c5bad0

File tree

4 files changed

+97
-3
lines changed

4 files changed

+97
-3
lines changed

_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
- [ChildTracker](/api/core/ChildTracker.md)
8585
- [ClipPlane](/api/core/ClipPlane.md)
8686
- [Element3D](/api/core/Element3D.md)
87+
- [PropertyAnimator](/api/core/PropertyAnimator.md)
8788
- [Scene](/api/core/Scene.md)
8889
- [SharedAPI](/api/core/SharedAPI.md)
8990
- [Sizeable](/api/core/Sizeable.md)

api/behaviors/mesh-behaviors/geometries/SphereGeometryBehavior.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ horizontal segments and 10 vertical segments is made up of 100 flat faces.
3232

3333
Default: `32`
3434

35-
The number of divisions across the height of the plane. A plane with 10
36-
width segments and 10 height segments is essentially made up of 100 cells
37-
(or 10 rows and 10 columns of smaller planes)
35+
The number of divisions across the height of the sphere. A sphere with 10
36+
horizontal segments and 10 vertical segments is made up of 100 flat faces.
3837

3938

4039

api/cameras/CameraRig.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,66 @@ disabled, but the camera rig can still be manipulated programmatically.
204204

205205

206206

207+
### <code>.<b>dollyEpsilon</b></code> :id=dollyEpsilon
208+
209+
*attribute*
210+
211+
Default: `0.01`
212+
213+
The threshold for when to stop dolly smoothing animation (lerp). When the
214+
delta between actual dolly position and target dolly position is below
215+
this number, animation stops. Set this to a high value to prevent
216+
smoothing.
217+
218+
219+
220+
### <code>.<b>dollyScrollLerp</b></code> :id=dollyScrollLerp
221+
222+
*attribute*
223+
224+
Default: `0.3`
225+
226+
The portion to lerp towards the dolly target position each frame after
227+
scrolling to dolly the camera. Between 0 and 1.
228+
229+
230+
231+
### <code>.<b>dollyPinchSlowdown</b></code> :id=dollyPinchSlowdown
232+
233+
*attribute*
234+
235+
Default: `0.05`
236+
237+
Portion of the dolly speed to remove each frame to slow down the dolly
238+
animation after pinching to dolly the camera, i.e. how much to lerp
239+
towards zero motion. Between 0 and 1.
240+
241+
242+
243+
### <code>.<b>rotationEpsilon</b></code> :id=rotationEpsilon
244+
245+
*attribute*
246+
247+
Default: `0.01`
248+
249+
The threshold for when to stop intertial rotation slowdown animation.
250+
When the current frame's change in rotation goes below this number,
251+
animation stops. Set this to a high value to prevent inertial slowdown.
252+
253+
254+
255+
### <code>.<b>rotationSlowdown</b></code> :id=rotationSlowdown
256+
257+
*attribute*
258+
259+
Default: `0.05`
260+
261+
Portion of the rotational speed to remove each frame to slow down the
262+
rotation after dragging to rotate the camera, i.e. how much to lerp
263+
towards zero motion. Between 0 and 1.
264+
265+
266+
207267

208268

209269

api/core/PropertyAnimator.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# <code>class <b>PropertyAnimator</b></code> :id=PropertyAnimator
3+
4+
This is a utility mixin class to make some Lume
5+
element properties animatable when provided a function. This allows animation
6+
of some properties like so:
7+
8+
```js
9+
const box = document.querySelector('lume-box')
10+
box.rotation = (x, y, z, t, dt) => [x, ++y, z]
11+
box.opacity = (opacity, t, dt) => opacity - 0.01
12+
```
13+
14+
Currently it is only for any XYZValues properties (for example `position`, `rotation`, etc), or `opacity`.
15+
16+
For an `XYZValues` property, the function accepts the current x, y, z, time,
17+
and deltaTime values for the current frame, and should return the new desired
18+
values.
19+
20+
For `opacity` it is similar, but the function accepts a opacity, time, and
21+
deltaTime, and should return the new desired opacity.
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+

0 commit comments

Comments
 (0)