@mulsense/xnew 0.2.0 → 0.2.2
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/addons/xpixi.d.ts +3 -0
- package/dist/addons/xpixi.js +5 -0
- package/dist/addons/xpixi.mjs +5 -0
- package/dist/types/audio/audio.d.ts +27 -8
- package/dist/types/basics/Audio.d.ts +2 -0
- package/dist/types/basics/Input.d.ts +7 -1
- package/dist/types/core/audio.d.ts +64 -0
- package/dist/types/core/time.d.ts +1 -1
- package/dist/types/core/unit.d.ts +1 -1
- package/dist/types/icons/icons.d.ts +327 -0
- package/dist/types/index.d.ts +11 -2
- package/dist/xnew.d.ts +339 -8
- package/dist/xnew.js +1456 -92
- package/dist/xnew.mjs +1456 -92
- package/package.json +1 -1
package/dist/addons/xpixi.d.ts
CHANGED
package/dist/addons/xpixi.js
CHANGED
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
var _a;
|
|
51
51
|
return (_a = xnew.context('xpixi.root')) === null || _a === void 0 ? void 0 : _a.canvas;
|
|
52
52
|
},
|
|
53
|
+
capture({ rect } = {}) {
|
|
54
|
+
const root = xnew.context('xpixi.root');
|
|
55
|
+
const frame = rect ? new PIXI__namespace.Rectangle(rect[0], rect[1], rect[2], rect[3]) : new PIXI__namespace.Rectangle(0, 0, root.canvas.width, root.canvas.height);
|
|
56
|
+
return root.renderer.extract.base64({ target: root.scene, frame });
|
|
57
|
+
}
|
|
53
58
|
};
|
|
54
59
|
function Root(self, { canvas }) {
|
|
55
60
|
const root = {};
|
package/dist/addons/xpixi.mjs
CHANGED
|
@@ -28,6 +28,11 @@ var xpixi = {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return (_a = xnew.context('xpixi.root')) === null || _a === void 0 ? void 0 : _a.canvas;
|
|
30
30
|
},
|
|
31
|
+
capture({ rect } = {}) {
|
|
32
|
+
const root = xnew.context('xpixi.root');
|
|
33
|
+
const frame = rect ? new PIXI.Rectangle(rect[0], rect[1], rect[2], rect[3]) : new PIXI.Rectangle(0, 0, root.canvas.width, root.canvas.height);
|
|
34
|
+
return root.renderer.extract.base64({ target: root.scene, frame });
|
|
35
|
+
}
|
|
31
36
|
};
|
|
32
37
|
function Root(self, { canvas }) {
|
|
33
38
|
const root = {};
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const context: AudioContext;
|
|
2
|
+
export declare const master: GainNode;
|
|
3
|
+
export type AudioFilePlayOptions = {
|
|
4
|
+
offset?: number;
|
|
5
|
+
fade?: number;
|
|
6
|
+
loop?: boolean;
|
|
5
7
|
};
|
|
6
|
-
type
|
|
8
|
+
export type AudioFilePauseOptions = {
|
|
9
|
+
fade?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare class AudioFile {
|
|
12
|
+
private buffer?;
|
|
13
|
+
private source;
|
|
14
|
+
private amp;
|
|
15
|
+
private fade;
|
|
16
|
+
promise: Promise<void>;
|
|
17
|
+
played: number | null;
|
|
18
|
+
constructor(path: string);
|
|
19
|
+
set volume(value: number);
|
|
20
|
+
get volume(): number;
|
|
21
|
+
play({ offset, fade, loop }?: AudioFilePlayOptions): void;
|
|
22
|
+
pause({ fade }?: AudioFilePauseOptions): number | undefined;
|
|
23
|
+
clear(): void;
|
|
24
|
+
}
|
|
25
|
+
export type SynthesizerOptions = {
|
|
7
26
|
oscillator: OscillatorOptions;
|
|
8
27
|
amp: AmpOptions;
|
|
9
28
|
filter?: FilterOptions;
|
|
@@ -35,9 +54,9 @@ type LFO = {
|
|
|
35
54
|
type: OscillatorType;
|
|
36
55
|
rate: number;
|
|
37
56
|
};
|
|
38
|
-
declare class Synthesizer {
|
|
39
|
-
props:
|
|
40
|
-
constructor(props:
|
|
57
|
+
export declare class Synthesizer {
|
|
58
|
+
props: SynthesizerOptions;
|
|
59
|
+
constructor(props: SynthesizerOptions);
|
|
41
60
|
press(frequency: number | string, duration?: number | string, wait?: number): {
|
|
42
61
|
release: () => void;
|
|
43
62
|
} | undefined;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { Unit } from '../core/unit';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function InputRange(frame: Unit, { value, min, max, step, ...attributes }?: {
|
|
3
|
+
value?: number | string;
|
|
4
|
+
min?: number | string;
|
|
5
|
+
max?: number | string;
|
|
6
|
+
step?: number | string;
|
|
7
|
+
attributes?: Object;
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const context: AudioContext;
|
|
2
|
+
export declare const master: GainNode;
|
|
3
|
+
export type AudioFilePlayOptions = {
|
|
4
|
+
offset?: number;
|
|
5
|
+
fade?: number;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type AudioFilePauseOptions = {
|
|
9
|
+
fade?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare class AudioFile {
|
|
12
|
+
private buffer?;
|
|
13
|
+
private source;
|
|
14
|
+
private amp;
|
|
15
|
+
private fade;
|
|
16
|
+
promise: Promise<void>;
|
|
17
|
+
played: number | null;
|
|
18
|
+
constructor(path: string);
|
|
19
|
+
set volume(value: number);
|
|
20
|
+
get volume(): number;
|
|
21
|
+
play({ offset, fade, loop }?: AudioFilePlayOptions): void;
|
|
22
|
+
pause({ fade }?: AudioFilePauseOptions): number | undefined;
|
|
23
|
+
clear(): void;
|
|
24
|
+
}
|
|
25
|
+
export type SynthesizerOptions = {
|
|
26
|
+
oscillator: OscillatorOptions;
|
|
27
|
+
amp: AmpOptions;
|
|
28
|
+
filter?: FilterOptions;
|
|
29
|
+
reverb?: ReverbOptions;
|
|
30
|
+
bpm?: number;
|
|
31
|
+
};
|
|
32
|
+
type OscillatorOptions = {
|
|
33
|
+
type: OscillatorType;
|
|
34
|
+
envelope?: Envelope;
|
|
35
|
+
LFO?: LFO;
|
|
36
|
+
};
|
|
37
|
+
type FilterOptions = {
|
|
38
|
+
type: BiquadFilterType;
|
|
39
|
+
cutoff: number;
|
|
40
|
+
};
|
|
41
|
+
type AmpOptions = {
|
|
42
|
+
envelope: Envelope;
|
|
43
|
+
};
|
|
44
|
+
type ReverbOptions = {
|
|
45
|
+
time: number;
|
|
46
|
+
mix: number;
|
|
47
|
+
};
|
|
48
|
+
type Envelope = {
|
|
49
|
+
amount: number;
|
|
50
|
+
ADSR: [number, number, number, number];
|
|
51
|
+
};
|
|
52
|
+
type LFO = {
|
|
53
|
+
amount: number;
|
|
54
|
+
type: OscillatorType;
|
|
55
|
+
rate: number;
|
|
56
|
+
};
|
|
57
|
+
export declare class Synthesizer {
|
|
58
|
+
props: SynthesizerOptions;
|
|
59
|
+
constructor(props: SynthesizerOptions);
|
|
60
|
+
press(frequency: number | string, duration?: number | string, wait?: number): {
|
|
61
|
+
release: () => void;
|
|
62
|
+
} | undefined;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -44,7 +44,6 @@ export declare class Unit {
|
|
|
44
44
|
stop(): void;
|
|
45
45
|
finalize(): void;
|
|
46
46
|
reboot(): void;
|
|
47
|
-
append(...args: any[]): void;
|
|
48
47
|
static initialize(unit: Unit, anchor: UnitElement | null): void;
|
|
49
48
|
static finalize(unit: Unit): void;
|
|
50
49
|
static nest(unit: Unit, tag: string): UnitElement;
|
|
@@ -82,6 +81,7 @@ export declare class UnitTimer {
|
|
|
82
81
|
constructor(options: TimerOptions);
|
|
83
82
|
clear(): void;
|
|
84
83
|
timeout(timeout: Function, duration?: number): this;
|
|
84
|
+
iteration(timeout: Function, duration?: number, iterations?: number): this;
|
|
85
85
|
transition(transition: Function, duration?: number, easing?: string): this;
|
|
86
86
|
static execute(timer: UnitTimer, options: TimerOptions): void;
|
|
87
87
|
static next(timer: UnitTimer): void;
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { Unit } from '../core/unit';
|
|
2
|
+
export declare const icons: {
|
|
3
|
+
AcademicCap(unit: Unit, props: Object): void;
|
|
4
|
+
AdjustmentsHorizontal(unit: Unit, props: Object): void;
|
|
5
|
+
AdjustmentsVertical(unit: Unit, props: Object): void;
|
|
6
|
+
ArchiveBox(unit: Unit, props: Object): void;
|
|
7
|
+
ArchiveBoxArrowDown(unit: Unit, props: Object): void;
|
|
8
|
+
ArchiveBoxXMark(unit: Unit, props: Object): void;
|
|
9
|
+
ArrowDown(unit: Unit, props: Object): void;
|
|
10
|
+
ArrowDownCircle(unit: Unit, props: Object): void;
|
|
11
|
+
ArrowDownLeft(unit: Unit, props: Object): void;
|
|
12
|
+
ArrowDownOnSquare(unit: Unit, props: Object): void;
|
|
13
|
+
ArrowDownOnSquareStack(unit: Unit, props: Object): void;
|
|
14
|
+
ArrowDownRight(unit: Unit, props: Object): void;
|
|
15
|
+
ArrowDownTray(unit: Unit, props: Object): void;
|
|
16
|
+
ArrowLeft(unit: Unit, props: Object): void;
|
|
17
|
+
ArrowLeftCircle(unit: Unit, props: Object): void;
|
|
18
|
+
ArrowLeftEndOnRectangle(unit: Unit, props: Object): void;
|
|
19
|
+
ArrowLeftOnRectangle(unit: Unit, props: Object): void;
|
|
20
|
+
ArrowLeftStartOnRectangle(unit: Unit, props: Object): void;
|
|
21
|
+
ArrowLongDown(unit: Unit, props: Object): void;
|
|
22
|
+
ArrowLongLeft(unit: Unit, props: Object): void;
|
|
23
|
+
ArrowLongRight(unit: Unit, props: Object): void;
|
|
24
|
+
ArrowLongUp(unit: Unit, props: Object): void;
|
|
25
|
+
ArrowPath(unit: Unit, props: Object): void;
|
|
26
|
+
ArrowPathRoundedSquare(unit: Unit, props: Object): void;
|
|
27
|
+
ArrowRight(unit: Unit, props: Object): void;
|
|
28
|
+
ArrowRightCircle(unit: Unit, props: Object): void;
|
|
29
|
+
ArrowRightEndOnRectangle(unit: Unit, props: Object): void;
|
|
30
|
+
ArrowRightOnRectangle(unit: Unit, props: Object): void;
|
|
31
|
+
ArrowRightStartOnRectangle(unit: Unit, props: Object): void;
|
|
32
|
+
ArrowSmallDown(unit: Unit, props: Object): void;
|
|
33
|
+
ArrowSmallLeft(unit: Unit, props: Object): void;
|
|
34
|
+
ArrowSmallRight(unit: Unit, props: Object): void;
|
|
35
|
+
ArrowSmallUp(unit: Unit, props: Object): void;
|
|
36
|
+
ArrowTopRightOnSquare(unit: Unit, props: Object): void;
|
|
37
|
+
ArrowTrendingDown(unit: Unit, props: Object): void;
|
|
38
|
+
ArrowTrendingUp(unit: Unit, props: Object): void;
|
|
39
|
+
ArrowTurnDownLeft(unit: Unit, props: Object): void;
|
|
40
|
+
ArrowTurnDownRight(unit: Unit, props: Object): void;
|
|
41
|
+
ArrowTurnLeftDown(unit: Unit, props: Object): void;
|
|
42
|
+
ArrowTurnLeftUp(unit: Unit, props: Object): void;
|
|
43
|
+
ArrowTurnRightDown(unit: Unit, props: Object): void;
|
|
44
|
+
ArrowTurnRightUp(unit: Unit, props: Object): void;
|
|
45
|
+
ArrowTurnUpLeft(unit: Unit, props: Object): void;
|
|
46
|
+
ArrowTurnUpRight(unit: Unit, props: Object): void;
|
|
47
|
+
ArrowUp(unit: Unit, props: Object): void;
|
|
48
|
+
ArrowUpCircle(unit: Unit, props: Object): void;
|
|
49
|
+
ArrowUpLeft(unit: Unit, props: Object): void;
|
|
50
|
+
ArrowUpOnSquare(unit: Unit, props: Object): void;
|
|
51
|
+
ArrowUpOnSquareStack(unit: Unit, props: Object): void;
|
|
52
|
+
ArrowUpRight(unit: Unit, props: Object): void;
|
|
53
|
+
ArrowUpTray(unit: Unit, props: Object): void;
|
|
54
|
+
ArrowUturnDown(unit: Unit, props: Object): void;
|
|
55
|
+
ArrowUturnLeft(unit: Unit, props: Object): void;
|
|
56
|
+
ArrowUturnRight(unit: Unit, props: Object): void;
|
|
57
|
+
ArrowUturnUp(unit: Unit, props: Object): void;
|
|
58
|
+
ArrowsPointingIn(unit: Unit, props: Object): void;
|
|
59
|
+
ArrowsPointingOut(unit: Unit, props: Object): void;
|
|
60
|
+
ArrowsRightLeft(unit: Unit, props: Object): void;
|
|
61
|
+
ArrowsUpDown(unit: Unit, props: Object): void;
|
|
62
|
+
AtSymbol(unit: Unit, props: Object): void;
|
|
63
|
+
Backspace(unit: Unit, props: Object): void;
|
|
64
|
+
Backward(unit: Unit, props: Object): void;
|
|
65
|
+
Banknotes(unit: Unit, props: Object): void;
|
|
66
|
+
Bars2(unit: Unit, props: Object): void;
|
|
67
|
+
Bars3(unit: Unit, props: Object): void;
|
|
68
|
+
Bars3BottomLeft(unit: Unit, props: Object): void;
|
|
69
|
+
Bars3BottomRight(unit: Unit, props: Object): void;
|
|
70
|
+
Bars3CenterLeft(unit: Unit, props: Object): void;
|
|
71
|
+
Bars4(unit: Unit, props: Object): void;
|
|
72
|
+
BarsArrowDown(unit: Unit, props: Object): void;
|
|
73
|
+
BarsArrowUp(unit: Unit, props: Object): void;
|
|
74
|
+
Battery0(unit: Unit, props: Object): void;
|
|
75
|
+
Battery100(unit: Unit, props: Object): void;
|
|
76
|
+
Battery50(unit: Unit, props: Object): void;
|
|
77
|
+
Beaker(unit: Unit, props: Object): void;
|
|
78
|
+
Bell(unit: Unit, props: Object): void;
|
|
79
|
+
BellAlert(unit: Unit, props: Object): void;
|
|
80
|
+
BellSlash(unit: Unit, props: Object): void;
|
|
81
|
+
BellSnooze(unit: Unit, props: Object): void;
|
|
82
|
+
Bold(unit: Unit, props: Object): void;
|
|
83
|
+
Bolt(unit: Unit, props: Object): void;
|
|
84
|
+
BoltSlash(unit: Unit, props: Object): void;
|
|
85
|
+
BookOpen(unit: Unit, props: Object): void;
|
|
86
|
+
Bookmark(unit: Unit, props: Object): void;
|
|
87
|
+
BookmarkSlash(unit: Unit, props: Object): void;
|
|
88
|
+
BookmarkSquare(unit: Unit, props: Object): void;
|
|
89
|
+
Briefcase(unit: Unit, props: Object): void;
|
|
90
|
+
BugAnt(unit: Unit, props: Object): void;
|
|
91
|
+
BuildingLibrary(unit: Unit, props: Object): void;
|
|
92
|
+
BuildingOffice(unit: Unit, props: Object): void;
|
|
93
|
+
BuildingOffice2(unit: Unit, props: Object): void;
|
|
94
|
+
BuildingStorefront(unit: Unit, props: Object): void;
|
|
95
|
+
Cake(unit: Unit, props: Object): void;
|
|
96
|
+
Calculator(unit: Unit, props: Object): void;
|
|
97
|
+
Calendar(unit: Unit, props: Object): void;
|
|
98
|
+
CalendarDateRange(unit: Unit, props: Object): void;
|
|
99
|
+
CalendarDays(unit: Unit, props: Object): void;
|
|
100
|
+
Camera(unit: Unit, props: Object): void;
|
|
101
|
+
ChartBar(unit: Unit, props: Object): void;
|
|
102
|
+
ChartBarSquare(unit: Unit, props: Object): void;
|
|
103
|
+
ChartPie(unit: Unit, props: Object): void;
|
|
104
|
+
ChatBubbleBottomCenter(unit: Unit, props: Object): void;
|
|
105
|
+
ChatBubbleBottomCenterText(unit: Unit, props: Object): void;
|
|
106
|
+
ChatBubbleLeft(unit: Unit, props: Object): void;
|
|
107
|
+
ChatBubbleLeftEllipsis(unit: Unit, props: Object): void;
|
|
108
|
+
ChatBubbleLeftRight(unit: Unit, props: Object): void;
|
|
109
|
+
ChatBubbleOvalLeft(unit: Unit, props: Object): void;
|
|
110
|
+
ChatBubbleOvalLeftEllipsis(unit: Unit, props: Object): void;
|
|
111
|
+
Check(unit: Unit, props: Object): void;
|
|
112
|
+
CheckBadge(unit: Unit, props: Object): void;
|
|
113
|
+
CheckCircle(unit: Unit, props: Object): void;
|
|
114
|
+
ChevronDoubleDown(unit: Unit, props: Object): void;
|
|
115
|
+
ChevronDoubleLeft(unit: Unit, props: Object): void;
|
|
116
|
+
ChevronDoubleRight(unit: Unit, props: Object): void;
|
|
117
|
+
ChevronDoubleUp(unit: Unit, props: Object): void;
|
|
118
|
+
ChevronDown(unit: Unit, props: Object): void;
|
|
119
|
+
ChevronLeft(unit: Unit, props: Object): void;
|
|
120
|
+
ChevronRight(unit: Unit, props: Object): void;
|
|
121
|
+
ChevronUp(unit: Unit, props: Object): void;
|
|
122
|
+
ChevronUpDown(unit: Unit, props: Object): void;
|
|
123
|
+
CircleStack(unit: Unit, props: Object): void;
|
|
124
|
+
Clipboard(unit: Unit, props: Object): void;
|
|
125
|
+
ClipboardDocument(unit: Unit, props: Object): void;
|
|
126
|
+
ClipboardDocumentCheck(unit: Unit, props: Object): void;
|
|
127
|
+
ClipboardDocumentList(unit: Unit, props: Object): void;
|
|
128
|
+
Clock(unit: Unit, props: Object): void;
|
|
129
|
+
Cloud(unit: Unit, props: Object): void;
|
|
130
|
+
CloudArrowDown(unit: Unit, props: Object): void;
|
|
131
|
+
CloudArrowUp(unit: Unit, props: Object): void;
|
|
132
|
+
CodeBracket(unit: Unit, props: Object): void;
|
|
133
|
+
CodeBracketSquare(unit: Unit, props: Object): void;
|
|
134
|
+
Cog(unit: Unit, props: Object): void;
|
|
135
|
+
Cog6Tooth(unit: Unit, props: Object): void;
|
|
136
|
+
Cog8Tooth(unit: Unit, props: Object): void;
|
|
137
|
+
CommandLine(unit: Unit, props: Object): void;
|
|
138
|
+
ComputerDesktop(unit: Unit, props: Object): void;
|
|
139
|
+
CpuChip(unit: Unit, props: Object): void;
|
|
140
|
+
CreditCard(unit: Unit, props: Object): void;
|
|
141
|
+
Cube(unit: Unit, props: Object): void;
|
|
142
|
+
CubeTransparent(unit: Unit, props: Object): void;
|
|
143
|
+
CurrencyBangladeshi(unit: Unit, props: Object): void;
|
|
144
|
+
CurrencyDollar(unit: Unit, props: Object): void;
|
|
145
|
+
CurrencyEuro(unit: Unit, props: Object): void;
|
|
146
|
+
CurrencyPound(unit: Unit, props: Object): void;
|
|
147
|
+
CurrencyRupee(unit: Unit, props: Object): void;
|
|
148
|
+
CurrencyYen(unit: Unit, props: Object): void;
|
|
149
|
+
CursorArrowRays(unit: Unit, props: Object): void;
|
|
150
|
+
CursorArrowRipple(unit: Unit, props: Object): void;
|
|
151
|
+
DevicePhoneMobile(unit: Unit, props: Object): void;
|
|
152
|
+
DeviceTablet(unit: Unit, props: Object): void;
|
|
153
|
+
Divide(unit: Unit, props: Object): void;
|
|
154
|
+
Document(unit: Unit, props: Object): void;
|
|
155
|
+
DocumentArrowDown(unit: Unit, props: Object): void;
|
|
156
|
+
DocumentArrowUp(unit: Unit, props: Object): void;
|
|
157
|
+
DocumentChartBar(unit: Unit, props: Object): void;
|
|
158
|
+
DocumentCheck(unit: Unit, props: Object): void;
|
|
159
|
+
DocumentCurrencyBangladeshi(unit: Unit, props: Object): void;
|
|
160
|
+
DocumentCurrencyDollar(unit: Unit, props: Object): void;
|
|
161
|
+
DocumentCurrencyEuro(unit: Unit, props: Object): void;
|
|
162
|
+
DocumentCurrencyPound(unit: Unit, props: Object): void;
|
|
163
|
+
DocumentCurrencyRupee(unit: Unit, props: Object): void;
|
|
164
|
+
DocumentCurrencyYen(unit: Unit, props: Object): void;
|
|
165
|
+
DocumentDuplicate(unit: Unit, props: Object): void;
|
|
166
|
+
DocumentMagnifyingGlass(unit: Unit, props: Object): void;
|
|
167
|
+
DocumentMinus(unit: Unit, props: Object): void;
|
|
168
|
+
DocumentPlus(unit: Unit, props: Object): void;
|
|
169
|
+
DocumentText(unit: Unit, props: Object): void;
|
|
170
|
+
EllipsisHorizontal(unit: Unit, props: Object): void;
|
|
171
|
+
EllipsisHorizontalCircle(unit: Unit, props: Object): void;
|
|
172
|
+
EllipsisVertical(unit: Unit, props: Object): void;
|
|
173
|
+
Envelope(unit: Unit, props: Object): void;
|
|
174
|
+
EnvelopeOpen(unit: Unit, props: Object): void;
|
|
175
|
+
Equals(unit: Unit, props: Object): void;
|
|
176
|
+
ExclamationCircle(unit: Unit, props: Object): void;
|
|
177
|
+
ExclamationTriangle(unit: Unit, props: Object): void;
|
|
178
|
+
Eye(unit: Unit, props: Object): void;
|
|
179
|
+
EyeDropper(unit: Unit, props: Object): void;
|
|
180
|
+
EyeSlash(unit: Unit, props: Object): void;
|
|
181
|
+
FaceFrown(unit: Unit, props: Object): void;
|
|
182
|
+
FaceSmile(unit: Unit, props: Object): void;
|
|
183
|
+
Film(unit: Unit, props: Object): void;
|
|
184
|
+
FingerPrint(unit: Unit, props: Object): void;
|
|
185
|
+
Fire(unit: Unit, props: Object): void;
|
|
186
|
+
Flag(unit: Unit, props: Object): void;
|
|
187
|
+
Folder(unit: Unit, props: Object): void;
|
|
188
|
+
FolderArrowDown(unit: Unit, props: Object): void;
|
|
189
|
+
FolderMinus(unit: Unit, props: Object): void;
|
|
190
|
+
FolderOpen(unit: Unit, props: Object): void;
|
|
191
|
+
FolderPlus(unit: Unit, props: Object): void;
|
|
192
|
+
Forward(unit: Unit, props: Object): void;
|
|
193
|
+
Funnel(unit: Unit, props: Object): void;
|
|
194
|
+
Gif(unit: Unit, props: Object): void;
|
|
195
|
+
Gift(unit: Unit, props: Object): void;
|
|
196
|
+
GiftTop(unit: Unit, props: Object): void;
|
|
197
|
+
GlobeAlt(unit: Unit, props: Object): void;
|
|
198
|
+
GlobeAmericas(unit: Unit, props: Object): void;
|
|
199
|
+
GlobeAsiaAustralia(unit: Unit, props: Object): void;
|
|
200
|
+
GlobeEuropeAfrica(unit: Unit, props: Object): void;
|
|
201
|
+
H1(unit: Unit, props: Object): void;
|
|
202
|
+
H2(unit: Unit, props: Object): void;
|
|
203
|
+
H3(unit: Unit, props: Object): void;
|
|
204
|
+
HandRaised(unit: Unit, props: Object): void;
|
|
205
|
+
HandThumbDown(unit: Unit, props: Object): void;
|
|
206
|
+
HandThumbUp(unit: Unit, props: Object): void;
|
|
207
|
+
Hashtag(unit: Unit, props: Object): void;
|
|
208
|
+
Heart(unit: Unit, props: Object): void;
|
|
209
|
+
Home(unit: Unit, props: Object): void;
|
|
210
|
+
HomeModern(unit: Unit, props: Object): void;
|
|
211
|
+
Identification(unit: Unit, props: Object): void;
|
|
212
|
+
Inbox(unit: Unit, props: Object): void;
|
|
213
|
+
InboxArrowDown(unit: Unit, props: Object): void;
|
|
214
|
+
InboxStack(unit: Unit, props: Object): void;
|
|
215
|
+
InformationCircle(unit: Unit, props: Object): void;
|
|
216
|
+
Italic(unit: Unit, props: Object): void;
|
|
217
|
+
Key(unit: Unit, props: Object): void;
|
|
218
|
+
Language(unit: Unit, props: Object): void;
|
|
219
|
+
Lifebuoy(unit: Unit, props: Object): void;
|
|
220
|
+
LightBulb(unit: Unit, props: Object): void;
|
|
221
|
+
Link(unit: Unit, props: Object): void;
|
|
222
|
+
LinkSlash(unit: Unit, props: Object): void;
|
|
223
|
+
ListBullet(unit: Unit, props: Object): void;
|
|
224
|
+
LockClosed(unit: Unit, props: Object): void;
|
|
225
|
+
LockOpen(unit: Unit, props: Object): void;
|
|
226
|
+
MagnifyingGlass(unit: Unit, props: Object): void;
|
|
227
|
+
MagnifyingGlassCircle(unit: Unit, props: Object): void;
|
|
228
|
+
MagnifyingGlassMinus(unit: Unit, props: Object): void;
|
|
229
|
+
MagnifyingGlassPlus(unit: Unit, props: Object): void;
|
|
230
|
+
Map(unit: Unit, props: Object): void;
|
|
231
|
+
MapPin(unit: Unit, props: Object): void;
|
|
232
|
+
Megaphone(unit: Unit, props: Object): void;
|
|
233
|
+
Microphone(unit: Unit, props: Object): void;
|
|
234
|
+
Minus(unit: Unit, props: Object): void;
|
|
235
|
+
MinusCircle(unit: Unit, props: Object): void;
|
|
236
|
+
MinusSmall(unit: Unit, props: Object): void;
|
|
237
|
+
Moon(unit: Unit, props: Object): void;
|
|
238
|
+
MusicalNote(unit: Unit, props: Object): void;
|
|
239
|
+
Newspaper(unit: Unit, props: Object): void;
|
|
240
|
+
NoSymbol(unit: Unit, props: Object): void;
|
|
241
|
+
NumberedList(unit: Unit, props: Object): void;
|
|
242
|
+
PaintBrush(unit: Unit, props: Object): void;
|
|
243
|
+
PaperAirplane(unit: Unit, props: Object): void;
|
|
244
|
+
PaperClip(unit: Unit, props: Object): void;
|
|
245
|
+
Pause(unit: Unit, props: Object): void;
|
|
246
|
+
PauseCircle(unit: Unit, props: Object): void;
|
|
247
|
+
Pencil(unit: Unit, props: Object): void;
|
|
248
|
+
PencilSquare(unit: Unit, props: Object): void;
|
|
249
|
+
PercentBadge(unit: Unit, props: Object): void;
|
|
250
|
+
Phone(unit: Unit, props: Object): void;
|
|
251
|
+
PhoneArrowDownLeft(unit: Unit, props: Object): void;
|
|
252
|
+
PhoneArrowUpRight(unit: Unit, props: Object): void;
|
|
253
|
+
PhoneXMark(unit: Unit, props: Object): void;
|
|
254
|
+
Photo(unit: Unit, props: Object): void;
|
|
255
|
+
Play(unit: Unit, props: Object): void;
|
|
256
|
+
PlayCircle(unit: Unit, props: Object): void;
|
|
257
|
+
PlayPause(unit: Unit, props: Object): void;
|
|
258
|
+
Plus(unit: Unit, props: Object): void;
|
|
259
|
+
PlusCircle(unit: Unit, props: Object): void;
|
|
260
|
+
PlusSmall(unit: Unit, props: Object): void;
|
|
261
|
+
Power(unit: Unit, props: Object): void;
|
|
262
|
+
PresentationChartBar(unit: Unit, props: Object): void;
|
|
263
|
+
PresentationChartLine(unit: Unit, props: Object): void;
|
|
264
|
+
Printer(unit: Unit, props: Object): void;
|
|
265
|
+
PuzzlePiece(unit: Unit, props: Object): void;
|
|
266
|
+
QrCode(unit: Unit, props: Object): void;
|
|
267
|
+
QuestionMarkCircle(unit: Unit, props: Object): void;
|
|
268
|
+
QueueList(unit: Unit, props: Object): void;
|
|
269
|
+
Radio(unit: Unit, props: Object): void;
|
|
270
|
+
ReceiptPercent(unit: Unit, props: Object): void;
|
|
271
|
+
ReceiptRefund(unit: Unit, props: Object): void;
|
|
272
|
+
RectangleGroup(unit: Unit, props: Object): void;
|
|
273
|
+
RectangleStack(unit: Unit, props: Object): void;
|
|
274
|
+
RocketLaunch(unit: Unit, props: Object): void;
|
|
275
|
+
Rss(unit: Unit, props: Object): void;
|
|
276
|
+
Scale(unit: Unit, props: Object): void;
|
|
277
|
+
Scissors(unit: Unit, props: Object): void;
|
|
278
|
+
Server(unit: Unit, props: Object): void;
|
|
279
|
+
ServerStack(unit: Unit, props: Object): void;
|
|
280
|
+
Share(unit: Unit, props: Object): void;
|
|
281
|
+
ShieldCheck(unit: Unit, props: Object): void;
|
|
282
|
+
ShieldExclamation(unit: Unit, props: Object): void;
|
|
283
|
+
ShoppingBag(unit: Unit, props: Object): void;
|
|
284
|
+
ShoppingCart(unit: Unit, props: Object): void;
|
|
285
|
+
Signal(unit: Unit, props: Object): void;
|
|
286
|
+
SignalSlash(unit: Unit, props: Object): void;
|
|
287
|
+
Slash(unit: Unit, props: Object): void;
|
|
288
|
+
Sparkles(unit: Unit, props: Object): void;
|
|
289
|
+
SpeakerWave(unit: Unit, props: Object): void;
|
|
290
|
+
SpeakerXMark(unit: Unit, props: Object): void;
|
|
291
|
+
Square2Stack(unit: Unit, props: Object): void;
|
|
292
|
+
Square3Stack3d(unit: Unit, props: Object): void;
|
|
293
|
+
Squares2x2(unit: Unit, props: Object): void;
|
|
294
|
+
SquaresPlus(unit: Unit, props: Object): void;
|
|
295
|
+
Star(unit: Unit, props: Object): void;
|
|
296
|
+
Stop(unit: Unit, props: Object): void;
|
|
297
|
+
StopCircle(unit: Unit, props: Object): void;
|
|
298
|
+
Strikethrough(unit: Unit, props: Object): void;
|
|
299
|
+
Sun(unit: Unit, props: Object): void;
|
|
300
|
+
Swatch(unit: Unit, props: Object): void;
|
|
301
|
+
TableCells(unit: Unit, props: Object): void;
|
|
302
|
+
Tag(unit: Unit, props: Object): void;
|
|
303
|
+
Ticket(unit: Unit, props: Object): void;
|
|
304
|
+
Trash(unit: Unit, props: Object): void;
|
|
305
|
+
Trophy(unit: Unit, props: Object): void;
|
|
306
|
+
Truck(unit: Unit, props: Object): void;
|
|
307
|
+
Tv(unit: Unit, props: Object): void;
|
|
308
|
+
Underline(unit: Unit, props: Object): void;
|
|
309
|
+
User(unit: Unit, props: Object): void;
|
|
310
|
+
UserCircle(unit: Unit, props: Object): void;
|
|
311
|
+
UserGroup(unit: Unit, props: Object): void;
|
|
312
|
+
UserMinus(unit: Unit, props: Object): void;
|
|
313
|
+
UserPlus(unit: Unit, props: Object): void;
|
|
314
|
+
Users(unit: Unit, props: Object): void;
|
|
315
|
+
Variable(unit: Unit, props: Object): void;
|
|
316
|
+
VideoCamera(unit: Unit, props: Object): void;
|
|
317
|
+
VideoCameraSlash(unit: Unit, props: Object): void;
|
|
318
|
+
ViewColumns(unit: Unit, props: Object): void;
|
|
319
|
+
ViewfinderCircle(unit: Unit, props: Object): void;
|
|
320
|
+
Wallet(unit: Unit, props: Object): void;
|
|
321
|
+
Wifi(unit: Unit, props: Object): void;
|
|
322
|
+
Window(unit: Unit, props: Object): void;
|
|
323
|
+
Wrench(unit: Unit, props: Object): void;
|
|
324
|
+
WrenchScrewdriver(unit: Unit, props: Object): void;
|
|
325
|
+
XCircle(unit: Unit, props: Object): void;
|
|
326
|
+
XMark(unit: Unit, props: Object): void;
|
|
327
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { xnew as base } from './core/xnew';
|
|
2
|
-
import { Unit } from './core/unit';
|
|
2
|
+
import { Unit, UnitPromise } from './core/unit';
|
|
3
3
|
import { AccordionFrame, AccordionHeader, AccordionBullet, AccordionContent } from './basics/Accordion';
|
|
4
4
|
import { ResizeEvent, PointerEvent, KeyboardEvent } from './basics/Event';
|
|
5
5
|
import { Screen } from './basics/Screen';
|
|
@@ -7,7 +7,8 @@ import { ModalFrame, ModalContent } from './basics/Modal';
|
|
|
7
7
|
import { TabFrame, TabButton, TabContent } from './basics/Tab';
|
|
8
8
|
import { DragFrame, DragTarget } from './basics/Drag';
|
|
9
9
|
import { AnalogStick, DirectionalPad } from './basics/Controller';
|
|
10
|
-
import {
|
|
10
|
+
import { VolumeController } from './basics/Audio';
|
|
11
|
+
import { icons } from './icons/icons';
|
|
11
12
|
declare const basics: {
|
|
12
13
|
Screen: typeof Screen;
|
|
13
14
|
PointerEvent: typeof PointerEvent;
|
|
@@ -26,6 +27,13 @@ declare const basics: {
|
|
|
26
27
|
DragTarget: typeof DragTarget;
|
|
27
28
|
AnalogStick: typeof AnalogStick;
|
|
28
29
|
DirectionalPad: typeof DirectionalPad;
|
|
30
|
+
VolumeController: typeof VolumeController;
|
|
31
|
+
};
|
|
32
|
+
import { Synthesizer, SynthesizerOptions } from './audio/audio';
|
|
33
|
+
declare const audio: {
|
|
34
|
+
load(path: string): UnitPromise;
|
|
35
|
+
synthesizer(props: SynthesizerOptions): Synthesizer;
|
|
36
|
+
volume: number;
|
|
29
37
|
};
|
|
30
38
|
declare namespace xnew {
|
|
31
39
|
type Unit = InstanceType<typeof Unit>;
|
|
@@ -33,5 +41,6 @@ declare namespace xnew {
|
|
|
33
41
|
declare const xnew: (typeof base) & {
|
|
34
42
|
basics: typeof basics;
|
|
35
43
|
audio: typeof audio;
|
|
44
|
+
icons: typeof icons;
|
|
36
45
|
};
|
|
37
46
|
export default xnew;
|