@graphrefly/ts 0.0.1 → 0.0.3
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 +197 -117
- package/dist/actions-types-CH-XCU9O.d.cts +657 -0
- package/dist/actions-types-w2iPQTkv.d.ts +657 -0
- package/dist/adapters/index.cjs +5157 -2951
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +207 -70
- package/dist/adapters/index.d.ts +207 -70
- package/dist/adapters/index.js +3738 -1688
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/nestjs/microservices.cjs +841 -0
- package/dist/adapters/nestjs/microservices.cjs.map +1 -0
- package/dist/adapters/nestjs/microservices.d.cts +45 -0
- package/dist/adapters/nestjs/microservices.d.ts +45 -0
- package/dist/adapters/nestjs/microservices.js +206 -0
- package/dist/adapters/nestjs/microservices.js.map +1 -0
- package/dist/adapters/nestjs/native.cjs +1391 -0
- package/dist/adapters/nestjs/native.cjs.map +1 -0
- package/dist/adapters/nestjs/native.d.cts +111 -0
- package/dist/adapters/nestjs/native.d.ts +111 -0
- package/dist/adapters/nestjs/native.js +577 -0
- package/dist/adapters/nestjs/native.js.map +1 -0
- package/dist/adapters/nestjs/websockets.cjs +924 -0
- package/dist/adapters/nestjs/websockets.cjs.map +1 -0
- package/dist/adapters/nestjs/websockets.d.cts +47 -0
- package/dist/adapters/nestjs/websockets.d.ts +47 -0
- package/dist/adapters/nestjs/websockets.js +286 -0
- package/dist/adapters/nestjs/websockets.js.map +1 -0
- package/dist/adapters/nestjs.cjs +1085 -0
- package/dist/adapters/nestjs.cjs.map +1 -0
- package/dist/adapters/nestjs.d.cts +385 -0
- package/dist/adapters/nestjs.d.ts +385 -0
- package/dist/adapters/nestjs.js +112 -0
- package/dist/adapters/nestjs.js.map +1 -0
- package/dist/adapters/observe-storage.d.cts +3 -3
- package/dist/adapters/observe-storage.d.ts +3 -3
- package/dist/adapters/observe-storage.js +4 -4
- package/dist/adapters/react.cjs.map +1 -1
- package/dist/adapters/react.d.cts +2 -2
- package/dist/adapters/react.d.ts +2 -2
- package/dist/adapters/react.js +1 -1
- package/dist/adapters/solid.cjs.map +1 -1
- package/dist/adapters/solid.d.cts +2 -2
- package/dist/adapters/solid.d.ts +2 -2
- package/dist/adapters/solid.js +1 -1
- package/dist/adapters/svelte.cjs.map +1 -1
- package/dist/adapters/svelte.d.cts +2 -2
- package/dist/adapters/svelte.d.ts +2 -2
- package/dist/adapters/svelte.js +1 -1
- package/dist/adapters/vue.cjs.map +1 -1
- package/dist/adapters/vue.d.cts +2 -2
- package/dist/adapters/vue.d.ts +2 -2
- package/dist/adapters/vue.js +1 -1
- package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-CKwrBDyi.d.ts} +171 -320
- package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-bfl4m0vM.d.cts} +171 -320
- package/dist/agent-runtime-types-tool-BLPV3azj.d.cts +695 -0
- package/dist/agent-runtime-types-tool-hwqvVqNt.d.ts +695 -0
- package/dist/agentic-memory-retention-CLwI76JK.d.ts +14 -0
- package/dist/agentic-memory-retention-Cz8GR6ie.d.cts +14 -0
- package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-JDr7MPhh.d.cts} +13 -57
- package/dist/{agentic-memory-BmRCvh0d.d.ts → agentic-memory-types-khYJgzKL.d.ts} +13 -57
- package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-B8RNFyaZ.d.cts} +3 -3
- package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-Dkw1Xz3r.d.ts} +3 -3
- package/dist/chunk-2KUAG2GZ.js +9693 -0
- package/dist/chunk-2KUAG2GZ.js.map +1 -0
- package/dist/{chunk-CZNV3VXM.js → chunk-3J7UPZL5.js} +11 -11
- package/dist/{chunk-HKK2JD7Z.js → chunk-3LYI6ADX.js} +12 -125
- package/dist/chunk-3LYI6ADX.js.map +1 -0
- package/dist/{chunk-YXMZ2N6J.js → chunk-4M37FH2I.js} +1071 -1025
- package/dist/chunk-4M37FH2I.js.map +1 -0
- package/dist/{chunk-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
- package/dist/chunk-4NWSNI4K.js.map +1 -0
- package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
- package/dist/{chunk-SS2A464I.js → chunk-54WPEODM.js} +3 -3
- package/dist/chunk-54WPEODM.js.map +1 -0
- package/dist/chunk-6E76H4OU.js +132 -0
- package/dist/chunk-6E76H4OU.js.map +1 -0
- package/dist/chunk-7GOTIIQ7.js +819 -0
- package/dist/chunk-7GOTIIQ7.js.map +1 -0
- package/dist/{chunk-V7CIJE4B.js → chunk-DKFWDTVY.js} +92 -9
- package/dist/chunk-DKFWDTVY.js.map +1 -0
- package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
- package/dist/chunk-E4QCH32M.js.map +1 -0
- package/dist/{chunk-XKXWK2KP.js → chunk-GXU6WFEJ.js} +1157 -1021
- package/dist/chunk-GXU6WFEJ.js.map +1 -0
- package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
- package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
- package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
- package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
- package/dist/chunk-K7FB3JTD.js.map +1 -0
- package/dist/{chunk-43BKLFZU.js → chunk-KFURM6FM.js} +10 -10
- package/dist/{chunk-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
- package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
- package/dist/chunk-MCOFHMUU.js +4131 -0
- package/dist/chunk-MCOFHMUU.js.map +1 -0
- package/dist/chunk-MQEQMS7B.js +1009 -0
- package/dist/chunk-MQEQMS7B.js.map +1 -0
- package/dist/chunk-MTELVIYR.js +1421 -0
- package/dist/chunk-MTELVIYR.js.map +1 -0
- package/dist/{chunk-3JR3EDB2.js → chunk-NNDIFUKX.js} +121 -115
- package/dist/chunk-NNDIFUKX.js.map +1 -0
- package/dist/{chunk-2747WN4Y.js → chunk-PUSRRALM.js} +3 -3
- package/dist/{chunk-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
- package/dist/chunk-PVC7WDKI.js.map +1 -0
- package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
- package/dist/chunk-TQPCAIQI.js +612 -0
- package/dist/chunk-TQPCAIQI.js.map +1 -0
- package/dist/{chunk-IXZBUWSP.js → chunk-UEMN5URK.js} +2 -2
- package/dist/chunk-WOS7RJYZ.js +1320 -0
- package/dist/chunk-WOS7RJYZ.js.map +1 -0
- package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
- package/dist/composition/index.cjs +1228 -1076
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +3 -3
- package/dist/composition/index.d.ts +3 -3
- package/dist/composition/index.js +4 -4
- package/dist/core/index.cjs +1198 -1046
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +23 -2
- package/dist/core/index.d.ts +23 -2
- package/dist/core/index.js +2 -2
- package/dist/cqrs/index.d.cts +3 -3
- package/dist/cqrs/index.d.ts +3 -3
- package/dist/cqrs/messaging.d.cts +4 -4
- package/dist/cqrs/messaging.d.ts +4 -4
- package/dist/cqrs/work-queue.d.cts +5 -5
- package/dist/cqrs/work-queue.d.ts +5 -5
- package/dist/data-structures/index.cjs +1226 -1074
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +8 -7
- package/dist/data-structures/index.d.ts +8 -7
- package/dist/data-structures/index.js +6 -5
- package/dist/{describe-DYMw_l1C.d.cts → describe-BumQ-3_0.d.cts} +1 -1
- package/dist/{describe-BpyJuWkw.d.ts → describe-cYr_Z5zm.d.ts} +1 -1
- package/dist/executors/tool-provider-adapters.cjs +3091 -0
- package/dist/executors/tool-provider-adapters.cjs.map +1 -0
- package/dist/executors/tool-provider-adapters.d.cts +174 -0
- package/dist/executors/tool-provider-adapters.d.ts +174 -0
- package/dist/executors/tool-provider-adapters.js +1336 -0
- package/dist/executors/tool-provider-adapters.js.map +1 -0
- package/dist/executors/tool-provider-runtime.cjs +5178 -0
- package/dist/executors/tool-provider-runtime.cjs.map +1 -0
- package/dist/executors/tool-provider-runtime.d.cts +17 -0
- package/dist/executors/tool-provider-runtime.d.ts +17 -0
- package/dist/executors/tool-provider-runtime.js +15 -0
- package/dist/executors/tool-provider-runtime.js.map +1 -0
- package/dist/executors/tool-provider.cjs +6392 -0
- package/dist/executors/tool-provider.cjs.map +1 -0
- package/dist/executors/tool-provider.d.cts +60 -0
- package/dist/executors/tool-provider.d.ts +60 -0
- package/dist/executors/tool-provider.js +89 -0
- package/dist/executors/tool-provider.js.map +1 -0
- package/dist/executors/work-queue.d.cts +6 -6
- package/dist/executors/work-queue.d.ts +6 -6
- package/dist/graph/index.cjs +1499 -1341
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -8
- package/dist/graph/index.d.ts +9 -8
- package/dist/graph/index.js +23 -22
- package/dist/{graph-DCEWh4T2.d.cts → graph-C1C-wb0L.d.cts} +266 -137
- package/dist/{graph-D-1-SQeC.d.ts → graph-CS0b4V9B.d.ts} +266 -137
- package/dist/{index-72VZC0-E.d.cts → index-DLrNopda.d.cts} +151 -10
- package/dist/{index-Bmxeu0nK.d.ts → index-DzJni3_6.d.ts} +151 -10
- package/dist/index.cjs +3397 -3140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +110 -109
- package/dist/inspection/boundary.d.cts +4 -4
- package/dist/inspection/boundary.d.ts +4 -4
- package/dist/measurements-BWAnochv.d.ts +294 -0
- package/dist/measurements-B_gJfD8h.d.cts +294 -0
- package/dist/messaging/index.cjs +57 -51
- package/dist/messaging/index.cjs.map +1 -1
- package/dist/messaging/index.d.cts +11 -276
- package/dist/messaging/index.d.ts +11 -276
- package/dist/messaging/index.js +1 -1
- package/dist/operators/index.cjs +1228 -1076
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +5 -5
- package/dist/operators/index.d.ts +5 -5
- package/dist/operators/index.js +5 -5
- package/dist/orchestration/index.cjs +8844 -6071
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +171 -224
- package/dist/orchestration/index.d.ts +171 -224
- package/dist/orchestration/index.js +42 -991
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/messaging.d.cts +5 -8
- package/dist/orchestration/messaging.d.ts +5 -8
- package/dist/orchestration/work-queue.cjs +1243 -5
- package/dist/orchestration/work-queue.cjs.map +1 -1
- package/dist/orchestration/work-queue.d.cts +121 -10
- package/dist/orchestration/work-queue.d.ts +121 -10
- package/dist/orchestration/work-queue.js +1067 -4
- package/dist/orchestration/work-queue.js.map +1 -1
- package/dist/patterns/event-flow.cjs +6 -20
- package/dist/patterns/event-flow.cjs.map +1 -1
- package/dist/patterns/event-flow.d.cts +4 -4
- package/dist/patterns/event-flow.d.ts +4 -4
- package/dist/patterns/event-flow.js +2 -2
- package/dist/patterns/index.cjs +453 -465
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +6 -5
- package/dist/patterns/index.d.ts +6 -5
- package/dist/patterns/index.js +3 -3
- package/dist/process-types-BB7oRhX3.d.cts +200 -0
- package/dist/process-types-QNhyoYJ8.d.ts +200 -0
- package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-BYlWvtnp.d.cts} +4 -34
- package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-efOEdGFN.d.ts} +4 -34
- package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BjoLsoiC.d.cts} +5 -5
- package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-DwW6UuK_.d.ts} +5 -5
- package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-BHacbIqz.d.cts} +7 -2
- package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-DN4Jyqnf.d.ts} +7 -2
- package/dist/render/index.d.cts +2 -2
- package/dist/render/index.d.ts +2 -2
- package/dist/scheduled-readiness-BmqXxnzX.d.ts +91 -0
- package/dist/scheduled-readiness-CYSw7KDE.d.cts +91 -0
- package/dist/semantic-memory-graph-B_LwbM-E.d.cts +30 -0
- package/dist/semantic-memory-graph-rsFNNhwn.d.ts +30 -0
- package/dist/{semantic-memory-graph-DKuNzuWw.d.cts → semantic-memory-graph-types-Y73bbwVI.d.cts} +2 -28
- package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-safmPkuX.d.ts} +2 -28
- package/dist/solutions/index.cjs +6353 -6169
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +12 -10
- package/dist/solutions/index.d.ts +12 -10
- package/dist/solutions/index.js +5 -5
- package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/browser/index.js +3 -3
- package/dist/solutions/reactive-layout/index.cjs +3578 -3350
- package/dist/solutions/reactive-layout/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/index.d.cts +32 -576
- package/dist/solutions/reactive-layout/index.d.ts +32 -576
- package/dist/solutions/reactive-layout/index.js +65 -5
- package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
- package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.js +3 -3
- package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/skia/index.js +3 -3
- package/dist/solutions/work-item/actions.cjs +1609 -1428
- package/dist/solutions/work-item/actions.cjs.map +1 -1
- package/dist/solutions/work-item/actions.d.cts +23 -184
- package/dist/solutions/work-item/actions.d.ts +23 -184
- package/dist/solutions/work-item/actions.js +1558 -934
- package/dist/solutions/work-item/actions.js.map +1 -1
- package/dist/solutions/work-item/scheduling.cjs +9181 -1838
- package/dist/solutions/work-item/scheduling.cjs.map +1 -1
- package/dist/solutions/work-item/scheduling.d.cts +1763 -328
- package/dist/solutions/work-item/scheduling.d.ts +1763 -328
- package/dist/solutions/work-item/scheduling.js +117 -3
- package/dist/solutions/work-item/work-queue.d.cts +7 -7
- package/dist/solutions/work-item/work-queue.d.ts +7 -7
- package/dist/sources/browser.cjs +1318 -1083
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +22 -6
- package/dist/sources/browser.d.ts +22 -6
- package/dist/sources/browser.js +4 -4
- package/dist/sources/browser.js.map +1 -1
- package/dist/sources/index.cjs +1318 -1083
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +4 -4
- package/dist/sources/index.d.ts +4 -4
- package/dist/sources/index.js +4 -4
- package/dist/sources/node.d.cts +3 -3
- package/dist/sources/node.d.ts +3 -3
- package/dist/storage/browser.cjs +16 -0
- package/dist/storage/browser.cjs.map +1 -1
- package/dist/storage/browser.js +3 -3
- package/dist/storage/index.cjs +16 -0
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.d.cts +5 -4
- package/dist/storage/index.d.ts +5 -4
- package/dist/storage/index.js +6 -6
- package/dist/storage/node.cjs +16 -0
- package/dist/storage/node.cjs.map +1 -1
- package/dist/storage/node.js +3 -3
- package/dist/{store-C-joM4gh.d.ts → store-6_CHF6Ge.d.ts} +1 -1
- package/dist/{store-CNJwmT-h.d.cts → store-BljX8RkQ.d.cts} +1 -1
- package/dist/types-BAw2QVVE.d.cts +274 -0
- package/dist/types-BUbbbh4f.d.cts +34 -0
- package/dist/types-CMnzoL54.d.cts +457 -0
- package/dist/{types-CcPIn7sy.d.cts → types-CTN3XoMl.d.cts} +57 -108
- package/dist/types-CV_ohy5T.d.cts +357 -0
- package/dist/{types-BsJvElYZ.d.ts → types-DChxk1vK.d.ts} +57 -108
- package/dist/types-DRu7SnLV.d.ts +274 -0
- package/dist/types-DeID_FRl.d.ts +34 -0
- package/dist/types-IhKH0hGW.d.ts +357 -0
- package/dist/types-ePlD2uyT.d.ts +457 -0
- package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-BTxLskN5.d.cts} +3 -93
- package/dist/{work-item-runtime-C3M79vE9.d.ts → work-item-runtime-types-DAsZbb2y.d.ts} +3 -93
- package/dist/work-queue/index.cjs +957 -953
- package/dist/work-queue/index.cjs.map +1 -1
- package/dist/work-queue/index.d.cts +9 -357
- package/dist/work-queue/index.d.ts +9 -357
- package/dist/work-queue/index.js +957 -953
- package/dist/work-queue/index.js.map +1 -1
- package/package.json +611 -513
- package/dist/chunk-3JR3EDB2.js.map +0 -1
- package/dist/chunk-4VLAQHZI.js.map +0 -1
- package/dist/chunk-6XAIOL3X.js +0 -2407
- package/dist/chunk-6XAIOL3X.js.map +0 -1
- package/dist/chunk-FBUU43PM.js.map +0 -1
- package/dist/chunk-HKK2JD7Z.js.map +0 -1
- package/dist/chunk-PC3BTTBE.js +0 -3217
- package/dist/chunk-PC3BTTBE.js.map +0 -1
- package/dist/chunk-QFY4AFY4.js.map +0 -1
- package/dist/chunk-SS2A464I.js.map +0 -1
- package/dist/chunk-V7CIJE4B.js.map +0 -1
- package/dist/chunk-XKXWK2KP.js.map +0 -1
- package/dist/chunk-YDSIVHRR.js.map +0 -1
- package/dist/chunk-YXMZ2N6J.js.map +0 -1
- /package/dist/{chunk-CZNV3VXM.js.map → chunk-3J7UPZL5.js.map} +0 -0
- /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
- /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
- /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
- /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
- /package/dist/{chunk-43BKLFZU.js.map → chunk-KFURM6FM.js.map} +0 -0
- /package/dist/{chunk-2747WN4Y.js.map → chunk-PUSRRALM.js.map} +0 -0
- /package/dist/{chunk-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
- /package/dist/{chunk-IXZBUWSP.js.map → chunk-UEMN5URK.js.map} +0 -0
- /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import { DataIssue } from './data/index.js';
|
|
2
|
+
import { d as Graph } from './graph-CS0b4V9B.js';
|
|
3
|
+
import { N as Node } from './types-DChxk1vK.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Synchronous text measurement contract for the D181 reactive-layout solution core.
|
|
7
|
+
*
|
|
8
|
+
* Implementations are injected by the caller; the universal subpath never imports DOM,
|
|
9
|
+
* Canvas, React Native, storage, GraphSpec, or async image loading.
|
|
10
|
+
*/
|
|
11
|
+
interface MeasurementAdapter {
|
|
12
|
+
measureSegment(text: string, font: string): {
|
|
13
|
+
readonly width: number;
|
|
14
|
+
};
|
|
15
|
+
clearCache?(): void;
|
|
16
|
+
}
|
|
17
|
+
/** Caller-owned platform text capability, for NodeCanvas/Skia/RN-style wrappers. */
|
|
18
|
+
interface TextMeasureCapability {
|
|
19
|
+
measureText(text: string, font: string): number | {
|
|
20
|
+
readonly width: number;
|
|
21
|
+
};
|
|
22
|
+
clearCache?(): void;
|
|
23
|
+
}
|
|
24
|
+
/** One text segment returned by a caller-provided segmenter. */
|
|
25
|
+
interface SegmentInfo {
|
|
26
|
+
readonly segment: string;
|
|
27
|
+
readonly index: number;
|
|
28
|
+
readonly isWordLike?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Synchronous word/grapheme segmentation contract for hosts without Intl.Segmenter. */
|
|
31
|
+
interface SegmentAdapter {
|
|
32
|
+
segmentWords(text: string): Iterable<SegmentInfo>;
|
|
33
|
+
segmentGraphemes(text: string): Iterable<SegmentInfo>;
|
|
34
|
+
}
|
|
35
|
+
/** Layout segment class used by the line breaker. */
|
|
36
|
+
type SegmentBreakKind = "text" | "space" | "zero-width-break" | "soft-hyphen" | "hard-break";
|
|
37
|
+
/** Measured text run consumed by pure line/block/flow helpers. */
|
|
38
|
+
interface PreparedSegment {
|
|
39
|
+
readonly text: string;
|
|
40
|
+
readonly width: number;
|
|
41
|
+
readonly kind: SegmentBreakKind;
|
|
42
|
+
readonly graphemeWidths: readonly number[] | null;
|
|
43
|
+
}
|
|
44
|
+
/** One laid-out line with segment/grapheme cursor bounds. */
|
|
45
|
+
interface LayoutLine {
|
|
46
|
+
readonly text: string;
|
|
47
|
+
readonly width: number;
|
|
48
|
+
readonly startSegment: number;
|
|
49
|
+
readonly startGrapheme: number;
|
|
50
|
+
readonly endSegment: number;
|
|
51
|
+
readonly endGrapheme: number;
|
|
52
|
+
}
|
|
53
|
+
/** Positioned grapheme box for hit testing or custom renderers. */
|
|
54
|
+
interface CharPosition {
|
|
55
|
+
readonly x: number;
|
|
56
|
+
readonly y: number;
|
|
57
|
+
readonly width: number;
|
|
58
|
+
readonly height: number;
|
|
59
|
+
readonly line: number;
|
|
60
|
+
}
|
|
61
|
+
/** Result emitted by `reactiveLayout().lineBreaks`. */
|
|
62
|
+
interface LineBreaksResult {
|
|
63
|
+
readonly lines: readonly LayoutLine[];
|
|
64
|
+
readonly lineCount: number;
|
|
65
|
+
}
|
|
66
|
+
/** Cursor into a prepared segment array. */
|
|
67
|
+
interface LayoutCursor {
|
|
68
|
+
readonly segmentIndex: number;
|
|
69
|
+
readonly graphemeIndex: number;
|
|
70
|
+
}
|
|
71
|
+
/** Pure helper result for one `layoutNextLine` step. */
|
|
72
|
+
interface LayoutNextLineResult {
|
|
73
|
+
readonly text: string;
|
|
74
|
+
readonly width: number;
|
|
75
|
+
readonly start: LayoutCursor;
|
|
76
|
+
readonly end: LayoutCursor;
|
|
77
|
+
}
|
|
78
|
+
/** Horizontal interval used by obstacle carving. */
|
|
79
|
+
interface Interval {
|
|
80
|
+
readonly left: number;
|
|
81
|
+
readonly right: number;
|
|
82
|
+
}
|
|
83
|
+
declare const TEXT_SEGMENTS_MEASUREMENT_KIND = "text-segments";
|
|
84
|
+
declare const BLOCKS_MEASUREMENT_KIND = "blocks";
|
|
85
|
+
/** Measurement kind for standalone readiness facts. */
|
|
86
|
+
declare const READINESS_MEASUREMENT_KIND = "readiness";
|
|
87
|
+
/** Measurement kind for standalone image-size facts. */
|
|
88
|
+
declare const IMAGE_SIZE_MEASUREMENT_KIND = "image-size";
|
|
89
|
+
/** Measurement kind for standalone SVG-bounds facts. */
|
|
90
|
+
declare const SVG_BOUNDS_MEASUREMENT_KIND = "svg-bounds";
|
|
91
|
+
interface TextSegmentsMeasurement {
|
|
92
|
+
readonly segments: readonly PreparedSegment[];
|
|
93
|
+
readonly hyphenWidth?: number;
|
|
94
|
+
}
|
|
95
|
+
interface BlocksMeasurement {
|
|
96
|
+
readonly blocks: readonly MeasuredBlock[];
|
|
97
|
+
}
|
|
98
|
+
interface MeasurementResult<T = unknown> {
|
|
99
|
+
readonly kind: "ok";
|
|
100
|
+
readonly targetId: string;
|
|
101
|
+
readonly measurementKind: string;
|
|
102
|
+
readonly value: T;
|
|
103
|
+
readonly source?: string;
|
|
104
|
+
readonly metadata?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
interface MeasurementIssue extends DataIssue {
|
|
107
|
+
readonly subjectId: string;
|
|
108
|
+
readonly measurementKind: string;
|
|
109
|
+
}
|
|
110
|
+
type MeasurementFact<T = unknown> = MeasurementResult<T> | MeasurementIssue;
|
|
111
|
+
type Measurements = readonly MeasurementFact[];
|
|
112
|
+
interface MergeMeasurementsOptions {
|
|
113
|
+
readonly graph: Graph;
|
|
114
|
+
readonly sources: readonly Node<Measurements>[];
|
|
115
|
+
readonly name?: string;
|
|
116
|
+
}
|
|
117
|
+
interface TextMeasurementProviderOptions {
|
|
118
|
+
readonly graph: Graph;
|
|
119
|
+
readonly text: Node<string>;
|
|
120
|
+
readonly font: Node<string>;
|
|
121
|
+
readonly adapter: Node<MeasurementAdapter>;
|
|
122
|
+
readonly segmentAdapter?: Node<SegmentAdapter>;
|
|
123
|
+
readonly targetId?: string;
|
|
124
|
+
readonly source?: string;
|
|
125
|
+
readonly name?: string;
|
|
126
|
+
}
|
|
127
|
+
interface InjectedTextMeasurementsOptions extends Omit<TextMeasurementProviderOptions, "adapter"> {
|
|
128
|
+
readonly measure: MeasureFn;
|
|
129
|
+
readonly cache?: boolean;
|
|
130
|
+
}
|
|
131
|
+
interface PrecomputedTextMeasurementsOptions extends Omit<TextMeasurementProviderOptions, "adapter">, PrecomputedMeasureAdapterOptions {
|
|
132
|
+
}
|
|
133
|
+
interface CellTextMeasurementsOptions extends Omit<TextMeasurementProviderOptions, "adapter">, CellMeasureAdapterOptions {
|
|
134
|
+
}
|
|
135
|
+
interface CapabilityTextMeasurementsOptions extends Omit<TextMeasurementProviderOptions, "adapter"> {
|
|
136
|
+
readonly capability: Node<TextMeasureCapability>;
|
|
137
|
+
}
|
|
138
|
+
interface MeasurementReadiness {
|
|
139
|
+
readonly ready: boolean;
|
|
140
|
+
readonly code?: string;
|
|
141
|
+
readonly message?: string;
|
|
142
|
+
readonly source?: string;
|
|
143
|
+
readonly details?: unknown;
|
|
144
|
+
readonly metadata?: Record<string, unknown>;
|
|
145
|
+
}
|
|
146
|
+
/** Options for projecting readiness into graph-visible measurement facts. */
|
|
147
|
+
interface ReadinessMeasurementsOptions {
|
|
148
|
+
readonly graph: Graph;
|
|
149
|
+
readonly readiness: Node<MeasurementReadiness>;
|
|
150
|
+
readonly targetId?: string;
|
|
151
|
+
readonly measurementKind?: string;
|
|
152
|
+
readonly source?: string;
|
|
153
|
+
readonly name?: string;
|
|
154
|
+
}
|
|
155
|
+
interface ReadinessTextMeasurementsOptions extends TextMeasurementProviderOptions {
|
|
156
|
+
readonly readiness: Node<MeasurementReadiness>;
|
|
157
|
+
}
|
|
158
|
+
/** Minimal caller-owned lookup for explicit image sizes. */
|
|
159
|
+
interface ImageSizeLookup {
|
|
160
|
+
get(src: string): Size | undefined;
|
|
161
|
+
}
|
|
162
|
+
/** One image-size fact target for `imageSizeMeasurements`. */
|
|
163
|
+
interface ImageSizeMeasurementTarget {
|
|
164
|
+
readonly id?: string;
|
|
165
|
+
readonly src: string;
|
|
166
|
+
readonly metadata?: Record<string, unknown>;
|
|
167
|
+
}
|
|
168
|
+
/** Options for projecting image-size facts from a caller-owned synchronous measurer. */
|
|
169
|
+
interface ImageSizeMeasurementsOptions {
|
|
170
|
+
readonly graph: Graph;
|
|
171
|
+
readonly images: Node<readonly ImageSizeMeasurementTarget[]>;
|
|
172
|
+
readonly measurer: Node<ImageMeasurer>;
|
|
173
|
+
readonly measurementKind?: string;
|
|
174
|
+
readonly source?: string;
|
|
175
|
+
readonly name?: string;
|
|
176
|
+
}
|
|
177
|
+
/** One SVG-bounds fact target for `svgBoundsMeasurements`. */
|
|
178
|
+
interface SvgBoundsMeasurementTarget {
|
|
179
|
+
readonly id?: string;
|
|
180
|
+
readonly svg: string;
|
|
181
|
+
readonly metadata?: Record<string, unknown>;
|
|
182
|
+
}
|
|
183
|
+
/** Options for projecting SVG bounds from a caller-owned synchronous measurer. */
|
|
184
|
+
interface SvgBoundsMeasurementsOptions {
|
|
185
|
+
readonly graph: Graph;
|
|
186
|
+
readonly svgs: Node<readonly SvgBoundsMeasurementTarget[]>;
|
|
187
|
+
readonly measurer: Node<SvgMeasurer>;
|
|
188
|
+
readonly measurementKind?: string;
|
|
189
|
+
readonly source?: string;
|
|
190
|
+
readonly name?: string;
|
|
191
|
+
}
|
|
192
|
+
interface BlockMeasurementProviderOptions {
|
|
193
|
+
readonly graph: Graph;
|
|
194
|
+
readonly blocks: Node<readonly ContentBlock[]>;
|
|
195
|
+
readonly maxWidth: Node<number>;
|
|
196
|
+
readonly adapters: Node<BlockAdapters>;
|
|
197
|
+
readonly segmentAdapter?: Node<SegmentAdapter>;
|
|
198
|
+
readonly font?: Node<string>;
|
|
199
|
+
readonly lineHeight?: Node<number>;
|
|
200
|
+
readonly targetId?: string;
|
|
201
|
+
readonly source?: string;
|
|
202
|
+
readonly name?: string;
|
|
203
|
+
}
|
|
204
|
+
interface BlockAdaptersProviderOptions {
|
|
205
|
+
readonly graph: Graph;
|
|
206
|
+
readonly text?: Node<MeasurementAdapter>;
|
|
207
|
+
readonly svg?: Node<SvgMeasurer>;
|
|
208
|
+
readonly image?: Node<ImageMeasurer>;
|
|
209
|
+
readonly name?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Graph-visible bundle returned by `reactiveLayout`.
|
|
213
|
+
*
|
|
214
|
+
* The setters are state-node sugar over real graph inputs; the output nodes are ordinary
|
|
215
|
+
* inspectable nodes visible through `graph.describe()`.
|
|
216
|
+
*/
|
|
217
|
+
interface ReactiveLayoutBundle {
|
|
218
|
+
readonly graph: Graph;
|
|
219
|
+
readonly input: {
|
|
220
|
+
readonly lineHeight: Node<number>;
|
|
221
|
+
readonly maxWidth: Node<number>;
|
|
222
|
+
readonly measurements: Node<Measurements>;
|
|
223
|
+
};
|
|
224
|
+
setLineHeight(lineHeight: number): void;
|
|
225
|
+
setMaxWidth(maxWidth: number): void;
|
|
226
|
+
readonly segments: Node<readonly PreparedSegment[]>;
|
|
227
|
+
readonly lineBreaks: Node<LineBreaksResult>;
|
|
228
|
+
readonly height: Node<number>;
|
|
229
|
+
readonly charPositions: Node<readonly CharPosition[]>;
|
|
230
|
+
}
|
|
231
|
+
/** Optional context shared by pure line-breaking helpers. */
|
|
232
|
+
interface LayoutNextLineContext {
|
|
233
|
+
readonly adapter?: MeasurementAdapter;
|
|
234
|
+
readonly font?: string;
|
|
235
|
+
readonly cache?: Map<string, Map<string, number>>;
|
|
236
|
+
readonly hyphenWidth?: number;
|
|
237
|
+
readonly segmentAdapter?: SegmentAdapter;
|
|
238
|
+
}
|
|
239
|
+
/** Cache accounting object callers can pass into `analyzeAndMeasure`. */
|
|
240
|
+
interface SegmentMeasureStats {
|
|
241
|
+
hits: number;
|
|
242
|
+
misses: number;
|
|
243
|
+
}
|
|
244
|
+
/** Options for the single-column reactive text layout bundle. */
|
|
245
|
+
interface ReactiveLayoutOptions {
|
|
246
|
+
readonly measurements: Node<Measurements>;
|
|
247
|
+
readonly graph: Graph;
|
|
248
|
+
readonly segmentAdapter?: SegmentAdapter;
|
|
249
|
+
readonly targetId?: string;
|
|
250
|
+
readonly name?: string;
|
|
251
|
+
readonly lineHeight?: number | Node<number>;
|
|
252
|
+
readonly maxWidth?: number | Node<number>;
|
|
253
|
+
}
|
|
254
|
+
/** Host text measurement function accepted by `InjectedMeasureAdapter`. */
|
|
255
|
+
type MeasureFn = (text: string, font: string) => number | {
|
|
256
|
+
readonly width: number;
|
|
257
|
+
};
|
|
258
|
+
/** Options for caller-injected synchronous measurement. */
|
|
259
|
+
interface InjectedMeasureAdapterOptions {
|
|
260
|
+
readonly cache?: boolean;
|
|
261
|
+
}
|
|
262
|
+
/** Options for deterministic precomputed text metrics. */
|
|
263
|
+
interface PrecomputedMeasureAdapterOptions {
|
|
264
|
+
readonly metrics: ReadonlyMap<string, number> | Record<string, number>;
|
|
265
|
+
readonly fallback?: "per-char" | "error";
|
|
266
|
+
readonly cellWidth?: number;
|
|
267
|
+
}
|
|
268
|
+
/** Fixed-cell measurement options for terminal/snapshot rendering. */
|
|
269
|
+
interface CellMeasureAdapterOptions {
|
|
270
|
+
readonly cellWidth?: number;
|
|
271
|
+
readonly wideCellWidth?: number;
|
|
272
|
+
readonly tabCells?: number;
|
|
273
|
+
}
|
|
274
|
+
/** Width/height pair in CSS-like pixels. */
|
|
275
|
+
interface Size {
|
|
276
|
+
readonly width: number;
|
|
277
|
+
readonly height: number;
|
|
278
|
+
}
|
|
279
|
+
/** Synchronous SVG measurement seam; no DOM parser is provided by the core. */
|
|
280
|
+
interface SvgMeasurer {
|
|
281
|
+
measureSvg(svg: string): Size;
|
|
282
|
+
}
|
|
283
|
+
/** Synchronous image measurement seam; no loading/fetching is provided by the core. */
|
|
284
|
+
interface ImageMeasurer {
|
|
285
|
+
measureImage(src: string): Size;
|
|
286
|
+
}
|
|
287
|
+
/** Optional per-kind block measurement adapters. */
|
|
288
|
+
interface BlockAdapters {
|
|
289
|
+
readonly text?: MeasurementAdapter;
|
|
290
|
+
readonly svg?: SvgMeasurer;
|
|
291
|
+
readonly image?: ImageMeasurer;
|
|
292
|
+
}
|
|
293
|
+
/** Shared spacing/id fields for block layout inputs. */
|
|
294
|
+
interface BaseContentBlock {
|
|
295
|
+
readonly id?: string;
|
|
296
|
+
readonly marginTop?: number;
|
|
297
|
+
readonly marginBottom?: number;
|
|
298
|
+
}
|
|
299
|
+
/** Text block input for `measureBlock` and `reactiveBlockLayout`. */
|
|
300
|
+
interface TextContentBlock extends BaseContentBlock {
|
|
301
|
+
readonly kind: "text";
|
|
302
|
+
readonly text: string;
|
|
303
|
+
readonly font?: string;
|
|
304
|
+
readonly lineHeight?: number;
|
|
305
|
+
readonly maxWidth?: number;
|
|
306
|
+
}
|
|
307
|
+
/** Image block input with explicit dimensions or an injected `ImageMeasurer`. */
|
|
308
|
+
interface ImageContentBlock extends BaseContentBlock {
|
|
309
|
+
readonly kind: "image";
|
|
310
|
+
readonly src: string;
|
|
311
|
+
readonly width?: number;
|
|
312
|
+
readonly height?: number;
|
|
313
|
+
readonly maxWidth?: number;
|
|
314
|
+
}
|
|
315
|
+
/** SVG block input with explicit dimensions or an injected `SvgMeasurer`. */
|
|
316
|
+
interface SvgContentBlock extends BaseContentBlock {
|
|
317
|
+
readonly kind: "svg";
|
|
318
|
+
readonly svg: string;
|
|
319
|
+
readonly width?: number;
|
|
320
|
+
readonly height?: number;
|
|
321
|
+
readonly maxWidth?: number;
|
|
322
|
+
}
|
|
323
|
+
/** Heterogeneous block-layout input. */
|
|
324
|
+
type ContentBlock = TextContentBlock | ImageContentBlock | SvgContentBlock;
|
|
325
|
+
/** Measured block produced by `measureBlock` or `measureBlocks`. */
|
|
326
|
+
interface MeasuredBlock {
|
|
327
|
+
readonly block: ContentBlock;
|
|
328
|
+
readonly kind: ContentBlock["kind"];
|
|
329
|
+
readonly id?: string;
|
|
330
|
+
readonly width: number;
|
|
331
|
+
readonly height: number;
|
|
332
|
+
readonly marginTop: number;
|
|
333
|
+
readonly marginBottom: number;
|
|
334
|
+
readonly segments?: readonly PreparedSegment[];
|
|
335
|
+
readonly lineBreaks?: LineBreaksResult;
|
|
336
|
+
readonly charPositions?: readonly CharPosition[];
|
|
337
|
+
}
|
|
338
|
+
/** Block with vertical-flow coordinates. */
|
|
339
|
+
interface PositionedBlock extends MeasuredBlock {
|
|
340
|
+
readonly x: number;
|
|
341
|
+
readonly y: number;
|
|
342
|
+
}
|
|
343
|
+
/** Options for pure block measurement helpers. */
|
|
344
|
+
interface MeasureBlockOptions {
|
|
345
|
+
readonly adapter?: MeasurementAdapter;
|
|
346
|
+
readonly adapters?: BlockAdapters;
|
|
347
|
+
readonly font?: string;
|
|
348
|
+
readonly lineHeight?: number;
|
|
349
|
+
readonly maxWidth?: number;
|
|
350
|
+
readonly cache?: Map<string, Map<string, number>>;
|
|
351
|
+
readonly hyphenWidth?: number;
|
|
352
|
+
readonly segmentAdapter?: SegmentAdapter;
|
|
353
|
+
}
|
|
354
|
+
/** Options for the graph-visible block layout bundle. */
|
|
355
|
+
interface ReactiveBlockLayoutOptions {
|
|
356
|
+
readonly measurements: Node<Measurements>;
|
|
357
|
+
readonly graph: Graph;
|
|
358
|
+
readonly targetId?: string;
|
|
359
|
+
readonly name?: string;
|
|
360
|
+
readonly gap?: number | Node<number>;
|
|
361
|
+
}
|
|
362
|
+
/** Graph-visible vertical block layout bundle. */
|
|
363
|
+
interface ReactiveBlockLayoutBundle {
|
|
364
|
+
readonly graph: Graph;
|
|
365
|
+
readonly input: {
|
|
366
|
+
readonly gap: Node<number>;
|
|
367
|
+
readonly measurements: Node<Measurements>;
|
|
368
|
+
};
|
|
369
|
+
setGap(gap: number): void;
|
|
370
|
+
readonly measuredBlocks: Node<readonly MeasuredBlock[]>;
|
|
371
|
+
readonly blockFlow: Node<readonly PositionedBlock[]>;
|
|
372
|
+
readonly totalHeight: Node<number>;
|
|
373
|
+
}
|
|
374
|
+
/** Circular obstacle for flow layout slot carving. */
|
|
375
|
+
interface CircleObstacle {
|
|
376
|
+
readonly kind: "circle";
|
|
377
|
+
readonly cx: number;
|
|
378
|
+
readonly cy: number;
|
|
379
|
+
readonly r: number;
|
|
380
|
+
}
|
|
381
|
+
/** Rectangular obstacle for flow layout slot carving. */
|
|
382
|
+
interface RectObstacle {
|
|
383
|
+
readonly kind: "rect";
|
|
384
|
+
readonly x: number;
|
|
385
|
+
readonly y: number;
|
|
386
|
+
readonly width: number;
|
|
387
|
+
readonly height: number;
|
|
388
|
+
}
|
|
389
|
+
/** Obstacle shape accepted by flow layout. */
|
|
390
|
+
type Obstacle = CircleObstacle | RectObstacle;
|
|
391
|
+
/** Flow container geometry. */
|
|
392
|
+
interface FlowContainer {
|
|
393
|
+
readonly width: number;
|
|
394
|
+
readonly height: number;
|
|
395
|
+
readonly paddingX?: number;
|
|
396
|
+
readonly paddingY?: number;
|
|
397
|
+
}
|
|
398
|
+
/** Optional column geometry for flow layout. */
|
|
399
|
+
interface FlowColumns {
|
|
400
|
+
readonly count?: number;
|
|
401
|
+
readonly gap?: number;
|
|
402
|
+
}
|
|
403
|
+
/** Positioned line emitted by `computeFlowLines` / `reactiveFlowLayout`. */
|
|
404
|
+
interface PositionedLine extends LayoutLine {
|
|
405
|
+
readonly x: number;
|
|
406
|
+
readonly y: number;
|
|
407
|
+
readonly slotWidth: number;
|
|
408
|
+
readonly columnIndex: number;
|
|
409
|
+
}
|
|
410
|
+
/** Flow layout result plus the continuation cursor. */
|
|
411
|
+
interface FlowLinesResult {
|
|
412
|
+
readonly lines: readonly PositionedLine[];
|
|
413
|
+
readonly cursor: LayoutCursor;
|
|
414
|
+
readonly done: boolean;
|
|
415
|
+
}
|
|
416
|
+
/** Options for pure flow layout computation. */
|
|
417
|
+
interface ComputeFlowLinesOptions {
|
|
418
|
+
readonly container: FlowContainer;
|
|
419
|
+
readonly columns?: FlowColumns;
|
|
420
|
+
readonly obstacles?: readonly Obstacle[];
|
|
421
|
+
readonly lineHeight: number;
|
|
422
|
+
readonly minSlotWidth?: number;
|
|
423
|
+
readonly hyphenWidth?: number;
|
|
424
|
+
readonly segmentAdapter?: SegmentAdapter;
|
|
425
|
+
}
|
|
426
|
+
/** Options for the graph-visible flow layout bundle. */
|
|
427
|
+
interface ReactiveFlowLayoutOptions {
|
|
428
|
+
readonly measurements: Node<Measurements>;
|
|
429
|
+
readonly graph: Graph;
|
|
430
|
+
readonly segmentAdapter?: SegmentAdapter;
|
|
431
|
+
readonly targetId?: string;
|
|
432
|
+
readonly name?: string;
|
|
433
|
+
readonly lineHeight?: number | Node<number>;
|
|
434
|
+
readonly container?: FlowContainer | Node<FlowContainer>;
|
|
435
|
+
readonly columns?: FlowColumns | Node<FlowColumns>;
|
|
436
|
+
readonly obstacles?: readonly Obstacle[] | Node<readonly Obstacle[]>;
|
|
437
|
+
readonly minSlotWidth?: number;
|
|
438
|
+
}
|
|
439
|
+
/** Graph-visible multi-column flow layout bundle. */
|
|
440
|
+
interface ReactiveFlowLayoutBundle {
|
|
441
|
+
readonly graph: Graph;
|
|
442
|
+
readonly input: {
|
|
443
|
+
readonly lineHeight: Node<number>;
|
|
444
|
+
readonly container: Node<FlowContainer>;
|
|
445
|
+
readonly columns: Node<FlowColumns>;
|
|
446
|
+
readonly obstacles: Node<readonly Obstacle[]>;
|
|
447
|
+
readonly measurements: Node<Measurements>;
|
|
448
|
+
};
|
|
449
|
+
setLineHeight(lineHeight: number): void;
|
|
450
|
+
setContainer(container: FlowContainer): void;
|
|
451
|
+
setColumns(columns: FlowColumns): void;
|
|
452
|
+
setObstacles(obstacles: readonly Obstacle[]): void;
|
|
453
|
+
readonly segments: Node<readonly PreparedSegment[]>;
|
|
454
|
+
readonly flowLines: Node<FlowLinesResult>;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export { type RectObstacle as $, type MeasurementFact as A, BLOCKS_MEASUREMENT_KIND as B, type CapabilityTextMeasurementsOptions as C, type MeasurementIssue as D, type MeasurementReadiness as E, type FlowColumns as F, type MeasurementResult as G, type Measurements as H, IMAGE_SIZE_MEASUREMENT_KIND as I, type MergeMeasurementsOptions as J, type PositionedLine as K, type LayoutCursor as L, type MeasureBlockOptions as M, type PrecomputedMeasureAdapterOptions as N, type Obstacle as O, type PositionedBlock as P, type PrecomputedTextMeasurementsOptions as Q, type PreparedSegment as R, READINESS_MEASUREMENT_KIND as S, type ReactiveBlockLayoutBundle as T, type ReactiveBlockLayoutOptions as U, type ReactiveFlowLayoutBundle as V, type ReactiveFlowLayoutOptions as W, type ReactiveLayoutBundle as X, type ReactiveLayoutOptions as Y, type ReadinessMeasurementsOptions as Z, type ReadinessTextMeasurementsOptions as _, type BaseContentBlock as a, SVG_BOUNDS_MEASUREMENT_KIND as a0, type SegmentAdapter as a1, type SegmentBreakKind as a2, type SegmentInfo as a3, type SegmentMeasureStats as a4, type Size as a5, type SvgBoundsMeasurementTarget as a6, type SvgBoundsMeasurementsOptions as a7, type SvgContentBlock as a8, type SvgMeasurer as a9, TEXT_SEGMENTS_MEASUREMENT_KIND as aa, type TextContentBlock as ab, type TextMeasureCapability as ac, type TextMeasurementProviderOptions as ad, type TextSegmentsMeasurement as ae, type CharPosition as af, type Interval as ag, type BlockAdapters as b, type BlockAdaptersProviderOptions as c, type BlockMeasurementProviderOptions as d, type BlocksMeasurement as e, type CellMeasureAdapterOptions as f, type CellTextMeasurementsOptions as g, type CircleObstacle as h, type ComputeFlowLinesOptions as i, type ContentBlock as j, type FlowContainer as k, type FlowLinesResult as l, type ImageContentBlock as m, type ImageMeasurer as n, type ImageSizeLookup as o, type ImageSizeMeasurementTarget as p, type ImageSizeMeasurementsOptions as q, type InjectedMeasureAdapterOptions as r, type InjectedTextMeasurementsOptions as s, type LayoutLine as t, type LayoutNextLineContext as u, type LayoutNextLineResult as v, type LineBreaksResult as w, type MeasureFn as x, type MeasuredBlock as y, type MeasurementAdapter as z };
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { DataIssue } from './data/index.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { S as SourceRef, v as AgentRuntimeAuditRecord, H as EffectRunResultStatus, z as EffectRunGoal, B as EffectRunLimits, w as EffectRun, h as AgentOutputEnvelope, g as AgentNeed, F as EffectRunResult } from './agent-runtime-DZTJ3C-p.cjs';
|
|
2
|
+
import { N as Node } from './types-CTN3XoMl.cjs';
|
|
3
|
+
import { S as SourceRef, a as AgentRuntimeAuditRecord, k as EffectRunResultStatus, l as EffectRunGoal, m as EffectRunLimits, h as AgentOutputEnvelope, j as AgentNeed } from './agent-runtime-types-core-bfl4m0vM.cjs';
|
|
5
4
|
|
|
6
|
-
interface WorkItemSeed {
|
|
7
|
-
readonly kind: "work-item";
|
|
8
|
-
readonly workItemId: string;
|
|
9
|
-
readonly sourceRefs?: readonly SourceRef[];
|
|
10
|
-
readonly workItemKind?: string;
|
|
11
|
-
readonly summary?: string;
|
|
12
|
-
readonly detailRef?: string;
|
|
13
|
-
readonly lifecycleStatus?: string;
|
|
14
|
-
readonly issues?: readonly DataIssue[];
|
|
15
|
-
readonly metadata?: Record<string, unknown>;
|
|
16
|
-
}
|
|
17
5
|
interface WorkItemEffectRequested<TInput = unknown> {
|
|
18
6
|
readonly kind: "work-item-effect-requested";
|
|
19
7
|
readonly requestId: string;
|
|
@@ -120,16 +108,6 @@ interface WorkItemDomainActionAdmission {
|
|
|
120
108
|
readonly admittedAtMs?: number;
|
|
121
109
|
readonly metadata?: Record<string, unknown>;
|
|
122
110
|
}
|
|
123
|
-
interface WorkItemEffectMappingPolicy {
|
|
124
|
-
readonly kind: "work-item-effect-mapping-policy";
|
|
125
|
-
readonly policyId: string;
|
|
126
|
-
readonly effectKinds?: readonly string[];
|
|
127
|
-
readonly evidence?: {
|
|
128
|
-
readonly behavior?: "record";
|
|
129
|
-
};
|
|
130
|
-
readonly actionProposals?: readonly WorkItemDomainActionProposalSpec[];
|
|
131
|
-
readonly metadata?: Record<string, unknown>;
|
|
132
|
-
}
|
|
133
111
|
interface WorkItemStatusRecord {
|
|
134
112
|
readonly kind: "work-item-status";
|
|
135
113
|
readonly statusId: string;
|
|
@@ -143,51 +121,12 @@ interface WorkItemStatusRecord {
|
|
|
143
121
|
readonly issues?: readonly DataIssue[];
|
|
144
122
|
readonly metadata?: Record<string, unknown>;
|
|
145
123
|
}
|
|
146
|
-
interface WorkItemEffectRequestViews {
|
|
147
|
-
readonly pendingEffectRequests: readonly WorkItemEffectRequested[];
|
|
148
|
-
readonly issues: readonly DataIssue[];
|
|
149
|
-
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
150
|
-
}
|
|
151
|
-
interface WorkItemEvidenceViews {
|
|
152
|
-
readonly evidenceByWorkItem: ReadonlyMap<string, readonly WorkItemEvidenceRecorded[]>;
|
|
153
|
-
readonly latestEvidenceByEffectRun: ReadonlyMap<string, WorkItemEvidenceRecorded>;
|
|
154
|
-
readonly issues: readonly DataIssue[];
|
|
155
|
-
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
156
|
-
readonly pendingEffectRequests: readonly WorkItemEffectRequested[];
|
|
157
|
-
}
|
|
158
|
-
interface WorkItemDomainActionProposalViews {
|
|
159
|
-
readonly proposalsByWorkItem: ReadonlyMap<string, readonly WorkItemDomainActionProposal[]>;
|
|
160
|
-
readonly proposalsByEvidence: ReadonlyMap<string, readonly WorkItemDomainActionProposal[]>;
|
|
161
|
-
readonly issues: readonly DataIssue[];
|
|
162
|
-
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
163
|
-
}
|
|
164
124
|
interface WorkItemDomainActionAdmissionViews {
|
|
165
125
|
readonly admissionsByProposal: ReadonlyMap<string, WorkItemDomainActionAdmission>;
|
|
166
126
|
readonly admissionsByWorkItem: ReadonlyMap<string, readonly WorkItemDomainActionAdmission[]>;
|
|
167
127
|
readonly issues: readonly DataIssue[];
|
|
168
128
|
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
169
129
|
}
|
|
170
|
-
interface WorkItemEffectRunBundle {
|
|
171
|
-
readonly effectRuns: Node<EffectRun>;
|
|
172
|
-
readonly status: Node<WorkItemStatusRecord>;
|
|
173
|
-
readonly issues: Node<DataIssue>;
|
|
174
|
-
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
175
|
-
readonly views: Node<WorkItemEffectRequestViews>;
|
|
176
|
-
}
|
|
177
|
-
interface WorkItemEvidenceMapperBundle {
|
|
178
|
-
readonly evidence: Node<WorkItemEvidenceRecorded>;
|
|
179
|
-
readonly status: Node<WorkItemStatusRecord>;
|
|
180
|
-
readonly issues: Node<DataIssue>;
|
|
181
|
-
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
182
|
-
readonly views: Node<WorkItemEvidenceViews>;
|
|
183
|
-
}
|
|
184
|
-
interface WorkItemDomainActionProposalBundle {
|
|
185
|
-
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
186
|
-
readonly status: Node<WorkItemStatusRecord>;
|
|
187
|
-
readonly issues: Node<DataIssue>;
|
|
188
|
-
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
189
|
-
readonly views: Node<WorkItemDomainActionProposalViews>;
|
|
190
|
-
}
|
|
191
130
|
interface WorkItemDomainActionAdmissionBundle {
|
|
192
131
|
readonly admissions: Node<WorkItemDomainActionAdmission>;
|
|
193
132
|
readonly status: Node<WorkItemStatusRecord>;
|
|
@@ -195,34 +134,5 @@ interface WorkItemDomainActionAdmissionBundle {
|
|
|
195
134
|
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
196
135
|
readonly views: Node<WorkItemDomainActionAdmissionViews>;
|
|
197
136
|
}
|
|
198
|
-
declare function workItemEffectRunProjector(graph: Graph, opts: {
|
|
199
|
-
readonly name?: string;
|
|
200
|
-
readonly workItems: Node<WorkItemSeed>;
|
|
201
|
-
readonly effectRequests: Node<WorkItemEffectRequested>;
|
|
202
|
-
}): WorkItemEffectRunBundle;
|
|
203
|
-
declare function workItemEffectResultMapper(graph: Graph, opts: {
|
|
204
|
-
readonly name?: string;
|
|
205
|
-
readonly workItems: Node<WorkItemSeed>;
|
|
206
|
-
readonly effectRuns: Node<EffectRun>;
|
|
207
|
-
readonly effectRunResults: Node<EffectRunResult>;
|
|
208
|
-
readonly effectRequests?: Node<WorkItemEffectRequested>;
|
|
209
|
-
readonly mappingPolicies?: readonly Node<WorkItemEffectMappingPolicy>[];
|
|
210
|
-
readonly now?: () => number;
|
|
211
|
-
}): WorkItemEvidenceMapperBundle;
|
|
212
|
-
declare function workItemDomainActionProposalProjector(graph: Graph, opts: {
|
|
213
|
-
readonly name?: string;
|
|
214
|
-
readonly workItems: Node<WorkItemSeed>;
|
|
215
|
-
readonly evidence: Node<WorkItemEvidenceRecorded>;
|
|
216
|
-
readonly effectRunResults: Node<EffectRunResult>;
|
|
217
|
-
readonly mappingPolicies: readonly Node<WorkItemEffectMappingPolicy>[];
|
|
218
|
-
readonly now?: () => number;
|
|
219
|
-
}): WorkItemDomainActionProposalBundle;
|
|
220
|
-
declare function workItemDomainActionAdmissionProjector(graph: Graph, opts: {
|
|
221
|
-
readonly name?: string;
|
|
222
|
-
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
223
|
-
readonly decisions: Node<WorkItemDomainActionAdmissionDecision>;
|
|
224
|
-
readonly admissionPolicies?: readonly Node<WorkItemDomainActionAdmissionPolicy>[];
|
|
225
|
-
readonly now?: () => number;
|
|
226
|
-
}): WorkItemDomainActionAdmissionBundle;
|
|
227
137
|
|
|
228
|
-
export {
|
|
138
|
+
export type { WorkItemEffectRequested as W, WorkItemEvidenceRecorded as a, WorkItemStatusRecord as b, WorkItemDomainActionProposal as c, WorkItemDomainActionProposalSpec as d, WorkItemDomainActionAdmission as e, WorkItemDomainActionAdmissionDecision as f, WorkItemDomainActionAdmissionPolicy as g, WorkItemDomainActionAdmissionBundle as h, WorkItemDomainActionAdmissionViews as i };
|