Migrate LowPassFilter
Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D16764120 fbshipit-source-id: 03185c74f3a1e753089ea550d3f193027aae9424
This commit is contained in:
committed by
Facebook Github Bot
parent
5c6ec866d6
commit
d812b128ba
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type {Rect} from '../../utils/geometry.tsx';
|
import type {Rect} from '../../utils/geometry.tsx';
|
||||||
import LowPassFilter from '../../utils/LowPassFilter.js';
|
import LowPassFilter from '../../utils/LowPassFilter.tsx';
|
||||||
import {
|
import {
|
||||||
getDistanceTo,
|
getDistanceTo,
|
||||||
maybeSnapLeft,
|
maybeSnapLeft,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export default class LowPassFilter {
|
export default class LowPassFilter {
|
||||||
constructor(smoothing?: number = 0.9) {
|
constructor(smoothing: number = 0.9) {
|
||||||
this.smoothing = smoothing;
|
this.smoothing = smoothing;
|
||||||
this.buffer = [];
|
this.buffer = [];
|
||||||
this.bufferMaxSize = 5;
|
this.bufferMaxSize = 5;
|
||||||
Reference in New Issue
Block a user