@@ -3,47 +3,52 @@ import type {Arc, Circle, Point, Polygon, Segment} from '@flatten-js/core';
33export type Shape = Polygon | Segment | Point | Circle | Arc ;
44
55export enum SnapPointType {
6- AngleGuide = 'AngleGuide' ,
7- LineEndPoint = 'LineEndPoint' ,
8- Intersection = 'Intersection' ,
9- CircleCenter = 'CircleCenter' ,
10- CircleCardinal = 'CircleCardinal' ,
11- CircleTangent = 'CircleTangent' ,
12- LineMidPoint = 'LineMidPoint' ,
13- Point = 'Point' ,
6+ AngleGuide = 'AngleGuide' ,
7+ LineEndPoint = 'LineEndPoint' ,
8+ Intersection = 'Intersection' ,
9+ CircleCenter = 'CircleCenter' ,
10+ CircleCardinal = 'CircleCardinal' ,
11+ CircleTangent = 'CircleTangent' ,
12+ LineMidPoint = 'LineMidPoint' ,
13+ Point = 'Point' ,
1414}
1515
1616export interface SnapPoint {
17- point : Point ;
18- type : SnapPointType ;
17+ point : Point ;
18+ type : SnapPointType ;
1919}
2020
2121export type SnapPointConfig = Record < SnapPointType , boolean > ;
2222
2323export interface HoverPoint {
24- snapPoint : SnapPoint ;
25- milliSecondsHovered : number ;
24+ snapPoint : SnapPoint ;
25+ milliSecondsHovered : number ;
2626}
2727
2828export enum MouseButton {
29- Left = 0 , // Main button pressed, usually the left button or the un-initialized state
30- Middle = 1 , // Auxiliary button pressed, usually the wheel button or the middle button (if present)
31- Right = 2 , // Secondary button pressed, usually the right button
32- Back = 3 , // Fourth button, typically the Browser Back button
33- Forward = 4 , // Fifth button, typically the Browser Forward button
29+ Left = 0 , // Main button pressed, usually the left button or the un-initialized state
30+ Middle = 1 , // Auxiliary button pressed, usually the wheel button or the middle button (if present)
31+ Right = 2 , // Secondary button pressed, usually the right button
32+ Back = 3 , // Fourth button, typically the Browser Back button
33+ Forward = 4 , // Fifth button, typically the Browser Forward button
3434}
3535
3636export enum HtmlEvent {
37- UPDATE_STATE = 'UPDATE_STATE' ,
37+ UPDATE_STATE = 'UPDATE_STATE' ,
3838}
3939
4040export interface StateMetaData {
41- instructions : string ;
41+ instructions : string ;
4242}
4343
4444export interface Layer {
45- id : string ;
46- name : string ;
47- isVisible : boolean ;
48- isLocked : boolean ;
45+ id : string ;
46+ name : string ;
47+ isVisible : boolean ;
48+ isLocked : boolean ;
49+ }
50+
51+ export enum LOCAL_STORAGE_KEY {
52+ DRAWING = 'OPEN_WEB_CAD__DRAWING' ,
53+ DROPDOWN = 'OPEN_WEB_CAD__DROPDOWN' ,
4954}
0 commit comments