react-x11 2.11.0 → 2.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.
- package/README.md +278 -129
- package/package.json +12 -4
- package/src/Reconciler.js +19 -31
- package/src/a11y.js +2 -2
- package/src/anchor.js +7 -5
- package/src/appcontext.js +59 -30
- package/src/bootstrap.js +14 -0
- package/src/clientmessage.js +1 -1
- package/src/cocoa/app.js +303 -49
- package/src/cocoa/bezels.js +175 -30
- package/src/cocoa/dnd.js +27 -13
- package/src/cocoa/fonts.js +3 -3
- package/src/cocoa/glarea.js +24 -5
- package/src/cocoa/main.d.ts +8 -0
- package/src/cocoa/main.js +43 -0
- package/src/cocoa/overlay.js +159 -0
- package/src/cocoa/panehost.js +15 -5
- package/src/cocoa/presenter.js +13 -9
- package/src/cocoa/promotion.js +17 -7
- package/src/cocoa/relaunch.js +207 -0
- package/src/cocoa/threaded.js +246 -0
- package/src/cocoa/window.js +256 -42
- package/src/components/Select.js +2 -2
- package/src/components/anchor.js +3 -3
- package/src/components/native.js +12 -7
- package/src/components/theme.js +2 -2
- package/src/debug.js +1 -1
- package/src/decorations.js +1 -1
- package/src/editmenu.js +2 -2
- package/src/embedding.js +31 -0
- package/src/errors.js +46 -0
- package/src/events.js +78 -18
- package/src/foreignnodes.js +59 -5
- package/src/frames.js +2 -2
- package/src/glnodes.js +172 -41
- package/src/gloverlay.js +383 -0
- package/src/grid.js +1653 -0
- package/src/host.d.ts +230 -1
- package/src/host.js +11 -3
- package/src/imagesource.js +1 -1
- package/src/index.d.ts +34 -4
- package/src/index.js +9 -1
- package/src/layouts.js +721 -0
- package/src/node.d.ts +16 -3
- package/src/node.js +19 -21
- package/src/nodes/animation.js +644 -0
- package/src/nodes/box.js +21 -0
- package/src/nodes/boxpaint.js +473 -0
- package/src/nodes/canvas.js +269 -0
- package/src/nodes/cascade.js +600 -0
- package/src/nodes/damage.js +183 -0
- package/src/nodes/edithistory.js +124 -0
- package/src/nodes/editmenupopup.js +260 -0
- package/src/nodes/hittest.js +185 -0
- package/src/nodes/image.js +266 -0
- package/src/nodes/install.js +75 -0
- package/src/nodes/invalidate.js +465 -0
- package/src/nodes/kinds.js +31 -0
- package/src/nodes/layout.js +439 -0
- package/src/nodes/layouthost.js +949 -0
- package/src/nodes/node.js +868 -0
- package/src/nodes/paint.js +466 -0
- package/src/nodes/position.js +366 -0
- package/src/nodes/preedit.js +127 -0
- package/src/nodes/queries.js +330 -0
- package/src/nodes/rects.js +102 -0
- package/src/nodes/scrollable.js +891 -0
- package/src/nodes/scrollbars.js +138 -0
- package/src/nodes/scrollblit.js +1034 -0
- package/src/nodes/selectable.js +142 -0
- package/src/nodes/styling.js +225 -0
- package/src/nodes/text.js +649 -0
- package/src/nodes/textarea.js +391 -0
- package/src/nodes/textinput.js +1146 -0
- package/src/nodes/util.js +17 -0
- package/src/nodes/window/anchoring.js +161 -0
- package/src/nodes/window/capabilities.js +190 -0
- package/src/nodes/window/debugpaint.js +83 -0
- package/src/nodes/window/droptarget.js +145 -0
- package/src/nodes/window/floors.js +577 -0
- package/src/nodes/window/flush.js +369 -0
- package/src/nodes/window/hints.js +482 -0
- package/src/nodes/window/listeners.js +222 -0
- package/src/nodes/window/popup.js +71 -0
- package/src/nodes/window/size.js +591 -0
- package/src/nodes/window/window.js +954 -0
- package/src/palette.js +1 -1
- package/src/registry.js +7 -3
- package/src/styles.js +137 -15
- package/src/svgnodes.js +2 -1
- package/src/testing/harness.js +2 -2
- package/src/textselection.js +5 -3
- package/src/trace-registry.js +1 -1
- package/src/types/components.d.ts +38 -6
- package/src/types/elements.d.ts +26 -14
- package/src/types/nodes.d.ts +17 -2
- package/src/types/style.d.ts +94 -3
- package/src/windowstate.js +1 -1
- package/src/yoga.js +1 -1
- package/src/nodes.js +0 -13120
package/src/node.d.ts
CHANGED
|
@@ -504,8 +504,10 @@ export declare class Node {
|
|
|
504
504
|
* An element whose node is one node never needs it; being painted at all
|
|
505
505
|
* means it is inside the pass. An element that draws a **scene** into one
|
|
506
506
|
* node culls against it the way core culls the tree, instead of redrawing
|
|
507
|
-
* the scene into a clip that throws most of it away.
|
|
508
|
-
* the
|
|
507
|
+
* the scene into a clip that throws most of it away. Core counts a pixel
|
|
508
|
+
* short of the rect as inside it, for the antialiasing that inks just
|
|
509
|
+
* past a shape's bounds. Window coordinates, the same space as `abs`;
|
|
510
|
+
* read-only.
|
|
509
511
|
*/
|
|
510
512
|
paintDamage(): Rect | null;
|
|
511
513
|
/**
|
|
@@ -818,5 +820,16 @@ export declare class WindowNode extends Node {}
|
|
|
818
820
|
export declare class PopupNode extends WindowNode {}
|
|
819
821
|
/** The precedents for an element owning a real child X window — a surface of
|
|
820
822
|
* its own, and one holding somebody else's window. */
|
|
821
|
-
export declare class GlAreaNode extends Node {
|
|
823
|
+
export declare class GlAreaNode extends Node {
|
|
824
|
+
/**
|
|
825
|
+
* `true`: the pointer over the surface is dispatched through the owning
|
|
826
|
+
* window's event manager, at this node, on this backend. So an element
|
|
827
|
+
* built on `<glarea>` must not listen for the pointer on `node.window` —
|
|
828
|
+
* on X11 that selects the event on the surface's own window, and X then
|
|
829
|
+
* delivers it there instead of to the tree. Readable without rendering,
|
|
830
|
+
* as `GlAreaNode.prototype.forwardsPointer`; absent on a core that does
|
|
831
|
+
* not deliver it.
|
|
832
|
+
*/
|
|
833
|
+
readonly forwardsPointer: true;
|
|
834
|
+
}
|
|
822
835
|
export declare class ForeignNode extends Node {}
|
package/src/node.js
CHANGED
|
@@ -13,27 +13,25 @@
|
|
|
13
13
|
// they run after the application's own handlers and not at all if one of
|
|
14
14
|
// those called `preventDefault`, which is the ordering that makes an
|
|
15
15
|
// interactive element composable rather than something to work around.
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
PopupNode,
|
|
36
|
-
} from './nodes.js';
|
|
16
|
+
export { Node } from './nodes/node.js';
|
|
17
|
+
// `class MyPane extends Scrollable(Node)` — the same mixin <box> and
|
|
18
|
+
// <window> use, so a registered element can honour `overflow: 'scroll'`
|
|
19
|
+
// with the wheel, the keys, the bars and the a11y role already wired.
|
|
20
|
+
export { Scrollable } from './nodes/scrollable.js';
|
|
21
|
+
// The `measureContent` body of an element whose content has a size of its
|
|
22
|
+
// own and an aspect ratio to keep — what <image> and <svg> answer with.
|
|
23
|
+
export { intrinsicSize } from './nodes/layout.js';
|
|
24
|
+
// The cadence a caret blinks at, so an element that draws one is in step
|
|
25
|
+
// with `<textinput>` rather than a few tens of milliseconds beside it.
|
|
26
|
+
export { CARET_BLINK_MS } from './nodes/textinput.js';
|
|
27
|
+
export { BoxNode } from './nodes/box.js';
|
|
28
|
+
export { TextNode } from './nodes/text.js';
|
|
29
|
+
export { ImageNode } from './nodes/image.js';
|
|
30
|
+
export { CanvasNode } from './nodes/canvas.js';
|
|
31
|
+
export { TextInputNode } from './nodes/textinput.js';
|
|
32
|
+
export { TextAreaNode } from './nodes/textarea.js';
|
|
33
|
+
export { WindowNode } from './nodes/window/window.js';
|
|
34
|
+
export { PopupNode } from './nodes/window/popup.js';
|
|
37
35
|
|
|
38
36
|
// The two precedents for an element that owns a real child X window rather
|
|
39
37
|
// than painting into its parent's: registered with `drawn: false`, realized
|