@visulima/tui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/CHANGELOG.md +21 -0
- package/dist/core/index.js +1 -5
- package/dist/ink/index.d.ts +15 -34
- package/dist/ink/index.js +1 -155
- package/dist/packem_chunks/devtools.js +3 -26
- package/dist/packem_shared/Accordion-BXsqchV-.js +1 -0
- package/dist/packem_shared/Alert-BhYVMHtR.js +1 -0
- package/dist/packem_shared/AnimatePresence-Eu7Z8KHc.js +1 -0
- package/dist/packem_shared/ApprovalPrompt-BSn0FT1g.js +1 -0
- package/dist/packem_shared/AreaChart-Chy-frI7.js +1 -0
- package/dist/packem_shared/Badge-B8WPyRsK.js +1 -0
- package/dist/packem_shared/BarChart-rpZtlMcF.js +1 -0
- package/dist/packem_shared/BigText-CRpwUzrt.js +1 -0
- package/dist/packem_shared/BlinkDot-BvnRuWP8.js +1 -0
- package/dist/packem_shared/Box-BwqSvWuq.js +1 -0
- package/dist/packem_shared/Breadcrumb-D0hClbRV.js +1 -0
- package/dist/packem_shared/Button-B89Yvbc6.js +1 -0
- package/dist/packem_shared/COLOR_BLINDNESS_SIMULATION-DqErf7XX.js +1 -0
- package/dist/packem_shared/Calendar-Dmflvm2S.js +1 -0
- package/dist/packem_shared/Canvas-CKg6WV47.js +1 -0
- package/dist/packem_shared/Card-B_9fXdtU.js +1 -0
- package/dist/packem_shared/Cell-BrXn3jxY.js +1 -0
- package/dist/packem_shared/Checkbox-BN71eCWU.js +1 -0
- package/dist/packem_shared/Code-HhevcyiH.js +2 -0
- package/dist/packem_shared/Collapsible-u6uf_FdV.js +1 -0
- package/dist/packem_shared/CommandBlock-B-nslpCv.js +4 -0
- package/dist/packem_shared/CommandPalette-CEFdaURo.js +1 -0
- package/dist/packem_shared/ConfirmDialog-5Jje_Xpu.js +1 -0
- package/dist/packem_shared/ConfirmInput-D44Mb9oo.js +1 -0
- package/dist/packem_shared/ConsoleOverlay-CM3APfgP.js +1 -0
- package/dist/packem_shared/ContentSwitcher-Dm5BkrCt.js +1 -0
- package/dist/packem_shared/ControlledScrollView-DI8KZOQB.js +1 -0
- package/dist/packem_shared/Cursor-BoLFIMol.js +1 -0
- package/dist/packem_shared/DatePicker-CnSrFFAE.js +1 -0
- package/dist/packem_shared/DefinitionList-v8RDuF_R.js +1 -0
- package/dist/packem_shared/DevTools-O8EbCfHa.js +1 -0
- package/dist/packem_shared/Dialog-CTaL8pn0.js +1 -0
- package/dist/packem_shared/DiffView-BUIFqUB0.js +1 -0
- package/dist/packem_shared/Divider-C47bKmqu.js +1 -0
- package/dist/packem_shared/FilePicker-CUo7R5Qb.js +1 -0
- package/dist/packem_shared/FocusContext-Xy0cwJpO.js +1 -0
- package/dist/packem_shared/FormField-af3aUpRL.js +1 -0
- package/dist/packem_shared/Fullscreen-CuJ8y0s0.js +1 -0
- package/dist/packem_shared/Gauge-Dz-usH__.js +1 -0
- package/dist/packem_shared/Gradient-DYNc0GZA.js +1 -0
- package/dist/packem_shared/Heading-mwEYza3Y.js +1 -0
- package/dist/packem_shared/Heatmap-ChL97U1-.js +1 -0
- package/dist/packem_shared/Help-Zcelyw_U.js +1 -0
- package/dist/packem_shared/Histogram-FIf2F83d.js +1 -0
- package/dist/packem_shared/IMECompositionBuffer-C89PhiOu.js +1 -0
- package/dist/packem_shared/InputParser-rZKjY_7Y.js +2 -0
- package/dist/packem_shared/KEY-Bk8B-3h_.js +1 -0
- package/dist/packem_shared/Kbd-DpkPp4jB.js +1 -0
- package/dist/packem_shared/LayoutNode-rxblE317.js +1 -0
- package/dist/packem_shared/LineChart-BXE_girm.js +1 -0
- package/dist/packem_shared/Link-i2o2EG4-.js +1 -0
- package/dist/packem_shared/LoadingIndicator-TC1Fjwyt.js +1 -0
- package/dist/packem_shared/Markdown-R1XqK63D.js +1 -0
- package/dist/packem_shared/MaskedInput-J01phOZs.js +1 -0
- package/dist/packem_shared/Menu-CfrH4ymk.js +1 -0
- package/dist/packem_shared/MessageBubble-BmBBU2Rm.js +1 -0
- package/dist/packem_shared/ModelBadge-D3wrXncu.js +1 -0
- package/dist/packem_shared/MouseProvider-pjza-lpc.js +1 -0
- package/dist/packem_shared/MultiSelect-Dqmn-bVo.js +1 -0
- package/dist/packem_shared/NAMED_COLORS-B9fJsYdg.js +1 -0
- package/dist/packem_shared/Newline-BSG4iUqp.js +2 -0
- package/dist/packem_shared/OperationTree-DksxjMIV.js +1 -0
- package/dist/packem_shared/OptionList-CNx7r9yN.js +1 -0
- package/dist/packem_shared/OrderedList-BeDy035w.js +1 -0
- package/dist/packem_shared/Paginator-B56s6bhS.js +1 -0
- package/dist/packem_shared/Paragraph-BqJlH0R-.js +1 -0
- package/dist/packem_shared/Placeholder-GMpHRGC8.js +1 -0
- package/dist/packem_shared/ProgressBar-Bj3fmORR.js +1 -0
- package/dist/packem_shared/RadioGroup-Br8BeEwS.js +1 -0
- package/dist/packem_shared/Renderer-DJXooAsp.js +1 -0
- package/dist/packem_shared/ResizeObserverEntry-Dq0dk8Kq.js +1 -0
- package/dist/packem_shared/ScatterPlot-OhfYco5l.js +1 -0
- package/dist/packem_shared/ScrollBar-Da5Y3z7N.js +1 -0
- package/dist/packem_shared/ScrollBarBox-Dz6F-Eat.js +1 -0
- package/dist/packem_shared/ScrollList-DiVGyEjv.js +1 -0
- package/dist/packem_shared/ScrollView-BojONotI.js +1 -0
- package/dist/packem_shared/SearchInput-BoPTRbhV.js +1 -0
- package/dist/packem_shared/SelectInput-CAJ7SCBq.js +1 -0
- package/dist/packem_shared/SelectInputIndicator-N1n8ULHs.js +1 -0
- package/dist/packem_shared/SelectInputItem-BEkbmobs.js +1 -0
- package/dist/packem_shared/ShimmerText-CuGQ2NDC.js +1 -0
- package/dist/packem_shared/Slider-Cg_tJpKa.js +1 -0
- package/dist/packem_shared/Spacer-eT3HOrXk.js +1 -0
- package/dist/packem_shared/Sparkline-T6_FPVET.js +1 -0
- package/dist/packem_shared/Spinner-B0-A50pu.js +1 -0
- package/dist/packem_shared/Static-DLynr5pn.js +1 -0
- package/dist/packem_shared/Static-jzLPaHJF.js +1 -0
- package/dist/packem_shared/StaticRender-BgD61E7x.js +1 -0
- package/dist/packem_shared/StatusLine-Ch4jjef1.js +1 -0
- package/dist/packem_shared/StatusMessage-B1qfKeMM.js +1 -0
- package/dist/packem_shared/Stepper-CNPAqxiU.js +1 -0
- package/dist/packem_shared/Stopwatch-CAx2EWwq.js +1 -0
- package/dist/packem_shared/StreamingText-BYOKSB2T.js +1 -0
- package/dist/packem_shared/Switch-DzSpKYu7.js +1 -0
- package/dist/packem_shared/Tab-BcXzSUdj.js +1 -0
- package/dist/packem_shared/Table-DJp1TLrR.js +1 -0
- package/dist/packem_shared/Tabs-D68z0SOt.js +1 -0
- package/dist/packem_shared/Tag-BvLHnYRn.js +1 -0
- package/dist/packem_shared/Text-mTAve9R2.js +1 -0
- package/dist/packem_shared/TextInput-C_gYQlnF.js +1 -0
- package/dist/packem_shared/Textarea-C2ET_oMb.js +2 -0
- package/dist/packem_shared/Timer-CI3aQX65.js +1 -0
- package/dist/packem_shared/Toast-Drvc8XfG.js +1 -0
- package/dist/packem_shared/Tooltip-C5UnQlLd.js +1 -0
- package/dist/packem_shared/Transform-fYmcdqRT.js +1 -0
- package/dist/packem_shared/Transition-CJDBKYUB.js +1 -0
- package/dist/packem_shared/TreeNodeMap-CspqSCpb.js +1 -0
- package/dist/packem_shared/TreeView-DjhacGJ5.js +1 -0
- package/dist/packem_shared/TuiApp-DrjI_i-R.js +1 -0
- package/dist/packem_shared/TuiContext-BoJvG3NN.js +3 -0
- package/dist/packem_shared/UnorderedList-BnfqexZs.js +1 -0
- package/dist/packem_shared/accessibility-context-DDyHTwmA.js +1 -0
- package/dist/packem_shared/animation-context-DW3p-vpk.js +1 -0
- package/dist/packem_shared/ansi-parser-B6uXaq65.js +1 -0
- package/dist/packem_shared/ansi-tokenizer-DqX9nJuk.js +1 -0
- package/dist/packem_shared/app-context-BVpKlG1z.js +1 -0
- package/dist/packem_shared/background-context-rjOaWFki.js +1 -0
- package/dist/packem_shared/boxes-DyY_LXCi.js +1 -0
- package/dist/packem_shared/braille-BBjIoaN0.js +1 -0
- package/dist/packem_shared/colorize-DbTZMrJO.js +1 -0
- package/dist/packem_shared/comparePoints-C85EsmNz.js +1 -0
- package/dist/packem_shared/controlled-scroll-view-CmrAEvJk.js +1 -0
- package/dist/packem_shared/createInlineLoop-DRNZ7jqH.js +2 -0
- package/dist/packem_shared/createLinkedScrollGroup-BMTJ7rAj.js +1 -0
- package/dist/packem_shared/createMemoryStorage-QVZNXbWz.js +2 -0
- package/dist/packem_shared/createScreen-CrLrxA6t.js +3 -0
- package/dist/packem_shared/cursor-context-CFviBqPX.js +1 -0
- package/dist/packem_shared/dom-4y__5fWB.js +1 -0
- package/dist/packem_shared/focus-context-CsT69klR.js +1 -0
- package/dist/packem_shared/format-time-C7Q-hQZq.js +1 -0
- package/dist/packem_shared/getPathToRoot-B2tKmx3i.js +1 -0
- package/dist/packem_shared/getScrollHeight-BTEY8ewu.js +1 -0
- package/dist/packem_shared/input-utils-fAxzSlNh.js +1 -0
- package/dist/packem_shared/isIntersecting-B3KbKTmu.js +1 -0
- package/dist/packem_shared/isOsc52Supported-DKK7Uee6.js +1 -0
- package/dist/packem_shared/isTerminalPaletteQuerySupported-Dn2hFAZ_.js +1 -0
- package/dist/packem_shared/kittyFlags-C3rZLbcK.js +1 -0
- package/dist/packem_shared/line-chart-DrM8PwnI.js +1 -0
- package/dist/packem_shared/measure-element-DSp7YDus.js +2 -0
- package/dist/packem_shared/measure-text-DDjHT1jD.js +3 -0
- package/dist/packem_shared/measureElement-DA8WqFP_.js +1 -0
- package/dist/packem_shared/mouse-context-DaARgUu1.js +1 -0
- package/dist/packem_shared/parseSgrMouse-Ccj70ijb.js +1 -0
- package/dist/packem_shared/processLayout-DXDfFb_d.js +1 -0
- package/dist/packem_shared/reconciler-BuOP-TZ6.js +1 -0
- package/dist/packem_shared/reconciler-DSYCrIZs.js +1 -0
- package/dist/packem_shared/render-DDqtMAFN.js +1 -0
- package/dist/packem_shared/render-_r0K9K11.js +28 -0
- package/dist/packem_shared/renderToString-DeqOWRP8.js +4 -0
- package/dist/packem_shared/renderToString-IYYPyASm.js +2 -0
- package/dist/packem_shared/renderTreeToBuffer-DPkoCgP2.js +2 -0
- package/dist/packem_shared/renderer-D2p6av2X.js +17 -0
- package/dist/packem_shared/setEnableStyledLineCache-D2gZbwFM.js +1 -0
- package/dist/packem_shared/squashTextNodesWithMap-Cpqmc45i.js +1 -0
- package/dist/packem_shared/stderr-context-BzEaUICS.js +1 -0
- package/dist/packem_shared/stdin-context-BTaaFagk.js +1 -0
- package/dist/packem_shared/stdout-context-BnblEPez.js +1 -0
- package/dist/packem_shared/text-width-CZ9vPvM0.js +2 -0
- package/dist/packem_shared/token-to-elements-BYxT6J_Q.js +1 -0
- package/dist/packem_shared/treeViewTheme-1RIZyB4M.js +1 -0
- package/dist/packem_shared/useAnimation-B9we6ZzL.js +1 -0
- package/dist/packem_shared/useApp-B6fvM42d.js +1 -0
- package/dist/packem_shared/useBoxMetrics-D5pkIr6P.js +1 -0
- package/dist/packem_shared/useClipboard-CBxy0hT8.js +1 -0
- package/dist/packem_shared/useColorBlindness-BvWcu2Bb.js +1 -0
- package/dist/packem_shared/useConsoleCapture-BxiG8iLJ.js +1 -0
- package/dist/packem_shared/useCursor-CPu8T5Db.js +1 -0
- package/dist/packem_shared/useElementDimensions-qJ_WXFZ9.js +1 -0
- package/dist/packem_shared/useFocus-DSmziO_x.js +1 -0
- package/dist/packem_shared/useFocusManager-Uapn3LQo.js +1 -0
- package/dist/packem_shared/useForm-CzV-Oext.js +1 -0
- package/dist/packem_shared/useHotkey-D0dGey14.js +1 -0
- package/dist/packem_shared/useInput-D1_jG26Z.js +2 -0
- package/dist/packem_shared/useInterval-AobjZT3u.js +1 -0
- package/dist/packem_shared/useIsScreenReaderEnabled-DjWHh-II.js +1 -0
- package/dist/packem_shared/useKeyBindings-zabkEJQs.js +1 -0
- package/dist/packem_shared/useKeyChord-CICQIxXj.js +1 -0
- package/dist/packem_shared/useMouseAction-2dRfU1vE.js +1 -0
- package/dist/packem_shared/useMouseContext-C746G7kY.js +1 -0
- package/dist/packem_shared/useMousePosition-BTWfV4JK.js +1 -0
- package/dist/packem_shared/useOnMouseClick-nY8xLZmt.js +1 -0
- package/dist/packem_shared/useOnMouseHover-D3DczIol.js +1 -0
- package/dist/packem_shared/useOnMouseState-cRK8QvzD.js +1 -0
- package/dist/packem_shared/usePaste-CKKB9H-Z.js +1 -0
- package/dist/packem_shared/useScrollAcceleration-NrY1oVMs.js +1 -0
- package/dist/packem_shared/useScrollInput-Caghtn-Q.js +1 -0
- package/dist/packem_shared/useStderr-BDZb6InG.js +1 -0
- package/dist/packem_shared/useStdin-DKa4h35k.js +1 -0
- package/dist/packem_shared/useStdout-B-2lX4C5.js +1 -0
- package/dist/packem_shared/useStopwatch-DffK7iMh.js +1 -0
- package/dist/packem_shared/useTerminalPalette-Cv7tSduR.js +1 -0
- package/dist/packem_shared/useTextBuffer-DekkGLxI.js +4 -0
- package/dist/packem_shared/useTextSelection-CGT0GLDR.js +1 -0
- package/dist/packem_shared/useTimeout-7LEFYTnG.js +1 -0
- package/dist/packem_shared/useTimer-DyoqSyGi.js +1 -0
- package/dist/packem_shared/useTreeView-8UlTK6sW.js +1 -0
- package/dist/packem_shared/useTreeViewState-CRPCUWrb.js +1 -0
- package/dist/packem_shared/useWindowSize-yDZsXF8z.js +1 -0
- package/dist/packem_shared/utils-THUhYKG2.js +1 -0
- package/dist/packem_shared/variant-config-BJqpNo7H.js +1 -0
- package/dist/packem_shared/waitFor-Dj5zfL5s.js +4 -0
- package/dist/packem_shared/wrapOrTruncateStyledLine-BZ00SM8i.js +3 -0
- package/dist/react/index.js +1 -9
- package/dist/testing/index.js +1 -152
- package/package.json +9 -9
- package/dist/packem_shared/Accordion-BG-yfIkV.js +0 -80
- package/dist/packem_shared/Alert-BLcwIW8V.js +0 -17
- package/dist/packem_shared/AnimatePresence-D8nEOr_B.js +0 -98
- package/dist/packem_shared/ApprovalPrompt-BXdPros1.js +0 -104
- package/dist/packem_shared/AreaChart-CmTcxLum.js +0 -116
- package/dist/packem_shared/Badge-CUfbXwAB.js +0 -13
- package/dist/packem_shared/BarChart-DWRae67P.js +0 -87
- package/dist/packem_shared/BigText-CVq2X7B5.js +0 -24
- package/dist/packem_shared/BlinkDot-CrbHMR3L.js +0 -11
- package/dist/packem_shared/Box-W1w_NGin.js +0 -71
- package/dist/packem_shared/Breadcrumb-CPdNxVYs.js +0 -26
- package/dist/packem_shared/Button-CBmTbJ_D.js +0 -57
- package/dist/packem_shared/COLOR_BLINDNESS_SIMULATION-BsMy5Ewl.js +0 -81
- package/dist/packem_shared/Calendar-C2Qxt-LA.js +0 -139
- package/dist/packem_shared/Canvas-COttmLPX.js +0 -246
- package/dist/packem_shared/Card-D3tGkNCm.js +0 -24
- package/dist/packem_shared/Cell-DCg1kJY-.js +0 -48
- package/dist/packem_shared/Checkbox-Dpy_4Lws.js +0 -49
- package/dist/packem_shared/Code-CwzzbsLx.js +0 -53
- package/dist/packem_shared/Collapsible-BMDrXf5C.js +0 -45
- package/dist/packem_shared/CommandBlock-jdOGJPjY.js +0 -80
- package/dist/packem_shared/CommandPalette-B5IfUQwi.js +0 -146
- package/dist/packem_shared/ConfirmDialog-5XJv3Cc4.js +0 -67
- package/dist/packem_shared/ConfirmInput-CxUS0XAA.js +0 -44
- package/dist/packem_shared/ConsoleOverlay-BvnCEgjG.js +0 -57
- package/dist/packem_shared/ContentSwitcher-BHFpO5Za.js +0 -81
- package/dist/packem_shared/ControlledScrollView-C2wOOlJO.js +0 -5
- package/dist/packem_shared/Cursor-DiW7YoSK.js +0 -18
- package/dist/packem_shared/DatePicker-CPejKoqS.js +0 -73
- package/dist/packem_shared/DefinitionList-BAwr0l5J.js +0 -18
- package/dist/packem_shared/DevTools-BdxRSkhL.js +0 -63
- package/dist/packem_shared/Dialog-S9r7Izff.js +0 -71
- package/dist/packem_shared/DiffView-BR4T6-Sj.js +0 -329
- package/dist/packem_shared/Divider-DocXIqNn.js +0 -30
- package/dist/packem_shared/FilePicker-BZ55oF_n.js +0 -261
- package/dist/packem_shared/FocusContext-D5wFxSRz.js +0 -153
- package/dist/packem_shared/FormField-BSG16cnA.js +0 -29
- package/dist/packem_shared/Fullscreen-DO7voOq5.js +0 -11
- package/dist/packem_shared/Gauge-CKXUXxft.js +0 -122
- package/dist/packem_shared/Gradient-Dg0NezWc.js +0 -136
- package/dist/packem_shared/Heading-BnR7McmP.js +0 -29
- package/dist/packem_shared/Heatmap-_jqISOU0.js +0 -79
- package/dist/packem_shared/Help-0yZ_IcQg.js +0 -105
- package/dist/packem_shared/Histogram-CB6XcmZW.js +0 -92
- package/dist/packem_shared/IMECompositionBuffer-Dl3S0KnF.js +0 -55
- package/dist/packem_shared/InputParser-BlsfeY9J.js +0 -158
- package/dist/packem_shared/KEY-STOdi-nc.js +0 -74
- package/dist/packem_shared/Kbd-BNDXQgey.js +0 -19
- package/dist/packem_shared/LayoutNode-DAkKg9TE.js +0 -129
- package/dist/packem_shared/LineChart-ef3HF816.js +0 -7
- package/dist/packem_shared/Link-DZ2Tiq1m.js +0 -66
- package/dist/packem_shared/LoadingIndicator-DzbLGfyJ.js +0 -13
- package/dist/packem_shared/Markdown-33bpCUoe.js +0 -212
- package/dist/packem_shared/MaskedInput-Ctr6v2dO.js +0 -119
- package/dist/packem_shared/Menu-CeKxhEix.js +0 -112
- package/dist/packem_shared/MessageBubble-BMoU8L2Q.js +0 -26
- package/dist/packem_shared/ModelBadge-CNIxPs7v.js +0 -40
- package/dist/packem_shared/MouseProvider-CekPbXCh.js +0 -136
- package/dist/packem_shared/MultiSelect-yz7-w0Zv.js +0 -129
- package/dist/packem_shared/NAMED_COLORS-DcI3erCu.js +0 -300
- package/dist/packem_shared/Newline-DBtYEg8x.js +0 -7
- package/dist/packem_shared/OperationTree-Dudx5o1o.js +0 -67
- package/dist/packem_shared/OptionList-CTyqQaZ1.js +0 -24
- package/dist/packem_shared/OrderedList-VsvSmHUC.js +0 -26
- package/dist/packem_shared/Paginator-DmGogvEI.js +0 -104
- package/dist/packem_shared/Paragraph-CNNhfepo.js +0 -9
- package/dist/packem_shared/Placeholder-DkM69Q8Z.js +0 -29
- package/dist/packem_shared/ProgressBar-B7cS4uQm.js +0 -22
- package/dist/packem_shared/RadioGroup-B4F9PUyL.js +0 -108
- package/dist/packem_shared/Renderer-zZ5O3vxc.js +0 -31
- package/dist/packem_shared/ResizeObserverEntry-Vr8GZ74x.js +0 -102
- package/dist/packem_shared/ScatterPlot-CWOg4G5h.js +0 -63
- package/dist/packem_shared/ScrollBar-DFeWH43I.js +0 -106
- package/dist/packem_shared/ScrollBarBox-C7VL6Izd.js +0 -72
- package/dist/packem_shared/ScrollList-DRcr_RrN.js +0 -227
- package/dist/packem_shared/ScrollView-C6rdlGwU.js +0 -196
- package/dist/packem_shared/SearchInput-cB8zFhSg.js +0 -32
- package/dist/packem_shared/SelectInput-WzZSqp72.js +0 -260
- package/dist/packem_shared/SelectInputIndicator-DKeN6v5Z.js +0 -9
- package/dist/packem_shared/SelectInputItem-CxFL3spM.js +0 -8
- package/dist/packem_shared/ShimmerText-B2VbPUSB.js +0 -34
- package/dist/packem_shared/Slider-BOrNTOQe.js +0 -116
- package/dist/packem_shared/Spacer-DhmXyTb8.js +0 -8
- package/dist/packem_shared/Sparkline-BSbjPrwK.js +0 -44
- package/dist/packem_shared/Spinner-BcO5BCAa.js +0 -1942
- package/dist/packem_shared/Static-DpTd6Eed.js +0 -22
- package/dist/packem_shared/Static-xmD9giJj.js +0 -18
- package/dist/packem_shared/StaticRender-C3XWvJdC.js +0 -69
- package/dist/packem_shared/StatusLine-DQNUstN9.js +0 -22
- package/dist/packem_shared/StatusMessage-BYTL6Pl-.js +0 -14
- package/dist/packem_shared/Stepper-CmUPRK3z.js +0 -60
- package/dist/packem_shared/Stopwatch-zqLQAxXC.js +0 -21
- package/dist/packem_shared/StreamingText-BmuoJtGu.js +0 -38
- package/dist/packem_shared/Switch-DcPdy8nm.js +0 -59
- package/dist/packem_shared/Tab-C6r5q4hR.js +0 -7
- package/dist/packem_shared/Table-Bgxo87Df.js +0 -88
- package/dist/packem_shared/Tabs-DubuHdYV.js +0 -164
- package/dist/packem_shared/Tag-CCqM7Ee9.js +0 -35
- package/dist/packem_shared/Text-CtUwV89_.js +0 -65
- package/dist/packem_shared/TextInput-C9r7zT0U.js +0 -137
- package/dist/packem_shared/Textarea-CGmgt-Nl.js +0 -272
- package/dist/packem_shared/Timer-D7ZZ0_wz.js +0 -20
- package/dist/packem_shared/Toast-DXSCXFPY.js +0 -37
- package/dist/packem_shared/Tooltip-SvVjj-2k.js +0 -32
- package/dist/packem_shared/Transform-Cfyva2wd.js +0 -14
- package/dist/packem_shared/Transition-CbNfKhaj.js +0 -108
- package/dist/packem_shared/TreeNodeMap-CtJUvBnd.js +0 -155
- package/dist/packem_shared/TreeView-DGlZeSsK.js +0 -148
- package/dist/packem_shared/TuiApp-DtdgNRWa.js +0 -122
- package/dist/packem_shared/TuiContext-lXmJFd-x.js +0 -418
- package/dist/packem_shared/UnorderedList-D8RPaEAW.js +0 -33
- package/dist/packem_shared/accessibility-context-BLelHhNU.js +0 -7
- package/dist/packem_shared/animation-context-BcJg8Jr6.js +0 -15
- package/dist/packem_shared/ansi-parser-BOP8fNdT.js +0 -43
- package/dist/packem_shared/ansi-tokenizer-LHq2LUWA.js +0 -307
- package/dist/packem_shared/app-context-CP0U6H7O.js +0 -11
- package/dist/packem_shared/background-context-BAUaxfOb.js +0 -5
- package/dist/packem_shared/boxes-oi3WUbyR.js +0 -92
- package/dist/packem_shared/braille-BoEWoH2I.js +0 -93
- package/dist/packem_shared/colorize-88_Vk8cn.js +0 -48
- package/dist/packem_shared/comparePoints-CAAlhiMS.js +0 -287
- package/dist/packem_shared/controlled-scroll-view-DJXfdWMm.js +0 -286
- package/dist/packem_shared/createInlineLoop-Dnfm1ZSJ.js +0 -99
- package/dist/packem_shared/createLinkedScrollGroup-Djw4Ceo0.js +0 -44
- package/dist/packem_shared/createMemoryStorage-esFJ61La.js +0 -115
- package/dist/packem_shared/createScreen-Dh0sZlQ0.js +0 -38
- package/dist/packem_shared/cursor-context-JxRzlqAx.js +0 -9
- package/dist/packem_shared/dom-CrbpQgat.js +0 -228
- package/dist/packem_shared/focus-context-CWkYtgcm.js +0 -26
- package/dist/packem_shared/format-time-BGmnDukX.js +0 -12
- package/dist/packem_shared/getPathToRoot-BbvlppLC.js +0 -4
- package/dist/packem_shared/getScrollHeight-Cz3CDQN2.js +0 -63
- package/dist/packem_shared/input-utils-ViAEXa0Z.js +0 -19
- package/dist/packem_shared/isIntersecting-fEXHJN5R.js +0 -10
- package/dist/packem_shared/isOsc52Supported-G0k4sXJx.js +0 -36
- package/dist/packem_shared/isTerminalPaletteQuerySupported-EeiwMKbr.js +0 -93
- package/dist/packem_shared/kittyFlags-bNNf_9kX.js +0 -26
- package/dist/packem_shared/line-chart-VGU2l7pu.js +0 -139
- package/dist/packem_shared/measure-element-Bc6PEaIe.js +0 -405
- package/dist/packem_shared/measure-text-BdOhbOeh.js +0 -1256
- package/dist/packem_shared/measureElement-DTELRaij.js +0 -4
- package/dist/packem_shared/mouse-context-BUHWKEIe.js +0 -6
- package/dist/packem_shared/parseSgrMouse-4hpBJBsW.js +0 -1
- package/dist/packem_shared/processLayout-B0Coz0Ua.js +0 -2
- package/dist/packem_shared/reconciler-Dd7Z0A97.js +0 -696
- package/dist/packem_shared/reconciler-mzMwSOft.js +0 -221
- package/dist/packem_shared/render-Bm9Oa1sG.js +0 -2799
- package/dist/packem_shared/render-CjlKdg4m.js +0 -199
- package/dist/packem_shared/renderToString-CWYS1ZXE.js +0 -86
- package/dist/packem_shared/renderToString-DB3ILWFm.js +0 -62
- package/dist/packem_shared/renderTreeToBuffer-CDDTGyZn.js +0 -311
- package/dist/packem_shared/renderer-GE9OLNNM.js +0 -1437
- package/dist/packem_shared/setEnableStyledLineCache-D5f4favX.js +0 -2
- package/dist/packem_shared/squashTextNodesWithMap-iqm6OMMT.js +0 -100
- package/dist/packem_shared/stderr-context-Bj4Mf7v7.js +0 -17
- package/dist/packem_shared/stdin-context-Bq_GNJ3z.js +0 -38
- package/dist/packem_shared/stdout-context-CgjWeCdO.js +0 -17
- package/dist/packem_shared/text-width-Db-AxMea.js +0 -43
- package/dist/packem_shared/token-to-elements-CK4s8MJd.js +0 -249
- package/dist/packem_shared/treeViewTheme-BpSw9TMf.js +0 -52
- package/dist/packem_shared/useAnimation-DV22qxiJ.js +0 -62
- package/dist/packem_shared/useApp-Cbi788rV.js +0 -6
- package/dist/packem_shared/useBoxMetrics-_5icypir.js +0 -54
- package/dist/packem_shared/useClipboard-MNj6MNR-.js +0 -23
- package/dist/packem_shared/useColorBlindness-D_sTIhcb.js +0 -30
- package/dist/packem_shared/useConsoleCapture-Dvt7G1W1.js +0 -61
- package/dist/packem_shared/useCursor-DS6LjIgv.js +0 -19
- package/dist/packem_shared/useElementDimensions-CAoKitVD.js +0 -67
- package/dist/packem_shared/useFocus-DLoGQJd9.js +0 -37
- package/dist/packem_shared/useFocusManager-UeZWtnNc.js +0 -16
- package/dist/packem_shared/useForm-sQENbEuv.js +0 -88
- package/dist/packem_shared/useHotkey-D9giUX3q.js +0 -112
- package/dist/packem_shared/useInput-DKZbqMRc.js +0 -594
- package/dist/packem_shared/useInterval-CSXM8c2I.js +0 -32
- package/dist/packem_shared/useIsScreenReaderEnabled-BeoVqo1R.js +0 -9
- package/dist/packem_shared/useKeyBindings-S4fSIEAk.js +0 -66
- package/dist/packem_shared/useKeyChord-BmXGNuEO.js +0 -114
- package/dist/packem_shared/useMouseAction-C5gZ2nj7.js +0 -29
- package/dist/packem_shared/useMouseContext-D-rFy60Q.js +0 -12
- package/dist/packem_shared/useMousePosition-BHBJ-kBk.js +0 -25
- package/dist/packem_shared/useOnMouseClick--ZIyBOBO.js +0 -35
- package/dist/packem_shared/useOnMouseHover-26diuXUC.js +0 -32
- package/dist/packem_shared/useOnMouseState-NO_Kda_C.js +0 -13
- package/dist/packem_shared/usePaste-png73gvT.js +0 -35
- package/dist/packem_shared/useScrollAcceleration-R9LfrPVG.js +0 -73
- package/dist/packem_shared/useScrollInput-DfzRGQFe.js +0 -72
- package/dist/packem_shared/useStderr-BSWerMZ7.js +0 -6
- package/dist/packem_shared/useStdin-Rf0zPzVA.js +0 -7
- package/dist/packem_shared/useStdout-B5yRcg9N.js +0 -6
- package/dist/packem_shared/useStopwatch-C__Zu6hd.js +0 -33
- package/dist/packem_shared/useTerminalPalette-CtFG2JTq.js +0 -38
- package/dist/packem_shared/useTextBuffer-C8fEe9Ly.js +0 -398
- package/dist/packem_shared/useTextSelection-ChrYZXsn.js +0 -50
- package/dist/packem_shared/useTimeout-DuCqgWPX.js +0 -34
- package/dist/packem_shared/useTimer-DnBtbhB5.js +0 -46
- package/dist/packem_shared/useTreeView-mkN5Di7w.js +0 -101
- package/dist/packem_shared/useTreeViewState-BpS_KZ-K.js +0 -502
- package/dist/packem_shared/useWindowSize-D3UU41mv.js +0 -20
- package/dist/packem_shared/utils-BgdlrbOH.js +0 -140
- package/dist/packem_shared/variant-config-DSZoX5TM.js +0 -8
- package/dist/packem_shared/waitFor-Cv9M2jKA.js +0 -39
- package/dist/packem_shared/wrapOrTruncateStyledLine-49Mne3t3.js +0 -147
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
const BEL = "\x07";
|
|
2
|
-
const OSC = "\x1B]";
|
|
3
|
-
const parseOscColorResponse = (response) => {
|
|
4
|
-
const match = /rgb:([\da-f]{2,4})\/([\da-f]{2,4})\/([\da-f]{2,4})/i.exec(response);
|
|
5
|
-
if (!match) {
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
const toHex = (value) => {
|
|
9
|
-
if (value.length <= 2) {
|
|
10
|
-
return value.padStart(2, "0");
|
|
11
|
-
}
|
|
12
|
-
return value.slice(0, 2);
|
|
13
|
-
};
|
|
14
|
-
return `#${toHex(match[1])}${toHex(match[2])}${toHex(match[3])}`;
|
|
15
|
-
};
|
|
16
|
-
const isTerminalPaletteQuerySupported = () => {
|
|
17
|
-
const termProgram = process.env["TERM_PROGRAM"] ?? "";
|
|
18
|
-
const supported = /* @__PURE__ */ new Set(["Alacritty", "contour", "foot", "Ghostty", "iTerm2", "iTerm.app", "kitty", "rio", "WezTerm"]);
|
|
19
|
-
if (supported.has(termProgram)) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
const term = process.env["TERM"] ?? "";
|
|
23
|
-
return term.startsWith("xterm") || Boolean(process.env["WT_SESSION"]);
|
|
24
|
-
};
|
|
25
|
-
const MAX_RESPONSE_BYTES = 256;
|
|
26
|
-
const queryOsc = (stdin, stdout, sequence, timeout = 500) => new Promise((resolve) => {
|
|
27
|
-
let buffer = "";
|
|
28
|
-
let timer;
|
|
29
|
-
const cleanup = () => {
|
|
30
|
-
if (timer) {
|
|
31
|
-
clearTimeout(timer);
|
|
32
|
-
}
|
|
33
|
-
stdin.removeListener("data", onData);
|
|
34
|
-
};
|
|
35
|
-
const onData = (data) => {
|
|
36
|
-
buffer += data.toString();
|
|
37
|
-
if (buffer.length > MAX_RESPONSE_BYTES) {
|
|
38
|
-
cleanup();
|
|
39
|
-
resolve(null);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (buffer.includes(BEL) || buffer.includes("\x1B\\")) {
|
|
43
|
-
cleanup();
|
|
44
|
-
resolve(buffer);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
timer = setTimeout(() => {
|
|
48
|
-
cleanup();
|
|
49
|
-
resolve(null);
|
|
50
|
-
}, timeout);
|
|
51
|
-
stdin.on("data", onData);
|
|
52
|
-
stdout.write(sequence);
|
|
53
|
-
});
|
|
54
|
-
const queryTerminalPalette = async (stdin, stdout, timeout = 500) => {
|
|
55
|
-
const result = {};
|
|
56
|
-
const fgResponse = await queryOsc(stdin, stdout, `${OSC}10;?${BEL}`, timeout);
|
|
57
|
-
if (fgResponse) {
|
|
58
|
-
const fg = parseOscColorResponse(fgResponse);
|
|
59
|
-
if (fg) {
|
|
60
|
-
result.foreground = fg;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const bgResponse = await queryOsc(stdin, stdout, `${OSC}11;?${BEL}`, timeout);
|
|
64
|
-
if (bgResponse) {
|
|
65
|
-
const bg = parseOscColorResponse(bgResponse);
|
|
66
|
-
if (bg) {
|
|
67
|
-
result.background = bg;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const cursorResponse = await queryOsc(stdin, stdout, `${OSC}12;?${BEL}`, timeout);
|
|
71
|
-
if (cursorResponse) {
|
|
72
|
-
const cursor = parseOscColorResponse(cursorResponse);
|
|
73
|
-
if (cursor) {
|
|
74
|
-
result.cursor = cursor;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const colors = [];
|
|
78
|
-
for (let index = 0; index < 16; index++) {
|
|
79
|
-
const colorResponse = await queryOsc(stdin, stdout, `${OSC}4;${index};?${BEL}`, timeout);
|
|
80
|
-
if (colorResponse) {
|
|
81
|
-
const color = parseOscColorResponse(colorResponse);
|
|
82
|
-
colors.push(color ?? "");
|
|
83
|
-
} else {
|
|
84
|
-
colors.push("");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (colors.some((c) => c.length > 0)) {
|
|
88
|
-
result.colors = colors;
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export { isTerminalPaletteQuerySupported, queryTerminalPalette };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const kittyFlags = {
|
|
2
|
-
disambiguateEscapeCodes: 1,
|
|
3
|
-
reportAllKeysAsEscapeCodes: 8,
|
|
4
|
-
reportAlternateKeys: 4,
|
|
5
|
-
reportAssociatedText: 16,
|
|
6
|
-
reportEventTypes: 2
|
|
7
|
-
};
|
|
8
|
-
function resolveFlags(flags) {
|
|
9
|
-
let result = 0;
|
|
10
|
-
for (const flag of flags) {
|
|
11
|
-
result |= kittyFlags[flag];
|
|
12
|
-
}
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
const kittyModifiers = {
|
|
16
|
-
alt: 2,
|
|
17
|
-
capsLock: 64,
|
|
18
|
-
ctrl: 4,
|
|
19
|
-
hyper: 16,
|
|
20
|
-
meta: 32,
|
|
21
|
-
numLock: 128,
|
|
22
|
-
shift: 1,
|
|
23
|
-
super: 8
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { kittyFlags, kittyModifiers, resolveFlags };
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import { c as createBrailleGrid } from './braille-BoEWoH2I.js';
|
|
4
|
-
import Box from './Box-W1w_NGin.js';
|
|
5
|
-
import Canvas from './Canvas-COttmLPX.js';
|
|
6
|
-
import Text from './Text-CtUwV89_.js';
|
|
7
|
-
|
|
8
|
-
const DEFAULT_CHART_PALETTE = ["cyan", "magenta", "yellow", "green", "blue", "red"];
|
|
9
|
-
const toPoints = (data) => {
|
|
10
|
-
if (data.length === 0) {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
const first = data[0];
|
|
14
|
-
if (typeof first === "number") {
|
|
15
|
-
return data.map((y, x) => {
|
|
16
|
-
return { x, y };
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return data;
|
|
20
|
-
};
|
|
21
|
-
const pickSeriesColor = (series, index, palette) => series.color ?? palette[index % palette.length] ?? "cyan";
|
|
22
|
-
const computeExtents = (seriesList) => {
|
|
23
|
-
let xMin = Number.POSITIVE_INFINITY;
|
|
24
|
-
let xMax = Number.NEGATIVE_INFINITY;
|
|
25
|
-
let yMin = Number.POSITIVE_INFINITY;
|
|
26
|
-
let yMax = Number.NEGATIVE_INFINITY;
|
|
27
|
-
for (const { points } of seriesList) {
|
|
28
|
-
for (const point of points) {
|
|
29
|
-
if (point.x < xMin) {
|
|
30
|
-
xMin = point.x;
|
|
31
|
-
}
|
|
32
|
-
if (point.x > xMax) {
|
|
33
|
-
xMax = point.x;
|
|
34
|
-
}
|
|
35
|
-
if (point.y < yMin) {
|
|
36
|
-
yMin = point.y;
|
|
37
|
-
}
|
|
38
|
-
if (point.y > yMax) {
|
|
39
|
-
yMax = point.y;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return { xMax, xMin, yMax, yMin };
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const DEFAULT_PALETTE = DEFAULT_CHART_PALETTE;
|
|
47
|
-
const projectPoint = (point, config, pixelWidth, pixelHeight) => {
|
|
48
|
-
const xRange = config.xMax - config.xMin || 1;
|
|
49
|
-
const yRange = config.yMax - config.yMin || 1;
|
|
50
|
-
const nx = (point.x - config.xMin) / xRange;
|
|
51
|
-
const ny = (point.y - config.yMin) / yRange;
|
|
52
|
-
return {
|
|
53
|
-
px: Math.max(0, Math.min(pixelWidth - 1, Math.round(nx * (pixelWidth - 1)))),
|
|
54
|
-
py: Math.max(0, Math.min(pixelHeight - 1, Math.round((1 - ny) * (pixelHeight - 1))))
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
const drawSeriesOnCanvas = (context, mode, config) => {
|
|
58
|
-
context.clear();
|
|
59
|
-
const { axisColor, seriesList } = config;
|
|
60
|
-
const pixelWidth = Math.max(1, context.width * 2);
|
|
61
|
-
const pixelHeight = Math.max(1, context.height * 4);
|
|
62
|
-
for (let cellX = 0; cellX < context.width; cellX += 2) {
|
|
63
|
-
context.setCell(cellX, context.height - 1, "·", { color: axisColor, dim: true });
|
|
64
|
-
}
|
|
65
|
-
for (const { color, points } of seriesList) {
|
|
66
|
-
if (points.length === 0) {
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
const grid = createBrailleGrid(context.width, context.height);
|
|
70
|
-
if (mode === "scatter") {
|
|
71
|
-
for (const point of points) {
|
|
72
|
-
const projected = projectPoint(point, config, pixelWidth, pixelHeight);
|
|
73
|
-
grid.plotPoint(projected.px, projected.py);
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
let previous = projectPoint(points[0], config, pixelWidth, pixelHeight);
|
|
77
|
-
grid.plotPoint(previous.px, previous.py);
|
|
78
|
-
for (let index = 1; index < points.length; index += 1) {
|
|
79
|
-
const current = projectPoint(points[index], config, pixelWidth, pixelHeight);
|
|
80
|
-
grid.plotLine(previous.px, previous.py, current.px, current.py);
|
|
81
|
-
previous = current;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
grid.flush(context, { color });
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
function LineChart({
|
|
88
|
-
axisColor = "gray",
|
|
89
|
-
height = 10,
|
|
90
|
-
maxY,
|
|
91
|
-
minY,
|
|
92
|
-
palette = DEFAULT_PALETTE,
|
|
93
|
-
series,
|
|
94
|
-
showLegend = true,
|
|
95
|
-
width = 40
|
|
96
|
-
}) {
|
|
97
|
-
const config = useMemo(() => {
|
|
98
|
-
const seriesList = series.map((input, index) => {
|
|
99
|
-
return {
|
|
100
|
-
color: pickSeriesColor(input, index, palette),
|
|
101
|
-
points: toPoints(input.data),
|
|
102
|
-
series: input
|
|
103
|
-
};
|
|
104
|
-
});
|
|
105
|
-
const extents = computeExtents(seriesList);
|
|
106
|
-
return {
|
|
107
|
-
axisColor,
|
|
108
|
-
palette,
|
|
109
|
-
seriesList,
|
|
110
|
-
xMax: extents.xMax === Number.NEGATIVE_INFINITY ? 1 : extents.xMax,
|
|
111
|
-
xMin: extents.xMin === Number.POSITIVE_INFINITY ? 0 : extents.xMin,
|
|
112
|
-
yMax: maxY ?? (extents.yMax === Number.NEGATIVE_INFINITY ? 1 : extents.yMax),
|
|
113
|
-
yMin: minY ?? (extents.yMin === Number.POSITIVE_INFINITY ? 0 : extents.yMin)
|
|
114
|
-
};
|
|
115
|
-
}, [series, axisColor, palette, minY, maxY]);
|
|
116
|
-
return jsxs(Box, { flexDirection: "column", children: [
|
|
117
|
-
jsx(
|
|
118
|
-
Canvas,
|
|
119
|
-
{
|
|
120
|
-
draw: (context) => {
|
|
121
|
-
drawSeriesOnCanvas(context, "line", config);
|
|
122
|
-
},
|
|
123
|
-
height,
|
|
124
|
-
version: [series, width, height, minY, maxY, axisColor, palette],
|
|
125
|
-
width
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
showLegend ? jsx(Box, { gap: 2, marginTop: 1, children: config.seriesList.map(({ color, series: input }, index) => (
|
|
129
|
-
// Composite key: series index plus label so two
|
|
130
|
-
// series sharing a label don't collide.
|
|
131
|
-
jsxs(Box, { gap: 1, children: [
|
|
132
|
-
jsx(Text, { color, children: "●" }),
|
|
133
|
-
jsx(Text, { children: input.label ?? `Series ${index + 1}` })
|
|
134
|
-
] }, `${index}:${input.label ?? ""}`)
|
|
135
|
-
)) }) : void 0
|
|
136
|
-
] });
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export { DEFAULT_CHART_PALETTE as D, LineChart as L, projectPoint as a, computeExtents as c, drawSeriesOnCanvas as d, pickSeriesColor as p, toPoints as t };
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import Yoga from 'yoga-layout';
|
|
2
|
-
import { getScrollTop, getScrollLeft } from './getScrollHeight-Cz3CDQN2.js';
|
|
3
|
-
import squashTextNodes from './squashTextNodesWithMap-iqm6OMMT.js';
|
|
4
|
-
|
|
5
|
-
const getAbsoluteBorderPosition = (node) => {
|
|
6
|
-
let currentNode = node;
|
|
7
|
-
let x = 0;
|
|
8
|
-
let y = 0;
|
|
9
|
-
while (currentNode?.parentNode) {
|
|
10
|
-
if (!currentNode.yogaNode) {
|
|
11
|
-
return void 0;
|
|
12
|
-
}
|
|
13
|
-
x += currentNode.yogaNode.getComputedLeft();
|
|
14
|
-
y += currentNode.yogaNode.getComputedTop();
|
|
15
|
-
currentNode = currentNode.parentNode;
|
|
16
|
-
}
|
|
17
|
-
return { x, y };
|
|
18
|
-
};
|
|
19
|
-
const getAbsolutePosition = (node) => getAbsoluteBorderPosition(node);
|
|
20
|
-
const getAbsoluteContentPosition = (node) => {
|
|
21
|
-
const borderPosition = getAbsoluteBorderPosition(node);
|
|
22
|
-
if (!borderPosition || !node.yogaNode) {
|
|
23
|
-
return void 0;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
x: borderPosition.x + node.yogaNode.getComputedBorder(Yoga.EDGE_LEFT) + node.yogaNode.getComputedPadding(Yoga.EDGE_LEFT),
|
|
27
|
-
y: borderPosition.y + node.yogaNode.getComputedBorder(Yoga.EDGE_TOP) + node.yogaNode.getComputedPadding(Yoga.EDGE_TOP)
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
const processLayout = (node, callbacks) => {
|
|
31
|
-
const { initialState, onNewline, onSpace, onText } = callbacks;
|
|
32
|
-
if (node.nodeName !== "ink-box" && node.nodeName !== "ink-root" && node.nodeName !== "ink-text" && node.nodeName !== "ink-virtual-text" || !node.yogaNode) {
|
|
33
|
-
return { lineBottom: 0, state: initialState() };
|
|
34
|
-
}
|
|
35
|
-
const { fragments } = collectSortedFragments(node);
|
|
36
|
-
const state = initialState();
|
|
37
|
-
state.currentX = 0;
|
|
38
|
-
state.lineBottom = 0;
|
|
39
|
-
state.yieldedContent = false;
|
|
40
|
-
for (const fragment of fragments) {
|
|
41
|
-
if (fragment.y >= state.lineBottom) {
|
|
42
|
-
const gap = fragment.y - state.lineBottom;
|
|
43
|
-
const newlines = state.yieldedContent ? 1 + gap : gap;
|
|
44
|
-
if (newlines > 0) {
|
|
45
|
-
onNewline(newlines, state);
|
|
46
|
-
state.currentX = 0;
|
|
47
|
-
}
|
|
48
|
-
state.lineBottom = fragment.y;
|
|
49
|
-
}
|
|
50
|
-
if (fragment.x > state.currentX) {
|
|
51
|
-
const spaces = fragment.x - state.currentX;
|
|
52
|
-
onSpace(spaces, state);
|
|
53
|
-
state.currentX = fragment.x;
|
|
54
|
-
}
|
|
55
|
-
if (fragment.text.length > 0) {
|
|
56
|
-
state.yieldedContent = true;
|
|
57
|
-
onText(fragment, state);
|
|
58
|
-
}
|
|
59
|
-
const newlinesInText = (fragment.text.match(/\n/g) ?? []).length;
|
|
60
|
-
if (newlinesInText > 0) {
|
|
61
|
-
const lastNewlineIndex = fragment.text.lastIndexOf("\n");
|
|
62
|
-
state.currentX = fragment.text.length - lastNewlineIndex - 1;
|
|
63
|
-
} else {
|
|
64
|
-
state.currentX += fragment.text.length;
|
|
65
|
-
}
|
|
66
|
-
state.lineBottom = Math.max(state.lineBottom, fragment.y + fragment.height);
|
|
67
|
-
}
|
|
68
|
-
return { lineBottom: state.lineBottom, state };
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const measureElement = (node) => {
|
|
72
|
-
const position = getAbsolutePosition(node);
|
|
73
|
-
return {
|
|
74
|
-
height: Math.round(node.yogaNode?.getComputedHeight() ?? 0),
|
|
75
|
-
width: Math.round(node.yogaNode?.getComputedWidth() ?? 0),
|
|
76
|
-
x: Math.round(position?.x ?? 0),
|
|
77
|
-
y: Math.round(position?.y ?? 0)
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
const getInnerWidth = (node) => {
|
|
81
|
-
const { yogaNode } = node;
|
|
82
|
-
if (!yogaNode) {
|
|
83
|
-
return 0;
|
|
84
|
-
}
|
|
85
|
-
const width = yogaNode.getComputedWidth() ?? 0;
|
|
86
|
-
const borderLeft = yogaNode.getComputedBorder(Yoga.EDGE_LEFT);
|
|
87
|
-
const borderRight = yogaNode.getComputedBorder(Yoga.EDGE_RIGHT);
|
|
88
|
-
return Math.round(width - borderLeft - borderRight);
|
|
89
|
-
};
|
|
90
|
-
const getInnerHeight = (node) => {
|
|
91
|
-
const { yogaNode } = node;
|
|
92
|
-
if (!yogaNode) {
|
|
93
|
-
return 0;
|
|
94
|
-
}
|
|
95
|
-
const height = yogaNode.getComputedHeight() ?? 0;
|
|
96
|
-
const borderTop = yogaNode.getComputedBorder(Yoga.EDGE_TOP);
|
|
97
|
-
const borderBottom = yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM);
|
|
98
|
-
return Math.round(height - borderTop - borderBottom);
|
|
99
|
-
};
|
|
100
|
-
const getBoundingBox = (node) => {
|
|
101
|
-
const { yogaNode } = node;
|
|
102
|
-
if (!yogaNode) {
|
|
103
|
-
return { height: 0, width: 0, x: 0, y: 0 };
|
|
104
|
-
}
|
|
105
|
-
const width = yogaNode.getComputedWidth() ?? 0;
|
|
106
|
-
const height = yogaNode.getComputedHeight() ?? 0;
|
|
107
|
-
let x = yogaNode.getComputedLeft();
|
|
108
|
-
let y = yogaNode.getComputedTop();
|
|
109
|
-
let parent = node.parentNode;
|
|
110
|
-
while (parent?.yogaNode) {
|
|
111
|
-
x += parent.yogaNode.getComputedLeft();
|
|
112
|
-
y += parent.yogaNode.getComputedTop();
|
|
113
|
-
if (parent.nodeName === "ink-box") {
|
|
114
|
-
const overflow = parent.style.overflow ?? "visible";
|
|
115
|
-
const overflowX = parent.style.overflowX ?? overflow;
|
|
116
|
-
const overflowY = parent.style.overflowY ?? overflow;
|
|
117
|
-
if (overflowY === "scroll") {
|
|
118
|
-
y -= getScrollTop(parent);
|
|
119
|
-
}
|
|
120
|
-
if (overflowX === "scroll") {
|
|
121
|
-
x -= getScrollLeft(parent);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
parent = parent.parentNode;
|
|
125
|
-
}
|
|
126
|
-
return {
|
|
127
|
-
height: Math.round(height),
|
|
128
|
-
width: Math.round(width),
|
|
129
|
-
x: Math.round(x),
|
|
130
|
-
y: Math.round(y)
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
const getAddedScrollHeight = (node) => {
|
|
134
|
-
const scrollHeight = node.internal_scrollState?.scrollHeight ?? 0;
|
|
135
|
-
const actualScrollHeight = node.internal_scrollState?.actualScrollHeight ?? 0;
|
|
136
|
-
return Math.max(0, scrollHeight - actualScrollHeight);
|
|
137
|
-
};
|
|
138
|
-
const calculateScrollbarThumb = (options) => {
|
|
139
|
-
const { axis, clientDimension, scrollbarDimension, scrollDimension, scrollPosition } = options;
|
|
140
|
-
const scrollbarDimensionHalves = scrollbarDimension * 2;
|
|
141
|
-
const thumbDimensionHalves = Math.max(axis === "vertical" ? 2 : 1, Math.round(clientDimension / scrollDimension * scrollbarDimensionHalves));
|
|
142
|
-
const maxScrollPosition = scrollDimension - clientDimension;
|
|
143
|
-
const maxThumbPosition = scrollbarDimensionHalves - thumbDimensionHalves;
|
|
144
|
-
const thumbPosition = maxScrollPosition > 0 ? Math.round(scrollPosition / maxScrollPosition * maxThumbPosition) : 0;
|
|
145
|
-
const thumbStartHalf = thumbPosition;
|
|
146
|
-
const thumbEndHalf = thumbPosition + thumbDimensionHalves;
|
|
147
|
-
const startIndex = Math.floor(thumbStartHalf / 2);
|
|
148
|
-
const endIndex = Math.min(scrollbarDimension, Math.ceil(thumbEndHalf / 2));
|
|
149
|
-
return { endIndex, startIndex, thumbEndHalf, thumbStartHalf };
|
|
150
|
-
};
|
|
151
|
-
const calculateScrollbarLayout = (options) => {
|
|
152
|
-
const { axis, clientDimension, hasOppositeScrollbar, height, marginBottom, marginRight, scrollDimension, scrollPosition, width, x, y } = options;
|
|
153
|
-
if (scrollDimension <= clientDimension) {
|
|
154
|
-
return void 0;
|
|
155
|
-
}
|
|
156
|
-
if (axis === "vertical") {
|
|
157
|
-
const { endIndex: endIndex2, startIndex: startIndex2, thumbEndHalf: thumbEndHalf2, thumbStartHalf: thumbStartHalf2 } = calculateScrollbarThumb({
|
|
158
|
-
axis,
|
|
159
|
-
clientDimension,
|
|
160
|
-
scrollbarDimension: height,
|
|
161
|
-
scrollDimension,
|
|
162
|
-
scrollPosition
|
|
163
|
-
});
|
|
164
|
-
const scrollbarX = x + width - 1 - marginRight;
|
|
165
|
-
return {
|
|
166
|
-
height,
|
|
167
|
-
thumb: {
|
|
168
|
-
end: endIndex2,
|
|
169
|
-
endHalf: thumbEndHalf2,
|
|
170
|
-
height: endIndex2 - startIndex2,
|
|
171
|
-
start: startIndex2,
|
|
172
|
-
startHalf: thumbStartHalf2,
|
|
173
|
-
width: 1,
|
|
174
|
-
x: scrollbarX,
|
|
175
|
-
y: y + startIndex2
|
|
176
|
-
},
|
|
177
|
-
width: 1,
|
|
178
|
-
x: scrollbarX,
|
|
179
|
-
y
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
const scrollbarWidth = width - (hasOppositeScrollbar ? 1 : 0);
|
|
183
|
-
const { endIndex, startIndex, thumbEndHalf, thumbStartHalf } = calculateScrollbarThumb({
|
|
184
|
-
axis,
|
|
185
|
-
clientDimension,
|
|
186
|
-
scrollbarDimension: scrollbarWidth,
|
|
187
|
-
scrollDimension,
|
|
188
|
-
scrollPosition
|
|
189
|
-
});
|
|
190
|
-
const scrollbarY = y + height - 1 - marginBottom;
|
|
191
|
-
return {
|
|
192
|
-
height: 1,
|
|
193
|
-
thumb: {
|
|
194
|
-
end: endIndex,
|
|
195
|
-
endHalf: thumbEndHalf,
|
|
196
|
-
height: 1,
|
|
197
|
-
start: startIndex,
|
|
198
|
-
startHalf: thumbStartHalf,
|
|
199
|
-
width: endIndex - startIndex,
|
|
200
|
-
x: x + startIndex,
|
|
201
|
-
y: scrollbarY
|
|
202
|
-
},
|
|
203
|
-
width: scrollbarWidth,
|
|
204
|
-
x,
|
|
205
|
-
y: scrollbarY
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
const getVerticalScrollbarBoundingBox = (node, offset) => {
|
|
209
|
-
const { yogaNode } = node;
|
|
210
|
-
if (!yogaNode) {
|
|
211
|
-
return void 0;
|
|
212
|
-
}
|
|
213
|
-
const overflow = node.style.overflow ?? "visible";
|
|
214
|
-
const overflowY = node.style.overflowY ?? overflow;
|
|
215
|
-
if (overflowY !== "scroll") {
|
|
216
|
-
return void 0;
|
|
217
|
-
}
|
|
218
|
-
const clientHeight = node.internal_scrollState?.clientHeight ?? 0;
|
|
219
|
-
const scrollHeight = node.internal_scrollState?.scrollHeight ?? 0;
|
|
220
|
-
if (scrollHeight <= clientHeight) {
|
|
221
|
-
return void 0;
|
|
222
|
-
}
|
|
223
|
-
const { x, y } = offset ?? getBoundingBox(node);
|
|
224
|
-
const scrollbarHeight = yogaNode.getComputedHeight() - yogaNode.getComputedBorder(Yoga.EDGE_TOP) - yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM);
|
|
225
|
-
return calculateScrollbarLayout({
|
|
226
|
-
axis: "vertical",
|
|
227
|
-
clientDimension: clientHeight,
|
|
228
|
-
hasOppositeScrollbar: false,
|
|
229
|
-
height: scrollbarHeight,
|
|
230
|
-
marginBottom: yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM),
|
|
231
|
-
marginRight: yogaNode.getComputedBorder(Yoga.EDGE_RIGHT),
|
|
232
|
-
scrollDimension: scrollHeight,
|
|
233
|
-
scrollPosition: node.internal_scrollState?.scrollTop ?? 0,
|
|
234
|
-
width: yogaNode.getComputedWidth() - yogaNode.getComputedBorder(Yoga.EDGE_LEFT),
|
|
235
|
-
x: x + yogaNode.getComputedBorder(Yoga.EDGE_LEFT),
|
|
236
|
-
y: y + yogaNode.getComputedBorder(Yoga.EDGE_TOP)
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
const getHorizontalScrollbarBoundingBox = (node, offset) => {
|
|
240
|
-
const { yogaNode } = node;
|
|
241
|
-
if (!yogaNode) {
|
|
242
|
-
return void 0;
|
|
243
|
-
}
|
|
244
|
-
const overflow = node.style.overflow ?? "visible";
|
|
245
|
-
const overflowX = node.style.overflowX ?? overflow;
|
|
246
|
-
if (overflowX !== "scroll") {
|
|
247
|
-
return void 0;
|
|
248
|
-
}
|
|
249
|
-
const clientWidth = node.internal_scrollState?.clientWidth ?? 0;
|
|
250
|
-
const scrollWidth = node.internal_scrollState?.scrollWidth ?? 0;
|
|
251
|
-
if (scrollWidth <= clientWidth) {
|
|
252
|
-
return void 0;
|
|
253
|
-
}
|
|
254
|
-
const { x, y } = offset ?? getBoundingBox(node);
|
|
255
|
-
const overflowY = node.style.overflowY ?? overflow;
|
|
256
|
-
const clientHeight = node.internal_scrollState?.clientHeight ?? 0;
|
|
257
|
-
const scrollHeight = node.internal_scrollState?.scrollHeight ?? 0;
|
|
258
|
-
const isVerticalScrollbarVisible = overflowY === "scroll" && scrollHeight > clientHeight;
|
|
259
|
-
return calculateScrollbarLayout({
|
|
260
|
-
axis: "horizontal",
|
|
261
|
-
clientDimension: clientWidth,
|
|
262
|
-
hasOppositeScrollbar: isVerticalScrollbarVisible,
|
|
263
|
-
height: yogaNode.getComputedHeight() - yogaNode.getComputedBorder(Yoga.EDGE_TOP),
|
|
264
|
-
marginBottom: yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM),
|
|
265
|
-
marginRight: yogaNode.getComputedBorder(Yoga.EDGE_RIGHT),
|
|
266
|
-
scrollDimension: scrollWidth,
|
|
267
|
-
scrollPosition: node.internal_scrollState?.scrollLeft ?? 0,
|
|
268
|
-
width: yogaNode.getComputedWidth() - yogaNode.getComputedBorder(Yoga.EDGE_LEFT) - yogaNode.getComputedBorder(Yoga.EDGE_RIGHT),
|
|
269
|
-
x: x + yogaNode.getComputedBorder(Yoga.EDGE_LEFT),
|
|
270
|
-
y: y + yogaNode.getComputedBorder(Yoga.EDGE_TOP)
|
|
271
|
-
});
|
|
272
|
-
};
|
|
273
|
-
const getRelativeTop = (node, ancestor) => {
|
|
274
|
-
if (!node.yogaNode || node === ancestor) {
|
|
275
|
-
return 0;
|
|
276
|
-
}
|
|
277
|
-
let top = node.yogaNode.getComputedTop();
|
|
278
|
-
let parent = node.parentNode;
|
|
279
|
-
while (parent && parent !== ancestor) {
|
|
280
|
-
if (parent.yogaNode) {
|
|
281
|
-
top += parent.yogaNode.getComputedTop();
|
|
282
|
-
}
|
|
283
|
-
parent = parent.parentNode;
|
|
284
|
-
}
|
|
285
|
-
if (ancestor !== void 0 && parent !== ancestor) {
|
|
286
|
-
return void 0;
|
|
287
|
-
}
|
|
288
|
-
return Math.round(top);
|
|
289
|
-
};
|
|
290
|
-
const getRelativeLeft = (node, ancestor) => {
|
|
291
|
-
if (!node.yogaNode || node === ancestor) {
|
|
292
|
-
return 0;
|
|
293
|
-
}
|
|
294
|
-
let left = node.yogaNode.getComputedLeft();
|
|
295
|
-
let parent = node.parentNode;
|
|
296
|
-
while (parent && parent !== ancestor) {
|
|
297
|
-
if (parent.yogaNode) {
|
|
298
|
-
left += parent.yogaNode.getComputedLeft();
|
|
299
|
-
}
|
|
300
|
-
parent = parent.parentNode;
|
|
301
|
-
}
|
|
302
|
-
if (ancestor !== void 0 && parent !== ancestor) {
|
|
303
|
-
return void 0;
|
|
304
|
-
}
|
|
305
|
-
return Math.round(left);
|
|
306
|
-
};
|
|
307
|
-
const getText = (node) => {
|
|
308
|
-
if (node.nodeName === "#text") {
|
|
309
|
-
return node.nodeValue;
|
|
310
|
-
}
|
|
311
|
-
if (node.nodeName === "ink-text" || node.nodeName === "ink-virtual-text") {
|
|
312
|
-
return squashTextNodes(node);
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
};
|
|
316
|
-
const collectSortedFragments = (node) => {
|
|
317
|
-
const fragments = [];
|
|
318
|
-
const collect = (currentNode, coords, selectable) => {
|
|
319
|
-
const { visualX, visualY, x, y } = coords;
|
|
320
|
-
let v2 = 0;
|
|
321
|
-
let h2 = 0;
|
|
322
|
-
let currentSelectable = selectable;
|
|
323
|
-
const { userSelect } = currentNode.style;
|
|
324
|
-
if (userSelect === "none") {
|
|
325
|
-
currentSelectable = false;
|
|
326
|
-
} else if (userSelect === "text" || userSelect === "all") {
|
|
327
|
-
currentSelectable = true;
|
|
328
|
-
}
|
|
329
|
-
if (currentNode.nodeName === "ink-text" || currentNode.nodeName === "ink-virtual-text") {
|
|
330
|
-
if (currentSelectable) {
|
|
331
|
-
const text = getText(currentNode);
|
|
332
|
-
fragments.push({
|
|
333
|
-
height: Math.round(currentNode.yogaNode?.getComputedHeight() ?? 0),
|
|
334
|
-
node: currentNode,
|
|
335
|
-
text,
|
|
336
|
-
visualX: Math.round(visualX),
|
|
337
|
-
visualY: Math.round(visualY),
|
|
338
|
-
width: Math.round(currentNode.yogaNode?.getComputedWidth() ?? 0),
|
|
339
|
-
x: Math.round(x),
|
|
340
|
-
y: Math.round(y)
|
|
341
|
-
});
|
|
342
|
-
return { h: 0, hasContent: true, v: 0 };
|
|
343
|
-
}
|
|
344
|
-
return {
|
|
345
|
-
h: currentNode.yogaNode?.getComputedWidth() ?? 0,
|
|
346
|
-
hasContent: false,
|
|
347
|
-
v: currentNode.yogaNode?.getComputedHeight() ?? 0
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
if (currentNode.nodeName === "ink-box" || currentNode.nodeName === "ink-root") {
|
|
351
|
-
if (!currentNode.yogaNode || currentNode.yogaNode.getDisplay() === Yoga.DISPLAY_NONE) {
|
|
352
|
-
return { h: 0, hasContent: false, v: 0 };
|
|
353
|
-
}
|
|
354
|
-
const borderTop = currentNode.yogaNode.getComputedBorder(Yoga.EDGE_TOP);
|
|
355
|
-
const borderBottom = currentNode.yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM);
|
|
356
|
-
const borderLeft = currentNode.yogaNode.getComputedBorder(Yoga.EDGE_LEFT);
|
|
357
|
-
const borderRight = currentNode.yogaNode.getComputedBorder(Yoga.EDGE_RIGHT);
|
|
358
|
-
v2 += borderTop + borderBottom;
|
|
359
|
-
h2 += borderLeft + borderRight;
|
|
360
|
-
const flexDirection = currentNode.yogaNode.getFlexDirection();
|
|
361
|
-
const isColumn = flexDirection === Yoga.FLEX_DIRECTION_COLUMN || flexDirection === Yoga.FLEX_DIRECTION_COLUMN_REVERSE;
|
|
362
|
-
let siblingRemovedH = 0;
|
|
363
|
-
let siblingRemovedV = 0;
|
|
364
|
-
let childHasContent = false;
|
|
365
|
-
for (const child of currentNode.childNodes) {
|
|
366
|
-
if (child.yogaNode) {
|
|
367
|
-
const childX = x + child.yogaNode.getComputedLeft() - borderLeft - siblingRemovedH;
|
|
368
|
-
const childY = y + child.yogaNode.getComputedTop() - borderTop - siblingRemovedV;
|
|
369
|
-
const childVisualX = visualX + child.yogaNode.getComputedLeft();
|
|
370
|
-
const childVisualY = visualY + child.yogaNode.getComputedTop();
|
|
371
|
-
const res = collect(child, { visualX: childVisualX, visualY: childVisualY, x: childX, y: childY }, currentSelectable);
|
|
372
|
-
if (res.hasContent) {
|
|
373
|
-
childHasContent = true;
|
|
374
|
-
}
|
|
375
|
-
if (isColumn) {
|
|
376
|
-
siblingRemovedV += res.v;
|
|
377
|
-
} else {
|
|
378
|
-
siblingRemovedH += res.h;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if (isColumn) {
|
|
383
|
-
v2 += siblingRemovedV;
|
|
384
|
-
} else {
|
|
385
|
-
h2 += siblingRemovedH;
|
|
386
|
-
}
|
|
387
|
-
return { h: h2, hasContent: childHasContent, v: v2 };
|
|
388
|
-
}
|
|
389
|
-
return { h: 0, hasContent: false, v: 0 };
|
|
390
|
-
};
|
|
391
|
-
const { h, v } = collect(node, { visualX: 0, visualY: 0, x: 0, y: 0 }, true);
|
|
392
|
-
fragments.sort((a, b) => {
|
|
393
|
-
if (a.y !== b.y) {
|
|
394
|
-
return a.y - b.y;
|
|
395
|
-
}
|
|
396
|
-
return a.x - b.x;
|
|
397
|
-
});
|
|
398
|
-
return {
|
|
399
|
-
fragments,
|
|
400
|
-
removedHorizontal: Math.round(h),
|
|
401
|
-
removedVertical: Math.round(v)
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
export { calculateScrollbarThumb as a, collectSortedFragments as b, calculateScrollbarLayout as c, getBoundingBox as d, getHorizontalScrollbarBoundingBox as e, getInnerHeight as f, getAddedScrollHeight as g, getInnerWidth as h, getRelativeLeft as i, getRelativeTop as j, getText as k, getVerticalScrollbarBoundingBox as l, measureElement as m, getAbsoluteContentPosition as n, getAbsolutePosition as o, processLayout as p };
|