publicConfig.ts 451 Bytes
import { PublicConfigType, PublicPresetOptions } from './index.type';
import { buildUUID } from '/@/utils/uuid';

export const componentInitConfig = { x: 50, y: 50, w: 240, h: 200 };

export const componentOptionsInitConfig: PublicPresetOptions = { maxScale: 1, minScale: 0 };

export class PublicConfigClass implements PublicConfigType {
  public id = buildUUID();
  public attr: Record<'x' | 'y' | 'w' | 'h', number> = { ...componentInitConfig };
}