@idraw/core 0.2.0-alpha.20 → 0.2.0-alpha.24
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.cjs.js +2564 -1922
- package/dist/index.d.ts +4 -12
- package/dist/index.es.js +2564 -1922
- package/dist/index.global.js +2564 -1922
- package/dist/index.global.min.js +1 -1
- package/package.json +8 -6
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);
|
|
@@ -63,14 +62,11 @@ declare class Core {
|
|
|
63
62
|
off<T extends keyof TypeCoreEventArgMap>(key: T, callback: (p: TypeCoreEventArgMap[T]) => void): void;
|
|
64
63
|
pointScreenToContext(p: TypePoint): TypePoint;
|
|
65
64
|
pointContextToScreen(p: TypePoint): TypePoint;
|
|
66
|
-
setOnlyRender(): void;
|
|
67
|
-
cancelOnlyRender(): void;
|
|
68
65
|
__getBoardContext(): TypeContext;
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
__getDisplayContext2D(): CanvasRenderingContext2D;
|
|
67
|
+
__getOriginContext2D(): CanvasRenderingContext2D;
|
|
71
68
|
private [_emitChangeScreen];
|
|
72
69
|
private [_emitChangeData];
|
|
73
|
-
[_todo](): void;
|
|
74
70
|
}
|
|
75
71
|
export default Core;
|
|
76
72
|
|
|
@@ -86,9 +82,7 @@ declare const _emitChangeData: unique symbol;
|
|
|
86
82
|
|
|
87
83
|
declare const _emitChangeScreen: unique symbol;
|
|
88
84
|
|
|
89
|
-
declare const
|
|
90
|
-
|
|
91
|
-
declare const _mapper: unique symbol;
|
|
85
|
+
declare const _engine: unique symbol;
|
|
92
86
|
|
|
93
87
|
declare const _opts: unique symbol;
|
|
94
88
|
|
|
@@ -96,8 +90,6 @@ declare const _renderer: unique symbol;
|
|
|
96
90
|
|
|
97
91
|
declare const _tempData: unique symbol;
|
|
98
92
|
|
|
99
|
-
declare const _todo: unique symbol;
|
|
100
|
-
|
|
101
93
|
declare type TypeCheck = {
|
|
102
94
|
attrs: (value: any) => boolean;
|
|
103
95
|
rectDesc: (value: any) => boolean;
|