Signature
Class SnapIndexProperties
| Name | Signature | Description |
|---|---|---|
size | size: number | Number of targets currently indexed. |
Constructors
| Name | Signature | Description |
|---|---|---|
constructor | constructor(): SnapIndex | No constructor summary yet. |
Methods
| Name | Signature | Description |
|---|---|---|
build | build(targets: TimelineSnapTarget[]): void | Rebuilds the index from a complete snap target list. |
clear | clear(): void | Removes all indexed targets while retaining allocated storage for reuse. |
findNearest | findNearest(time: RationalTime, thresholdSeconds: number): TimelineSnapResult | null | Finds the best target within a threshold. |