@react-x11/components 0.9.0 → 0.11.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 +10 -4
- package/dist/charts/node.d.ts +11 -1
- package/dist/charts/node.d.ts.map +1 -1
- package/dist/charts/node.js +44 -14
- package/dist/charts/node.js.map +1 -1
- package/dist/charts/render.d.ts +12 -3
- package/dist/charts/render.d.ts.map +1 -1
- package/dist/charts/render.js +94 -25
- package/dist/charts/render.js.map +1 -1
- package/dist/code/index.d.ts.map +1 -1
- package/dist/code/index.js +27 -24
- package/dist/code/index.js.map +1 -1
- package/dist/code-editor/completion.d.ts.map +1 -1
- package/dist/code-editor/completion.js +3 -2
- package/dist/code-editor/completion.js.map +1 -1
- package/dist/code-editor/index.d.ts.map +1 -1
- package/dist/code-editor/index.js +19 -0
- package/dist/code-editor/index.js.map +1 -1
- package/dist/code-editor/node.d.ts +177 -7
- package/dist/code-editor/node.d.ts.map +1 -1
- package/dist/code-editor/node.js +1329 -164
- package/dist/code-editor/node.js.map +1 -1
- package/dist/code-language/index.d.ts +1 -1
- package/dist/code-language/index.d.ts.map +1 -1
- package/dist/code-language/index.js +1 -1
- package/dist/code-language/index.js.map +1 -1
- package/dist/code-language/languages/glsl.d.ts.map +1 -1
- package/dist/code-language/languages/glsl.js +10 -2
- package/dist/code-language/languages/glsl.js.map +1 -1
- package/dist/code-language/languages/javascript.d.ts.map +1 -1
- package/dist/code-language/languages/javascript.js +18 -3
- package/dist/code-language/languages/javascript.js.map +1 -1
- package/dist/code-language/languages/json.d.ts.map +1 -1
- package/dist/code-language/languages/json.js +10 -2
- package/dist/code-language/languages/json.js.map +1 -1
- package/dist/code-language/languages/shell.d.ts.map +1 -1
- package/dist/code-language/languages/shell.js +10 -2
- package/dist/code-language/languages/shell.js.map +1 -1
- package/dist/code-language/languages/sql.d.ts.map +1 -1
- package/dist/code-language/languages/sql.js +20 -2
- package/dist/code-language/languages/sql.js.map +1 -1
- package/dist/code-language/runs.d.ts +31 -0
- package/dist/code-language/runs.d.ts.map +1 -1
- package/dist/code-language/runs.js +105 -0
- package/dist/code-language/runs.js.map +1 -1
- package/dist/code-language/stream.d.ts +22 -0
- package/dist/code-language/stream.d.ts.map +1 -1
- package/dist/code-language/stream.js +259 -9
- package/dist/code-language/stream.js.map +1 -1
- package/dist/code-language/types.d.ts +5 -4
- package/dist/code-language/types.d.ts.map +1 -1
- package/dist/codeblock/index.d.ts +26 -2
- package/dist/codeblock/index.d.ts.map +1 -1
- package/dist/codeblock/index.js +57 -4
- package/dist/codeblock/index.js.map +1 -1
- package/dist/flow/draw.d.ts +50 -0
- package/dist/flow/draw.d.ts.map +1 -1
- package/dist/flow/draw.js +132 -33
- package/dist/flow/draw.js.map +1 -1
- package/dist/flow/gl/color.d.ts +13 -0
- package/dist/flow/gl/color.d.ts.map +1 -0
- package/dist/flow/gl/color.js +82 -0
- package/dist/flow/gl/color.js.map +1 -0
- package/dist/flow/gl/index.d.ts +60 -0
- package/dist/flow/gl/index.d.ts.map +1 -0
- package/dist/flow/gl/index.js +283 -0
- package/dist/flow/gl/index.js.map +1 -0
- package/dist/flow/gl/pack.d.ts +133 -0
- package/dist/flow/gl/pack.d.ts.map +1 -0
- package/dist/flow/gl/pack.js +408 -0
- package/dist/flow/gl/pack.js.map +1 -0
- package/dist/flow/gl/renderer.d.ts +95 -0
- package/dist/flow/gl/renderer.d.ts.map +1 -0
- package/dist/flow/gl/renderer.js +459 -0
- package/dist/flow/gl/renderer.js.map +1 -0
- package/dist/flow/gl/shaders.d.ts +79 -0
- package/dist/flow/gl/shaders.d.ts.map +1 -0
- package/dist/flow/gl/shaders.js +346 -0
- package/dist/flow/gl/shaders.js.map +1 -0
- package/dist/flow/gl/text.d.ts +318 -0
- package/dist/flow/gl/text.d.ts.map +1 -0
- package/dist/flow/gl/text.js +1103 -0
- package/dist/flow/gl/text.js.map +1 -0
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.d.ts.map +1 -1
- package/dist/flow/index.js +619 -64
- package/dist/flow/index.js.map +1 -1
- package/dist/flow/node.d.ts +621 -72
- package/dist/flow/node.d.ts.map +1 -1
- package/dist/flow/node.js +2253 -1018
- package/dist/flow/node.js.map +1 -1
- package/dist/flow/paint.d.ts +35 -0
- package/dist/flow/paint.d.ts.map +1 -0
- package/dist/flow/paint.js +393 -0
- package/dist/flow/paint.js.map +1 -0
- package/dist/flow/paths.d.ts +14 -0
- package/dist/flow/paths.d.ts.map +1 -1
- package/dist/flow/paths.js +45 -19
- package/dist/flow/paths.js.map +1 -1
- package/dist/flow/scene.d.ts +584 -0
- package/dist/flow/scene.d.ts.map +1 -0
- package/dist/flow/scene.js +1453 -0
- package/dist/flow/scene.js.map +1 -0
- package/dist/flow/types.d.ts +111 -1
- package/dist/flow/types.d.ts.map +1 -1
- package/dist/html/controls.d.ts +28 -0
- package/dist/html/controls.d.ts.map +1 -1
- package/dist/html/controls.js +52 -2
- package/dist/html/controls.js.map +1 -1
- package/dist/html/css/calc.d.ts +14 -0
- package/dist/html/css/calc.d.ts.map +1 -0
- package/dist/html/css/calc.js +344 -0
- package/dist/html/css/calc.js.map +1 -0
- package/dist/html/css/cascade.d.ts +262 -6
- package/dist/html/css/cascade.d.ts.map +1 -1
- package/dist/html/css/cascade.js +1373 -67
- package/dist/html/css/cascade.js.map +1 -1
- package/dist/html/css/color.d.ts +23 -0
- package/dist/html/css/color.d.ts.map +1 -0
- package/dist/html/css/color.js +740 -0
- package/dist/html/css/color.js.map +1 -0
- package/dist/html/css/content.d.ts +92 -0
- package/dist/html/css/content.d.ts.map +1 -0
- package/dist/html/css/content.js +388 -0
- package/dist/html/css/content.js.map +1 -0
- package/dist/html/css/counter-styles.d.ts +76 -0
- package/dist/html/css/counter-styles.d.ts.map +1 -0
- package/dist/html/css/counter-styles.js +893 -0
- package/dist/html/css/counter-styles.js.map +1 -0
- package/dist/html/css/decode.d.ts +12 -0
- package/dist/html/css/decode.d.ts.map +1 -0
- package/dist/html/css/decode.js +116 -0
- package/dist/html/css/decode.js.map +1 -0
- package/dist/html/css/parse.d.ts +110 -10
- package/dist/html/css/parse.d.ts.map +1 -1
- package/dist/html/css/parse.js +1473 -180
- package/dist/html/css/parse.js.map +1 -1
- package/dist/html/css/style.d.ts +501 -15
- package/dist/html/css/style.d.ts.map +1 -1
- package/dist/html/css/style.js +3729 -206
- package/dist/html/css/style.js.map +1 -1
- package/dist/html/css/ua.d.ts.map +1 -1
- package/dist/html/css/ua.js +65 -16
- package/dist/html/css/ua.js.map +1 -1
- package/dist/html/css/values.d.ts +37 -3
- package/dist/html/css/values.d.ts.map +1 -1
- package/dist/html/css/values.js +122 -48
- package/dist/html/css/values.js.map +1 -1
- package/dist/html/css/vars.d.ts +52 -0
- package/dist/html/css/vars.d.ts.map +1 -0
- package/dist/html/css/vars.js +358 -0
- package/dist/html/css/vars.js.map +1 -0
- package/dist/html/dom.d.ts +30 -4
- package/dist/html/dom.d.ts.map +1 -1
- package/dist/html/dom.js +278 -17
- package/dist/html/dom.js.map +1 -1
- package/dist/html/fonts.d.ts +106 -0
- package/dist/html/fonts.d.ts.map +1 -0
- package/dist/html/fonts.js +565 -0
- package/dist/html/fonts.js.map +1 -0
- package/dist/html/gif.d.ts +15 -0
- package/dist/html/gif.d.ts.map +1 -0
- package/dist/html/gif.js +229 -0
- package/dist/html/gif.js.map +1 -0
- package/dist/html/index.d.ts +50 -11
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/index.js +115 -9
- package/dist/html/index.js.map +1 -1
- package/dist/html/layout/block.d.ts +226 -3
- package/dist/html/layout/block.d.ts.map +1 -1
- package/dist/html/layout/block.js +3077 -219
- package/dist/html/layout/block.js.map +1 -1
- package/dist/html/layout/boxes.d.ts +367 -17
- package/dist/html/layout/boxes.d.ts.map +1 -1
- package/dist/html/layout/boxes.js +1742 -182
- package/dist/html/layout/boxes.js.map +1 -1
- package/dist/html/layout/cache.d.ts +58 -0
- package/dist/html/layout/cache.d.ts.map +1 -0
- package/dist/html/layout/cache.js +224 -0
- package/dist/html/layout/cache.js.map +1 -0
- package/dist/html/layout/collapse.d.ts +45 -0
- package/dist/html/layout/collapse.d.ts.map +1 -0
- package/dist/html/layout/collapse.js +246 -0
- package/dist/html/layout/collapse.js.map +1 -0
- package/dist/html/layout/css-grid.d.ts +7 -0
- package/dist/html/layout/css-grid.d.ts.map +1 -0
- package/dist/html/layout/css-grid.js +900 -0
- package/dist/html/layout/css-grid.js.map +1 -0
- package/dist/html/layout/flex.d.ts.map +1 -1
- package/dist/html/layout/flex.js +1025 -89
- package/dist/html/layout/flex.js.map +1 -1
- package/dist/html/layout/floats.d.ts +45 -6
- package/dist/html/layout/floats.d.ts.map +1 -1
- package/dist/html/layout/floats.js +113 -14
- package/dist/html/layout/floats.js.map +1 -1
- package/dist/html/layout/grid-lines.d.ts +39 -0
- package/dist/html/layout/grid-lines.d.ts.map +1 -0
- package/dist/html/layout/grid-lines.js +119 -0
- package/dist/html/layout/grid-lines.js.map +1 -0
- package/dist/html/layout/grid.d.ts +53 -0
- package/dist/html/layout/grid.d.ts.map +1 -0
- package/dist/html/layout/grid.js +153 -0
- package/dist/html/layout/grid.js.map +1 -0
- package/dist/html/layout/inline.d.ts +154 -1
- package/dist/html/layout/inline.d.ts.map +1 -1
- package/dist/html/layout/inline.js +3598 -175
- package/dist/html/layout/inline.js.map +1 -1
- package/dist/html/layout/shaping.d.ts +6 -0
- package/dist/html/layout/shaping.d.ts.map +1 -0
- package/dist/html/layout/shaping.js +100 -0
- package/dist/html/layout/shaping.js.map +1 -0
- package/dist/html/layout/table.d.ts +3 -0
- package/dist/html/layout/table.d.ts.map +1 -1
- package/dist/html/layout/table.js +681 -175
- package/dist/html/layout/table.js.map +1 -1
- package/dist/html/layout/tracks.d.ts +44 -0
- package/dist/html/layout/tracks.d.ts.map +1 -0
- package/dist/html/layout/tracks.js +349 -0
- package/dist/html/layout/tracks.js.map +1 -0
- package/dist/html/node.d.ts +169 -4
- package/dist/html/node.d.ts.map +1 -1
- package/dist/html/node.js +1429 -137
- package/dist/html/node.js.map +1 -1
- package/dist/html/paint.d.ts +92 -3
- package/dist/html/paint.d.ts.map +1 -1
- package/dist/html/paint.js +3635 -107
- package/dist/html/paint.js.map +1 -1
- package/dist/html/resources.d.ts +60 -14
- package/dist/html/resources.d.ts.map +1 -1
- package/dist/html/resources.js +122 -36
- package/dist/html/resources.js.map +1 -1
- package/dist/html/surfaces.d.ts +23 -0
- package/dist/html/surfaces.d.ts.map +1 -0
- package/dist/html/surfaces.js +68 -0
- package/dist/html/surfaces.js.map +1 -0
- package/dist/html/svg.d.ts +80 -0
- package/dist/html/svg.d.ts.map +1 -0
- package/dist/html/svg.js +442 -0
- package/dist/html/svg.js.map +1 -0
- package/dist/html/url.d.ts +23 -0
- package/dist/html/url.d.ts.map +1 -0
- package/dist/html/url.js +80 -0
- package/dist/html/url.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/codelines.d.ts +42 -0
- package/dist/internal/codelines.d.ts.map +1 -0
- package/dist/internal/codelines.js +170 -0
- package/dist/internal/codelines.js.map +1 -0
- package/dist/internal/collate.d.ts +3 -0
- package/dist/internal/collate.d.ts.map +1 -0
- package/dist/internal/collate.js +11 -0
- package/dist/internal/collate.js.map +1 -0
- package/dist/internal/markdown/ast.d.ts +11 -0
- package/dist/internal/markdown/ast.d.ts.map +1 -1
- package/dist/internal/markdown/parse.d.ts.map +1 -1
- package/dist/internal/markdown/parse.js +109 -8
- package/dist/internal/markdown/parse.js.map +1 -1
- package/dist/internal/prewarm.d.ts +18 -0
- package/dist/internal/prewarm.d.ts.map +1 -0
- package/dist/internal/prewarm.js +42 -0
- package/dist/internal/prewarm.js.map +1 -0
- package/dist/internal/sdf.d.ts +20 -0
- package/dist/internal/sdf.d.ts.map +1 -0
- package/dist/internal/sdf.js +216 -0
- package/dist/internal/sdf.js.map +1 -0
- package/dist/internal/splice.d.ts +12 -0
- package/dist/internal/splice.d.ts.map +1 -0
- package/dist/internal/splice.js +23 -0
- package/dist/internal/splice.js.map +1 -0
- package/dist/internal/window.d.ts +12 -0
- package/dist/internal/window.d.ts.map +1 -1
- package/dist/internal/window.js +23 -6
- package/dist/internal/window.js.map +1 -1
- package/dist/maps/anchors.d.ts +6 -1
- package/dist/maps/anchors.d.ts.map +1 -1
- package/dist/maps/anchors.js +260 -1
- package/dist/maps/anchors.js.map +1 -1
- package/dist/maps/controller.d.ts +57 -0
- package/dist/maps/controller.d.ts.map +1 -1
- package/dist/maps/controller.js +97 -18
- package/dist/maps/controller.js.map +1 -1
- package/dist/maps/gl/buckets.d.ts +5 -1
- package/dist/maps/gl/buckets.d.ts.map +1 -1
- package/dist/maps/gl/buckets.js +5 -2
- package/dist/maps/gl/buckets.js.map +1 -1
- package/dist/maps/gl/build-worker.d.ts +2 -0
- package/dist/maps/gl/build-worker.d.ts.map +1 -1
- package/dist/maps/gl/build-worker.js +1 -1
- package/dist/maps/gl/build-worker.js.map +1 -1
- package/dist/maps/gl/cover.d.ts +23 -4
- package/dist/maps/gl/cover.d.ts.map +1 -1
- package/dist/maps/gl/cover.js +61 -48
- package/dist/maps/gl/cover.js.map +1 -1
- package/dist/maps/gl/placement.d.ts +21 -8
- package/dist/maps/gl/placement.d.ts.map +1 -1
- package/dist/maps/gl/placement.js +133 -58
- package/dist/maps/gl/placement.js.map +1 -1
- package/dist/maps/gl/renderer.d.ts +36 -4
- package/dist/maps/gl/renderer.d.ts.map +1 -1
- package/dist/maps/gl/renderer.js +81 -24
- package/dist/maps/gl/renderer.js.map +1 -1
- package/dist/maps/gl/shaders.d.ts +18 -17
- package/dist/maps/gl/shaders.d.ts.map +1 -1
- package/dist/maps/gl/shaders.js +34 -32
- package/dist/maps/gl/shaders.js.map +1 -1
- package/dist/maps/gl/store.d.ts +10 -0
- package/dist/maps/gl/store.d.ts.map +1 -1
- package/dist/maps/gl/store.js +47 -4
- package/dist/maps/gl/store.js.map +1 -1
- package/dist/maps/gl/text.d.ts +153 -24
- package/dist/maps/gl/text.d.ts.map +1 -1
- package/dist/maps/gl/text.js +379 -63
- package/dist/maps/gl/text.js.map +1 -1
- package/dist/maps/gl/view.d.ts +293 -2
- package/dist/maps/gl/view.d.ts.map +1 -1
- package/dist/maps/gl/view.js +317 -82
- package/dist/maps/gl/view.js.map +1 -1
- package/dist/maps/icons.d.ts +32 -0
- package/dist/maps/icons.d.ts.map +1 -0
- package/dist/maps/icons.js +151 -0
- package/dist/maps/icons.js.map +1 -0
- package/dist/maps/index.d.ts +2 -0
- package/dist/maps/index.d.ts.map +1 -1
- package/dist/maps/index.js +2 -0
- package/dist/maps/index.js.map +1 -1
- package/dist/maps/labels.d.ts +56 -4
- package/dist/maps/labels.d.ts.map +1 -1
- package/dist/maps/labels.js +213 -46
- package/dist/maps/labels.js.map +1 -1
- package/dist/maps/node.d.ts +17 -0
- package/dist/maps/node.d.ts.map +1 -1
- package/dist/maps/node.js +64 -30
- package/dist/maps/node.js.map +1 -1
- package/dist/maps/proj.d.ts +48 -0
- package/dist/maps/proj.d.ts.map +1 -1
- package/dist/maps/proj.js +73 -0
- package/dist/maps/proj.js.map +1 -1
- package/dist/maps/sources.d.ts +5 -3
- package/dist/maps/sources.d.ts.map +1 -1
- package/dist/maps/sources.js +5 -3
- package/dist/maps/sources.js.map +1 -1
- package/dist/maps/style.d.ts +35 -0
- package/dist/maps/style.d.ts.map +1 -1
- package/dist/maps/style.js.map +1 -1
- package/dist/maps/styles.d.ts +12 -0
- package/dist/maps/styles.d.ts.map +1 -1
- package/dist/maps/styles.js +120 -6
- package/dist/maps/styles.js.map +1 -1
- package/dist/maps/tiles.d.ts +31 -11
- package/dist/maps/tiles.d.ts.map +1 -1
- package/dist/maps/tiles.js +61 -27
- package/dist/maps/tiles.js.map +1 -1
- package/dist/maps/types.d.ts +28 -4
- package/dist/maps/types.d.ts.map +1 -1
- package/dist/markdown/index.d.ts.map +1 -1
- package/dist/markdown/index.js +209 -68
- package/dist/markdown/index.js.map +1 -1
- package/dist/markdown/spans.d.ts.map +1 -1
- package/dist/markdown/spans.js +6 -0
- package/dist/markdown/spans.js.map +1 -1
- package/dist/qml/containers.d.ts.map +1 -1
- package/dist/qml/containers.js +6 -1
- package/dist/qml/containers.js.map +1 -1
- package/dist/qml/interaction.d.ts.map +1 -1
- package/dist/qml/interaction.js +38 -5
- package/dist/qml/interaction.js.map +1 -1
- package/dist/qml/layouts.d.ts.map +1 -1
- package/dist/qml/layouts.js +21 -6
- package/dist/qml/layouts.js.map +1 -1
- package/dist/qml/qtquick.d.ts.map +1 -1
- package/dist/qml/qtquick.js +9 -2
- package/dist/qml/qtquick.js.map +1 -1
- package/dist/qml/react.d.ts.map +1 -1
- package/dist/qml/react.js +9 -7
- package/dist/qml/react.js.map +1 -1
- package/dist/reorder/clock.d.ts +7 -0
- package/dist/reorder/clock.d.ts.map +1 -0
- package/dist/reorder/clock.js +26 -0
- package/dist/reorder/clock.js.map +1 -0
- package/dist/reorder/index.d.ts +25 -3
- package/dist/reorder/index.d.ts.map +1 -1
- package/dist/reorder/index.js +64 -19
- package/dist/reorder/index.js.map +1 -1
- package/dist/rich-text-editor/index.d.ts +0 -11
- package/dist/rich-text-editor/index.d.ts.map +1 -1
- package/dist/rich-text-editor/index.js +38 -9
- package/dist/rich-text-editor/index.js.map +1 -1
- package/dist/rich-text-editor/keymap.d.ts.map +1 -1
- package/dist/rich-text-editor/keymap.js +2 -1
- package/dist/rich-text-editor/keymap.js.map +1 -1
- package/dist/rich-text-editor/keys.d.ts +17 -6
- package/dist/rich-text-editor/keys.d.ts.map +1 -1
- package/dist/rich-text-editor/keys.js +135 -26
- package/dist/rich-text-editor/keys.js.map +1 -1
- package/dist/rich-text-editor/markdown.d.ts.map +1 -1
- package/dist/rich-text-editor/markdown.js +30 -1
- package/dist/rich-text-editor/markdown.js.map +1 -1
- package/dist/rich-text-editor/marks.d.ts +9 -0
- package/dist/rich-text-editor/marks.d.ts.map +1 -0
- package/dist/rich-text-editor/marks.js +83 -0
- package/dist/rich-text-editor/marks.js.map +1 -0
- package/dist/rich-text-editor/render.d.ts.map +1 -1
- package/dist/rich-text-editor/render.js +28 -10
- package/dist/rich-text-editor/render.js.map +1 -1
- package/dist/rich-text-editor/replace.d.ts +13 -0
- package/dist/rich-text-editor/replace.d.ts.map +1 -0
- package/dist/rich-text-editor/replace.js +64 -0
- package/dist/rich-text-editor/replace.js.map +1 -0
- package/dist/rich-text-editor/toolbar.d.ts.map +1 -1
- package/dist/rich-text-editor/toolbar.js +1 -1
- package/dist/rich-text-editor/toolbar.js.map +1 -1
- package/dist/rich-text-editor/virtual.d.ts.map +1 -1
- package/dist/rich-text-editor/virtual.js +17 -0
- package/dist/rich-text-editor/virtual.js.map +1 -1
- package/dist/richtext/node.d.ts +46 -2
- package/dist/richtext/node.d.ts.map +1 -1
- package/dist/richtext/node.js +187 -4
- package/dist/richtext/node.js.map +1 -1
- package/dist/richtext/runs.d.ts +13 -8
- package/dist/richtext/runs.d.ts.map +1 -1
- package/dist/richtext/runs.js +18 -8
- package/dist/richtext/runs.js.map +1 -1
- package/dist/table/index.d.ts.map +1 -1
- package/dist/table/index.js +23 -0
- package/dist/table/index.js.map +1 -1
- package/dist/table/rows.d.ts +3 -2
- package/dist/table/rows.d.ts.map +1 -1
- package/dist/table/rows.js +20 -6
- package/dist/table/rows.js.map +1 -1
- package/dist/terminal/index.d.ts.map +1 -1
- package/dist/terminal/index.js +4 -0
- package/dist/terminal/index.js.map +1 -1
- package/dist/terminal/vt/pty.d.ts +13 -2
- package/dist/terminal/vt/pty.d.ts.map +1 -1
- package/dist/terminal/vt/pty.js +18 -3
- package/dist/terminal/vt/pty.js.map +1 -1
- package/dist/terminal-output/index.d.ts.map +1 -1
- package/dist/terminal-output/index.js +103 -23
- package/dist/terminal-output/index.js.map +1 -1
- package/dist/terminal-output/runs.d.ts +4 -1
- package/dist/terminal-output/runs.d.ts.map +1 -1
- package/dist/terminal-output/runs.js +5 -1
- package/dist/terminal-output/runs.js.map +1 -1
- package/dist/three/canvas.d.ts.map +1 -1
- package/dist/three/canvas.js +85 -7
- package/dist/three/canvas.js.map +1 -1
- package/dist/three/events.d.ts +22 -4
- package/dist/three/events.d.ts.map +1 -1
- package/dist/three/events.js +34 -4
- package/dist/three/events.js.map +1 -1
- package/dist/tree/index.d.ts.map +1 -1
- package/dist/tree/index.js +17 -0
- package/dist/tree/index.js.map +1 -1
- package/package.json +42 -33
- package/src/charts/node.ts +62 -26
- package/src/charts/render.ts +120 -30
- package/src/code/index.ts +36 -32
- package/src/code-editor/completion.ts +3 -2
- package/src/code-editor/index.ts +19 -0
- package/src/code-editor/node.ts +1574 -184
- package/src/code-language/index.ts +1 -1
- package/src/code-language/languages/glsl.ts +12 -2
- package/src/code-language/languages/javascript.ts +21 -4
- package/src/code-language/languages/json.ts +12 -2
- package/src/code-language/languages/shell.ts +12 -2
- package/src/code-language/languages/sql.ts +22 -2
- package/src/code-language/runs.ts +111 -1
- package/src/code-language/stream.ts +257 -17
- package/src/code-language/types.ts +5 -4
- package/src/codeblock/index.ts +68 -4
- package/src/flow/draw.ts +167 -41
- package/src/flow/gl/color.ts +85 -0
- package/src/flow/gl/index.ts +342 -0
- package/src/flow/gl/pack.ts +585 -0
- package/src/flow/gl/renderer.ts +679 -0
- package/src/flow/gl/shaders.ts +371 -0
- package/src/flow/gl/text.ts +1295 -0
- package/src/flow/index.ts +794 -67
- package/src/flow/node.ts +2496 -1256
- package/src/flow/paint.ts +511 -0
- package/src/flow/paths.ts +80 -15
- package/src/flow/scene.ts +2199 -0
- package/src/flow/types.ts +113 -1
- package/src/html/controls.ts +73 -2
- package/src/html/css/calc.ts +385 -0
- package/src/html/css/cascade.ts +1481 -62
- package/src/html/css/color.ts +755 -0
- package/src/html/css/content.ts +417 -0
- package/src/html/css/counter-styles.ts +973 -0
- package/src/html/css/decode.ts +130 -0
- package/src/html/css/parse.ts +1514 -160
- package/src/html/css/style.ts +4131 -223
- package/src/html/css/ua.ts +66 -17
- package/src/html/css/values.ts +150 -50
- package/src/html/css/vars.ts +348 -0
- package/src/html/dom.ts +284 -17
- package/src/html/fonts.ts +641 -0
- package/src/html/gif.ts +233 -0
- package/src/html/index.ts +180 -20
- package/src/html/layout/block.ts +3560 -208
- package/src/html/layout/boxes.ts +2141 -190
- package/src/html/layout/cache.ts +289 -0
- package/src/html/layout/collapse.ts +317 -0
- package/src/html/layout/css-grid.ts +1063 -0
- package/src/html/layout/flex.ts +1115 -106
- package/src/html/layout/floats.ts +128 -14
- package/src/html/layout/grid-lines.ts +141 -0
- package/src/html/layout/grid.ts +181 -0
- package/src/html/layout/inline.ts +4187 -192
- package/src/html/layout/shaping.ts +140 -0
- package/src/html/layout/table.ts +696 -186
- package/src/html/layout/tracks.ts +437 -0
- package/src/html/node.ts +1585 -156
- package/src/html/paint.ts +4582 -267
- package/src/html/resources.ts +161 -50
- package/src/html/surfaces.ts +81 -0
- package/src/html/svg.ts +504 -0
- package/src/html/url.ts +86 -0
- package/src/index.ts +2 -0
- package/src/internal/codelines.ts +200 -0
- package/src/internal/collate.ts +12 -0
- package/src/internal/markdown/ast.ts +11 -0
- package/src/internal/markdown/parse.ts +154 -11
- package/src/internal/prewarm.ts +45 -0
- package/src/internal/sdf.ts +227 -0
- package/src/internal/splice.ts +25 -0
- package/src/internal/window.ts +36 -5
- package/src/maps/anchors.ts +307 -1
- package/src/maps/controller.ts +116 -31
- package/src/maps/gl/buckets.ts +5 -1
- package/src/maps/gl/build-worker.ts +13 -2
- package/src/maps/gl/cover.ts +79 -44
- package/src/maps/gl/placement.ts +221 -69
- package/src/maps/gl/renderer.ts +104 -20
- package/src/maps/gl/shaders.ts +35 -32
- package/src/maps/gl/store.ts +66 -17
- package/src/maps/gl/text.ts +444 -71
- package/src/maps/gl/view.ts +361 -96
- package/src/maps/icons.ts +183 -0
- package/src/maps/index.ts +4 -0
- package/src/maps/labels.ts +269 -49
- package/src/maps/node.ts +82 -49
- package/src/maps/proj.ts +87 -0
- package/src/maps/sources.ts +5 -3
- package/src/maps/style.ts +32 -0
- package/src/maps/styles.ts +215 -4
- package/src/maps/tiles.ts +64 -31
- package/src/maps/types.ts +28 -4
- package/src/markdown/index.ts +293 -92
- package/src/markdown/spans.ts +5 -0
- package/src/qml/containers.tsx +6 -1
- package/src/qml/interaction.tsx +42 -5
- package/src/qml/layouts.tsx +21 -6
- package/src/qml/qtquick.tsx +9 -2
- package/src/qml/react.tsx +7 -5
- package/src/reorder/clock.ts +27 -0
- package/src/reorder/index.ts +100 -27
- package/src/rich-text-editor/index.ts +37 -12
- package/src/rich-text-editor/keymap.ts +1 -1
- package/src/rich-text-editor/keys.ts +135 -26
- package/src/rich-text-editor/markdown.ts +36 -1
- package/src/rich-text-editor/marks.ts +101 -0
- package/src/rich-text-editor/render.ts +49 -12
- package/src/rich-text-editor/replace.ts +85 -0
- package/src/rich-text-editor/toolbar.ts +1 -1
- package/src/rich-text-editor/virtual.ts +25 -0
- package/src/richtext/node.ts +235 -14
- package/src/richtext/runs.ts +23 -12
- package/src/table/index.ts +29 -0
- package/src/table/rows.ts +18 -8
- package/src/terminal/index.ts +4 -0
- package/src/terminal/vt/pty.ts +16 -2
- package/src/terminal-output/index.ts +129 -31
- package/src/terminal-output/runs.ts +16 -2
- package/src/three/canvas.ts +102 -8
- package/src/three/events.ts +49 -9
- package/src/tree/index.ts +19 -0
package/dist/flow/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/flow/paths.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8CAA8C;AAC9C,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,2EAA2E;AAC3E,8CAA8C;AAC9C,wEAAwE;AACxE,mDAAmD;AACnD,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,gDAAgD;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAsB7C,MAAM,gBAA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AG,CAAC,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjC,MAAM,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACzD,IAAI,GAAG,GAAG,IAAI,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC;YAC7B,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG;gBACpB,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;gBACjC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;aAClC,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC;QACD,IAAI,IAAI,GAAG,CAAC;QACZ,GAAG,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import type { BackgroundVariant, EdgeMarker, EdgeType, FlowEdge, FlowNode, FlowNodeType, FlowPalette, FlowRect, HandleAnchor, HandleSpec, TextOptions, Viewport, XYPosition } from './types.js';
|
|
2
|
+
type AnyNode = FlowNode<unknown>;
|
|
3
|
+
type AnyEdge = FlowEdge<unknown>;
|
|
4
|
+
type AnyType = FlowNodeType<unknown>;
|
|
5
|
+
/** Below these zooms the pane stops drawing detail nobody could read — the
|
|
6
|
+
* cheapest optimisation there is, and the one that keeps a zoomed-out
|
|
7
|
+
* overview interactive. Exported because the element's hit testing has to
|
|
8
|
+
* agree with what was drawn. */
|
|
9
|
+
export declare const LABEL_ZOOM = 0.45;
|
|
10
|
+
export declare const HANDLE_ZOOM = 0.5;
|
|
11
|
+
export declare const DESC_ZOOM = 0.6;
|
|
12
|
+
/** The grid never draws denser than this on screen, whatever the zoom. */
|
|
13
|
+
export declare const MIN_GRID_PX = 16;
|
|
14
|
+
/**
|
|
15
|
+
* How far outside its own box a node's ink can land: handles (capped at
|
|
16
|
+
* 6 × 1.4 plus their outline), resize grips, the selection border, a pixel
|
|
17
|
+
* of antialiasing. Damage rects grow by this before they are invalidated,
|
|
18
|
+
* and cull tests grow their target by the same amount — the two must agree,
|
|
19
|
+
* or a moved node leaves crumbs of its old handles behind.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CULL_MARGIN = 16;
|
|
22
|
+
/**
|
|
23
|
+
* From this many edges on the pane, they are stroked a pen at a time — every
|
|
24
|
+
* run of a pen, and every arrowhead of a colour, as one path — and below
|
|
25
|
+
* it an edge at a time, in the graph's order.
|
|
26
|
+
*
|
|
27
|
+
* A path's mask is its bounding box, so a pen's scattered runs as one path
|
|
28
|
+
* cost a mask the size of the pane where each alone costs its own small
|
|
29
|
+
* one: nineteen long edges criss-crossing a pane measured 634 KB a repaint
|
|
30
|
+
* batched against 97 KB one at a time, and seven hundred measured 3.9 MB
|
|
31
|
+
* one at a time against 1.3 MB batched. And the two do not draw the same
|
|
32
|
+
* pixels where edges overlap: coverage adds inside one path and lays one
|
|
33
|
+
* over the other between two, so a fan-out's shared leg came out as much
|
|
34
|
+
* as 35 levels apart at its edges. So the choice is the pane's, never a
|
|
35
|
+
* pass's — decided from the edges on the pane and kept across the passes
|
|
36
|
+
* of every frame until a repaint of the whole pane takes the other one
|
|
37
|
+
* ({@link SceneInput.batch}).
|
|
38
|
+
*/
|
|
39
|
+
export declare const EDGE_BATCH = 24;
|
|
40
|
+
/** Whether `onPane` edges are stroked a pen at a time, given whether they
|
|
41
|
+
* were (`EDGE_BATCH`). */
|
|
42
|
+
export declare function batchesEdges(onPane: number, was?: boolean): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* One edge's route, kept between frames.
|
|
45
|
+
*
|
|
46
|
+
* The saved work is everything above the arithmetic: resolving which handle
|
|
47
|
+
* each end uses (which allocates an anchor per spec), evaluating the curve
|
|
48
|
+
* (up to 48 points), and dropping the vertices that crowd each other.
|
|
49
|
+
*
|
|
50
|
+
* What makes it reusable is a property of the routing rather than of the
|
|
51
|
+
* cache: **every edge type is translation-equivariant and none is
|
|
52
|
+
* scale-equivariant.** Move both endpoints by the same vector and the whole
|
|
53
|
+
* route moves with them, because every route is built from distances
|
|
54
|
+
* between the two ends; change the zoom and it does not, because a bezier's
|
|
55
|
+
* shoulder, a step's offset, a fillet's radius and a loop's reach are all
|
|
56
|
+
* clamped against pixel constants that do not scale. So the route is stored
|
|
57
|
+
* in screen space next to the viewport origin it was built at, and a pan —
|
|
58
|
+
* which keeps the zoom and moves the origin — is an addition per vertex
|
|
59
|
+
* into an array that already exists. A zoom rebuilds.
|
|
60
|
+
*
|
|
61
|
+
* The screen arrays are **reused and mutated in place**, which is where the
|
|
62
|
+
* allocation goes: a frame of 2000 edges was spending a sixth of itself in
|
|
63
|
+
* the collector. A scene is built and drawn inside one paint and nothing
|
|
64
|
+
* retains it, so the only rule is the one stated on {@link buildScene} —
|
|
65
|
+
* do not hold a scene past the frame that made it.
|
|
66
|
+
*/
|
|
67
|
+
interface CachedRoute {
|
|
68
|
+
zoom: number;
|
|
69
|
+
originX: number;
|
|
70
|
+
originY: number;
|
|
71
|
+
sx: number;
|
|
72
|
+
sy: number;
|
|
73
|
+
sw: number;
|
|
74
|
+
sh: number;
|
|
75
|
+
tx: number;
|
|
76
|
+
ty: number;
|
|
77
|
+
tw: number;
|
|
78
|
+
th: number;
|
|
79
|
+
sourceSpecs: readonly HandleSpec[];
|
|
80
|
+
targetSpecs: readonly HandleSpec[];
|
|
81
|
+
sourceHandle: string | null;
|
|
82
|
+
targetHandle: string | null;
|
|
83
|
+
/** The node ids too: an id can be reused for a different pair between
|
|
84
|
+
* commits, and the rects alone would not notice two nodes that happen to
|
|
85
|
+
* sit in the same place. */
|
|
86
|
+
source: string;
|
|
87
|
+
target: string;
|
|
88
|
+
type: EdgeType | undefined;
|
|
89
|
+
loop: boolean;
|
|
90
|
+
/** The arrowheads' shapes and sizes, which decide where the stroke stops
|
|
91
|
+
* and what the heads look like. Their *colours* are not here: those
|
|
92
|
+
* change with selection and hover and move no geometry. */
|
|
93
|
+
markerKey: string;
|
|
94
|
+
points: XYPosition[];
|
|
95
|
+
/** The stroke's own points, stopped behind the arrowhead — null when
|
|
96
|
+
* there is no head and the stroke is the whole route. Kept apart from
|
|
97
|
+
* `points` because the label sits at the middle of the *whole* route. */
|
|
98
|
+
trimmed: XYPosition[] | null;
|
|
99
|
+
endHead: XYPosition[] | null;
|
|
100
|
+
startHead: XYPosition[] | null;
|
|
101
|
+
from: HandleAnchor;
|
|
102
|
+
to: HandleAnchor;
|
|
103
|
+
bounds: FlowRect;
|
|
104
|
+
/** The middle of the whole route, where a label sits: worked out the
|
|
105
|
+
* first time a label asks (`middleOf`), and moved with the route. */
|
|
106
|
+
middle: XYPosition | null;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Everything drawing `edge` along `points` can ink, in the same pixels: the
|
|
110
|
+
* route and its arrowheads, the pen's reach past both, and the label's
|
|
111
|
+
* plate — what a change that moves the edge has to claim. From the heads
|
|
112
|
+
* and the pen {@link buildScene} draws with: a claim that took the route's
|
|
113
|
+
* points alone reached a head's wing only through the margin it was grown
|
|
114
|
+
* by, and a large head, a deep zoom or a wide pen outgrows any margin.
|
|
115
|
+
*
|
|
116
|
+
* `margin` is what the caller grows the box by afterwards, and the pen and
|
|
117
|
+
* the heads count only past it: an ordinary pen and a default arrow stay
|
|
118
|
+
* inside a claim's margin at any zoom a pane allows by default, and adding
|
|
119
|
+
* them again made every move on a small graph claim a fifth more.
|
|
120
|
+
*/
|
|
121
|
+
export declare function edgeInkBox(v: Viewport, edge: AnyEdge, points: readonly XYPosition[], margin?: number): FlowRect;
|
|
122
|
+
/** A route with nothing kept between frames. */
|
|
123
|
+
export declare function uncachedRoute(v: Viewport, edge: AnyEdge, from: SceneNodeSource, to: SceneNodeSource, markerEnd: EdgeMarker | null, markerStart: EdgeMarker | null): CachedRoute | null;
|
|
124
|
+
/** An edge a pass may draw: both ends resolved and its coarse box on
|
|
125
|
+
* screen, which is everything about it no pass's clip changes. */
|
|
126
|
+
interface EdgeCandidate {
|
|
127
|
+
edge: AnyEdge;
|
|
128
|
+
from: SceneNodeSource;
|
|
129
|
+
to: SceneNodeSource;
|
|
130
|
+
coarse: FlowRect;
|
|
131
|
+
}
|
|
132
|
+
/** A node on screen, with its screen box. */
|
|
133
|
+
interface NodeCandidate {
|
|
134
|
+
source: SceneNodeSource;
|
|
135
|
+
rect: FlowRect;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A box an edge's route stays in, grown to hold its label's plate too. The
|
|
139
|
+
* plate is centred on the route's middle and as wide as its text, which can
|
|
140
|
+
* be far wider than the route: a long name on a short edge put a plate on
|
|
141
|
+
* the pane whose edge was culled for being off it, and a node that moved
|
|
142
|
+
* such an edge claimed its route and left the plate's ends behind. Every
|
|
143
|
+
* cull and every claim asks this of every labelled edge, so the plate is
|
|
144
|
+
* bounded rather than measured — an em and a quarter a code unit, wider
|
|
145
|
+
* than any label is set — and grows nothing where no labels are drawn.
|
|
146
|
+
*/
|
|
147
|
+
export declare function withLabelPlate(box: FlowRect, edge: AnyEdge, zoom: number): FlowRect;
|
|
148
|
+
export declare class SceneCache {
|
|
149
|
+
private readonly routes;
|
|
150
|
+
/** The node index, memoized on the array it was built from: at two
|
|
151
|
+
* thousand nodes, rebuilding this Map every frame was a tenth of the
|
|
152
|
+
* build. */
|
|
153
|
+
private index;
|
|
154
|
+
private indexFor;
|
|
155
|
+
/** The edges and nodes on screen, for the passes of one frame. */
|
|
156
|
+
private edgeCull;
|
|
157
|
+
private nodeCull;
|
|
158
|
+
/** Everything is derived, so forgetting it is always safe. */
|
|
159
|
+
clear(): void;
|
|
160
|
+
/**
|
|
161
|
+
* The edges whose coarse box reaches `kept`, with their ends — the list a
|
|
162
|
+
* pass walks, culled once for every pass of a frame. A 2D frame paints its
|
|
163
|
+
* damage as several passes, a pan's strips and corners and furniture, and
|
|
164
|
+
* each one walked every edge in the graph to throw nearly all of them
|
|
165
|
+
* away: at four thousand edges that was most of what a pan frame cost
|
|
166
|
+
* once the drawing had become a copy. Keyed on the arrays themselves, so
|
|
167
|
+
* the element has to hand the same ones to every pass of a frame.
|
|
168
|
+
*/
|
|
169
|
+
edgesOnScreen(v: Viewport, kept: FlowRect, edges: readonly AnyEdge[], all: readonly SceneNodeSource[], scale: number): EdgeCandidate[];
|
|
170
|
+
/** The nodes whose screen box reaches `kept`, culled once for every pass
|
|
171
|
+
* of a frame the way `edgesOnScreen` culls the edges. */
|
|
172
|
+
nodesOnScreen(v: Viewport, kept: FlowRect, nodes: readonly SceneNodeSource[], scale: number): NodeCandidate[];
|
|
173
|
+
byId(all: readonly SceneNodeSource[]): Map<string, SceneNodeSource>;
|
|
174
|
+
/**
|
|
175
|
+
* The route for `edge` at `v`, from the cache where it still holds. With
|
|
176
|
+
* `within`, a cached route whose box, carried to `v`, misses that rect is
|
|
177
|
+
* left where it is and null comes back: the pass has nothing of it to
|
|
178
|
+
* draw, and the pan it was not moved by is added to the next one that
|
|
179
|
+
* reaches it.
|
|
180
|
+
*/
|
|
181
|
+
route(v: Viewport, edge: AnyEdge, from: SceneNodeSource, to: SceneNodeSource, markerEnd: EdgeMarker | null, markerStart: EdgeMarker | null, within?: FlowRect | null): CachedRoute | null;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* One node, resolved. The element builds these: a drag's live position is
|
|
185
|
+
* already in `rect`, a resize's live box has already replaced it, and
|
|
186
|
+
* `grips` is already filtered by whatever the handles took.
|
|
187
|
+
*/
|
|
188
|
+
export interface SceneNodeSource {
|
|
189
|
+
node: AnyNode;
|
|
190
|
+
/** **Graph space**, unlike everything else here. */
|
|
191
|
+
rect: FlowRect;
|
|
192
|
+
specs: readonly HandleSpec[];
|
|
193
|
+
type: AnyType | undefined;
|
|
194
|
+
/** The title bar's height in graph units — only read when `mounted`. */
|
|
195
|
+
header: number;
|
|
196
|
+
/** Whether a React body is mounted over this node, which is what makes
|
|
197
|
+
* the card draw a title bar rather than a centred label. */
|
|
198
|
+
mounted: boolean;
|
|
199
|
+
connectable: boolean;
|
|
200
|
+
/** Which resize grips to draw, already filtered. Empty for most nodes. */
|
|
201
|
+
grips: readonly XYPosition[];
|
|
202
|
+
}
|
|
203
|
+
/** The pointer's business, for hover styling. */
|
|
204
|
+
export interface SceneHover {
|
|
205
|
+
nodeId: string | null;
|
|
206
|
+
handle: HandleAnchor | null;
|
|
207
|
+
edgeId: string | null;
|
|
208
|
+
}
|
|
209
|
+
/** A connection being dragged out of a handle. */
|
|
210
|
+
export interface SceneConnectionSource {
|
|
211
|
+
from: HandleAnchor;
|
|
212
|
+
to: HandleAnchor | null;
|
|
213
|
+
pointer: XYPosition;
|
|
214
|
+
valid: boolean;
|
|
215
|
+
}
|
|
216
|
+
/** The minimap's frame, as the element resolved it. */
|
|
217
|
+
export interface SceneMiniMapSource {
|
|
218
|
+
panel: FlowRect;
|
|
219
|
+
bounds: FlowRect;
|
|
220
|
+
scale: number;
|
|
221
|
+
nodeColor?: string | ((node: FlowNode<never>) => string);
|
|
222
|
+
maskColor?: string;
|
|
223
|
+
/** The rect this pass repaints of it, where the scene is built with no
|
|
224
|
+
* clip of its own — the furniture's, which is drawn over the rest. Only
|
|
225
|
+
* the nodes that reach it are built (`buildMiniMap`). */
|
|
226
|
+
reach?: FlowRect | null;
|
|
227
|
+
}
|
|
228
|
+
/** One control button's box and what it does. */
|
|
229
|
+
export interface SceneControlButton {
|
|
230
|
+
rect: FlowRect;
|
|
231
|
+
action: 'in' | 'out' | 'fit';
|
|
232
|
+
}
|
|
233
|
+
/** The background, normalized. */
|
|
234
|
+
export interface SceneBackgroundSource {
|
|
235
|
+
variant: BackgroundVariant;
|
|
236
|
+
gap: number;
|
|
237
|
+
size: number;
|
|
238
|
+
color?: string;
|
|
239
|
+
}
|
|
240
|
+
/** Everything {@link buildScene} reads. */
|
|
241
|
+
export interface SceneInput {
|
|
242
|
+
viewport: Viewport;
|
|
243
|
+
/** The pane's content box, in screen space. */
|
|
244
|
+
pane: FlowRect;
|
|
245
|
+
/**
|
|
246
|
+
* The damage rect this pass repaints, in screen space — null for a full
|
|
247
|
+
* pass. Everything outside it survives on the window from the last frame,
|
|
248
|
+
* so it is a second cull on top of the pane's.
|
|
249
|
+
*
|
|
250
|
+
* A renderer that redraws the whole frame every time (the GL one) passes
|
|
251
|
+
* null, and the scene is the whole pane.
|
|
252
|
+
*/
|
|
253
|
+
clip: FlowRect | null;
|
|
254
|
+
/**
|
|
255
|
+
* What is kept, in the same window pixels — the pane when left out.
|
|
256
|
+
*
|
|
257
|
+
* A renderer that keeps a scene across frames wants more than the pane:
|
|
258
|
+
* the GL one builds the graph at a pinned origin and pans it by moving a
|
|
259
|
+
* uniform, so it culls to an *overscan* region round the view, and only
|
|
260
|
+
* rebuilds once the view leaves it (`./node.ts`, `glFrame`).
|
|
261
|
+
*/
|
|
262
|
+
cull?: FlowRect | null;
|
|
263
|
+
palette: FlowPalette;
|
|
264
|
+
/** The pane's own background, when its style set one. */
|
|
265
|
+
paneBackground?: string;
|
|
266
|
+
background: SceneBackgroundSource;
|
|
267
|
+
/** Paint order: z-index, then selection, with a dragged node on top. */
|
|
268
|
+
nodes: readonly SceneNodeSource[];
|
|
269
|
+
/** Every node, for the minimap — which summarises the graph, not the
|
|
270
|
+
* pass. */
|
|
271
|
+
all: readonly SceneNodeSource[];
|
|
272
|
+
edges: readonly AnyEdge[];
|
|
273
|
+
/** How far an animated edge's dash has marched, in graph units. */
|
|
274
|
+
dashPhase: number;
|
|
275
|
+
hover: SceneHover;
|
|
276
|
+
connection: SceneConnectionSource | null;
|
|
277
|
+
/** The box-selection rectangle, in screen space. */
|
|
278
|
+
selection: FlowRect | null;
|
|
279
|
+
miniMap: SceneMiniMapSource | null;
|
|
280
|
+
controls: readonly SceneControlButton[];
|
|
281
|
+
/** Device pixels per logical pixel — only to put node boxes on whole
|
|
282
|
+
* device pixels; everything else here is scale-free. */
|
|
283
|
+
scale: number;
|
|
284
|
+
/** Text metrics, which need the app's font cache. */
|
|
285
|
+
measure(text: string, options?: TextOptions): {
|
|
286
|
+
width: number;
|
|
287
|
+
height: number;
|
|
288
|
+
};
|
|
289
|
+
/** What survived the last frame. Optional: without one every route is
|
|
290
|
+
* computed again, which is correct and slower. */
|
|
291
|
+
cache?: SceneCache;
|
|
292
|
+
/**
|
|
293
|
+
* Whether the edges are stroked a pen at a time ({@link EDGE_BATCH}) —
|
|
294
|
+
* the pane's choice, which every pass that repaints part of it has to
|
|
295
|
+
* follow. Left out, this pass makes it from the edges on the pane, going
|
|
296
|
+
* by `batchWas` for which side of the threshold it was on.
|
|
297
|
+
*/
|
|
298
|
+
batch?: boolean;
|
|
299
|
+
batchWas?: boolean;
|
|
300
|
+
}
|
|
301
|
+
/** A filled and/or stroked rectangle. */
|
|
302
|
+
export interface SceneRect {
|
|
303
|
+
rect: FlowRect;
|
|
304
|
+
radius: number;
|
|
305
|
+
fill?: string;
|
|
306
|
+
stroke?: string;
|
|
307
|
+
lineWidth?: number;
|
|
308
|
+
}
|
|
309
|
+
/** A string to set. */
|
|
310
|
+
export interface SceneText {
|
|
311
|
+
kind: 'text';
|
|
312
|
+
text: string;
|
|
313
|
+
x: number;
|
|
314
|
+
y: number;
|
|
315
|
+
size: number;
|
|
316
|
+
color: string;
|
|
317
|
+
weight?: 'bold';
|
|
318
|
+
align?: 'left' | 'center' | 'right';
|
|
319
|
+
baseline?: 'middle';
|
|
320
|
+
maxWidth?: number;
|
|
321
|
+
}
|
|
322
|
+
/** A hairline: the rule under a title bar, a separator between two control
|
|
323
|
+
* buttons. Stroked rather than filled, so it lands where a 1px border
|
|
324
|
+
* does. */
|
|
325
|
+
export interface SceneRule {
|
|
326
|
+
kind: 'rule';
|
|
327
|
+
points: readonly XYPosition[];
|
|
328
|
+
color: string;
|
|
329
|
+
lineWidth: number;
|
|
330
|
+
}
|
|
331
|
+
/** An arrowhead. `filled` is a closed triangle; the open kind is a
|
|
332
|
+
* two-segment chevron. */
|
|
333
|
+
export interface SceneMarker {
|
|
334
|
+
points: readonly XYPosition[];
|
|
335
|
+
filled: boolean;
|
|
336
|
+
color: string;
|
|
337
|
+
lineWidth: number;
|
|
338
|
+
}
|
|
339
|
+
/** One edge, routed and ready. */
|
|
340
|
+
export interface SceneEdge {
|
|
341
|
+
id: string;
|
|
342
|
+
/** The polyline, already shortened behind an arrowhead. */
|
|
343
|
+
points: readonly XYPosition[];
|
|
344
|
+
stroke: string;
|
|
345
|
+
lineWidth: number;
|
|
346
|
+
dash?: readonly number[];
|
|
347
|
+
dashOffset: number;
|
|
348
|
+
/** Whether the dash marches. `dashOffset` already holds this frame's
|
|
349
|
+
* phase; a renderer that keeps edges across frames reads this instead and
|
|
350
|
+
* moves the phase itself, so a tick is not a rebuild. */
|
|
351
|
+
animated: boolean;
|
|
352
|
+
/** The pieces of `points` a pass that reaches only part of the edge draws
|
|
353
|
+
* — each run of segments whose ink can land in its rect. Absent where the
|
|
354
|
+
* whole route is drawn. */
|
|
355
|
+
runs?: readonly (readonly XYPosition[])[];
|
|
356
|
+
/** For a dashed edge with `runs`: how far along `points` each run
|
|
357
|
+
* starts, logical pixels — its pattern goes on from there rather than
|
|
358
|
+
* starting again at every cut. */
|
|
359
|
+
runStarts?: readonly number[];
|
|
360
|
+
markers: readonly SceneMarker[];
|
|
361
|
+
/** Which edges a batched pane strokes over which: a selected one over a
|
|
362
|
+
* hovered one over the rest. Left out, the rest. */
|
|
363
|
+
layer?: number;
|
|
364
|
+
/** The plate behind a label, so it sits above every edge. */
|
|
365
|
+
chip?: SceneRect;
|
|
366
|
+
label?: SceneText;
|
|
367
|
+
}
|
|
368
|
+
/** A connection point. */
|
|
369
|
+
export interface SceneHandle {
|
|
370
|
+
at: XYPosition;
|
|
371
|
+
radius: number;
|
|
372
|
+
fill: string;
|
|
373
|
+
stroke?: string;
|
|
374
|
+
lineWidth?: number;
|
|
375
|
+
label?: SceneText;
|
|
376
|
+
}
|
|
377
|
+
/** One node's drawing. `custom` means the node's type draws its own body,
|
|
378
|
+
* and everything but the handles and grips is its business. */
|
|
379
|
+
export interface SceneNodeItem {
|
|
380
|
+
id: string;
|
|
381
|
+
rect: FlowRect;
|
|
382
|
+
selected: boolean;
|
|
383
|
+
hovered: boolean;
|
|
384
|
+
/** Present unless the type paints itself. */
|
|
385
|
+
card?: {
|
|
386
|
+
shape: SceneRect;
|
|
387
|
+
accent?: SceneRect;
|
|
388
|
+
};
|
|
389
|
+
/** The label, the description, and the rule under a title bar. */
|
|
390
|
+
ink: readonly (SceneText | SceneRule)[];
|
|
391
|
+
handles: readonly SceneHandle[];
|
|
392
|
+
grips: readonly SceneRect[];
|
|
393
|
+
/** Set when the type has a `paint`: the painter calls it, and a renderer
|
|
394
|
+
* that cannot must say so rather than draw the wrong thing. */
|
|
395
|
+
custom?: {
|
|
396
|
+
type: AnyType;
|
|
397
|
+
node: AnyNode;
|
|
398
|
+
/** The node's handles in screen space, which is what the hook is
|
|
399
|
+
* handed. */
|
|
400
|
+
anchors: readonly HandleAnchor[];
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
/** The grid, described rather than drawn: a renderer works it out per pixel,
|
|
404
|
+
* as a pattern tile or as a pile of runs, and the choice is the
|
|
405
|
+
* renderer's. */
|
|
406
|
+
export interface SceneGrid {
|
|
407
|
+
variant: BackgroundVariant;
|
|
408
|
+
/** The pitch on screen, already doubled past {@link MIN_GRID_PX}. */
|
|
409
|
+
step: number;
|
|
410
|
+
/** Where a grid line falls: the viewport origin, in screen space. */
|
|
411
|
+
origin: XYPosition;
|
|
412
|
+
/** A mark's size in graph units — multiply by the zoom for screen. */
|
|
413
|
+
size: number;
|
|
414
|
+
color: string;
|
|
415
|
+
/** The part of the pane this pass covers. */
|
|
416
|
+
region: FlowRect;
|
|
417
|
+
}
|
|
418
|
+
/** The connection line being dragged out of a handle. */
|
|
419
|
+
export interface SceneConnection {
|
|
420
|
+
points: readonly XYPosition[];
|
|
421
|
+
stroke: string;
|
|
422
|
+
lineWidth: number;
|
|
423
|
+
dash?: readonly number[];
|
|
424
|
+
tip: SceneHandle;
|
|
425
|
+
}
|
|
426
|
+
/** The minimap panel. */
|
|
427
|
+
export interface SceneMiniMap {
|
|
428
|
+
panel: SceneRect;
|
|
429
|
+
nodes: readonly SceneMiniMapNode[];
|
|
430
|
+
view: SceneRect;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* A node in the minimap, with the run it is filled in: a run of plain
|
|
434
|
+
* squares of one colour, next to each other in the graph's order, is one
|
|
435
|
+
* path and one fill (`paintPanels`). The run is worked out over every node,
|
|
436
|
+
* so a pass that culls some away fills what it keeps as a whole repaint
|
|
437
|
+
* does — nodes that overlap are one path's coverage or one over another,
|
|
438
|
+
* and which one is the run's to say, not the pass's. `batched` says whether
|
|
439
|
+
* the whole run was more than one node, for the same reason: a lone square
|
|
440
|
+
* is filled as a rectangle, and that is not the pixels a path gives.
|
|
441
|
+
*/
|
|
442
|
+
export interface SceneMiniMapNode extends SceneRect {
|
|
443
|
+
run: number;
|
|
444
|
+
batched: boolean;
|
|
445
|
+
}
|
|
446
|
+
/** Where a box of the graph sits in the minimap, as it is drawn there — the
|
|
447
|
+
* one formula the pass that draws the minimap and a claim on it share. */
|
|
448
|
+
export declare function miniMapPlace(map: Pick<SceneMiniMapSource, 'panel' | 'bounds' | 'scale'>, rect: FlowRect): FlowRect;
|
|
449
|
+
/** How far a minimap node's fill reaches past its box: its antialiased
|
|
450
|
+
* edge, which a pass has to take in to draw the node's part of a pixel it
|
|
451
|
+
* shares. */
|
|
452
|
+
export declare const MINIMAP_BLEED = 2;
|
|
453
|
+
/** One button's mark: its runs go in one path, which is what the 2D painter
|
|
454
|
+
* did per button before any of this moved. */
|
|
455
|
+
export interface SceneGlyph {
|
|
456
|
+
runs: readonly (readonly XYPosition[])[];
|
|
457
|
+
color: string;
|
|
458
|
+
lineWidth: number;
|
|
459
|
+
}
|
|
460
|
+
/** The zoom controls. */
|
|
461
|
+
export interface SceneControls {
|
|
462
|
+
panel: SceneRect;
|
|
463
|
+
rules: readonly SceneRule[];
|
|
464
|
+
glyphs: readonly SceneGlyph[];
|
|
465
|
+
}
|
|
466
|
+
/** The whole frame. */
|
|
467
|
+
export interface FlowScene {
|
|
468
|
+
viewport: Viewport;
|
|
469
|
+
pane: FlowRect;
|
|
470
|
+
/** Carried so a custom node type's `paint` can be handed it — the hook
|
|
471
|
+
* takes the palette the rest of the frame was drawn from. */
|
|
472
|
+
palette: FlowPalette;
|
|
473
|
+
/** What this pass covers: the pane, or the damage rect inside it. Null
|
|
474
|
+
* when the pass reaches nothing. */
|
|
475
|
+
region: FlowRect | null;
|
|
476
|
+
background: SceneRect | null;
|
|
477
|
+
grid: SceneGrid | null;
|
|
478
|
+
edges: readonly SceneEdge[];
|
|
479
|
+
nodes: readonly SceneNodeItem[];
|
|
480
|
+
connection: SceneConnection | null;
|
|
481
|
+
selection: SceneRect | null;
|
|
482
|
+
miniMap: SceneMiniMap | null;
|
|
483
|
+
controls: SceneControls | null;
|
|
484
|
+
/** Whether any edge in view is animated — the element keeps a timer alive
|
|
485
|
+
* only while this is true. */
|
|
486
|
+
animated: boolean;
|
|
487
|
+
/** The box those animated edges actually inked, so a dash tick repaints
|
|
488
|
+
* that rather than the pane. Null when this pass drew none. */
|
|
489
|
+
animBox: FlowRect | null;
|
|
490
|
+
/** Whether the edges are stroked a pen at a time (`SceneInput.batch`). */
|
|
491
|
+
batch: boolean;
|
|
492
|
+
/** How many edges reach the pane, whatever this pass reaches: what the
|
|
493
|
+
* next choice of `batch` goes by. */
|
|
494
|
+
edgesOnPane: number;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* The viewport as the *window* sees it: the pane's own origin folded into
|
|
498
|
+
* the translation.
|
|
499
|
+
*
|
|
500
|
+
* A {@link Viewport} is the pane's — `x`/`y` place the graph relative to the
|
|
501
|
+
* pane's top-left, which is what `setViewport` and `onViewportChange` speak
|
|
502
|
+
* — while everything this module draws and everything the element hit-tests
|
|
503
|
+
* is in window pixels. Every graph-to-window conversion goes through this
|
|
504
|
+
* first. The scene extraction once skipped it, so a pane that did not sit at
|
|
505
|
+
* the window's origin drew and hit-tested shifted by its own offset — and
|
|
506
|
+
* agreed with itself while doing it, which is why only an off-origin test
|
|
507
|
+
* could see it (`test/flow.test.ts`, "off the window origin").
|
|
508
|
+
*/
|
|
509
|
+
export declare function screenViewport(v: Viewport, pane: FlowRect): Viewport;
|
|
510
|
+
/** Graph point to window, through a {@link screenViewport}. */
|
|
511
|
+
export declare function toScreen(v: Viewport, p: XYPosition): XYPosition;
|
|
512
|
+
/**
|
|
513
|
+
* A node's box on screen, put on whole device pixels.
|
|
514
|
+
*
|
|
515
|
+
* Rounded as *edges* rather than as a size, so two nodes that share a column
|
|
516
|
+
* still share it after rounding.
|
|
517
|
+
*/
|
|
518
|
+
export declare function screenRect(v: Viewport, rect: FlowRect, scale: number): FlowRect;
|
|
519
|
+
/** A handle's drawn radius: it grows with the zoom, but only so far, so a
|
|
520
|
+
* zoomed-out graph still has something to aim at. */
|
|
521
|
+
export declare function handleRadius(zoom: number): number;
|
|
522
|
+
export declare function sameHandle(a: HandleAnchor | null | undefined, b: HandleAnchor): boolean;
|
|
523
|
+
/**
|
|
524
|
+
* A node's handle anchors, in graph space.
|
|
525
|
+
*
|
|
526
|
+
* Takes the three fields it reads rather than a whole
|
|
527
|
+
* {@link SceneNodeSource}, and that is load-bearing rather than tidy: a
|
|
528
|
+
* source carries `grips`, and which grips a node shows depends on where its
|
|
529
|
+
* handles are — asking for the whole source here is a cycle.
|
|
530
|
+
*/
|
|
531
|
+
export declare function anchorsOf(source: {
|
|
532
|
+
node: {
|
|
533
|
+
id: string;
|
|
534
|
+
};
|
|
535
|
+
rect: FlowRect;
|
|
536
|
+
specs: readonly HandleSpec[];
|
|
537
|
+
}): HandleAnchor[];
|
|
538
|
+
/**
|
|
539
|
+
* The scene for one pass.
|
|
540
|
+
*
|
|
541
|
+
* Pure but for one thing, and it is worth stating plainly: with a
|
|
542
|
+
* {@link SceneCache} the routes it returns are **arrays the cache owns and
|
|
543
|
+
* the next frame will move in place**. A scene is built and drawn inside one
|
|
544
|
+
* paint and nothing keeps it, so the rule is simply that — do not hold a
|
|
545
|
+
* scene past the frame that made it, and do not mutate what it hands back.
|
|
546
|
+
* Without a cache every array is fresh and the rule is vacuous.
|
|
547
|
+
*/
|
|
548
|
+
export declare function buildScene(input: SceneInput): FlowScene;
|
|
549
|
+
/**
|
|
550
|
+
* The runs of `points` whose ink can land in `clip`: each maximal run of
|
|
551
|
+
* segments whose box comes within `reach` of it, or null when every segment
|
|
552
|
+
* does and the route is one run already. A run ends at a vertex farther
|
|
553
|
+
* than `reach` from the rect, so the cap and the join the cut replaced are
|
|
554
|
+
* drawn where the rect cannot see them.
|
|
555
|
+
*/
|
|
556
|
+
export declare function runsReaching(points: readonly XYPosition[], clip: FlowRect, reach: number,
|
|
557
|
+
/** Filled, when given, with the index in `points` each run starts at. */
|
|
558
|
+
starts?: number[]): (readonly XYPosition[])[] | null;
|
|
559
|
+
/** The box two nodes' edge cannot leave, before it is routed. */
|
|
560
|
+
export declare function edgeCoarseBox(v: Viewport, from: SceneNodeSource, to: SceneNodeSource, _scale?: number): FlowRect;
|
|
561
|
+
/** Which handles an edge joins, and the polyline between them. */
|
|
562
|
+
export declare function edgeRoute(v: Viewport, edge: AnyEdge, from: SceneNodeSource, to: SceneNodeSource): {
|
|
563
|
+
points: XYPosition[];
|
|
564
|
+
from: HandleAnchor;
|
|
565
|
+
to: HandleAnchor;
|
|
566
|
+
} | null;
|
|
567
|
+
export declare function endpoint(source: {
|
|
568
|
+
node: {
|
|
569
|
+
id: string;
|
|
570
|
+
};
|
|
571
|
+
rect: FlowRect;
|
|
572
|
+
specs: readonly HandleSpec[];
|
|
573
|
+
}, handleId: string | null | undefined, type: 'source' | 'target', towards: XYPosition | null): HandleAnchor | null;
|
|
574
|
+
/** The node items of a scene alone — what a mounted node's card is painted
|
|
575
|
+
* from, apart from the rest of the scene (`FlowGraphNode.paintCard`). */
|
|
576
|
+
export declare function buildNodeItems(input: SceneInput): SceneNodeItem[];
|
|
577
|
+
/**
|
|
578
|
+
* The line a connection gesture draws, routed. Exported because the element
|
|
579
|
+
* claims damage for it between frames and the two must be the same curve —
|
|
580
|
+
* a box drawn from a second derivation is a box that leaves crumbs.
|
|
581
|
+
*/
|
|
582
|
+
export declare function connectionPath(v: Viewport, source: SceneConnectionSource): XYPosition[];
|
|
583
|
+
export {};
|
|
584
|
+
//# sourceMappingURL=scene.d.ts.map
|