verstak 0.24.125 → 0.24.128

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.
Files changed (39) hide show
  1. package/build/dist/source/archive/RxDomV1.js +1 -1
  2. package/build/dist/source/html/El.d.ts +22 -24
  3. package/build/dist/source/html/El.js +35 -35
  4. package/build/dist/source/html/Elements.d.ts +3 -2
  5. package/build/dist/source/html/Elements.js +12 -9
  6. package/build/dist/source/html/Handlers.d.ts +6 -0
  7. package/build/dist/source/html/Handlers.js +55 -0
  8. package/build/dist/source/html/HtmlApiExt.d.ts +2 -0
  9. package/build/dist/source/html/HtmlApiExt.js +11 -1
  10. package/build/dist/source/html/HtmlElements.js +174 -174
  11. package/build/dist/source/html/api.d.ts +1 -1
  12. package/build/dist/source/html/api.js +1 -1
  13. package/build/dist/source/html/sensors/BasePointerSensor.d.ts +5 -5
  14. package/build/dist/source/html/sensors/BasePointerSensor.js +11 -11
  15. package/build/dist/source/html/sensors/ButtonSensor.d.ts +6 -6
  16. package/build/dist/source/html/sensors/ButtonSensor.js +39 -48
  17. package/build/dist/source/html/sensors/DataForSensor.d.ts +1 -0
  18. package/build/dist/source/html/sensors/DataForSensor.js +1 -0
  19. package/build/dist/source/html/sensors/FocusSensor.d.ts +2 -2
  20. package/build/dist/source/html/sensors/FocusSensor.js +14 -17
  21. package/build/dist/source/html/sensors/HoverSensor.d.ts +15 -4
  22. package/build/dist/source/html/sensors/HoverSensor.js +65 -24
  23. package/build/dist/source/html/sensors/HtmlDragSensor.d.ts +2 -2
  24. package/build/dist/source/html/sensors/HtmlDragSensor.js +25 -34
  25. package/build/dist/source/html/sensors/HtmlElementSensor.d.ts +3 -3
  26. package/build/dist/source/html/sensors/HtmlElementSensor.js +7 -4
  27. package/build/dist/source/html/sensors/HtmlSensors.d.ts +23 -11
  28. package/build/dist/source/html/sensors/HtmlSensors.js +81 -35
  29. package/build/dist/source/html/sensors/KeyboardSensor.d.ts +17 -17
  30. package/build/dist/source/html/sensors/KeyboardSensor.js +42 -51
  31. package/build/dist/source/html/sensors/PointerSensor.d.ts +3 -2
  32. package/build/dist/source/html/sensors/PointerSensor.js +28 -38
  33. package/build/dist/source/html/sensors/ScrollSensor.d.ts +12 -0
  34. package/build/dist/source/html/sensors/ScrollSensor.js +62 -0
  35. package/build/dist/source/html/sensors/WheelSensor.d.ts +2 -2
  36. package/build/dist/source/html/sensors/WheelSensor.js +11 -20
  37. package/package.json +8 -8
  38. package/build/dist/source/html/ReactingFocuser.d.ts +0 -2
  39. package/build/dist/source/html/ReactingFocuser.js +0 -20
@@ -2,7 +2,7 @@ import { RxNode } from "reactronic";
2
2
  import { ElKind } from "./El.js";
3
3
  import { HtmlElementDriver, StaticDriver, SvgElementDriver } from "./HtmlDriver.js";
4
4
  export function HtmlBody(declaration, preset) {
5
- const driver = new StaticDriver(global.document.body, "HtmlBody", false, el => el.kind = ElKind.Section);
5
+ const driver = new StaticDriver(global.document.body, "HtmlBody", false, el => el.kind = ElKind.section);
6
6
  return RxNode.acquire(driver, declaration, preset);
7
7
  }
8
8
  export function A(declaration, preset) { return RxNode.acquire(HtmlTags.a, declaration, preset); }
