@asdf-overlay/core 1.2.5 → 2.0.1
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/addon.win32-arm64-msvc.node +0 -0
- package/addon.win32-ia32-msvc.node +0 -0
- package/addon.win32-x64-msvc.node +0 -0
- package/asdf_overlay-aarch64.dll +0 -0
- package/asdf_overlay-x64.dll +0 -0
- package/asdf_overlay-x86.dll +0 -0
- package/index.d.ts +6 -0
- package/index.js +11 -0
- package/native.d.ts +305 -0
- package/native.js +711 -0
- package/package.json +30 -27
- package/addon-aarch64.node +0 -0
- package/addon-x64.node +0 -0
- package/lib/addon.d.ts +0 -18
- package/lib/addon.js +0 -1
- package/lib/index.d.ts +0 -151
- package/lib/index.js +0 -202
- package/lib/input.d.ts +0 -240
- package/lib/input.js +0 -29
- package/lib/types.d.ts +0 -128
- package/lib/types.js +0 -48
- package/lib/util.d.ts +0 -13
- package/lib/util.js +0 -27
package/lib/input.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IME conversion bit flags.
|
|
3
|
-
*
|
|
4
|
-
* There can be multiple flag set.
|
|
5
|
-
*/
|
|
6
|
-
export var ImeConversion;
|
|
7
|
-
(function (ImeConversion) {
|
|
8
|
-
ImeConversion[ImeConversion["None"] = 0] = "None";
|
|
9
|
-
/**
|
|
10
|
-
* IME converts to native langauge.
|
|
11
|
-
*/
|
|
12
|
-
ImeConversion[ImeConversion["Native"] = 1] = "Native";
|
|
13
|
-
/**
|
|
14
|
-
* IME composes in full-width characters.
|
|
15
|
-
*/
|
|
16
|
-
ImeConversion[ImeConversion["Fullshape"] = 2] = "Fullshape";
|
|
17
|
-
/**
|
|
18
|
-
* Conversion is disabled.
|
|
19
|
-
*/
|
|
20
|
-
ImeConversion[ImeConversion["NoConversion"] = 4] = "NoConversion";
|
|
21
|
-
/**
|
|
22
|
-
* Converting to hanja.
|
|
23
|
-
*/
|
|
24
|
-
ImeConversion[ImeConversion["HanjaConvert"] = 8] = "HanjaConvert";
|
|
25
|
-
/**
|
|
26
|
-
* Converting to katakana.
|
|
27
|
-
*/
|
|
28
|
-
ImeConversion[ImeConversion["Katakana"] = 16] = "Katakana";
|
|
29
|
-
})(ImeConversion || (ImeConversion = {}));
|
package/lib/types.d.ts
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A length which can be expressed in absolute or relative percent.
|
|
3
|
-
*/
|
|
4
|
-
export type PercentLength = {
|
|
5
|
-
ty: 'percent' | 'length';
|
|
6
|
-
value: number;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Locally unique identifier for a GPU.
|
|
10
|
-
*/
|
|
11
|
-
export type GpuLuid = {
|
|
12
|
-
/**
|
|
13
|
-
* Low part of the LUID.
|
|
14
|
-
*/
|
|
15
|
-
low: number;
|
|
16
|
-
/**
|
|
17
|
-
* High part of the LUID.
|
|
18
|
-
*/
|
|
19
|
-
high: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Describe a update of overlay surface texture handle.
|
|
23
|
-
*/
|
|
24
|
-
export type UpdateSharedHandle = {
|
|
25
|
-
/**
|
|
26
|
-
* KMT handle to surface texture.
|
|
27
|
-
*
|
|
28
|
-
* Not supplying this value will clear the existing texture.
|
|
29
|
-
*/
|
|
30
|
-
handle?: number;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Describe a rectangle when copying from source to destination.
|
|
34
|
-
*/
|
|
35
|
-
export type CopyRect = {
|
|
36
|
-
/**
|
|
37
|
-
* Destination X position.
|
|
38
|
-
*/
|
|
39
|
-
dstX: number;
|
|
40
|
-
/**
|
|
41
|
-
* Destination Y position.
|
|
42
|
-
*/
|
|
43
|
-
dstY: number;
|
|
44
|
-
/**
|
|
45
|
-
* Source rectangle.
|
|
46
|
-
*/
|
|
47
|
-
src: Rect;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Describe a Reactangle.
|
|
51
|
-
*/
|
|
52
|
-
export type Rect = {
|
|
53
|
-
/**
|
|
54
|
-
* X position.
|
|
55
|
-
*/
|
|
56
|
-
x: number;
|
|
57
|
-
/**
|
|
58
|
-
* Y position.
|
|
59
|
-
*/
|
|
60
|
-
y: number;
|
|
61
|
-
/**
|
|
62
|
-
* Width of the Rectangle.
|
|
63
|
-
*/
|
|
64
|
-
width: number;
|
|
65
|
-
/**
|
|
66
|
-
* Height of the Rectangle.
|
|
67
|
-
*/
|
|
68
|
-
height: number;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* A keyboard key.
|
|
72
|
-
*/
|
|
73
|
-
export type Key = {
|
|
74
|
-
/**
|
|
75
|
-
* Windows virtual key code.
|
|
76
|
-
*/
|
|
77
|
-
code: number;
|
|
78
|
-
/**
|
|
79
|
-
* Extended flag.
|
|
80
|
-
*
|
|
81
|
-
* True for right key variant (e.g. Right shift), or Numpad variant (e.g. NumPad 1)
|
|
82
|
-
*/
|
|
83
|
-
extended: boolean;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Describe a cursor type.
|
|
87
|
-
*/
|
|
88
|
-
export declare enum Cursor {
|
|
89
|
-
Default = 0,
|
|
90
|
-
Help = 1,
|
|
91
|
-
Pointer = 2,
|
|
92
|
-
Progress = 3,
|
|
93
|
-
Wait = 4,
|
|
94
|
-
Cell = 5,
|
|
95
|
-
Crosshair = 6,
|
|
96
|
-
Text = 7,
|
|
97
|
-
VerticalText = 8,
|
|
98
|
-
Alias = 9,
|
|
99
|
-
Copy = 10,
|
|
100
|
-
Move = 11,
|
|
101
|
-
NotAllowed = 12,
|
|
102
|
-
Grab = 13,
|
|
103
|
-
Grabbing = 14,
|
|
104
|
-
ColResize = 15,
|
|
105
|
-
RowResize = 16,
|
|
106
|
-
EastWestResize = 17,
|
|
107
|
-
NorthSouthResize = 18,
|
|
108
|
-
NorthEastSouthWestResize = 19,
|
|
109
|
-
NorthWestSouthEastResize = 20,
|
|
110
|
-
ZoomIn = 21,
|
|
111
|
-
ZoomOut = 22,
|
|
112
|
-
UpArrow = 23,
|
|
113
|
-
Pin = 24,
|
|
114
|
-
Person = 25,
|
|
115
|
-
Pen = 26,
|
|
116
|
-
Cd = 27,
|
|
117
|
-
PanMiddle = 28,
|
|
118
|
-
PanMiddleHorizontal = 29,
|
|
119
|
-
PanMiddleVertical = 30,
|
|
120
|
-
PanEast = 31,
|
|
121
|
-
PanNorth = 32,
|
|
122
|
-
PanNorthEast = 33,
|
|
123
|
-
PanNorthWest = 34,
|
|
124
|
-
PanSouth = 35,
|
|
125
|
-
PanSouthEast = 36,
|
|
126
|
-
PanSouthWest = 37,
|
|
127
|
-
PanWest = 38
|
|
128
|
-
}
|
package/lib/types.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describe a cursor type.
|
|
3
|
-
*/
|
|
4
|
-
export var Cursor;
|
|
5
|
-
(function (Cursor) {
|
|
6
|
-
Cursor[Cursor["Default"] = 0] = "Default";
|
|
7
|
-
Cursor[Cursor["Help"] = 1] = "Help";
|
|
8
|
-
Cursor[Cursor["Pointer"] = 2] = "Pointer";
|
|
9
|
-
Cursor[Cursor["Progress"] = 3] = "Progress";
|
|
10
|
-
Cursor[Cursor["Wait"] = 4] = "Wait";
|
|
11
|
-
Cursor[Cursor["Cell"] = 5] = "Cell";
|
|
12
|
-
Cursor[Cursor["Crosshair"] = 6] = "Crosshair";
|
|
13
|
-
Cursor[Cursor["Text"] = 7] = "Text";
|
|
14
|
-
Cursor[Cursor["VerticalText"] = 8] = "VerticalText";
|
|
15
|
-
Cursor[Cursor["Alias"] = 9] = "Alias";
|
|
16
|
-
Cursor[Cursor["Copy"] = 10] = "Copy";
|
|
17
|
-
Cursor[Cursor["Move"] = 11] = "Move";
|
|
18
|
-
Cursor[Cursor["NotAllowed"] = 12] = "NotAllowed";
|
|
19
|
-
Cursor[Cursor["Grab"] = 13] = "Grab";
|
|
20
|
-
Cursor[Cursor["Grabbing"] = 14] = "Grabbing";
|
|
21
|
-
Cursor[Cursor["ColResize"] = 15] = "ColResize";
|
|
22
|
-
Cursor[Cursor["RowResize"] = 16] = "RowResize";
|
|
23
|
-
Cursor[Cursor["EastWestResize"] = 17] = "EastWestResize";
|
|
24
|
-
Cursor[Cursor["NorthSouthResize"] = 18] = "NorthSouthResize";
|
|
25
|
-
Cursor[Cursor["NorthEastSouthWestResize"] = 19] = "NorthEastSouthWestResize";
|
|
26
|
-
Cursor[Cursor["NorthWestSouthEastResize"] = 20] = "NorthWestSouthEastResize";
|
|
27
|
-
Cursor[Cursor["ZoomIn"] = 21] = "ZoomIn";
|
|
28
|
-
Cursor[Cursor["ZoomOut"] = 22] = "ZoomOut";
|
|
29
|
-
// Windows additional cursors
|
|
30
|
-
Cursor[Cursor["UpArrow"] = 23] = "UpArrow";
|
|
31
|
-
Cursor[Cursor["Pin"] = 24] = "Pin";
|
|
32
|
-
Cursor[Cursor["Person"] = 25] = "Person";
|
|
33
|
-
Cursor[Cursor["Pen"] = 26] = "Pen";
|
|
34
|
-
Cursor[Cursor["Cd"] = 27] = "Cd";
|
|
35
|
-
// Panning cursors
|
|
36
|
-
Cursor[Cursor["PanMiddle"] = 28] = "PanMiddle";
|
|
37
|
-
Cursor[Cursor["PanMiddleHorizontal"] = 29] = "PanMiddleHorizontal";
|
|
38
|
-
Cursor[Cursor["PanMiddleVertical"] = 30] = "PanMiddleVertical";
|
|
39
|
-
Cursor[Cursor["PanEast"] = 31] = "PanEast";
|
|
40
|
-
Cursor[Cursor["PanNorth"] = 32] = "PanNorth";
|
|
41
|
-
Cursor[Cursor["PanNorthEast"] = 33] = "PanNorthEast";
|
|
42
|
-
Cursor[Cursor["PanNorthWest"] = 34] = "PanNorthWest";
|
|
43
|
-
Cursor[Cursor["PanSouth"] = 35] = "PanSouth";
|
|
44
|
-
Cursor[Cursor["PanSouthEast"] = 36] = "PanSouthEast";
|
|
45
|
-
Cursor[Cursor["PanSouthWest"] = 37] = "PanSouthWest";
|
|
46
|
-
Cursor[Cursor["PanWest"] = 38] = "PanWest";
|
|
47
|
-
})(Cursor || (Cursor = {}));
|
|
48
|
-
;
|
package/lib/util.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Key, PercentLength } from './index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Utility function to create `PercentLength` using percent relative value.
|
|
4
|
-
*/
|
|
5
|
-
export declare function percent(value: number): PercentLength;
|
|
6
|
-
/**
|
|
7
|
-
* Utilty function to create `PercentLength` using absolute length value.
|
|
8
|
-
*/
|
|
9
|
-
export declare function length(value: number): PercentLength;
|
|
10
|
-
/**
|
|
11
|
-
* Utility function to create `Key` using key code and optional extended flag.
|
|
12
|
-
*/
|
|
13
|
-
export declare function key(code: number, extended?: boolean): Key;
|
package/lib/util.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility function to create `PercentLength` using percent relative value.
|
|
3
|
-
*/
|
|
4
|
-
export function percent(value) {
|
|
5
|
-
return {
|
|
6
|
-
ty: 'percent',
|
|
7
|
-
value,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Utilty function to create `PercentLength` using absolute length value.
|
|
12
|
-
*/
|
|
13
|
-
export function length(value) {
|
|
14
|
-
return {
|
|
15
|
-
ty: 'length',
|
|
16
|
-
value,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Utility function to create `Key` using key code and optional extended flag.
|
|
21
|
-
*/
|
|
22
|
-
export function key(code, extended = false) {
|
|
23
|
-
return {
|
|
24
|
-
code,
|
|
25
|
-
extended,
|
|
26
|
-
};
|
|
27
|
-
}
|