@idraw/core 0.2.0-alpha.2 → 0.2.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -21,10 +21,9 @@ declare class Core {
21
21
  private [_config];
22
22
  private [_renderer];
23
23
  private [_element];
24
- private [_helper];
25
- private [_mapper];
26
24
  private [_coreEvent];
27
25
  private [_tempData];
26
+ private [_engine];
28
27
  static is: TypeIs;
29
28
  static check: TypeCheck;
30
29
  constructor(mount: HTMLDivElement, opts: TypeCoreOptions, config?: TypeConfig);
@@ -64,11 +63,10 @@ declare class Core {
64
63
  pointScreenToContext(p: TypePoint): TypePoint;
65
64
  pointContextToScreen(p: TypePoint): TypePoint;
66
65
  __getBoardContext(): TypeContext;
67
- __getDisplayContext(): CanvasRenderingContext2D;
68
- __getOriginContext(): CanvasRenderingContext2D;
66
+ __getDisplayContext2D(): CanvasRenderingContext2D;
67
+ __getOriginContext2D(): CanvasRenderingContext2D;
69
68
  private [_emitChangeScreen];
70
69
  private [_emitChangeData];
71
- [_todo](): void;
72
70
  }
73
71
  export default Core;
74
72
 
@@ -84,9 +82,7 @@ declare const _emitChangeData: unique symbol;
84
82
 
85
83
  declare const _emitChangeScreen: unique symbol;
86
84
 
87
- declare const _helper: unique symbol;
88
-
89
- declare const _mapper: unique symbol;
85
+ declare const _engine: unique symbol;
90
86
 
91
87
  declare const _opts: unique symbol;
92
88
 
@@ -94,8 +90,6 @@ declare const _renderer: unique symbol;
94
90
 
95
91
  declare const _tempData: unique symbol;
96
92
 
97
- declare const _todo: unique symbol;
98
-
99
93
  declare type TypeCheck = {
100
94
  attrs: (value: any) => boolean;
101
95
  rectDesc: (value: any) => boolean;
@@ -134,6 +128,8 @@ declare type TypeCoreEventArgMap = {
134
128
  };
135
129
  'changeData': TypeData;
136
130
  'changeScreen': TypeScreenData;
131
+ 'drawFrameComplete': void;
132
+ 'drawFrame': void;
137
133
  };
138
134
 
139
135
  declare type TypeCoreEventSelectBaseArg = {
@@ -162,6 +158,7 @@ declare type TypeIs = {
162
158
  lineHeight: (value: any) => boolean;
163
159
  textAlign: (value: any) => boolean;
164
160
  fontFamily: (value: any) => boolean;
161
+ strokeWidth: (value: any) => boolean;
165
162
  };
166
163
 
167
164
  export { }