You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The temporal velocity value at the current time. For spatial properties, such as Position, it returns the tangent vector value. The result is the same dimension as the property.
224
223
*/
225
224
readonlyvelocity: PropertyValueType;
226
225
227
226
/**
228
-
* A 1D, positive speed value equal to the speed at which the property is changing at the default time. This element can be used only for spatial properties.
229
-
*/
227
+
* A 1D, positive speed value equal to the speed at which the property is changing at the default time. This element can be used only for spatial properties.
228
+
*/
230
229
readonlyspeed: PropertyValueType;
231
-
230
+
232
231
constructor(
233
232
readonlyvalue: PropertyValueType,
234
233
readonlyname: string="Property name"
235
234
){
236
-
this.velocity=this.value;
237
-
this.speed=this.value;
235
+
this.velocity=this.value;
236
+
this.speed=this.value;
238
237
}
239
238
240
239
/**
@@ -362,7 +361,7 @@ export class Property<PropertyValueType extends Value> {
362
361
amp: number,
363
362
octaves: number=1,
364
363
amp_mult: number=0.5,
365
-
time: number=newLayer().time
364
+
time: number=0
366
365
): PropertyValueType{
367
366
constsom=freq+amp+octaves+amp_mult+time;
368
367
returnthis.value;
@@ -380,7 +379,7 @@ export class Property<PropertyValueType extends Value> {
380
379
amp: number,
381
380
octaves: number=1,
382
381
amp_mult: number=0.5,
383
-
time: number=newLayer().time
382
+
time: number=0
384
383
): PropertyValueType{
385
384
returnthis.value;
386
385
}
@@ -392,7 +391,7 @@ export class Property<PropertyValueType extends Value> {
392
391
smooth(
393
392
width: number=0.2,
394
393
samples: number=5,
395
-
time: number=newLayer().time
394
+
time: number=0
396
395
): PropertyValueType{
397
396
returnthis.value;
398
397
}
@@ -429,7 +428,7 @@ export class PathProperty extends Property<PathValue> {
429
428
* Retrieves the points array for a path
430
429
* @param time The time at which to sample the path
431
430
*/
432
-
points(time: number=newLayer().time): Points{
431
+
points(time: number=0): Points{
433
432
return[
434
433
[0,0],
435
434
[0,0],
@@ -466,10 +465,7 @@ export class PathProperty extends Property<PathValue> {
466
465
* @param percentage How far along the path to get the point, between 0 and 1.
467
466
* @param time The time at which to sample the path
0 commit comments