@@ -179,179 +179,179 @@ export function TSpan(declaration, preset) { return RxNode.acquire(SvgTags.tspan
179
179
  export function Use(declaration, preset) { return RxNode.acquire(SvgTags.use, declaration, preset); }
180
180
  export function View(declaration, preset) { return RxNode.acquire(SvgTags.view, declaration, preset); }
181
181
  const HtmlTags = {
182
- a: new HtmlElementDriver("a", false, el => el.kind = ElKind.Native),
183
- abbr: new HtmlElementDriver("abbr", false, el => el.kind = ElKind.Native),
184
- address: new HtmlElementDriver("address", false, el => el.kind = ElKind.Native),
185
- area: new HtmlElementDriver("area", false, el => el.kind = ElKind.Native),
186
- article: new HtmlElementDriver("article", false, el => el.kind = ElKind.Native),
187
- aside: new HtmlElementDriver("aside", false, el => el.kind = ElKind.Native),
188
- audio: new HtmlElementDriver("audio", false, el => el.kind = ElKind.Native),
189
- b: new HtmlElementDriver("b", false, el => el.kind = ElKind.Native),
190
- base: new HtmlElementDriver("base", false, el => el.kind = ElKind.Native),
191
- bdi: new HtmlElementDriver("bdi", false, el => el.kind = ElKind.Native),
192
- bdo: new HtmlElementDriver("bdo", false, el => el.kind = ElKind.Native),
193
- big: new HtmlElementDriver("big", false, el => el.kind = ElKind.Native),
194
- blockquote: new HtmlElementDriver("blockquote", false, el => el.kind = ElKind.Native),
195
- body: new HtmlElementDriver("body", false, el => el.kind = ElKind.Native),
196
- br: new HtmlElementDriver("br", false, el => el.kind = ElKind.Native),
197
- button: new HtmlElementDriver("button", false, el => el.kind = ElKind.Native),
198
- canvas: new HtmlElementDriver("canvas", false, el => el.kind = ElKind.Native),
199
- caption: new HtmlElementDriver("caption", false, el => el.kind = ElKind.Native),
200
- cite: new HtmlElementDriver("cite", false, el => el.kind = ElKind.Native),
201
- code: new HtmlElementDriver("code", false, el => el.kind = ElKind.Native),
202
- col: new HtmlElementDriver("col", false, el => el.kind = ElKind.Native),
203
- colgroup: new HtmlElementDriver("colgroup", false, el => el.kind = ElKind.Native),
204
- data: new HtmlElementDriver("data", false, el => el.kind = ElKind.Native),
205
- datalist: new HtmlElementDriver("datalist", false, el => el.kind = ElKind.Native),
206
- dd: new HtmlElementDriver("dd", false, el => el.kind = ElKind.Native),
207
- del: new HtmlElementDriver("del", false, el => el.kind = ElKind.Native),
208
- details: new HtmlElementDriver("details", false, el => el.kind = ElKind.Native),
209
- dfn: new HtmlElementDriver("dfn", false, el => el.kind = ElKind.Native),
210
- div: new HtmlElementDriver("div", false, el => el.kind = ElKind.Native),
211
- dl: new HtmlElementDriver("dl", false, el => el.kind = ElKind.Native),
212
- dt: new HtmlElementDriver("dt", false, el => el.kind = ElKind.Native),
213
- em: new HtmlElementDriver("em", false, el => el.kind = ElKind.Native),
214
- embed: new HtmlElementDriver("embed", false, el => el.kind = ElKind.Native),
215
- fieldset: new HtmlElementDriver("fieldset", false, el => el.kind = ElKind.Native),
216
- figcaption: new HtmlElementDriver("figcaption", false, el => el.kind = ElKind.Native),
217
- figure: new HtmlElementDriver("figure", false, el => el.kind = ElKind.Native),
218
- footer: new HtmlElementDriver("footer", false, el => el.kind = ElKind.Native),
219
- form: new HtmlElementDriver("form", false, el => el.kind = ElKind.Native),
220
- h1: new HtmlElementDriver("h1", false, el => el.kind = ElKind.Native),
221
- h2: new HtmlElementDriver("h2", false, el => el.kind = ElKind.Native),
222
- h3: new HtmlElementDriver("h3", false, el => el.kind = ElKind.Native),
223
- h4: new HtmlElementDriver("h4", false, el => el.kind = ElKind.Native),
224
- h5: new HtmlElementDriver("h5", false, el => el.kind = ElKind.Native),
225
- h6: new HtmlElementDriver("h6", false, el => el.kind = ElKind.Native),
226
- head: new HtmlElementDriver("head", false, el => el.kind = ElKind.Native),
227
- header: new HtmlElementDriver("header", false, el => el.kind = ElKind.Native),
228
- hgroup: new HtmlElementDriver("hgroup", false, el => el.kind = ElKind.Native),
229
- hr: new HtmlElementDriver("hr", false, el => el.kind = ElKind.Native),
230
- html: new HtmlElementDriver("html", false, el => el.kind = ElKind.Native),
231
- i: new HtmlElementDriver("i", false, el => el.kind = ElKind.Native),
232
- iframe: new HtmlElementDriver("iframe", false, el => el.kind = ElKind.Native),
233
- img: new HtmlElementDriver("img", false, el => el.kind = ElKind.Native),
234
- input: new HtmlElementDriver("input", false, el => el.kind = ElKind.Native),
235
- ins: new HtmlElementDriver("ins", false, el => el.kind = ElKind.Native),
236
- kbd: new HtmlElementDriver("kbd", false, el => el.kind = ElKind.Native),
237
- keygen: new HtmlElementDriver("keygen", false, el => el.kind = ElKind.Native),
238
- label: new HtmlElementDriver("label", false, el => el.kind = ElKind.Native),
239
- legend: new HtmlElementDriver("legend", false, el => el.kind = ElKind.Native),
240
- li: new HtmlElementDriver("li", false, el => el.kind = ElKind.Native),
241
- link: new HtmlElementDriver("link", false, el => el.kind = ElKind.Native),
242
- main: new HtmlElementDriver("main", false, el => el.kind = ElKind.Native),
243
- map: new HtmlElementDriver("map", false, el => el.kind = ElKind.Native),
244
- mark: new HtmlElementDriver("mark", false, el => el.kind = ElKind.Native),
245
- menu: new HtmlElementDriver("menu", false, el => el.kind = ElKind.Native),
246
- menuitem: new HtmlElementDriver("menuitem", false, el => el.kind = ElKind.Native),
247
- meta: new HtmlElementDriver("meta", false, el => el.kind = ElKind.Native),
248
- meter: new HtmlElementDriver("meter", false, el => el.kind = ElKind.Native),
249
- nav: new HtmlElementDriver("nav", false, el => el.kind = ElKind.Native),
250
- noindex: new HtmlElementDriver("noindex", false, el => el.kind = ElKind.Native),
251
- noscript: new HtmlElementDriver("noscript", false, el => el.kind = ElKind.Native),
252
- object: new HtmlElementDriver("object", false, el => el.kind = ElKind.Native),
253
- ol: new HtmlElementDriver("ol", false, el => el.kind = ElKind.Native),
254
- optgroup: new HtmlElementDriver("optgroup", false, el => el.kind = ElKind.Native),
255
- option: new HtmlElementDriver("option", false, el => el.kind = ElKind.Native),
256
- output: new HtmlElementDriver("output", false, el => el.kind = ElKind.Native),
257
- p: new HtmlElementDriver("p", false, el => el.kind = ElKind.Native),
258
- param: new HtmlElementDriver("param", false, el => el.kind = ElKind.Native),
259
- picture: new HtmlElementDriver("picture", false, el => el.kind = ElKind.Native),
260
- pre: new HtmlElementDriver("pre", false, el => el.kind = ElKind.Native),
261
- progress: new HtmlElementDriver("progress", false, el => el.kind = ElKind.Native),
262
- q: new HtmlElementDriver("q", false, el => el.kind = ElKind.Native),
263
- rp: new HtmlElementDriver("rp", false, el => el.kind = ElKind.Native),
264
- rt: new HtmlElementDriver("rt", false, el => el.kind = ElKind.Native),
265
- ruby: new HtmlElementDriver("ruby", false, el => el.kind = ElKind.Native),
266
- s: new HtmlElementDriver("s", false, el => el.kind = ElKind.Native),
267
- samp: new HtmlElementDriver("samp", false, el => el.kind = ElKind.Native),
268
- script: new HtmlElementDriver("script", false, el => el.kind = ElKind.Native),
269
- section: new HtmlElementDriver("section", false, el => el.kind = ElKind.Native),
270
- select: new HtmlElementDriver("select", false, el => el.kind = ElKind.Native),
271
- small: new HtmlElementDriver("small", false, el => el.kind = ElKind.Native),
272
- source: new HtmlElementDriver("source", false, el => el.kind = ElKind.Native),
273
- span: new HtmlElementDriver("span", false, el => el.kind = ElKind.Native),
274
- strong: new HtmlElementDriver("strong", false, el => el.kind = ElKind.Native),
275
- style: new HtmlElementDriver("style", false, el => el.kind = ElKind.Native),
276
- sub: new HtmlElementDriver("sub", false, el => el.kind = ElKind.Native),
277
- summary: new HtmlElementDriver("summary", false, el => el.kind = ElKind.Native),
278
- sup: new HtmlElementDriver("sup", false, el => el.kind = ElKind.Native),
279
- table: new HtmlElementDriver("table", false, el => el.kind = ElKind.Native),
280
- template: new HtmlElementDriver("template", false, el => el.kind = ElKind.Native),
281
- tbody: new HtmlElementDriver("tbody", false, el => el.kind = ElKind.Native),
282
- td: new HtmlElementDriver("td", false, el => el.kind = ElKind.Native),
283
- textarea: new HtmlElementDriver("textarea", false, el => el.kind = ElKind.Native),
284
- tfoot: new HtmlElementDriver("tfoot", false, el => el.kind = ElKind.Native),
285
- th: new HtmlElementDriver("th", false, el => el.kind = ElKind.Native),
286
- thead: new HtmlElementDriver("thead", false, el => el.kind = ElKind.Native),
287
- time: new HtmlElementDriver("time", false, el => el.kind = ElKind.Native),
288
- title: new HtmlElementDriver("title", false, el => el.kind = ElKind.Native),
289
- tr: new HtmlElementDriver("tr", false, el => el.kind = ElKind.Native),
290
- track: new HtmlElementDriver("track", false, el => el.kind = ElKind.Native),
291
- u: new HtmlElementDriver("u", false, el => el.kind = ElKind.Native),
292
- ul: new HtmlElementDriver("ul", false, el => el.kind = ElKind.Native),
293
- var: new HtmlElementDriver("var", false, el => el.kind = ElKind.Native),
294
- video: new HtmlElementDriver("video", false, el => el.kind = ElKind.Native),
295
- wbr: new HtmlElementDriver("wbr", false, el => el.kind = ElKind.Native),
182
+ a: new HtmlElementDriver("a", false, el => el.kind = ElKind.native),
183
+ abbr: new HtmlElementDriver("abbr", false, el => el.kind = ElKind.native),
184
+ address: new HtmlElementDriver("address", false, el => el.kind = ElKind.native),
185
+ area: new HtmlElementDriver("area", false, el => el.kind = ElKind.native),
186
+ article: new HtmlElementDriver("article", false, el => el.kind = ElKind.native),
187
+ aside: new HtmlElementDriver("aside", false, el => el.kind = ElKind.native),
188
+ audio: new HtmlElementDriver("audio", false, el => el.kind = ElKind.native),
189
+ b: new HtmlElementDriver("b", false, el => el.kind = ElKind.native),
190
+ base: new HtmlElementDriver("base", false, el => el.kind = ElKind.native),
191
+ bdi: new HtmlElementDriver("bdi", false, el => el.kind = ElKind.native),
192
+ bdo: new HtmlElementDriver("bdo", false, el => el.kind = ElKind.native),
193
+ big: new HtmlElementDriver("big", false, el => el.kind = ElKind.native),
194
+ blockquote: new HtmlElementDriver("blockquote", false, el => el.kind = ElKind.native),
195
+ body: new HtmlElementDriver("body", false, el => el.kind = ElKind.native),
196
+ br: new HtmlElementDriver("br", false, el => el.kind = ElKind.native),
197
+ button: new HtmlElementDriver("button", false, el => el.kind = ElKind.native),
198
+ canvas: new HtmlElementDriver("canvas", false, el => el.kind = ElKind.native),
199
+ caption: new HtmlElementDriver("caption", false, el => el.kind = ElKind.native),
200
+ cite: new HtmlElementDriver("cite", false, el => el.kind = ElKind.native),
201
+ code: new HtmlElementDriver("code", false, el => el.kind = ElKind.native),
202
+ col: new HtmlElementDriver("col", false, el => el.kind = ElKind.native),
203
+ colgroup: new HtmlElementDriver("colgroup", false, el => el.kind = ElKind.native),
204
+ data: new HtmlElementDriver("data", false, el => el.kind = ElKind.native),
205
+ datalist: new HtmlElementDriver("datalist", false, el => el.kind = ElKind.native),
206
+ dd: new HtmlElementDriver("dd", false, el => el.kind = ElKind.native),
207
+ del: new HtmlElementDriver("del", false, el => el.kind = ElKind.native),
208
+ details: new HtmlElementDriver("details", false, el => el.kind = ElKind.native),
209
+ dfn: new HtmlElementDriver("dfn", false, el => el.kind = ElKind.native),
210
+ div: new HtmlElementDriver("div", false, el => el.kind = ElKind.native),
211
+ dl: new HtmlElementDriver("dl", false, el => el.kind = ElKind.native),
212
+ dt: new HtmlElementDriver("dt", false, el => el.kind = ElKind.native),
213
+ em: new HtmlElementDriver("em", false, el => el.kind = ElKind.native),
214
+ embed: new HtmlElementDriver("embed", false, el => el.kind = ElKind.native),
215
+ fieldset: new HtmlElementDriver("fieldset", false, el => el.kind = ElKind.native),
216
+ figcaption: new HtmlElementDriver("figcaption", false, el => el.kind = ElKind.native),
217
+ figure: new HtmlElementDriver("figure", false, el => el.kind = ElKind.native),
218
+ footer: new HtmlElementDriver("footer", false, el => el.kind = ElKind.native),
219
+ form: new HtmlElementDriver("form", false, el => el.kind = ElKind.native),
220
+ h1: new HtmlElementDriver("h1", false, el => el.kind = ElKind.native),
221
+ h2: new HtmlElementDriver("h2", false, el => el.kind = ElKind.native),
222
+ h3: new HtmlElementDriver("h3", false, el => el.kind = ElKind.native),
223
+ h4: new HtmlElementDriver("h4", false, el => el.kind = ElKind.native),
224
+ h5: new HtmlElementDriver("h5", false, el => el.kind = ElKind.native),
225
+ h6: new HtmlElementDriver("h6", false, el => el.kind = ElKind.native),
226
+ head: new HtmlElementDriver("head", false, el => el.kind = ElKind.native),
227
+ header: new HtmlElementDriver("header", false, el => el.kind = ElKind.native),
228
+ hgroup: new HtmlElementDriver("hgroup", false, el => el.kind = ElKind.native),
229
+ hr: new HtmlElementDriver("hr", false, el => el.kind = ElKind.native),
230
+ html: new HtmlElementDriver("html", false, el => el.kind = ElKind.native),
231
+ i: new HtmlElementDriver("i", false, el => el.kind = ElKind.native),
232
+ iframe: new HtmlElementDriver("iframe", false, el => el.kind = ElKind.native),
233
+ img: new HtmlElementDriver("img", false, el => el.kind = ElKind.native),
234
+ input: new HtmlElementDriver("input", false, el => el.kind = ElKind.native),
235
+ ins: new HtmlElementDriver("ins", false, el => el.kind = ElKind.native),
236
+ kbd: new HtmlElementDriver("kbd", false, el => el.kind = ElKind.native),
237
+ keygen: new HtmlElementDriver("keygen", false, el => el.kind = ElKind.native),
238
+ label: new HtmlElementDriver("label", false, el => el.kind = ElKind.native),
239
+ legend: new HtmlElementDriver("legend", false, el => el.kind = ElKind.native),
240
+ li: new HtmlElementDriver("li", false, el => el.kind = ElKind.native),
241
+ link: new HtmlElementDriver("link", false, el => el.kind = ElKind.native),
242
+ main: new HtmlElementDriver("main", false, el => el.kind = ElKind.native),
243
+ map: new HtmlElementDriver("map", false, el => el.kind = ElKind.native),
244
+ mark: new HtmlElementDriver("mark", false, el => el.kind = ElKind.native),
245
+ menu: new HtmlElementDriver("menu", false, el => el.kind = ElKind.native),
246
+ menuitem: new HtmlElementDriver("menuitem", false, el => el.kind = ElKind.native),
247
+ meta: new HtmlElementDriver("meta", false, el => el.kind = ElKind.native),
248
+ meter: new HtmlElementDriver("meter", false, el => el.kind = ElKind.native),
249
+ nav: new HtmlElementDriver("nav", false, el => el.kind = ElKind.native),
250
+ noindex: new HtmlElementDriver("noindex", false, el => el.kind = ElKind.native),
251
+ noscript: new HtmlElementDriver("noscript", false, el => el.kind = ElKind.native),
252
+ object: new HtmlElementDriver("object", false, el => el.kind = ElKind.native),
253
+ ol: new HtmlElementDriver("ol", false, el => el.kind = ElKind.native),
254
+ optgroup: new HtmlElementDriver("optgroup", false, el => el.kind = ElKind.native),
255
+ option: new HtmlElementDriver("option", false, el => el.kind = ElKind.native),
256
+ output: new HtmlElementDriver("output", false, el => el.kind = ElKind.native),
257
+ p: new HtmlElementDriver("p", false, el => el.kind = ElKind.native),
258
+ param: new HtmlElementDriver("param", false, el => el.kind = ElKind.native),
259
+ picture: new HtmlElementDriver("picture", false, el => el.kind = ElKind.native),
260
+ pre: new HtmlElementDriver("pre", false, el => el.kind = ElKind.native),
261
+ progress: new HtmlElementDriver("progress", false, el => el.kind = ElKind.native),
262
+ q: new HtmlElementDriver("q", false, el => el.kind = ElKind.native),
263
+ rp: new HtmlElementDriver("rp", false, el => el.kind = ElKind.native),
264
+ rt: new HtmlElementDriver("rt", false, el => el.kind = ElKind.native),
265
+ ruby: new HtmlElementDriver("ruby", false, el => el.kind = ElKind.native),
266
+ s: new HtmlElementDriver("s", false, el => el.kind = ElKind.native),
267
+ samp: new HtmlElementDriver("samp", false, el => el.kind = ElKind.native),
268
+ script: new HtmlElementDriver("script", false, el => el.kind = ElKind.native),
269
+ section: new HtmlElementDriver("section", false, el => el.kind = ElKind.native),
270
+ select: new HtmlElementDriver("select", false, el => el.kind = ElKind.native),
271
+ small: new HtmlElementDriver("small", false, el => el.kind = ElKind.native),
272
+ source: new HtmlElementDriver("source", false, el => el.kind = ElKind.native),
273
+ span: new HtmlElementDriver("span", false, el => el.kind = ElKind.native),
274
+ strong: new HtmlElementDriver("strong", false, el => el.kind = ElKind.native),
275
+ style: new HtmlElementDriver("style", false, el => el.kind = ElKind.native),
276
+ sub: new HtmlElementDriver("sub", false, el => el.kind = ElKind.native),
277
+ summary: new HtmlElementDriver("summary", false, el => el.kind = ElKind.native),
278
+ sup: new HtmlElementDriver("sup", false, el => el.kind = ElKind.native),
279
+ table: new HtmlElementDriver("table", false, el => el.kind = ElKind.native),
280
+ template: new HtmlElementDriver("template", false, el => el.kind = ElKind.native),
281
+ tbody: new HtmlElementDriver("tbody", false, el => el.kind = ElKind.native),
282
+ td: new HtmlElementDriver("td", false, el => el.kind = ElKind.native),
283
+ textarea: new HtmlElementDriver("textarea", false, el => el.kind = ElKind.native),
284
+ tfoot: new HtmlElementDriver("tfoot", false, el => el.kind = ElKind.native),
285
+ th: new HtmlElementDriver("th", false, el => el.kind = ElKind.native),
286
+ thead: new HtmlElementDriver("thead", false, el => el.kind = ElKind.native),
287
+ time: new HtmlElementDriver("time", false, el => el.kind = ElKind.native),
288
+ title: new HtmlElementDriver("title", false, el => el.kind = ElKind.native),
289
+ tr: new HtmlElementDriver("tr", false, el => el.kind = ElKind.native),
290
+ track: new HtmlElementDriver("track", false, el => el.kind = ElKind.native),
291
+ u: new HtmlElementDriver("u", false, el => el.kind = ElKind.native),
292
+ ul: new HtmlElementDriver("ul", false, el => el.kind = ElKind.native),
293
+ var: new HtmlElementDriver("var", false, el => el.kind = ElKind.native),
294
+ video: new HtmlElementDriver("video", false, el => el.kind = ElKind.native),
295
+ wbr: new HtmlElementDriver("wbr", false, el => el.kind = ElKind.native),
296
296
  };
297
297
  const SvgTags = {
298
- svg: new SvgElementDriver("svg", false, el => el.kind = ElKind.Native),
299
- a: new SvgElementDriver("a", false, el => el.kind = ElKind.Native),
300
- animate: new SvgElementDriver("animate", false, el => el.kind = ElKind.Native),
301
- animateMotion: new SvgElementDriver("animateMotion", false, el => el.kind = ElKind.Native),
302
- animateTransform: new SvgElementDriver("animateTransform", false, el => el.kind = ElKind.Native),
303
- circle: new SvgElementDriver("circle", false, el => el.kind = ElKind.Native),
304
- clipPath: new SvgElementDriver("clipPath", false, el => el.kind = ElKind.Native),
305
- defs: new SvgElementDriver("defs", false, el => el.kind = ElKind.Native),
306
- desc: new SvgElementDriver("desc", false, el => el.kind = ElKind.Native),
307
- ellipse: new SvgElementDriver("ellipse", false, el => el.kind = ElKind.Native),
308
- feBlend: new SvgElementDriver("feBlend", false, el => el.kind = ElKind.Native),
309
- feColorMatrix: new SvgElementDriver("feColorMatrix", false, el => el.kind = ElKind.Native),
310
- feComponentTransfer: new SvgElementDriver("feComponentTransfer", false, el => el.kind = ElKind.Native),
311
- feComposite: new SvgElementDriver("feComposite", false, el => el.kind = ElKind.Native),
312
- feConvolveMatrix: new SvgElementDriver("feConvolveMatrix", false, el => el.kind = ElKind.Native),
313
- feDiffuseLighting: new SvgElementDriver("feDiffuseLighting", false, el => el.kind = ElKind.Native),
314
- feDisplacementMap: new SvgElementDriver("feDisplacementMap", false, el => el.kind = ElKind.Native),
315
- feDistantLight: new SvgElementDriver("feDistantLight", false, el => el.kind = ElKind.Native),
316
- feDropShadow: new SvgElementDriver("feDropShadow", false, el => el.kind = ElKind.Native),
317
- feFlood: new SvgElementDriver("feFlood", false, el => el.kind = ElKind.Native),
318
- feFuncA: new SvgElementDriver("feFuncA", false, el => el.kind = ElKind.Native),
319
- feFuncB: new SvgElementDriver("feFuncB", false, el => el.kind = ElKind.Native),
320
- feFuncG: new SvgElementDriver("feFuncG", false, el => el.kind = ElKind.Native),
321
- feFuncR: new SvgElementDriver("feFuncR", false, el => el.kind = ElKind.Native),
322
- feGaussianBlur: new SvgElementDriver("feGaussianBlur", false, el => el.kind = ElKind.Native),
323
- feImage: new SvgElementDriver("feImage", false, el => el.kind = ElKind.Native),
324
- feMerge: new SvgElementDriver("feMerge", false, el => el.kind = ElKind.Native),
325
- feMergeNode: new SvgElementDriver("feMergeNode", false, el => el.kind = ElKind.Native),
326
- feMorphology: new SvgElementDriver("feMorphology", false, el => el.kind = ElKind.Native),
327
- feOffset: new SvgElementDriver("feOffset", false, el => el.kind = ElKind.Native),
328
- fePointLight: new SvgElementDriver("fePointLight", false, el => el.kind = ElKind.Native),
329
- feSpecularLighting: new SvgElementDriver("feSpecularLighting", false, el => el.kind = ElKind.Native),
330
- feSpotLight: new SvgElementDriver("feSpotLight", false, el => el.kind = ElKind.Native),
331
- feTile: new SvgElementDriver("feTile", false, el => el.kind = ElKind.Native),
332
- feTurbulence: new SvgElementDriver("feTurbulence", false, el => el.kind = ElKind.Native),
333
- filter: new SvgElementDriver("filter", false, el => el.kind = ElKind.Native),
334
- foreignObject: new SvgElementDriver("foreignObject", false, el => el.kind = ElKind.Native),
335
- g: new SvgElementDriver("g", false, el => el.kind = ElKind.Native),
336
- image: new SvgElementDriver("image", false, el => el.kind = ElKind.Native),
337
- line: new SvgElementDriver("line", false, el => el.kind = ElKind.Native),
338
- linearGradient: new SvgElementDriver("linearGradient", false, el => el.kind = ElKind.Native),
339
- marker: new SvgElementDriver("marker", false, el => el.kind = ElKind.Native),
340
- mask: new SvgElementDriver("mask", false, el => el.kind = ElKind.Native),
341
- metadata: new SvgElementDriver("metadata", false, el => el.kind = ElKind.Native),
342
- mpath: new SvgElementDriver("mpath", false, el => el.kind = ElKind.Native),
343
- path: new SvgElementDriver("path", false, el => el.kind = ElKind.Native),
344
- pattern: new SvgElementDriver("pattern", false, el => el.kind = ElKind.Native),
345
- polygon: new SvgElementDriver("polygon", false, el => el.kind = ElKind.Native),
346
- polyline: new SvgElementDriver("polyline", false, el => el.kind = ElKind.Native),
347
- radialGradient: new SvgElementDriver("radialGradient", false, el => el.kind = ElKind.Native),
348
- rect: new SvgElementDriver("rect", false, el => el.kind = ElKind.Native),
349
- stop: new SvgElementDriver("stop", false, el => el.kind = ElKind.Native),
350
- switch: new SvgElementDriver("switch", false, el => el.kind = ElKind.Native),
351
- symbol: new SvgElementDriver("symbol", false, el => el.kind = ElKind.Native),
352
- text: new SvgElementDriver("text", false, el => el.kind = ElKind.Native),
353
- textPath: new SvgElementDriver("textPath", false, el => el.kind = ElKind.Native),
354
- tspan: new SvgElementDriver("tspan", false, el => el.kind = ElKind.Native),
355
- use: new SvgElementDriver("use", false, el => el.kind = ElKind.Native),
356
- view: new SvgElementDriver("view", false, el => el.kind = ElKind.Native),
298
+ svg: new SvgElementDriver("svg", false, el => el.kind = ElKind.native),
299
+ a: new SvgElementDriver("a", false, el => el.kind = ElKind.native),
300
+ animate: new SvgElementDriver("animate", false, el => el.kind = ElKind.native),
301
+ animateMotion: new SvgElementDriver("animateMotion", false, el => el.kind = ElKind.native),
302
+ animateTransform: new SvgElementDriver("animateTransform", false, el => el.kind = ElKind.native),
303
+ circle: new SvgElementDriver("circle", false, el => el.kind = ElKind.native),
304
+ clipPath: new SvgElementDriver("clipPath", false, el => el.kind = ElKind.native),
305
+ defs: new SvgElementDriver("defs", false, el => el.kind = ElKind.native),
306
+ desc: new SvgElementDriver("desc", false, el => el.kind = ElKind.native),
307
+ ellipse: new SvgElementDriver("ellipse", false, el => el.kind = ElKind.native),
308
+ feBlend: new SvgElementDriver("feBlend", false, el => el.kind = ElKind.native),
309
+ feColorMatrix: new SvgElementDriver("feColorMatrix", false, el => el.kind = ElKind.native),
310
+ feComponentTransfer: new SvgElementDriver("feComponentTransfer", false, el => el.kind = ElKind.native),
311
+ feComposite: new SvgElementDriver("feComposite", false, el => el.kind = ElKind.native),
312
+ feConvolveMatrix: new SvgElementDriver("feConvolveMatrix", false, el => el.kind = ElKind.native),
313
+ feDiffuseLighting: new SvgElementDriver("feDiffuseLighting", false, el => el.kind = ElKind.native),
314
+ feDisplacementMap: new SvgElementDriver("feDisplacementMap", false, el => el.kind = ElKind.native),
315
+ feDistantLight: new SvgElementDriver("feDistantLight", false, el => el.kind = ElKind.native),
316
+ feDropShadow: new SvgElementDriver("feDropShadow", false, el => el.kind = ElKind.native),
317
+ feFlood: new SvgElementDriver("feFlood", false, el => el.kind = ElKind.native),
318
+ feFuncA: new SvgElementDriver("feFuncA", false, el => el.kind = ElKind.native),
319
+ feFuncB: new SvgElementDriver("feFuncB", false, el => el.kind = ElKind.native),
320
+ feFuncG: new SvgElementDriver("feFuncG", false, el => el.kind = ElKind.native),
321
+ feFuncR: new SvgElementDriver("feFuncR", false, el => el.kind = ElKind.native),
322
+ feGaussianBlur: new SvgElementDriver("feGaussianBlur", false, el => el.kind = ElKind.native),
323
+ feImage: new SvgElementDriver("feImage", false, el => el.kind = ElKind.native),
324
+ feMerge: new SvgElementDriver("feMerge", false, el => el.kind = ElKind.native),
325
+ feMergeNode: new SvgElementDriver("feMergeNode", false, el => el.kind = ElKind.native),
326
+ feMorphology: new SvgElementDriver("feMorphology", false, el => el.kind = ElKind.native),
327
+ feOffset: new SvgElementDriver("feOffset", false, el => el.kind = ElKind.native),
328
+ fePointLight: new SvgElementDriver("fePointLight", false, el => el.kind = ElKind.native),
329
+ feSpecularLighting: new SvgElementDriver("feSpecularLighting", false, el => el.kind = ElKind.native),
330
+ feSpotLight: new SvgElementDriver("feSpotLight", false, el => el.kind = ElKind.native),
331
+ feTile: new SvgElementDriver("feTile", false, el => el.kind = ElKind.native),
332
+ feTurbulence: new SvgElementDriver("feTurbulence", false, el => el.kind = ElKind.native),
333
+ filter: new SvgElementDriver("filter", false, el => el.kind = ElKind.native),
334
+ foreignObject: new SvgElementDriver("foreignObject", false, el => el.kind = ElKind.native),
335
+ g: new SvgElementDriver("g", false, el => el.kind = ElKind.native),
336
+ image: new SvgElementDriver("image", false, el => el.kind = ElKind.native),
337
+ line: new SvgElementDriver("line", false, el => el.kind = ElKind.native),
338
+ linearGradient: new SvgElementDriver("linearGradient", false, el => el.kind = ElKind.native),
339
+ marker: new SvgElementDriver("marker", false, el => el.kind = ElKind.native),
340
+ mask: new SvgElementDriver("mask", false, el => el.kind = ElKind.native),
341
+ metadata: new SvgElementDriver("metadata", false, el => el.kind = ElKind.native),
342
+ mpath: new SvgElementDriver("mpath", false, el => el.kind = ElKind.native),
343
+ path: new SvgElementDriver("path", false, el => el.kind = ElKind.native),
344
+ pattern: new SvgElementDriver("pattern", false, el => el.kind = ElKind.native),
345
+ polygon: new SvgElementDriver("polygon", false, el => el.kind = ElKind.native),
346
+ polyline: new SvgElementDriver("polyline", false, el => el.kind = ElKind.native),
347
+ radialGradient: new SvgElementDriver("radialGradient", false, el => el.kind = ElKind.native),
348
+ rect: new SvgElementDriver("rect", false, el => el.kind = ElKind.native),
349
+ stop: new SvgElementDriver("stop", false, el => el.kind = ElKind.native),
350
+ switch: new SvgElementDriver("switch", false, el => el.kind = ElKind.native),
351
+ symbol: new SvgElementDriver("symbol", false, el => el.kind = ElKind.native),
352
+ text: new SvgElementDriver("text", false, el => el.kind = ElKind.native),
353
+ textPath: new SvgElementDriver("textPath", false, el => el.kind = ElKind.native),
354
+ tspan: new SvgElementDriver("tspan", false, el => el.kind = ElKind.native),
355
+ use: new SvgElementDriver("use", false, el => el.kind = ElKind.native),
356
+ view: new SvgElementDriver("view", false, el => el.kind = ElKind.native),
357
357
  };
@@ -4,7 +4,7 @@ export * from "./HtmlDriver.js";
4
4
  export * from "./HtmlElements.js";
5
5
  export * from "./HtmlApiExt.js";
6
6
  export * from "./Elements.js";
7
- export * from "./ReactingFocuser.js";
7
+ export * from "./Handlers.js";
8
8
  export * from "./sensors/Sensor.js";
9
9
  export * from "./sensors/PointerSensor.js";
10
10
  export * from "./sensors/BasePointerSensor.js";
@@ -4,7 +4,7 @@ export * from "./HtmlDriver.js";
4
4
  export * from "./HtmlElements.js";
5
5
  export * from "./HtmlApiExt.js";
6
6
  export * from "./Elements.js";
7
- export * from "./ReactingFocuser.js";
7
+ export * from "./Handlers.js";
8
8
  export * from "./sensors/Sensor.js";
9
9
  export * from "./sensors/PointerSensor.js";
10
10
  export * from "./sensors/BasePointerSensor.js";
@@ -3,16 +3,16 @@ import { HtmlElementSensor } from "./HtmlElementSensor.js";
3
3
  import { KeyboardModifiers } from "./KeyboardSensor.js";
4
4
  import { WindowSensor } from "./WindowSensor.js";
5
5
  export declare enum PointerButton {
6
- None = 0,
7
- Left = 1,
8
- Right = 2,
9
- Middle = 4
6
+ none = 0,
7
+ left = 1,
8
+ right = 2,
9
+ middle = 4
10
10
  }
11
11
  export declare class BasePointerSensor extends HtmlElementSensor {
12
12
  positionX: number;
13
13
  positionY: number;
14
14
  modifiers: KeyboardModifiers;
15
- constructor(focusSensor?: FocusSensor, windowSensor?: WindowSensor);
15
+ constructor(element: HTMLElement | SVGElement, focusSensor?: FocusSensor, windowSensor?: WindowSensor);
16
16
  }
17
17
  export declare function extractPointerButton(e: MouseEvent): PointerButton;
18
18
  export declare function isPointerButtonDown(button: PointerButton, buttonsMask: number): boolean;
@@ -2,29 +2,29 @@ import { HtmlElementSensor } from "./HtmlElementSensor.js";
2
2
  import { KeyboardModifiers } from "./KeyboardSensor.js";
3
3
  export var PointerButton;
4
4
  (function (PointerButton) {
5
- PointerButton[PointerButton["None"] = 0] = "None";
6
- PointerButton[PointerButton["Left"] = 1] = "Left";
7
- PointerButton[PointerButton["Right"] = 2] = "Right";
8
- PointerButton[PointerButton["Middle"] = 4] = "Middle";
5
+ PointerButton[PointerButton["none"] = 0] = "none";
6
+ PointerButton[PointerButton["left"] = 1] = "left";
7
+ PointerButton[PointerButton["right"] = 2] = "right";
8
+ PointerButton[PointerButton["middle"] = 4] = "middle";
9
9
  })(PointerButton || (PointerButton = {}));
10
10
  export class BasePointerSensor extends HtmlElementSensor {
11
- constructor(focusSensor, windowSensor) {
12
- super(focusSensor, windowSensor);
11
+ constructor(element, focusSensor, windowSensor) {
12
+ super(element, focusSensor, windowSensor);
13
13
  this.positionX = Infinity;
14
14
  this.positionY = Infinity;
15
- this.modifiers = KeyboardModifiers.None;
15
+ this.modifiers = KeyboardModifiers.none;
16
16
  }
17
17
  }
18
18
  export function extractPointerButton(e) {
19
19
  switch (e.button) {
20
20
  case 0:
21
- return PointerButton.Left;
21
+ return PointerButton.left;
22
22
  case 1:
23
- return PointerButton.Middle;
23
+ return PointerButton.middle;
24
24
  case 2:
25
- return PointerButton.Right;
25
+ return PointerButton.right;
26
26
  default:
27
- return PointerButton.None;
27
+ return PointerButton.none;
28
28
  }
29
29
  }
30
30
  export function isPointerButtonDown(button, buttonsMask) {
@@ -2,10 +2,10 @@ import { PointerButton, BasePointerSensor } from "./BasePointerSensor.js";
2
2
  import { FocusSensor } from "./FocusSensor.js";
3
3
  import { WindowSensor } from "./WindowSensor.js";
4
4
  export declare enum ButtonState {
5
- Pressed = 0,
6
- Selecting = 1,
7
- Selected = 2,
8
- Released = 3
5
+ pressed = 0,
6
+ selecting = 1,
7
+ selected = 2,
8
+ released = 3
9
9
  }
10
10
  export declare class ButtonSensor extends BasePointerSensor {
11
11
  state: ButtonState;
@@ -15,8 +15,8 @@ export declare class ButtonSensor extends BasePointerSensor {
15
15
  selectedX: number;
16
16
  selectedY: number;
17
17
  selected: boolean;
18
- constructor(focusSensor: FocusSensor, windowSensor: WindowSensor);
19
- listen(element: HTMLElement | undefined, enabled?: boolean): void;
18
+ constructor(element: HTMLElement | SVGElement, focusSensor: FocusSensor, windowSensor: WindowSensor);
19
+ listen(enabled?: boolean): void;
20
20
  protected onPointerDown(e: PointerEvent): void;
21
21
  protected onPointerMove(e: PointerEvent): void;
22
22
  protected onPointerUp(e: PointerEvent): void;