@idraw/core 0.2.0-y.0 → 0.3.0-alpha.0

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
@@ -14,17 +14,16 @@ declare const _board: unique symbol;
14
14
 
15
15
  declare const _config: unique symbol;
16
16
 
17
- declare class Core {
17
+ export declare class Core {
18
18
  private [_board];
19
19
  private [_data];
20
20
  private [_opts];
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,13 +63,11 @@ 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
- export default Core;
74
71
 
75
72
  declare const _coreEvent: unique symbol;
76
73
 
@@ -84,9 +81,7 @@ declare const _emitChangeData: unique symbol;
84
81
 
85
82
  declare const _emitChangeScreen: unique symbol;
86
83
 
87
- declare const _helper: unique symbol;
88
-
89
- declare const _mapper: unique symbol;
84
+ declare const _engine: unique symbol;
90
85
 
91
86
  declare const _opts: unique symbol;
92
87
 
@@ -94,8 +89,6 @@ declare const _renderer: unique symbol;
94
89
 
95
90
  declare const _tempData: unique symbol;
96
91
 
97
- declare const _todo: unique symbol;
98
-
99
92
  declare type TypeCheck = {
100
93
  attrs: (value: any) => boolean;
101
94
  rectDesc: (value: any) => boolean;
@@ -134,6 +127,8 @@ declare type TypeCoreEventArgMap = {
134
127
  };
135
128
  'changeData': TypeData;
136
129
  'changeScreen': TypeScreenData;
130
+ 'drawFrameComplete': void;
131
+ 'drawFrame': void;
137
132
  };
138
133
 
139
134
  declare type TypeCoreEventSelectBaseArg = {
@@ -162,6 +157,7 @@ declare type TypeIs = {
162
157
  lineHeight: (value: any) => boolean;
163
158
  textAlign: (value: any) => boolean;
164
159
  fontFamily: (value: any) => boolean;
160
+ strokeWidth: (value: any) => boolean;
165
161
  };
166
162
 
167
163
  export { }