@react-x11/components 0.11.0 → 0.13.0

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 (126) hide show
  1. package/dist/flow/node.d.ts +14 -6
  2. package/dist/flow/node.d.ts.map +1 -1
  3. package/dist/flow/node.js +82 -64
  4. package/dist/flow/node.js.map +1 -1
  5. package/dist/html/controls.d.ts +38 -10
  6. package/dist/html/controls.d.ts.map +1 -1
  7. package/dist/html/controls.js +43 -58
  8. package/dist/html/controls.js.map +1 -1
  9. package/dist/html/css/cascade.d.ts +134 -20
  10. package/dist/html/css/cascade.d.ts.map +1 -1
  11. package/dist/html/css/cascade.js +538 -128
  12. package/dist/html/css/cascade.js.map +1 -1
  13. package/dist/html/css/color.d.ts +19 -0
  14. package/dist/html/css/color.d.ts.map +1 -1
  15. package/dist/html/css/color.js +86 -0
  16. package/dist/html/css/color.js.map +1 -1
  17. package/dist/html/css/parse.d.ts +40 -2
  18. package/dist/html/css/parse.d.ts.map +1 -1
  19. package/dist/html/css/parse.js +391 -13
  20. package/dist/html/css/parse.js.map +1 -1
  21. package/dist/html/css/style.d.ts +52 -1
  22. package/dist/html/css/style.d.ts.map +1 -1
  23. package/dist/html/css/style.js +328 -11
  24. package/dist/html/css/style.js.map +1 -1
  25. package/dist/html/css/ua.d.ts +11 -1
  26. package/dist/html/css/ua.d.ts.map +1 -1
  27. package/dist/html/css/ua.js +73 -7
  28. package/dist/html/css/ua.js.map +1 -1
  29. package/dist/html/css/values.d.ts +10 -1
  30. package/dist/html/css/values.d.ts.map +1 -1
  31. package/dist/html/css/values.js +27 -2
  32. package/dist/html/css/values.js.map +1 -1
  33. package/dist/html/css/vars.d.ts +5 -0
  34. package/dist/html/css/vars.d.ts.map +1 -1
  35. package/dist/html/css/vars.js +2 -2
  36. package/dist/html/css/vars.js.map +1 -1
  37. package/dist/html/dom.d.ts.map +1 -1
  38. package/dist/html/dom.js +38 -3
  39. package/dist/html/dom.js.map +1 -1
  40. package/dist/html/fonts.d.ts +25 -1
  41. package/dist/html/fonts.d.ts.map +1 -1
  42. package/dist/html/fonts.js +99 -6
  43. package/dist/html/fonts.js.map +1 -1
  44. package/dist/html/form.d.ts +200 -0
  45. package/dist/html/form.d.ts.map +1 -0
  46. package/dist/html/form.js +801 -0
  47. package/dist/html/form.js.map +1 -0
  48. package/dist/html/index.d.ts +12 -0
  49. package/dist/html/index.d.ts.map +1 -1
  50. package/dist/html/index.js +30 -264
  51. package/dist/html/index.js.map +1 -1
  52. package/dist/html/layout/block.d.ts +11 -2
  53. package/dist/html/layout/block.d.ts.map +1 -1
  54. package/dist/html/layout/block.js +186 -19
  55. package/dist/html/layout/block.js.map +1 -1
  56. package/dist/html/layout/boxes.d.ts +65 -7
  57. package/dist/html/layout/boxes.d.ts.map +1 -1
  58. package/dist/html/layout/boxes.js +87 -22
  59. package/dist/html/layout/boxes.js.map +1 -1
  60. package/dist/html/layout/cache.d.ts +2 -2
  61. package/dist/html/layout/cache.d.ts.map +1 -1
  62. package/dist/html/layout/cache.js +8 -3
  63. package/dist/html/layout/cache.js.map +1 -1
  64. package/dist/html/layout/flex.js +4 -1
  65. package/dist/html/layout/flex.js.map +1 -1
  66. package/dist/html/layout/floats.d.ts +4 -0
  67. package/dist/html/layout/floats.d.ts.map +1 -1
  68. package/dist/html/layout/floats.js +26 -0
  69. package/dist/html/layout/floats.js.map +1 -1
  70. package/dist/html/layout/inline.d.ts +26 -2
  71. package/dist/html/layout/inline.d.ts.map +1 -1
  72. package/dist/html/layout/inline.js +1232 -115
  73. package/dist/html/layout/inline.js.map +1 -1
  74. package/dist/html/node.d.ts +120 -15
  75. package/dist/html/node.d.ts.map +1 -1
  76. package/dist/html/node.js +993 -174
  77. package/dist/html/node.js.map +1 -1
  78. package/dist/html/paint.d.ts +75 -2
  79. package/dist/html/paint.d.ts.map +1 -1
  80. package/dist/html/paint.js +836 -200
  81. package/dist/html/paint.js.map +1 -1
  82. package/dist/html/surfaces.d.ts +7 -2
  83. package/dist/html/surfaces.d.ts.map +1 -1
  84. package/dist/html/surfaces.js +16 -0
  85. package/dist/html/surfaces.js.map +1 -1
  86. package/dist/html/widgets.d.ts +29 -0
  87. package/dist/html/widgets.d.ts.map +1 -0
  88. package/dist/html/widgets.js +620 -0
  89. package/dist/html/widgets.js.map +1 -0
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js.map +1 -1
  93. package/dist/internal/window.d.ts +22 -0
  94. package/dist/internal/window.d.ts.map +1 -1
  95. package/dist/internal/window.js +35 -8
  96. package/dist/internal/window.js.map +1 -1
  97. package/dist/richtext/node.d.ts +7 -0
  98. package/dist/richtext/node.d.ts.map +1 -1
  99. package/dist/richtext/node.js.map +1 -1
  100. package/package.json +6 -4
  101. package/src/flow/node.ts +80 -64
  102. package/src/html/controls.ts +79 -58
  103. package/src/html/css/cascade.ts +610 -146
  104. package/src/html/css/color.ts +87 -0
  105. package/src/html/css/parse.ts +431 -13
  106. package/src/html/css/style.ts +367 -11
  107. package/src/html/css/ua.ts +76 -8
  108. package/src/html/css/values.ts +31 -3
  109. package/src/html/css/vars.ts +2 -2
  110. package/src/html/dom.ts +41 -3
  111. package/src/html/fonts.ts +116 -6
  112. package/src/html/form.ts +962 -0
  113. package/src/html/index.ts +49 -300
  114. package/src/html/layout/block.ts +231 -16
  115. package/src/html/layout/boxes.ts +133 -32
  116. package/src/html/layout/cache.ts +8 -3
  117. package/src/html/layout/flex.ts +4 -1
  118. package/src/html/layout/floats.ts +24 -0
  119. package/src/html/layout/inline.ts +1445 -108
  120. package/src/html/node.ts +1010 -166
  121. package/src/html/paint.ts +980 -270
  122. package/src/html/surfaces.ts +21 -1
  123. package/src/html/widgets.ts +735 -0
  124. package/src/index.ts +1 -0
  125. package/src/internal/window.ts +36 -8
  126. package/src/richtext/node.ts +7 -0
