import 'dart:ui';

/**
 * 手势记录
 */
class GestureRecording {
  bool eraser; // 是否是橡皮擦

  int? usageTime; // 用时

  Offset? data; // 位置记录 可能为null

  bool annotationSwitch;

  bool scopeBox;

  int intervalTime; // 间隔时间

  GestureRecording({
    required this.eraser,
    required this.annotationSwitch,
    this.data,
    this.usageTime,
    this.scopeBox = false,
    this.intervalTime = 0,
  });
}

/**
 * 手势记录(原稿笔记还原)
 */
class GestureHandwritingRecording {
  int stroke;
  int usageTime; // 用时
  Offset data;
  int intervalTime; // 间隔时间
  GestureHandwritingRecording({
    required this.stroke,
    required this.data,
    required this.usageTime,
    required this.intervalTime,
  });
}
