INNER CODE UNIT · TypeScript

detectTimeGap

iamcco/coc-flutter · src/lib/notification/index.ts:7

const detectTimeGap = 1000 / 30;
const messageDefaultShowTime = 3000;

class Notification extends Dispose {
  private isSupportFloat = false;
  // top to the viewpoint
  private top = 1;
  private maxWidth: number = messageMaxWidth;
  private messages: Message[] = [];
  private display: Message[] = [];
  private timeGap: number = detectTimeGap;
  private timer: NodeJS.Timer | undefined;

  constructor() {
    super();
    this.init();
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…