@@ -62,6 +62,8 @@ export declare class HtmlViewNode extends Node {
62
62
  private _sheetsRead;
63
63
  /** Blurred shadows, drawn once each. */
64
64
  private _shadowCache;
65
+ /** Whether the backend was found to have no offscreen surface. */
66
+ private _noSurface;
65
67
  private _cascade;
66
68
  private _tree;
67
69
  /** The faces `_warmFaces` has asked the font matcher for, and of which
@@ -77,6 +79,8 @@ export declare class HtmlViewNode extends Node {
77
79
  * that read it (`vw`, `vh`). */
78
80
  private _styledWidth;
79
81
  private _styledHeight;
82
+ /** The cascade the box tree's styles were computed by. */
83
+ private _styledWith;
80
84
  private _documentHeight;
81
85
  private _documentWidth;
82
86
  /** The viewport height the document was last laid out under, and whether
@@ -94,6 +98,20 @@ export declare class HtmlViewNode extends Node {
94
98
  * the text carries surrogate pairs. null until checked. */
95
99
  private _pointsAreUnits;
96
100
  private _hovered;
101
+ /** Where the pointer last moved to, in logical window pixels, while it
102
+ * is over the element (`defaultMouseMove`). */
103
+ private _pointerAt;
104
+ /** A hover held until the content under a still pointer stops moving:
105
+ * the timer, and when the content last moved (`_holdHover`). */
106
+ private _heldHover;
107
+ private _heldSince;
108
+ /**
109
+ * The elements the build of the boxes that is due has to style again,
110
+ * where every change asking for it said which (`_invalidate`), and null
111
+ * where any element's style may have changed — a new cascade, a viewport
112
+ * a `vw` reads, a face that arrived.
113
+ */
114
+ private _restyleOnly;
97
115
  private _scriptsSeen;
98
116
  private _controls;
99
117
  private _reportedDomRevision;
@@ -110,6 +128,12 @@ export declare class HtmlViewNode extends Node {
110
128
  * and `measureControl` want device ones. Memoized on the look's identity
111
129
  * so the cascade and the control measurer see one object. */
112
130
  private _deviceLook;
131
+ /**
132
+ * `restyle` with `Stale.Boxes`: the elements whose styles the change
133
+ * could have touched, where that is all of it — a pointer move's reach
134
+ * (`_hoverReach`). The build it asks for keeps every other element's
135
+ * (`_restyleOnly`).
136
+ */
113
137
  private _invalidate;
114
138
  /** Take the props' source into the parser. Cheap when nothing changed, and
115
139
  * an append when the new source extends the old — see `HtmlSource`. */
@@ -167,6 +191,23 @@ export declare class HtmlViewNode extends Node {
167
191
  * down to what each imports — asking for the imports again, as a parse
168
192
  * of the sheet would have. */
169
193
  private _sameSheets;
194
+ /**
195
+ * The viewport the document is seen through, in window coordinates: the
196
+ * content box of the pane that scrolls the element, where one does —
197
+ * what `position: fixed` and a fixed background are placed against, as
198
+ * a browser places them against its page area. Null where nothing
199
+ * scrolls it, and the element is its own.
200
+ */
201
+ private _viewport;
202
+ /**
203
+ * What the document draws fixed to the viewport of the pane that scrolls
204
+ * it, for that pane's scroll blit to repaint rather than copy with the
205
+ * text (react-x11's `viewportFixedRects`): the whole viewport where a
206
+ * fixed background shows through it, which makes a scroll a repaint, and
207
+ * where each fixed box is drawn. Null for a document with neither, and
208
+ * where nothing scrolls the element.
209
+ */
210
+ viewportFixedRects(): Rect[] | null;
170
211
  private _viewportHeight;
171
212
  private _fonts;
172
213
  /** The text layouts the last pass made, for this one to reuse. */
@@ -259,6 +300,10 @@ export declare class HtmlViewNode extends Node {
259
300
  elementRect(element: Element): Rect | null;
260
301
  /** The deepest element whose box contains a logical window point. */
261
302
  elementAtPoint(x: number, y: number): Element | null;
303
+ /** How far a box fixed to the viewport is drawn from where it was laid
304
+ * out, in the document's pixels: the scroll of the pane the element is
305
+ * in (`atViewport`). Null where nothing scrolls it. */
306
+ private _fixedShift;
262
307
  /**
263
308
  * The cursor for a point of this element's, in device pixels: what core
264
309
  * asks a drawn element as the pointer moves over it (`cursorAt`,
@@ -278,8 +323,25 @@ export declare class HtmlViewNode extends Node {
278
323
  */
279
324
  setHover(x: number, y: number): boolean;
280
325
  clearHover(): boolean;
281
- /** The hovered chain moved: restyle where it did, or the document. */
326
+ /**
327
+ * The hovered chain moved: nothing, where no rule that tests the pointer
328
+ * names an element it moved over; a restyle where they are, where all it
329
+ * changed is ink (`_hoverInPlace`); and otherwise the boxes built again,
330
+ * with the styles of every element the move did not reach kept.
331
+ */
282
332
  private _restyleHover;
333
+ /**
334
+ * The elements whose styles a move of the hovered chain can change, or
335
+ * null where that cannot be said (`Cascade.hoverLocal`).
336
+ *
337
+ * Only an element whose hover state flipped and that a compound testing
338
+ * the pointer could match can change (`Cascade.hoverTouches`), with its
339
+ * subtree, and its later siblings' where a sibling combinator is in play;
340
+ * and the elements a `:has()` testing the pointer may flip, which are
341
+ * around the ones that changed. A move between two paragraphs under
342
+ * `a:hover` reaches nothing.
343
+ */
344
+ private _hoverReach;
283
345
  /**
284
346
  * A pointer move restyled where it happened, when all it changed is ink.
285
347
  *
@@ -290,23 +352,46 @@ export declare class HtmlViewNode extends Node {
290
352
  * nearly all change a colour, an underline, a background or a border's
291
353
  * colour — 77 of that article's 79 — and those move nothing. So:
292
354
  *
293
- * - Only an element whose hover state flipped and that a compound testing
294
- * the pointer could match can change (`Cascade.hoverTouches`), with its
295
- * subtree, and its later siblings where a sibling combinator follows.
296
- * A move between two paragraphs under `a:hover` touches nothing.
297
- * - Those are styled again from their parents. Where anything but ink
298
- * differs (`PAINT_ONLY`), or a box is not the element's own — an
299
- * anonymous or a pseudo-element box, a marker, a control — this is
300
- * not the move to take.
301
- * - The boxes take their new styles, and each layout of their text is
302
- * made again from the runs it was made from (`TextLayoutCache.inputsOf`)
303
- * with the new ink (`runFor`), where its geometry comes out the same.
355
+ * - The elements the move reached (`_hoverReach`) are styled again from
356
+ * their parents — the ones a rule testing the pointer answers
357
+ * differently for, or whose parent's style changed; the rest, most of
358
+ * a hovered card or table row, have the styles they had
359
+ * (`Cascade.pointerChanged`). Where anything but ink differs
360
+ * (`PAINT_ONLY`), this is not the move to take.
361
+ * - The boxes take their new styles: an element's own, the text in it,
362
+ * the anonymous boxes the fix-up made around what is in it, and its
363
+ * `::before` and `::after`, styled again by their own rules. A box
364
+ * whose style is derived some other way — a marker, a first letter, a
365
+ * control — is not one to restyle here.
366
+ * - Each layout of their text is made again from the runs it was made
367
+ * from (`TextLayoutCache.inputsOf`) with the new ink (`runFor`), where
368
+ * its geometry comes out the same.
304
369
  *
305
- * Everything is checked before anything is changed. 'none' where nothing
306
- * could change, 'painted' where it was restyled here, false where the
307
- * document has to be built again.
370
+ * Everything is checked before anything is changed, and nothing is looked
371
+ * at but the blocks the restyled elements are in (`_blocksOf`): a move
372
+ * costs what it changed, in a document of any length. True where it was
373
+ * restyled here, or had nothing to restyle; false where the boxes have to
374
+ * be built again.
308
375
  */
309
376
  private _hoverInPlace;
377
+ /** An element's first box in document order, for the tree it was asked
378
+ * of: made on the first move over a tree, which is one walk of it. */
379
+ private _firstBoxes;
380
+ /**
381
+ * The blocks a restyle of `changed` has to look in: for each element, the
382
+ * box its text is set in the lines of — the nearest box around its first
383
+ * that is not an inline one — which holds every box that takes its style
384
+ * from it, the pieces a block in it broke it into among them
385
+ * (`breakAround`). One that is inside another is left to it.
386
+ */
387
+ private _blocksOf;
388
+ /**
389
+ * Repaint the document where `inks` are, in its own coordinates: the ink
390
+ * of the boxes a hover restyled, before and after. Past a handful of rects
391
+ * the damage is one around them all, which is what core would make of
392
+ * them anyway.
393
+ */
394
+ private _repaintInk;
310
395
  /** The document, for an application that wants to read or change it. */
311
396
  get document(): Document;
312
397
  /**
@@ -323,8 +408,28 @@ export declare class HtmlViewNode extends Node {
323
408
  private _toDocument;
324
409
  defaultMouseMove(ev: X11MouseEvent): void;
325
410
  defaultMouseLeave(ev: X11MouseEvent): void;
411
+ /** The content moved under the pointer: the hover is asked for once it
412
+ * has been still for `HOVER_REST_MS`. One timer a wait, put off by
413
+ * being armed again when it finds the content moved since. */
414
+ private _holdHover;
415
+ private _dropHeldHover;
326
416
  paint(ctx: Context2D): void;
417
+ /** A surface for the painter to draw a masked element on, asked of the
418
+ * backend until it is found to have none. */
419
+ private _surface;
327
420
  private _paint;
328
421
  }
422
+ /**
423
+ * The clock a held hover waits on. Through `globalThis` because `src/`
424
+ * compiles with `types: []`, and unref'd where the runtime allows it: a
425
+ * timer of a document's must not keep a process alive that is otherwise
426
+ * done. One object, exported from this module though not from the package,
427
+ * so a test can hold it and say when the rest is over (`test/held-clock.ts`).
428
+ */
429
+ export declare const hoverClock: {
430
+ now(): number;
431
+ arm(step: () => void, ms: number): unknown;
432
+ disarm(handle: unknown): void;
433
+ };
329
434
  export type { ControlRect, ReplacedKind, ResourceRequest, ResourceResult };
330
435
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/html/node.ts"],"names":[],"mappings":"AAuCA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMzC,OAAO,KAAK,EAAiB,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAQ9D,OAAO,KAAK,EAKV,YAAY,EAEb,MAAM,mBAAmB,CAAC;AA2B3B,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKtE,0EAA0E;AAC1E,eAAO,MAAM,OAAO,aAAa,CAAC;AAElC;qEACqE;AACrE,MAAM,MAAM,MAAM,GAAG,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D;6EAC6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,MA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