@gjsify/dom-elements 0.3.13 → 0.3.15
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/lib/esm/_virtual/_rolldown/runtime.js +18 -0
- package/lib/esm/attr.js +37 -30
- package/lib/esm/character-data.js +61 -54
- package/lib/esm/comment.js +26 -19
- package/lib/esm/document-fragment.js +116 -109
- package/lib/esm/document.js +75 -81
- package/lib/esm/dom-matrix.js +158 -123
- package/lib/esm/dom-token-list.js +114 -108
- package/lib/esm/element.js +244 -246
- package/lib/esm/font-face.js +94 -89
- package/lib/esm/gst-time.js +17 -6
- package/lib/esm/html-canvas-element.js +82 -75
- package/lib/esm/html-element.js +424 -424
- package/lib/esm/html-image-element.js +226 -225
- package/lib/esm/html-media-element.js +117 -114
- package/lib/esm/html-video-element.js +110 -108
- package/lib/esm/image.js +27 -21
- package/lib/esm/index.js +13 -45
- package/lib/esm/intersection-observer.js +22 -18
- package/lib/esm/location-stub.js +25 -23
- package/lib/esm/match-media.js +18 -19
- package/lib/esm/mutation-observer.js +18 -13
- package/lib/esm/named-node-map.js +121 -121
- package/lib/esm/namespace-uri.js +9 -8
- package/lib/esm/node-list.js +39 -33
- package/lib/esm/node-type.js +13 -12
- package/lib/esm/node.js +241 -246
- package/lib/esm/property-symbol.js +36 -30
- package/lib/esm/register/canvas.js +11 -7
- package/lib/esm/register/document.js +19 -18
- package/lib/esm/register/font-face.js +10 -6
- package/lib/esm/register/helpers.js +14 -12
- package/lib/esm/register/image.js +4 -0
- package/lib/esm/register/location.js +4 -0
- package/lib/esm/register/match-media.js +4 -0
- package/lib/esm/register/navigator.js +4 -1
- package/lib/esm/register/observers.js +5 -1
- package/lib/esm/resize-observer.js +15 -12
- package/lib/esm/text.js +56 -49
- package/lib/esm/types/index.js +3 -3
- package/package.json +11 -11
package/lib/esm/html-element.js
CHANGED
|
@@ -1,426 +1,426 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { propertyEventListeners } from "./property-symbol.js";
|
|
2
2
|
import { Element } from "./element.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
export {
|
|
424
|
-
CSSStyleDeclaration,
|
|
425
|
-
HTMLElement
|
|
3
|
+
import { Event } from "@gjsify/dom-events";
|
|
4
|
+
|
|
5
|
+
//#region src/html-element.ts
|
|
6
|
+
/**
|
|
7
|
+
* Minimal CSSStyleDeclaration stub — stores property strings but has no effect.
|
|
8
|
+
* GTK manages layout; CSS values written here (e.g. by three.js WebGLRenderer.setSize)
|
|
9
|
+
* are silently accepted and ignored.
|
|
10
|
+
*/
|
|
11
|
+
var CSSStyleDeclaration = class {
|
|
12
|
+
constructor() {
|
|
13
|
+
this._cssText = "";
|
|
14
|
+
}
|
|
15
|
+
/** Setting cssText parses individual declarations and stores them as camelCase properties,
|
|
16
|
+
* matching browser behavior for feature-detection checks like Excalibur's rgbaSupport. */
|
|
17
|
+
get cssText() {
|
|
18
|
+
return this._cssText;
|
|
19
|
+
}
|
|
20
|
+
set cssText(value) {
|
|
21
|
+
this._cssText = value;
|
|
22
|
+
for (const decl of value.split(";")) {
|
|
23
|
+
const colon = decl.indexOf(":");
|
|
24
|
+
if (colon === -1) continue;
|
|
25
|
+
const prop = decl.slice(0, colon).trim();
|
|
26
|
+
const val = decl.slice(colon + 1).trim();
|
|
27
|
+
if (!prop) continue;
|
|
28
|
+
const camel = prop.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
29
|
+
this[camel] = val;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
setProperty(property, value, _priority) {
|
|
33
|
+
this[property] = value;
|
|
34
|
+
}
|
|
35
|
+
getPropertyValue(property) {
|
|
36
|
+
const v = this[property];
|
|
37
|
+
return typeof v === "string" ? v : "";
|
|
38
|
+
}
|
|
39
|
+
removeProperty(property) {
|
|
40
|
+
const v = this[property];
|
|
41
|
+
delete this[property];
|
|
42
|
+
return typeof v === "string" ? v : "";
|
|
43
|
+
}
|
|
44
|
+
getPropertyPriority(_property) {
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* HTML Element base class.
|
|
50
|
+
*
|
|
51
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
|
|
52
|
+
*/
|
|
53
|
+
var HTMLElement = class extends Element {
|
|
54
|
+
constructor(..._args) {
|
|
55
|
+
super(..._args);
|
|
56
|
+
this.style = new CSSStyleDeclaration();
|
|
57
|
+
}
|
|
58
|
+
get dataset() {
|
|
59
|
+
const el = this;
|
|
60
|
+
return new Proxy({}, {
|
|
61
|
+
get(_target, prop) {
|
|
62
|
+
if (typeof prop !== "string") return undefined;
|
|
63
|
+
const attr = "data-" + prop.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase());
|
|
64
|
+
const value = el.getAttribute(attr);
|
|
65
|
+
return value ?? undefined;
|
|
66
|
+
},
|
|
67
|
+
set(_target, prop, value) {
|
|
68
|
+
if (typeof prop !== "string") return false;
|
|
69
|
+
const attr = "data-" + prop.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase());
|
|
70
|
+
el.setAttribute(attr, String(value));
|
|
71
|
+
return true;
|
|
72
|
+
},
|
|
73
|
+
deleteProperty(_target, prop) {
|
|
74
|
+
if (typeof prop !== "string") return false;
|
|
75
|
+
const attr = "data-" + prop.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase());
|
|
76
|
+
el.removeAttribute(attr);
|
|
77
|
+
return true;
|
|
78
|
+
},
|
|
79
|
+
has(_target, prop) {
|
|
80
|
+
if (typeof prop !== "string") return false;
|
|
81
|
+
const attr = "data-" + prop.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase());
|
|
82
|
+
return el.hasAttribute(attr);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
get title() {
|
|
87
|
+
return this.getAttribute("title") ?? "";
|
|
88
|
+
}
|
|
89
|
+
set title(value) {
|
|
90
|
+
this.setAttribute("title", value);
|
|
91
|
+
}
|
|
92
|
+
get lang() {
|
|
93
|
+
return this.getAttribute("lang") ?? "";
|
|
94
|
+
}
|
|
95
|
+
set lang(value) {
|
|
96
|
+
this.setAttribute("lang", value);
|
|
97
|
+
}
|
|
98
|
+
get dir() {
|
|
99
|
+
return this.getAttribute("dir") ?? "";
|
|
100
|
+
}
|
|
101
|
+
set dir(value) {
|
|
102
|
+
this.setAttribute("dir", value);
|
|
103
|
+
}
|
|
104
|
+
get accessKey() {
|
|
105
|
+
return this.getAttribute("accesskey") ?? "";
|
|
106
|
+
}
|
|
107
|
+
set accessKey(value) {
|
|
108
|
+
this.setAttribute("accesskey", value);
|
|
109
|
+
}
|
|
110
|
+
get accessKeyLabel() {
|
|
111
|
+
return this.getAttribute("accesskey") ?? "";
|
|
112
|
+
}
|
|
113
|
+
get hidden() {
|
|
114
|
+
return this.hasAttribute("hidden");
|
|
115
|
+
}
|
|
116
|
+
set hidden(value) {
|
|
117
|
+
if (value) {
|
|
118
|
+
this.setAttribute("hidden", "");
|
|
119
|
+
} else {
|
|
120
|
+
this.removeAttribute("hidden");
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
get draggable() {
|
|
124
|
+
return this.getAttribute("draggable") === "true";
|
|
125
|
+
}
|
|
126
|
+
set draggable(value) {
|
|
127
|
+
this.setAttribute("draggable", String(value));
|
|
128
|
+
}
|
|
129
|
+
get spellcheck() {
|
|
130
|
+
const attr = this.getAttribute("spellcheck");
|
|
131
|
+
if (attr === "false") return false;
|
|
132
|
+
return attr !== null;
|
|
133
|
+
}
|
|
134
|
+
set spellcheck(value) {
|
|
135
|
+
this.setAttribute("spellcheck", String(value));
|
|
136
|
+
}
|
|
137
|
+
get translate() {
|
|
138
|
+
const attr = this.getAttribute("translate");
|
|
139
|
+
return attr !== "no";
|
|
140
|
+
}
|
|
141
|
+
set translate(value) {
|
|
142
|
+
this.setAttribute("translate", value ? "yes" : "no");
|
|
143
|
+
}
|
|
144
|
+
get tabIndex() {
|
|
145
|
+
const attr = this.getAttribute("tabindex");
|
|
146
|
+
return attr !== null ? Number(attr) : -1;
|
|
147
|
+
}
|
|
148
|
+
set tabIndex(value) {
|
|
149
|
+
this.setAttribute("tabindex", String(value));
|
|
150
|
+
}
|
|
151
|
+
get contentEditable() {
|
|
152
|
+
const attr = this.getAttribute("contenteditable");
|
|
153
|
+
if (attr === "" || attr === "true") return "true";
|
|
154
|
+
if (attr === "false") return "false";
|
|
155
|
+
return "inherit";
|
|
156
|
+
}
|
|
157
|
+
set contentEditable(value) {
|
|
158
|
+
if (value === "inherit") {
|
|
159
|
+
this.removeAttribute("contenteditable");
|
|
160
|
+
} else {
|
|
161
|
+
this.setAttribute("contenteditable", value);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
get isContentEditable() {
|
|
165
|
+
return this.contentEditable === "true";
|
|
166
|
+
}
|
|
167
|
+
get offsetHeight() {
|
|
168
|
+
return 0;
|
|
169
|
+
}
|
|
170
|
+
get offsetWidth() {
|
|
171
|
+
return 0;
|
|
172
|
+
}
|
|
173
|
+
get offsetLeft() {
|
|
174
|
+
return 0;
|
|
175
|
+
}
|
|
176
|
+
get offsetTop() {
|
|
177
|
+
return 0;
|
|
178
|
+
}
|
|
179
|
+
get offsetParent() {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
get clientHeight() {
|
|
183
|
+
return 0;
|
|
184
|
+
}
|
|
185
|
+
get clientWidth() {
|
|
186
|
+
return 0;
|
|
187
|
+
}
|
|
188
|
+
get clientLeft() {
|
|
189
|
+
return 0;
|
|
190
|
+
}
|
|
191
|
+
get clientTop() {
|
|
192
|
+
return 0;
|
|
193
|
+
}
|
|
194
|
+
get scrollHeight() {
|
|
195
|
+
return 0;
|
|
196
|
+
}
|
|
197
|
+
get scrollWidth() {
|
|
198
|
+
return 0;
|
|
199
|
+
}
|
|
200
|
+
get scrollTop() {
|
|
201
|
+
return 0;
|
|
202
|
+
}
|
|
203
|
+
set scrollTop(_value) {}
|
|
204
|
+
get scrollLeft() {
|
|
205
|
+
return 0;
|
|
206
|
+
}
|
|
207
|
+
set scrollLeft(_value) {}
|
|
208
|
+
getBoundingClientRect() {
|
|
209
|
+
const w = this.clientWidth;
|
|
210
|
+
const h = this.clientHeight;
|
|
211
|
+
return {
|
|
212
|
+
x: 0,
|
|
213
|
+
y: 0,
|
|
214
|
+
top: 0,
|
|
215
|
+
left: 0,
|
|
216
|
+
right: w,
|
|
217
|
+
bottom: h,
|
|
218
|
+
width: w,
|
|
219
|
+
height: h,
|
|
220
|
+
toJSON() {
|
|
221
|
+
return this;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
click() {
|
|
226
|
+
this.dispatchEvent(new Event("click", {
|
|
227
|
+
bubbles: true,
|
|
228
|
+
cancelable: true
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
blur() {
|
|
232
|
+
this.dispatchEvent(new Event("blur"));
|
|
233
|
+
}
|
|
234
|
+
focus() {
|
|
235
|
+
this.dispatchEvent(new Event("focus"));
|
|
236
|
+
}
|
|
237
|
+
get onclick() {
|
|
238
|
+
return this[propertyEventListeners].get("onclick") ?? null;
|
|
239
|
+
}
|
|
240
|
+
set onclick(value) {
|
|
241
|
+
this[propertyEventListeners].set("onclick", value);
|
|
242
|
+
}
|
|
243
|
+
get ondblclick() {
|
|
244
|
+
return this[propertyEventListeners].get("ondblclick") ?? null;
|
|
245
|
+
}
|
|
246
|
+
set ondblclick(value) {
|
|
247
|
+
this[propertyEventListeners].set("ondblclick", value);
|
|
248
|
+
}
|
|
249
|
+
get onload() {
|
|
250
|
+
return this[propertyEventListeners].get("onload") ?? null;
|
|
251
|
+
}
|
|
252
|
+
set onload(value) {
|
|
253
|
+
this[propertyEventListeners].set("onload", value);
|
|
254
|
+
}
|
|
255
|
+
get onerror() {
|
|
256
|
+
return this[propertyEventListeners].get("onerror") ?? null;
|
|
257
|
+
}
|
|
258
|
+
set onerror(value) {
|
|
259
|
+
this[propertyEventListeners].set("onerror", value);
|
|
260
|
+
}
|
|
261
|
+
get onabort() {
|
|
262
|
+
return this[propertyEventListeners].get("onabort") ?? null;
|
|
263
|
+
}
|
|
264
|
+
set onabort(value) {
|
|
265
|
+
this[propertyEventListeners].set("onabort", value);
|
|
266
|
+
}
|
|
267
|
+
get onfocus() {
|
|
268
|
+
return this[propertyEventListeners].get("onfocus") ?? null;
|
|
269
|
+
}
|
|
270
|
+
set onfocus(value) {
|
|
271
|
+
this[propertyEventListeners].set("onfocus", value);
|
|
272
|
+
}
|
|
273
|
+
get onblur() {
|
|
274
|
+
return this[propertyEventListeners].get("onblur") ?? null;
|
|
275
|
+
}
|
|
276
|
+
set onblur(value) {
|
|
277
|
+
this[propertyEventListeners].set("onblur", value);
|
|
278
|
+
}
|
|
279
|
+
get onchange() {
|
|
280
|
+
return this[propertyEventListeners].get("onchange") ?? null;
|
|
281
|
+
}
|
|
282
|
+
set onchange(value) {
|
|
283
|
+
this[propertyEventListeners].set("onchange", value);
|
|
284
|
+
}
|
|
285
|
+
get oninput() {
|
|
286
|
+
return this[propertyEventListeners].get("oninput") ?? null;
|
|
287
|
+
}
|
|
288
|
+
set oninput(value) {
|
|
289
|
+
this[propertyEventListeners].set("oninput", value);
|
|
290
|
+
}
|
|
291
|
+
get onsubmit() {
|
|
292
|
+
return this[propertyEventListeners].get("onsubmit") ?? null;
|
|
293
|
+
}
|
|
294
|
+
set onsubmit(value) {
|
|
295
|
+
this[propertyEventListeners].set("onsubmit", value);
|
|
296
|
+
}
|
|
297
|
+
get onreset() {
|
|
298
|
+
return this[propertyEventListeners].get("onreset") ?? null;
|
|
299
|
+
}
|
|
300
|
+
set onreset(value) {
|
|
301
|
+
this[propertyEventListeners].set("onreset", value);
|
|
302
|
+
}
|
|
303
|
+
get onscroll() {
|
|
304
|
+
return this[propertyEventListeners].get("onscroll") ?? null;
|
|
305
|
+
}
|
|
306
|
+
set onscroll(value) {
|
|
307
|
+
this[propertyEventListeners].set("onscroll", value);
|
|
308
|
+
}
|
|
309
|
+
get onresize() {
|
|
310
|
+
return this[propertyEventListeners].get("onresize") ?? null;
|
|
311
|
+
}
|
|
312
|
+
set onresize(value) {
|
|
313
|
+
this[propertyEventListeners].set("onresize", value);
|
|
314
|
+
}
|
|
315
|
+
get onmousedown() {
|
|
316
|
+
return this[propertyEventListeners].get("onmousedown") ?? null;
|
|
317
|
+
}
|
|
318
|
+
set onmousedown(value) {
|
|
319
|
+
this[propertyEventListeners].set("onmousedown", value);
|
|
320
|
+
}
|
|
321
|
+
get onmouseup() {
|
|
322
|
+
return this[propertyEventListeners].get("onmouseup") ?? null;
|
|
323
|
+
}
|
|
324
|
+
set onmouseup(value) {
|
|
325
|
+
this[propertyEventListeners].set("onmouseup", value);
|
|
326
|
+
}
|
|
327
|
+
get onmousemove() {
|
|
328
|
+
return this[propertyEventListeners].get("onmousemove") ?? null;
|
|
329
|
+
}
|
|
330
|
+
set onmousemove(value) {
|
|
331
|
+
this[propertyEventListeners].set("onmousemove", value);
|
|
332
|
+
}
|
|
333
|
+
get onmouseover() {
|
|
334
|
+
return this[propertyEventListeners].get("onmouseover") ?? null;
|
|
335
|
+
}
|
|
336
|
+
set onmouseover(value) {
|
|
337
|
+
this[propertyEventListeners].set("onmouseover", value);
|
|
338
|
+
}
|
|
339
|
+
get onmouseout() {
|
|
340
|
+
return this[propertyEventListeners].get("onmouseout") ?? null;
|
|
341
|
+
}
|
|
342
|
+
set onmouseout(value) {
|
|
343
|
+
this[propertyEventListeners].set("onmouseout", value);
|
|
344
|
+
}
|
|
345
|
+
get onmouseenter() {
|
|
346
|
+
return this[propertyEventListeners].get("onmouseenter") ?? null;
|
|
347
|
+
}
|
|
348
|
+
set onmouseenter(value) {
|
|
349
|
+
this[propertyEventListeners].set("onmouseenter", value);
|
|
350
|
+
}
|
|
351
|
+
get onmouseleave() {
|
|
352
|
+
return this[propertyEventListeners].get("onmouseleave") ?? null;
|
|
353
|
+
}
|
|
354
|
+
set onmouseleave(value) {
|
|
355
|
+
this[propertyEventListeners].set("onmouseleave", value);
|
|
356
|
+
}
|
|
357
|
+
get oncontextmenu() {
|
|
358
|
+
return this[propertyEventListeners].get("oncontextmenu") ?? null;
|
|
359
|
+
}
|
|
360
|
+
set oncontextmenu(value) {
|
|
361
|
+
this[propertyEventListeners].set("oncontextmenu", value);
|
|
362
|
+
}
|
|
363
|
+
get onwheel() {
|
|
364
|
+
return this[propertyEventListeners].get("onwheel") ?? null;
|
|
365
|
+
}
|
|
366
|
+
set onwheel(value) {
|
|
367
|
+
this[propertyEventListeners].set("onwheel", value);
|
|
368
|
+
}
|
|
369
|
+
get onkeydown() {
|
|
370
|
+
return this[propertyEventListeners].get("onkeydown") ?? null;
|
|
371
|
+
}
|
|
372
|
+
set onkeydown(value) {
|
|
373
|
+
this[propertyEventListeners].set("onkeydown", value);
|
|
374
|
+
}
|
|
375
|
+
get onkeyup() {
|
|
376
|
+
return this[propertyEventListeners].get("onkeyup") ?? null;
|
|
377
|
+
}
|
|
378
|
+
set onkeyup(value) {
|
|
379
|
+
this[propertyEventListeners].set("onkeyup", value);
|
|
380
|
+
}
|
|
381
|
+
get ontouchstart() {
|
|
382
|
+
return this[propertyEventListeners].get("ontouchstart") ?? null;
|
|
383
|
+
}
|
|
384
|
+
set ontouchstart(value) {
|
|
385
|
+
this[propertyEventListeners].set("ontouchstart", value);
|
|
386
|
+
}
|
|
387
|
+
get ontouchend() {
|
|
388
|
+
return this[propertyEventListeners].get("ontouchend") ?? null;
|
|
389
|
+
}
|
|
390
|
+
set ontouchend(value) {
|
|
391
|
+
this[propertyEventListeners].set("ontouchend", value);
|
|
392
|
+
}
|
|
393
|
+
get ontouchmove() {
|
|
394
|
+
return this[propertyEventListeners].get("ontouchmove") ?? null;
|
|
395
|
+
}
|
|
396
|
+
set ontouchmove(value) {
|
|
397
|
+
this[propertyEventListeners].set("ontouchmove", value);
|
|
398
|
+
}
|
|
399
|
+
get onpointerdown() {
|
|
400
|
+
return this[propertyEventListeners].get("onpointerdown") ?? null;
|
|
401
|
+
}
|
|
402
|
+
set onpointerdown(value) {
|
|
403
|
+
this[propertyEventListeners].set("onpointerdown", value);
|
|
404
|
+
}
|
|
405
|
+
get onpointerup() {
|
|
406
|
+
return this[propertyEventListeners].get("onpointerup") ?? null;
|
|
407
|
+
}
|
|
408
|
+
set onpointerup(value) {
|
|
409
|
+
this[propertyEventListeners].set("onpointerup", value);
|
|
410
|
+
}
|
|
411
|
+
get onpointermove() {
|
|
412
|
+
return this[propertyEventListeners].get("onpointermove") ?? null;
|
|
413
|
+
}
|
|
414
|
+
set onpointermove(value) {
|
|
415
|
+
this[propertyEventListeners].set("onpointermove", value);
|
|
416
|
+
}
|
|
417
|
+
cloneNode(deep = false) {
|
|
418
|
+
return super.cloneNode(deep);
|
|
419
|
+
}
|
|
420
|
+
get [Symbol.toStringTag]() {
|
|
421
|
+
return "HTMLElement";
|
|
422
|
+
}
|
|
426
423
|
};
|
|
424
|
+
|
|
425
|
+
//#endregion
|
|
426
|
+
export { CSSStyleDeclaration, HTMLElement };
|