semiotic 3.8.8 → 3.9.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 +82 -66
- package/agent-skill/semiotic-charts/SKILL.md +11 -2
- package/ai/behaviorContracts.cjs +33 -3
- package/ai/cli.js +53 -2
- package/ai/componentMetadata.cjs +15 -0
- package/ai/dist/mcp-server.js +1530 -611
- package/ai/examples.md +48 -42
- package/{CLAUDE.md → ai/reference.md} +46 -24
- package/ai/schema.json +10704 -825
- package/ai/surface-manifest.json +643 -2
- package/ai/system-prompt.md +83 -130
- package/dist/c-3BLJEQNG.min.js +1 -0
- package/dist/c-3KZD6AXJ.min.js +1 -0
- package/dist/c-4TWEX5HG.min.js +1 -0
- package/dist/c-52TEGIUJ.min.js +1 -0
- package/dist/c-5YCIX3VZ.min.js +1 -0
- package/dist/c-6FEKTA3U.min.js +1 -0
- package/dist/c-6O5EVOPH.min.js +1 -0
- package/dist/c-74HEEZGK.min.js +1 -0
- package/dist/c-AKAF6JAD.min.js +1 -0
- package/dist/c-BBKITSXB.min.js +1 -0
- package/dist/c-BWNB6USU.min.js +1 -0
- package/dist/c-C25ENHIK.min.js +1 -0
- package/dist/c-CDR5AO3R.min.js +1 -0
- package/dist/c-COHXCW3Q.min.js +1 -0
- package/dist/{chunk-scatterplotMatrixBrushOverlay-SDIZSN66.module.min.js → c-DADXPJXV.min.js} +0 -1
- package/dist/c-E3JFRRMI.min.js +1 -0
- package/dist/c-EBFPQHHO.min.js +1 -0
- package/dist/c-G36WS6LN.min.js +1 -0
- package/dist/c-GIKRQI4X.min.js +1 -0
- package/dist/c-GPYOFETM.min.js +1 -0
- package/dist/c-IDUHYYSI.min.js +1 -0
- package/dist/{chunk-chunk-FQPKOAIH.module.min.js → c-IUHFPMHD.min.js} +0 -1
- package/dist/c-J5G56TUH.min.js +1 -0
- package/dist/c-JAZ73J32.min.js +1 -0
- package/dist/c-KG3NXHAL.min.js +1 -0
- package/dist/c-KII3PLZE.min.js +1 -0
- package/dist/c-LIXGXMNS.min.js +1 -0
- package/dist/c-LVEY6D6B.min.js +1 -0
- package/dist/c-M4Y3BHFR.min.js +1 -0
- package/dist/c-MAIICR2Z.min.js +1 -0
- package/dist/c-MG5DM6VE.min.js +1 -0
- package/dist/{chunk-minimapBrushOverlay-JU57U7NM.module.min.js → c-MNF2S4AA.min.js} +0 -1
- package/dist/c-MT3WBK7M.min.js +1 -0
- package/dist/c-NY3JWV2K.min.js +1 -0
- package/dist/c-O6U6K4CW.min.js +1 -0
- package/dist/c-OCI56QF2.min.js +1 -0
- package/dist/c-OQ7M4AGV.min.js +1 -0
- package/dist/c-OXYMVK7Q.min.js +1 -0
- package/dist/c-PPWDL5ZI.min.js +1 -0
- package/dist/c-QHF5YON3.min.js +1 -0
- package/dist/c-RR3GO5SW.min.js +1 -0
- package/dist/{chunk-chunk-J5QD4RAM.module.min.js → c-RSVIHIQ4.min.js} +0 -1
- package/dist/{chunk-chunk-EMO5NUGE.module.min.js → c-S2BXNNJN.min.js} +0 -1
- package/dist/{chunk-chunk-YCQYG6J5.module.min.js → c-SLGMUBUL.min.js} +0 -1
- package/dist/c-SUILCHWU.min.js +1 -0
- package/dist/c-TZW3JGJ5.min.js +1 -0
- package/dist/c-US5ZFT6E.min.js +1 -0
- package/dist/{chunk-chunk-RZH7VZYS.module.min.js → c-USFMFKIH.min.js} +0 -1
- package/dist/c-UUKVD4WB.min.js +1 -0
- package/dist/{chunk-chunk-SV4XAZ3Q.module.min.js → c-VGW3VG3I.min.js} +0 -1
- package/dist/c-W3CE4A4S.min.js +1 -0
- package/dist/{chunk-chunk-2NVFEB7P.module.min.js → c-WJCD5EUY.min.js} +0 -1
- package/dist/{chunk-chunk-2JGJ5GUG.module.min.js → c-X5UBGU2V.min.js} +0 -1
- package/dist/c-YDAY2WFR.min.js +1 -0
- package/dist/c-ZOWWU34K.min.js +1 -0
- package/dist/components/AccessibleNavTree.d.ts +1 -1
- package/dist/components/CategoryColors.d.ts +1 -1
- package/dist/components/GradientLegend.d.ts +14 -0
- package/dist/components/Legend.d.ts +2 -7
- package/dist/components/LinkedCharts.d.ts +1 -1
- package/dist/components/MobileAnnotationCalloutList.d.ts +1 -1
- package/dist/components/ObservationReadout.d.ts +45 -0
- package/dist/components/ThemeProvider.d.ts +4 -4
- package/dist/components/Tooltip/FlippingTooltip.d.ts +5 -7
- package/dist/components/Tooltip/Tooltip.d.ts +83 -5
- package/dist/components/Tooltip/tooltipChrome.d.ts +43 -0
- package/dist/components/ai/chartCapabilityTypes.d.ts +86 -2
- package/dist/components/ai/chartClinic.d.ts +2 -0
- package/dist/components/ai/deriveProfileFields.d.ts +40 -0
- package/dist/components/ai/evaluateChart.d.ts +85 -0
- package/dist/components/ai/fieldPolicy.d.ts +7 -0
- package/dist/components/ai/fieldRoles.d.ts +24 -0
- package/dist/components/ai/generativeChart.d.ts +18 -2
- package/dist/components/ai/inferIntent.d.ts +26 -2
- package/dist/components/ai/intents.d.ts +35 -0
- package/dist/components/ai/navigationTree.d.ts +2 -2
- package/dist/components/ai/observedSceneAudit.d.ts +2 -1
- package/dist/components/ai/profileData.d.ts +11 -0
- package/dist/components/ai/repairChartConfig.d.ts +2 -3
- package/dist/components/ai/semanticEvidence.d.ts +4 -0
- package/dist/components/ai/semanticViability.d.ts +11 -0
- package/dist/components/ai/semanticViabilityRegistry.d.ts +5 -0
- package/dist/components/ai/streamingTypes.d.ts +4 -0
- package/dist/components/ai/suggestCharts.d.ts +5 -6
- package/dist/components/ai/suggestDashboard.d.ts +2 -3
- package/dist/components/ai/suggestStreamCharts.d.ts +1 -1
- package/dist/components/ai/suggestStretchCharts.d.ts +2 -3
- package/dist/components/ai/suggestionPropContracts.d.ts +20 -0
- package/dist/components/ai/variantDiscovery.d.ts +3 -1
- package/dist/components/charts/custom/NetworkCustomChart.d.ts +3 -0
- package/dist/components/charts/custom/OrdinalCustomChart.d.ts +3 -0
- package/dist/components/charts/custom/XYCustomChart.d.ts +1 -1
- package/dist/components/charts/geo/ChoroplethMap.d.ts +3 -1
- package/dist/components/charts/geo/DistanceCartogram.d.ts +2 -7
- package/dist/components/charts/geo/cartogramOverlay.d.ts +28 -0
- package/dist/components/charts/index.d.ts +4 -3
- package/dist/components/charts/network/ProcessSankey.d.ts +2 -136
- package/dist/components/charts/network/ProcessSankeyProps.d.ts +139 -0
- package/dist/components/charts/network/Treemap.d.ts +2 -1
- package/dist/components/charts/network/processSankey/boundaryHubOrdering.d.ts +23 -0
- package/dist/components/charts/network/processSankey/layoutGeometry.d.ts +2 -0
- package/dist/components/charts/network/processSankey/ordering.d.ts +3 -41
- package/dist/components/charts/network/processSankey/orderingTypes.d.ts +32 -0
- package/dist/components/charts/network/processSankey/packing.d.ts +1 -1
- package/dist/components/charts/network/processSankey/packingCache.d.ts +1 -1
- package/dist/components/charts/network/processSankey/packingOptimization.d.ts +72 -0
- package/dist/components/charts/ordinal/BarChart.d.ts +4 -3
- package/dist/components/charts/ordinal/FunnelChart.d.ts +2 -0
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +3 -2
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +4 -3
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +2 -2
- package/dist/components/charts/physics/GaltonBoardChart.d.ts +2 -9
- package/dist/components/charts/physics/GauntletChart.d.ts +10 -41
- package/dist/components/charts/physics/ProcessFlowChart.d.ts +1 -1
- package/dist/components/charts/physics/chainReactionAccessibleTable.d.ts +9 -0
- package/dist/components/charts/physics/chainReactionRuntime.d.ts +2 -1
- package/dist/components/charts/physics/chainReactionTypes.d.ts +6 -1
- package/dist/components/charts/physics/crucibleBodyRenderers.d.ts +2 -2
- package/dist/components/charts/physics/crucibleClone.d.ts +6 -0
- package/dist/components/charts/physics/crucibleEffects.d.ts +1 -2
- package/dist/components/charts/physics/crucibleRecord.d.ts +7 -0
- package/dist/components/charts/physics/gauntletChrome.d.ts +4 -4
- package/dist/components/charts/physics/gauntletPhysics.d.ts +1 -0
- package/dist/components/charts/physics/gauntletPublic.d.ts +4 -0
- package/dist/components/charts/physics/packetFlowOverlay.d.ts +7 -0
- package/dist/components/charts/physics/physicsChartLayout.d.ts +8 -0
- package/dist/components/charts/physics/physicsChartShared.d.ts +3 -1
- package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
- package/dist/components/charts/physics/physicsHocUtils.d.ts +26 -13
- package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +24 -0
- package/dist/components/charts/physics/processFlowOverlays.d.ts +9 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +17 -12
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +12 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +37 -14
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +23 -14
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +22 -13
- package/dist/components/charts/realtime/aggregate.d.ts +4 -1
- package/dist/components/charts/realtime/eventTime.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +27 -0
- package/dist/components/charts/realtime/realtimeChartTypes.d.ts +30 -0
- package/dist/components/charts/realtime/useRealtimeCategoryColors.d.ts +30 -0
- package/dist/components/charts/shared/FrameTextAnnotationSVG.d.ts +10 -0
- package/dist/components/charts/shared/annotationActivation.d.ts +3 -7
- package/dist/components/charts/shared/annotationBandFill.d.ts +6 -0
- package/dist/components/charts/shared/annotationDispatch.d.ts +31 -0
- package/dist/components/charts/shared/annotationIdentity.d.ts +8 -0
- package/dist/components/charts/shared/annotationRules.d.ts +1 -15
- package/dist/components/charts/shared/boundedCategoryRegistry.d.ts +8 -0
- package/dist/components/charts/shared/chainReactionChartSpec.d.ts +3 -0
- package/dist/components/charts/shared/chartMode.d.ts +3 -2
- package/dist/components/charts/shared/chartSpecCore.d.ts +1 -0
- package/dist/components/charts/shared/formatUtils.d.ts +40 -9
- package/dist/components/charts/shared/frameTextAnnotation.d.ts +63 -0
- package/dist/components/charts/shared/gradient.d.ts +16 -0
- package/dist/components/charts/shared/hatchFill.d.ts +15 -0
- package/dist/components/charts/shared/hooks.d.ts +4 -4
- package/dist/components/charts/shared/legendUtils.d.ts +1 -0
- package/dist/components/charts/shared/streamPropsHelpers.d.ts +3 -1
- package/dist/components/charts/shared/styleRules.d.ts +9 -2
- package/dist/components/charts/shared/styleRulesWireSchema.d.ts +353 -0
- package/dist/components/charts/shared/types.d.ts +26 -10
- package/dist/components/charts/shared/useChartLegend.d.ts +43 -9
- package/dist/components/charts/shared/useChartSetup.d.ts +3 -1
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +5 -2
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +5 -1
- package/dist/components/charts/shared/useOrdinalBrush.d.ts +3 -3
- package/dist/components/charts/shared/useStreamingLegend.d.ts +6 -1
- package/dist/components/charts/value/types.d.ts +1 -1
- package/dist/components/charts/xy/BubbleChart.d.ts +1 -1
- package/dist/components/charts/xy/BumpChart.capability.d.ts +14 -1
- package/dist/components/charts/xy/BumpChart.d.ts +13 -73
- package/dist/components/charts/xy/BumpChart.semanticViability.d.ts +5 -0
- package/dist/components/charts/xy/CandlestickChart.d.ts +2 -2
- package/dist/components/charts/xy/LineChart.d.ts +2 -2
- package/dist/components/charts/xy/Scatterplot.d.ts +1 -1
- package/dist/components/charts/xy/bumpData.d.ts +44 -0
- package/dist/components/charts/xy/bumpIdentity.d.ts +2 -0
- package/dist/components/charts/xy/bumpLayout.d.ts +45 -0
- package/dist/components/charts/xy/bumpTooltip.d.ts +20 -0
- package/dist/components/legendLayout.d.ts +131 -4
- package/dist/components/realtime/ReorderBuffer.d.ts +2 -0
- package/dist/components/realtime/types.d.ts +10 -1
- package/dist/components/recipes/balanceSnapshotsToFlows.d.ts +42 -0
- package/dist/components/recipes/directedReachability.d.ts +14 -0
- package/dist/components/recipes/gofishDisplayListFixtures.generated.d.ts +6 -6
- package/dist/components/recipes/gridObservatory.d.ts +1 -1
- package/dist/components/recipes/networkAnalysis.d.ts +1 -18
- package/dist/components/recipes/physics.d.ts +7 -4
- package/dist/components/recipes/processPhysics.d.ts +0 -1
- package/dist/components/recipes/waffle.d.ts +7 -4
- package/dist/components/semiotic-ai-core.d.ts +13 -4
- package/dist/components/semiotic-ai-observations.d.ts +3 -0
- package/dist/components/semiotic-ai.d.ts +16 -9
- package/dist/components/semiotic-client-shared.d.ts +10 -0
- package/dist/components/semiotic-experimental.d.ts +1 -1
- package/dist/components/semiotic-geo.d.ts +4 -1
- package/dist/components/semiotic-network.d.ts +7 -4
- package/dist/components/semiotic-ordinal.d.ts +4 -1
- package/dist/components/semiotic-physics.d.ts +11 -4
- package/dist/components/semiotic-realtime-core.d.ts +11 -4
- package/dist/components/semiotic-realtime-react.d.ts +4 -3
- package/dist/components/semiotic-realtime.d.ts +3 -1
- package/dist/components/semiotic-recipes-core.d.ts +7 -5
- package/dist/components/semiotic-server-edge.d.ts +3 -2
- package/dist/components/semiotic-server.d.ts +3 -2
- package/dist/components/semiotic-themes-core.d.ts +5 -48
- package/dist/components/semiotic-utils-core.d.ts +11 -5
- package/dist/components/semiotic-utils-react.d.ts +2 -0
- package/dist/components/semiotic-xy.d.ts +4 -1
- package/dist/components/semiotic.d.ts +68 -25
- package/dist/components/server/animatedGif.d.ts +1 -1
- package/dist/components/server/renderEvidence.d.ts +25 -2
- package/dist/components/server/renderToStaticSVG.d.ts +15 -7
- package/dist/components/server/serverChartConfigShared.d.ts +8 -1
- package/dist/components/server/serverChartConfigs.d.ts +1 -0
- package/dist/components/server/serverChartConfigsNetwork.d.ts +3 -3
- package/dist/components/server/serverChartConfigsNetworkChord.d.ts +2 -0
- package/dist/components/server/serverChartConfigsNetworkForce.d.ts +2 -0
- package/dist/components/server/serverChartConfigsNetworkHierarchy.d.ts +3 -0
- package/dist/components/server/serverChartConfigsXY.d.ts +3 -3
- package/dist/components/server/serverChartConfigsXYBubble.d.ts +5 -0
- package/dist/components/server/serverChartConfigsXYBump.d.ts +7 -0
- package/dist/components/server/serverChartConfigsXYScatter.d.ts +5 -0
- package/dist/components/server/staticAnnotationFallbacks.d.ts +10 -0
- package/dist/components/server/staticAnnotations.d.ts +28 -1
- package/dist/components/server/staticAxisTickLabel.d.ts +13 -0
- package/dist/components/server/staticLegend.d.ts +1 -1
- package/dist/components/server/staticLegendMargin.d.ts +41 -0
- package/dist/components/server/staticOrdinal.d.ts +8 -2
- package/dist/components/server/staticPhysics.d.ts +13 -1
- package/dist/components/server/staticPhysicsChrome.d.ts +20 -0
- package/dist/components/server/staticRawLegend.d.ts +15 -0
- package/dist/components/server/staticSVGChrome.d.ts +16 -55
- package/dist/components/server/staticXYAxes.d.ts +27 -0
- package/dist/components/server/staticXYAxisTicks.d.ts +39 -0
- package/dist/components/server/staticXYGrid.d.ts +11 -0
- package/dist/components/server/themeResolver.d.ts +5 -1
- package/dist/components/store/ThemeStore.d.ts +2 -98
- package/dist/components/store/designTokens.d.ts +1 -1
- package/dist/components/store/themeCSSVariables.d.ts +10 -0
- package/dist/components/store/themeCore.d.ts +91 -0
- package/dist/components/store/themePresets.d.ts +81 -0
- package/dist/components/store/themeSerialization.d.ts +2 -1
- package/dist/components/stream/AccessibleDataTable.d.ts +12 -14
- package/dist/components/stream/AccessibleTablePortalImpl.d.ts +6 -0
- package/dist/components/stream/GeoTileRenderer.d.ts +3 -0
- package/dist/components/stream/NetworkCanvasHitTester.d.ts +3 -1
- package/dist/components/stream/NetworkSSRFrame.d.ts +2 -1
- package/dist/components/stream/NetworkSVGOverlay.d.ts +3 -31
- package/dist/components/stream/OrdinalCanvasHitTester.d.ts +2 -0
- package/dist/components/stream/SVGChartTitle.d.ts +9 -0
- package/dist/components/stream/SVGOverlay.d.ts +1 -21
- package/dist/components/stream/SVGUnderlay.d.ts +24 -0
- package/dist/components/stream/SceneToSVG.d.ts +1 -1
- package/dist/components/stream/StreamGeoFrame.d.ts +1 -1
- package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -1
- package/dist/components/stream/StreamXYFrame.d.ts +1 -1
- package/dist/components/stream/accessibleDataRows.d.ts +11 -0
- package/dist/components/stream/accessibleDataTableModel.d.ts +40 -0
- package/dist/components/stream/accessibleTableTypes.d.ts +11 -0
- package/dist/components/stream/axisTickUtils.d.ts +19 -0
- package/dist/components/stream/canvasBackground.d.ts +10 -0
- package/dist/components/stream/canvasSetup.d.ts +24 -4
- package/dist/components/stream/frameCursorInteraction.d.ts +25 -0
- package/dist/components/stream/frameDefaultMargins.d.ts +37 -0
- package/dist/components/stream/frameGraphics.d.ts +18 -0
- package/dist/components/stream/frameGraphicsSubscription.d.ts +26 -0
- package/dist/components/stream/frameLegendOptions.d.ts +18 -0
- package/dist/components/stream/geoFrameCursorInteraction.d.ts +9 -0
- package/dist/components/stream/geoFrameHelpers.d.ts +29 -1
- package/dist/components/stream/geoTypes.d.ts +12 -11
- package/dist/components/stream/hitTarget.d.ts +61 -2
- package/dist/components/stream/moduleWorkerSession.d.ts +6 -0
- package/dist/components/stream/networkAnnotationAnchors.d.ts +37 -0
- package/dist/components/stream/networkCustomLayout.d.ts +2 -2
- package/dist/components/stream/networkFrameCursorInteraction.d.ts +12 -0
- package/dist/components/stream/networkFrameInteraction.d.ts +2 -0
- package/dist/components/stream/networkFramePaint.d.ts +15 -0
- package/dist/components/stream/networkPipelineConfig.d.ts +1 -1
- package/dist/components/stream/networkTypes.d.ts +32 -32
- package/dist/components/stream/normalizeXYData.d.ts +7 -0
- package/dist/components/stream/ordinalFrameCursorInteraction.d.ts +7 -0
- package/dist/components/stream/ordinalFrameInteraction.d.ts +29 -0
- package/dist/components/stream/ordinalSceneSVG.d.ts +10 -0
- package/dist/components/stream/ordinalTypes.d.ts +12 -4
- package/dist/components/stream/physics/PhysicsBodySpatialIndex.d.ts +9 -1
- package/dist/components/stream/physics/PhysicsCanvasTheme.d.ts +25 -0
- package/dist/components/stream/physics/PhysicsControllers.d.ts +0 -3
- package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +4 -1
- package/dist/components/stream/physics/PhysicsSVGOverlay.d.ts +3 -24
- package/dist/components/stream/physics/PhysicsSettledSVG.d.ts +9 -21
- package/dist/components/stream/physics/PhysicsSettledSVGElement.d.ts +37 -0
- package/dist/components/stream/physics/PhysicsSettledScene.d.ts +7 -3
- package/dist/components/stream/physics/StreamPhysicsFrame.d.ts +1 -1
- package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +25 -4
- package/dist/components/stream/physics/physicsAnnotationContext.d.ts +19 -0
- package/dist/components/stream/physics/physicsBodyCanvas.d.ts +4 -0
- package/dist/components/stream/physics/physicsSettledChrome.d.ts +7 -0
- package/dist/components/stream/physics/usePhysicsCanvasPointer.d.ts +32 -0
- package/dist/components/stream/physics/usePhysicsSemanticNavigation.d.ts +36 -0
- package/dist/components/stream/pipelineConfig.d.ts +8 -17
- package/dist/components/stream/pipelineDomainResolution.d.ts +2 -2
- package/dist/components/stream/renderBackend.d.ts +2 -0
- package/dist/components/stream/renderers/canvasRenderHelpers.d.ts +13 -2
- package/dist/components/stream/renderers/resolveCSSColor.d.ts +7 -0
- package/dist/components/stream/responsiveSize.d.ts +17 -0
- package/dist/components/stream/sceneCursor.d.ts +41 -0
- package/dist/components/stream/sceneRevisionDiagnostics.d.ts +1 -1
- package/dist/components/stream/svgOverlayUtils.d.ts +22 -1
- package/dist/components/stream/types.d.ts +33 -13
- package/dist/components/stream/useCanvasFrameHost.d.ts +12 -1
- package/dist/components/stream/useFrame.d.ts +24 -1
- package/dist/components/stream/useResponsiveSize.d.ts +6 -1
- package/dist/components/stream/useStalenessCheck.d.ts +1 -1
- package/dist/components/stream/xyFrameAxisTypes.d.ts +20 -4
- package/dist/components/stream/xyFrameCursorInteraction.d.ts +6 -0
- package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +1 -1
- package/dist/components/stream/xySceneBuilders/types.d.ts +6 -26
- package/dist/components/types/legendTypes.d.ts +6 -0
- package/dist/components/types/marginType.d.ts +7 -8
- package/dist/controls.min.js +1 -1
- package/dist/controls.module.min.js +1 -1
- package/dist/forceLayoutWorker.js +1 -1
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics-matter.module.min.js +1 -1
- package/dist/physics-rapier.module.min.js +1 -1
- package/dist/physics.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/processSankeyLayoutWorker.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/rough.min.js +1 -1
- package/dist/rough.module.min.js +1 -1
- package/dist/semiotic-ai-core.d.ts +13 -4
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +16 -9
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-client-cjs-shared.min.js +1 -0
- package/dist/semiotic-client-glyph.module.min.js +2 -0
- package/dist/semiotic-client-responsive.module.min.js +2 -0
- package/dist/semiotic-client-shared.module.min.js +2 -0
- package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +2 -0
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +2 -0
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +2 -0
- package/dist/semiotic-experimental-node.module.min.js +2 -0
- package/dist/semiotic-experimental-react-shared.module.min.js +2 -0
- package/dist/semiotic-experimental-vacp.min.js +1 -1
- package/dist/semiotic-experimental-vacp.module.min.js +1 -1
- package/dist/semiotic-experimental.d.ts +1 -1
- package/dist/semiotic-experimental.min.js +1 -1
- package/dist/semiotic-experimental.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +4 -1
- package/dist/semiotic-network.d.ts +7 -4
- package/dist/semiotic-ordinal.d.ts +4 -1
- package/dist/semiotic-physics.d.ts +11 -4
- package/dist/semiotic-realtime-core.d.ts +11 -4
- package/dist/semiotic-realtime-core.min.js +2 -1
- package/dist/semiotic-realtime-core.module.min.js +2 -1
- package/dist/semiotic-realtime-react.d.ts +4 -3
- package/dist/semiotic-realtime-react.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-realtime.d.ts +3 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +1 -0
- package/dist/semiotic-recipes-core.d.ts +7 -5
- package/dist/semiotic-recipes-core.min.js +9 -1
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes-geo-cjs.min.js +1 -0
- package/dist/semiotic-recipes-react.min.js +1 -1
- package/dist/semiotic-recipes-react.module.min.js +1 -1
- package/dist/semiotic-recipes.min.js +7 -1
- package/dist/semiotic-recipes.module.min.js +2 -1
- package/dist/semiotic-server-edge-node.module.min.js +1 -0
- package/dist/semiotic-server-edge.d.ts +3 -2
- package/dist/semiotic-server-edge.min.js +1 -1
- package/dist/semiotic-server-edge.module.min.js +1 -1
- package/dist/semiotic-server-node.min.js +1 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-server.d.ts +3 -2
- package/dist/semiotic-themes-core.d.ts +5 -48
- package/dist/semiotic-themes-core.min.js +1 -1
- package/dist/semiotic-themes-core.module.min.js +1 -1
- package/dist/semiotic-themes-react.min.js +1 -1
- package/dist/semiotic-themes-react.module.min.js +1 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils-core.d.ts +11 -5
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.module.min.js +1 -1
- package/dist/semiotic-utils-react.d.ts +2 -0
- package/dist/semiotic-utils-react.min.js +1 -1
- package/dist/semiotic-utils-react.module.min.js +1 -1
- package/dist/semiotic-utils.min.js +2 -1
- package/dist/semiotic-utils.module.min.js +2 -1
- package/dist/semiotic-value.min.js +1 -1
- package/dist/semiotic-value.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +4 -1
- package/dist/semiotic.d.ts +68 -25
- package/dist/semiotic.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +53 -19
- package/dist/__tests__/scenarios/mcpProtocolTypes.d.ts +0 -20
- package/dist/chunk-OrdinalBrushOverlay-PXHQYDB2.module.min.js +0 -2
- package/dist/chunk-XYBrushOverlay-ECZJJLAJ.module.min.js +0 -1
- package/dist/chunk-XYBrushOverlay-EP2SV3UI.module.min.js +0 -2
- package/dist/chunk-chartContainerDataAudit-IQ3NBN3Q.module.min.js +0 -2
- package/dist/chunk-chunk-2B3AIKUZ.module.min.js +0 -2
- package/dist/chunk-chunk-2CXCXRB4.module.min.js +0 -1
- package/dist/chunk-chunk-3GCILWPB.module.min.js +0 -2
- package/dist/chunk-chunk-46KRGJQP.module.min.js +0 -1
- package/dist/chunk-chunk-4ITOQRXM.module.min.js +0 -2
- package/dist/chunk-chunk-4MLLQUGW.module.min.js +0 -2
- package/dist/chunk-chunk-57RBPDBQ.module.min.js +0 -2
- package/dist/chunk-chunk-5UKL5W76.module.min.js +0 -2
- package/dist/chunk-chunk-5VVNW5AZ.module.min.js +0 -1
- package/dist/chunk-chunk-66PCWJUG.module.min.js +0 -1
- package/dist/chunk-chunk-6V5VQVCT.module.min.js +0 -2
- package/dist/chunk-chunk-7LE56WAE.module.min.js +0 -2
- package/dist/chunk-chunk-7T25U75Z.module.min.js +0 -2
- package/dist/chunk-chunk-ACLDBMRH.module.min.js +0 -2
- package/dist/chunk-chunk-AF53TBSN.module.min.js +0 -2
- package/dist/chunk-chunk-BTZYH2IE.module.min.js +0 -1
- package/dist/chunk-chunk-BWV55BZK.module.min.js +0 -2
- package/dist/chunk-chunk-BZNOAHJV.module.min.js +0 -2
- package/dist/chunk-chunk-CD6PVVS3.module.min.js +0 -2
- package/dist/chunk-chunk-DTSNLGRK.module.min.js +0 -2
- package/dist/chunk-chunk-FC3NZWYR.module.min.js +0 -2
- package/dist/chunk-chunk-FEPXDKJP.module.min.js +0 -1
- package/dist/chunk-chunk-FJ76HWQZ.module.min.js +0 -1
- package/dist/chunk-chunk-FRGBMTZR.module.min.js +0 -1
- package/dist/chunk-chunk-G75OPF5N.module.min.js +0 -2
- package/dist/chunk-chunk-H5IFO6CU.module.min.js +0 -2
- package/dist/chunk-chunk-HADHLMY5.module.min.js +0 -1
- package/dist/chunk-chunk-HBFA4NN6.module.min.js +0 -1
- package/dist/chunk-chunk-HCNDE26Q.module.min.js +0 -2
- package/dist/chunk-chunk-IY7RYD4S.module.min.js +0 -1
- package/dist/chunk-chunk-J3QOW4OE.module.min.js +0 -0
- package/dist/chunk-chunk-J3XWETBJ.module.min.js +0 -2
- package/dist/chunk-chunk-JJ4BSUYL.module.min.js +0 -2
- package/dist/chunk-chunk-JRHXQGEV.module.min.js +0 -2
- package/dist/chunk-chunk-KTWEBFMX.module.min.js +0 -2
- package/dist/chunk-chunk-L6FFYGYS.module.min.js +0 -1
- package/dist/chunk-chunk-LJDH3WV3.module.min.js +0 -2
- package/dist/chunk-chunk-LSJUXBMF.module.min.js +0 -1
- package/dist/chunk-chunk-N3Q33XCB.module.min.js +0 -2
- package/dist/chunk-chunk-NWIGA3UK.module.min.js +0 -1
- package/dist/chunk-chunk-OG3TTJGJ.module.min.js +0 -2
- package/dist/chunk-chunk-OZK46A5U.module.min.js +0 -1
- package/dist/chunk-chunk-PMR47KRY.module.min.js +0 -2
- package/dist/chunk-chunk-Q2YADC2V.module.min.js +0 -2
- package/dist/chunk-chunk-QQJNG23C.module.min.js +0 -2
- package/dist/chunk-chunk-RGJ6TKAH.module.min.js +0 -2
- package/dist/chunk-chunk-ROP4HI7H.module.min.js +0 -2
- package/dist/chunk-chunk-SFLUSZ73.module.min.js +0 -2
- package/dist/chunk-chunk-TCMHJWFJ.module.min.js +0 -1
- package/dist/chunk-chunk-TSCFL235.module.min.js +0 -1
- package/dist/chunk-chunk-U66USBWU.module.min.js +0 -1
- package/dist/chunk-chunk-UEZ6SHW5.module.min.js +0 -2
- package/dist/chunk-chunk-UOQRPGPK.module.min.js +0 -2
- package/dist/chunk-chunk-VUWYT7DY.module.min.js +0 -2
- package/dist/chunk-chunk-W5HWGQMD.module.min.js +0 -2
- package/dist/chunk-chunk-WFHZHWT7.module.min.js +0 -1
- package/dist/chunk-chunk-WGROBM3I.module.min.js +0 -2
- package/dist/chunk-chunk-WSDJFBKX.module.min.js +0 -2
- package/dist/chunk-chunk-YHNZCPOZ.module.min.js +0 -2
- package/dist/chunk-chunk-YWZB3KPI.module.min.js +0 -2
- package/dist/chunk-statisticalOverlays-HMYYSGPE.module.min.js +0 -2
- package/dist/components/stream/test-utils/frameScheduler.d.ts +0 -12
- package/dist/components/stream/test-utils/revisionConsumption.d.ts +0 -13
- package/dist/test-utils/canvasMock.d.ts +0 -86
- package/dist/test-utils/capturedFrameProps.d.ts +0 -67
- package/dist/test-utils/frameMock.d.ts +0 -81
- package/dist/test-utils/ordinalFixtures.d.ts +0 -48
- /package/dist/{chunk-chunk-JJ2OOIET.module.min.js → c-GGISSW5E.min.js} +0 -0
- /package/dist/{chunk-chunk-SIRIJ3DY.module.min.js → c-N4G2L7ID.min.js} +0 -0
- /package/dist/{chunk-chunk-CA3YDW6F.module.min.js → c-S6U5CGT5.min.js} +0 -0
- /package/dist/components/recipes/{mobileAnnotationStrategy.d.ts → mobileAnnotationBehavior.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { GeoProjection, GeoPath, GeoPermissibleObjects } from "d3-geo";
|
|
3
|
-
import type { LegendLayout, LegendValue } from "../types/legendTypes";
|
|
4
|
-
import type { Style, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, SceneDatum, PointSceneNode, GlyphSceneNode, ThemeSemanticColors, SceneAccessibilityMetadata, SceneRenderMode } from "./types";
|
|
3
|
+
import type { LegendItem, LegendLayout, LegendValue } from "../types/legendTypes";
|
|
4
|
+
import type { Style, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, SceneDatum, PointSceneNode, GlyphSceneNode, ThemeSemanticColors, SceneAccessibilityMetadata, SceneRenderMode, FrameGraphicsProp } from "./types";
|
|
5
5
|
import type { AnimateProp } from "./pipelineTransitionUtils";
|
|
6
6
|
import type { AnnotationContext, HoverAnnotationConfig, HoverData } from "../realtime/types";
|
|
7
7
|
import type { GeoParticleStyle } from "./GeoParticlePool";
|
|
@@ -14,6 +14,7 @@ import type { CustomLayoutFailureDiagnostic } from "./customLayoutFailure";
|
|
|
14
14
|
import type { OnObservationCallback } from "../store/ObservationStore";
|
|
15
15
|
import type { SemanticClickBehavior, SemanticHoverBehavior } from "../charts/shared/semanticInteractions";
|
|
16
16
|
import type { OnAnnotationActivateCallback } from "../charts/shared/annotationActivation";
|
|
17
|
+
import type { AccessibleTableProp } from "./accessibleTableTypes";
|
|
17
18
|
export type ProjectionProp = GeoProjection | ProjectionName | ProjectionConfig;
|
|
18
19
|
export type ProjectionName = "mercator" | "equalEarth" | "albersUsa" | "orthographic" | "naturalEarth" | "equirectangular";
|
|
19
20
|
export interface ProjectionConfig {
|
|
@@ -205,6 +206,8 @@ export interface StreamGeoFrameProps<T = Datum> {
|
|
|
205
206
|
};
|
|
206
207
|
className?: string;
|
|
207
208
|
background?: string;
|
|
209
|
+
/** Maximum canvas backing-store DPR; defaults to the environment cap. */
|
|
210
|
+
maxDevicePixelRatio?: number;
|
|
208
211
|
runtimeMode?: "bounded" | "streaming";
|
|
209
212
|
/** Maximum retained points and lines after imperative streaming begins. @default 500 */
|
|
210
213
|
windowSize?: number;
|
|
@@ -274,18 +277,16 @@ export interface StreamGeoFrameProps<T = Datum> {
|
|
|
274
277
|
paused?: boolean;
|
|
275
278
|
/** Freeze logical animation time while the page is hidden. Defaults to true for Geo frames. */
|
|
276
279
|
suspendWhenHidden?: boolean;
|
|
277
|
-
|
|
278
|
-
|
|
280
|
+
/** SVG behind the canvas. Function form receives frame geometry + Geo scales. */
|
|
281
|
+
backgroundGraphics?: FrameGraphicsProp<GeoScales>;
|
|
282
|
+
/** SVG above the canvas. Function form receives frame geometry + Geo scales. */
|
|
283
|
+
foregroundGraphics?: FrameGraphicsProp<GeoScales>;
|
|
279
284
|
title?: string | ReactNode;
|
|
280
285
|
legend?: LegendValue;
|
|
281
286
|
legendPosition?: "right" | "left" | "top" | "bottom";
|
|
282
287
|
legendLayout?: LegendLayout;
|
|
283
|
-
legendHoverBehavior?: (item:
|
|
284
|
-
|
|
285
|
-
} | null) => void;
|
|
286
|
-
legendClickBehavior?: (item: {
|
|
287
|
-
label: string;
|
|
288
|
-
}) => void;
|
|
288
|
+
legendHoverBehavior?: (item: LegendItem | null) => void;
|
|
289
|
+
legendClickBehavior?: (item: LegendItem) => void;
|
|
289
290
|
legendHighlightedCategory?: string | null;
|
|
290
291
|
legendIsolatedCategories?: Set<string>;
|
|
291
292
|
/** Accessor used to report the current legend category domain in push mode. */
|
|
@@ -294,7 +295,7 @@ export interface StreamGeoFrameProps<T = Datum> {
|
|
|
294
295
|
onCategoriesChange?: (categories: string[]) => void;
|
|
295
296
|
showAxes?: boolean;
|
|
296
297
|
/** Render a visually-hidden data table from the scene graph for screen readers */
|
|
297
|
-
accessibleTable?:
|
|
298
|
+
accessibleTable?: AccessibleTableProp;
|
|
298
299
|
/** Accessible description overriding the auto-generated aria-label on the chart container */
|
|
299
300
|
description?: string;
|
|
300
301
|
/** Accessible summary rendered as a screen-reader-only note */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PointSceneNode, RectSceneNode, SceneDatum } from "./types";
|
|
1
|
+
import type { PointSceneNode, RectSceneNode, SceneAccessibilityMetadata, SceneDatum, Style } from "./types";
|
|
2
2
|
import type { GeoAreaSceneNode } from "./geoTypes";
|
|
3
|
-
import type { NetworkCircleNode, NetworkRectNode } from "./networkTypes";
|
|
3
|
+
import type { NetworkBezierEdge, NetworkCircleNode, NetworkCurvedEdge, NetworkLineEdge, NetworkRectNode, NetworkRibbonEdge } from "./networkTypes";
|
|
4
4
|
/** Default hit/keyboard-focus radius (px) — larger than a typical glyph so the
|
|
5
5
|
* target is easy to hit by pointer and to land on by keyboard (Fitts's law). */
|
|
6
6
|
export declare const DEFAULT_HIT_RADIUS = 8;
|
|
@@ -17,6 +17,8 @@ export interface HitTargetPointProps {
|
|
|
17
17
|
id?: string | number;
|
|
18
18
|
/** Hit + keyboard-focus radius in px. @default {@link DEFAULT_HIT_RADIUS} */
|
|
19
19
|
r?: number;
|
|
20
|
+
/** Presentation-only cursor for the matching overlay-drawn mark. */
|
|
21
|
+
cursor?: Style["cursor"];
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* A transparent, hit-testable **point** node for a custom XY or ordinal layout
|
|
@@ -66,6 +68,8 @@ export interface GeoAreaHitTargetProps {
|
|
|
66
68
|
group?: string;
|
|
67
69
|
/** Screen-space area in px^2. Defaults to the bounding-box area. */
|
|
68
70
|
screenArea?: number;
|
|
71
|
+
/** Presentation-only cursor for the matching overlay-drawn area. */
|
|
72
|
+
cursor?: Style["cursor"];
|
|
69
73
|
}
|
|
70
74
|
/**
|
|
71
75
|
* A transparent, hit-testable **area** node for a custom geo layout whose
|
|
@@ -105,6 +109,8 @@ export interface HitTargetRectProps {
|
|
|
105
109
|
id?: string | number;
|
|
106
110
|
/** Optional series/category key for grouped selection + legend interaction. */
|
|
107
111
|
group?: string;
|
|
112
|
+
/** Presentation-only cursor for the matching overlay-drawn mark. */
|
|
113
|
+
cursor?: Style["cursor"];
|
|
108
114
|
}
|
|
109
115
|
/**
|
|
110
116
|
* A transparent, hit-testable **rect** node for a custom XY or ordinal layout —
|
|
@@ -127,6 +133,12 @@ export interface NetworkHitTargetCircleProps {
|
|
|
127
133
|
r?: number;
|
|
128
134
|
/** Optional accessible label override for the node. */
|
|
129
135
|
label?: string;
|
|
136
|
+
/** Full user-facing row when the render datum is geometry-oriented. */
|
|
137
|
+
accessibleDatum?: SceneAccessibilityMetadata["accessibleDatum"];
|
|
138
|
+
/** Accessible label and/or a curated data-table projection. */
|
|
139
|
+
accessibility?: SceneAccessibilityMetadata["accessibility"];
|
|
140
|
+
/** Presentation-only cursor for the matching overlay-drawn node. */
|
|
141
|
+
cursor?: Style["cursor"];
|
|
130
142
|
}
|
|
131
143
|
export interface NetworkHitTargetRectProps {
|
|
132
144
|
/** Plot-relative x of the rect's top-left corner. */
|
|
@@ -143,6 +155,12 @@ export interface NetworkHitTargetRectProps {
|
|
|
143
155
|
id?: string | number;
|
|
144
156
|
/** Optional accessible label override for the node. */
|
|
145
157
|
label?: string;
|
|
158
|
+
/** Full user-facing row when the render datum is geometry-oriented. */
|
|
159
|
+
accessibleDatum?: SceneAccessibilityMetadata["accessibleDatum"];
|
|
160
|
+
/** Accessible label and/or a curated data-table projection. */
|
|
161
|
+
accessibility?: SceneAccessibilityMetadata["accessibility"];
|
|
162
|
+
/** Presentation-only cursor for the matching overlay-drawn node. */
|
|
163
|
+
cursor?: Style["cursor"];
|
|
146
164
|
}
|
|
147
165
|
/**
|
|
148
166
|
* A transparent, hit-testable node for a custom **network** layout. Pass `width`
|
|
@@ -168,3 +186,44 @@ export interface NetworkHitTargetRectProps {
|
|
|
168
186
|
*/
|
|
169
187
|
export declare function networkHitTarget(props: NetworkHitTargetRectProps): NetworkRectNode;
|
|
170
188
|
export declare function networkHitTarget(props: NetworkHitTargetCircleProps): NetworkCircleNode;
|
|
189
|
+
export interface NetworkEdgeHitTargetBaseProps {
|
|
190
|
+
/** Raw edge datum surfaced by pointer observation and the data table. */
|
|
191
|
+
datum: SceneDatum;
|
|
192
|
+
/** Optional stable semantic identity for the edge. */
|
|
193
|
+
id?: string | number;
|
|
194
|
+
/** Human-readable row label for the accessible data table. */
|
|
195
|
+
label?: string;
|
|
196
|
+
/** Full user-facing row when the render datum is geometry-oriented. */
|
|
197
|
+
accessibleDatum?: SceneAccessibilityMetadata["accessibleDatum"];
|
|
198
|
+
/** Accessible label and/or a curated data-table projection. */
|
|
199
|
+
accessibility?: SceneAccessibilityMetadata["accessibility"];
|
|
200
|
+
/**
|
|
201
|
+
* Whether the transparent edge participates in pointer hit testing. Set to
|
|
202
|
+
* false when the edge exists only to add a semantic table row.
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
interactive?: boolean;
|
|
206
|
+
/** Presentation-only cursor for the matching overlay-drawn edge. */
|
|
207
|
+
cursor?: Style["cursor"];
|
|
208
|
+
}
|
|
209
|
+
export interface NetworkLineEdgeHitTargetProps extends NetworkEdgeHitTargetBaseProps {
|
|
210
|
+
type?: "line";
|
|
211
|
+
x1: number;
|
|
212
|
+
y1: number;
|
|
213
|
+
x2: number;
|
|
214
|
+
y2: number;
|
|
215
|
+
}
|
|
216
|
+
export interface NetworkPathEdgeHitTargetProps extends NetworkEdgeHitTargetBaseProps {
|
|
217
|
+
/** Curved paths are the most general default; bezier/ribbon reuse the same path contract. */
|
|
218
|
+
type?: "curved" | "bezier" | "ribbon";
|
|
219
|
+
pathD: string;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* A transparent semantic edge for a custom network layout whose visible links
|
|
223
|
+
* live in `overlays`. It contributes an edge row to the accessible data table
|
|
224
|
+
* and, by default, retains the frame's geometry-based pointer observation.
|
|
225
|
+
* Network keyboard traversal remains node-based; set `interactive: false` for
|
|
226
|
+
* an accessibility-table-only edge that should not intercept the pointer.
|
|
227
|
+
*/
|
|
228
|
+
export declare function networkEdgeHitTarget(props: NetworkLineEdgeHitTargetProps): NetworkLineEdge;
|
|
229
|
+
export declare function networkEdgeHitTarget(props: NetworkPathEdgeHitTargetProps): NetworkBezierEdge | NetworkRibbonEdge | NetworkCurvedEdge;
|
|
@@ -32,6 +32,12 @@ export interface ModuleWorkerSessionOptions<TRequest, TResponse> {
|
|
|
32
32
|
* Wrap a domain request for `postMessage`. Default: `{ requestId, request }`.
|
|
33
33
|
*/
|
|
34
34
|
encodeRequest?: (requestId: number, request: TRequest) => unknown;
|
|
35
|
+
/**
|
|
36
|
+
* Terminate the worker when a request is aborted. Worker message handlers
|
|
37
|
+
* cannot interrupt CPU-bound synchronous layout code, so termination is the
|
|
38
|
+
* only cancellation mode that actually stops superseded work.
|
|
39
|
+
*/
|
|
40
|
+
terminateOnAbort?: boolean;
|
|
35
41
|
}
|
|
36
42
|
declare function errorFromPayload(payload: ModuleWorkerErrorPayload): Error;
|
|
37
43
|
/**
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
|
+
import { type GlyphDef } from "./glyphDef";
|
|
3
|
+
export type NetworkAnnotationAnchorNode = {
|
|
4
|
+
type: string;
|
|
5
|
+
datum: Datum | null;
|
|
6
|
+
id?: string;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
cx?: number;
|
|
10
|
+
cy?: number;
|
|
11
|
+
w?: number;
|
|
12
|
+
h?: number;
|
|
13
|
+
/** Circle nodes (NetworkCircleNode, force/tree/orbit marks) carry an explicit radius. */
|
|
14
|
+
r?: number;
|
|
15
|
+
/** Arc nodes (chord, radial) carry an outer radius. */
|
|
16
|
+
outerR?: number;
|
|
17
|
+
/** Symbol nodes carry a d3-symbol area; glyph nodes reuse `size` as rendered height. */
|
|
18
|
+
size?: number;
|
|
19
|
+
/** Glyph nodes (the composite-pictogram channel) carry a definition. */
|
|
20
|
+
glyph?: GlyphDef;
|
|
21
|
+
};
|
|
22
|
+
export type NetworkAnnotationAnchor = {
|
|
23
|
+
pointId?: string;
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
r: number;
|
|
27
|
+
};
|
|
28
|
+
/** Anchor id for a scene node — resolves `pointId` annotations to a mark. */
|
|
29
|
+
export declare function nodeAnchorId(node: NetworkAnnotationAnchorNode): string | undefined;
|
|
30
|
+
/** Center + effective radius of a network scene node for annotation anchoring. */
|
|
31
|
+
export declare function nodeCenter(node: NetworkAnnotationAnchorNode): {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
r: number;
|
|
35
|
+
} | null;
|
|
36
|
+
/** Collect the stable annotation anchors exposed by a laid-out network scene. */
|
|
37
|
+
export declare function collectNetworkAnnotationAnchors(nodes: ReadonlyArray<NetworkAnnotationAnchorNode> | undefined): NetworkAnnotationAnchor[] | undefined;
|
|
@@ -86,8 +86,8 @@ export interface NetworkLayoutContext<C extends object = Record<string, unknown>
|
|
|
86
86
|
* Shared-selection projection. Present when the chart is wired to a
|
|
87
87
|
* `LinkedCharts` / selection store; `null` otherwise. Use
|
|
88
88
|
* `selection.isActive` + `selection.predicate(node.data ?? node)` to
|
|
89
|
-
* dim/highlight marks by the cross-chart selection. See
|
|
90
|
-
*
|
|
89
|
+
* dim/highlight marks by the cross-chart selection. See the
|
|
90
|
+
* `NetworkLayoutSelection` type.
|
|
91
91
|
*/
|
|
92
92
|
selection?: NetworkLayoutSelection | null;
|
|
93
93
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NetworkPipelineStore } from "./NetworkPipelineStore";
|
|
2
|
+
import type { CursorFrameGeometry } from "./frameCursorInteraction";
|
|
3
|
+
import type { NetworkSceneEdge, NetworkSceneNode } from "./networkTypes";
|
|
4
|
+
export interface NetworkCursorInventory {
|
|
5
|
+
nodes: boolean;
|
|
6
|
+
edges: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function refreshNetworkCursorInventory(inventory: NetworkCursorInventory, nodes: ReadonlyArray<NetworkSceneNode>, edges: ReadonlyArray<NetworkSceneEdge>): boolean;
|
|
9
|
+
export declare function rehitNetworkFrameCursor(options: CursorFrameGeometry & {
|
|
10
|
+
store: NetworkPipelineStore;
|
|
11
|
+
cursorInventory: Readonly<NetworkCursorInventory>;
|
|
12
|
+
}): void;
|
|
@@ -14,6 +14,7 @@ export type NetworkPointerHit = {
|
|
|
14
14
|
} | {
|
|
15
15
|
kind: "hit";
|
|
16
16
|
hover: HoverData;
|
|
17
|
+
mark: NetworkSceneNode | NetworkSceneEdge | undefined;
|
|
17
18
|
};
|
|
18
19
|
export declare function resolveNetworkPointerHit(options: {
|
|
19
20
|
clientX: number;
|
|
@@ -30,6 +31,7 @@ export declare function resolveNetworkPointerHit(options: {
|
|
|
30
31
|
nodeQuadtree: Quadtree<NetworkCircleNode> | null;
|
|
31
32
|
maxNodeRadius: number;
|
|
32
33
|
hitRadius?: number;
|
|
34
|
+
includeEdges?: boolean;
|
|
33
35
|
}): NetworkPointerHit;
|
|
34
36
|
export declare function pointerFromMouseEvent(e: {
|
|
35
37
|
clientX: number;
|
|
@@ -12,12 +12,22 @@ export interface NetworkFramePaintContext {
|
|
|
12
12
|
adjustedWidth: number;
|
|
13
13
|
adjustedHeight: number;
|
|
14
14
|
background?: string;
|
|
15
|
+
/** Theme surface fallback used when `background` is unset. */
|
|
16
|
+
themeBackground?: string;
|
|
17
|
+
maxDevicePixelRatio?: number;
|
|
15
18
|
renderMode?: SceneRenderMode<NetworkSceneNode | NetworkSceneEdge>;
|
|
16
19
|
/** Skip opaque canvas fill when an SVG backgroundGraphics layer is present. */
|
|
17
20
|
hasBackgroundGraphics?: boolean;
|
|
18
21
|
dirtyRef: {
|
|
19
22
|
current: boolean;
|
|
20
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Browser zoom / maxDevicePixelRatio — re-rasterize only, do not rebuild
|
|
26
|
+
* the network scene. Cleared by this paint function after consumption.
|
|
27
|
+
*/
|
|
28
|
+
resolutionDirtyRef?: {
|
|
29
|
+
current: boolean;
|
|
30
|
+
};
|
|
21
31
|
lastFrameTimeRef: {
|
|
22
32
|
current: number;
|
|
23
33
|
};
|
|
@@ -46,6 +56,11 @@ export interface NetworkFramePaintContext {
|
|
|
46
56
|
scheduleNextFrame: () => void;
|
|
47
57
|
/** Resync color caches from scene fills after an invalidating rebuild. */
|
|
48
58
|
syncColorMap?: () => void;
|
|
59
|
+
/** Refresh cursor inventory/presentation after scene mutations. */
|
|
60
|
+
onSceneOrStyleChange?: (change: {
|
|
61
|
+
inventoryChanged: boolean;
|
|
62
|
+
geometryChanged: boolean;
|
|
63
|
+
}) => void;
|
|
49
64
|
}
|
|
50
65
|
/**
|
|
51
66
|
* Run one paint tick. Returns whether another rAF should be scheduled
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Build NetworkPipelineConfig from StreamNetworkFrame props + theme.
|
|
3
3
|
* Keeps the large useMemo payload out of the React component file.
|
|
4
4
|
*/
|
|
5
|
-
import type { SemioticTheme } from "../store/
|
|
5
|
+
import type { SemioticTheme } from "../store/themeCore";
|
|
6
6
|
import type { NetworkPipelineConfig } from "./networkTypes";
|
|
7
7
|
import type { StreamNetworkFrameProps } from "./networkTypes";
|
|
8
8
|
export type NetworkPipelineConfigSources = Pick<StreamNetworkFrameProps, "chartType" | "nodeIDAccessor" | "sourceAccessor" | "targetAccessor" | "valueAccessor" | "edgeIdAccessor" | "childrenAccessor" | "hierarchySum" | "orientation" | "nodeAlign" | "nodePaddingRatio" | "nodeWidth" | "iterations" | "forceStrength" | "padAngle" | "groupWidth" | "sortGroups" | "edgeSort" | "treeOrientation" | "edgeType" | "padding" | "paddingTop" | "nodeStyle" | "edgeStyle" | "nodeLabel" | "showLabels" | "labelMode" | "colorBy" | "colorScheme" | "edgeColorBy" | "edgeOpacity" | "colorByDepth" | "nodeSize" | "nodeSizeRange" | "decay" | "pulse" | "transition" | "staleness" | "thresholds" | "orbitMode" | "orbitSize" | "orbitSpeed" | "orbitRevolution" | "orbitRevolutionStyle" | "orbitEccentricity" | "orbitShowRings" | "orbitAnimated" | "clock" | "random" | "seed" | "customNetworkLayout" | "onLayoutError" | "layoutConfig"> & {
|
|
@@ -6,12 +6,15 @@ type NetworkDatumComparator = {
|
|
|
6
6
|
}["bivarianceHack"];
|
|
7
7
|
type NetworkGroupComparator = (a: number, b: number) => number;
|
|
8
8
|
import type { LegendLayout, LegendValue } from "../types/legendTypes";
|
|
9
|
-
import type { Style, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, ThemeSemanticColors, SceneDatum, SceneAccessibilityMetadata, SceneRenderMode } from "./types";
|
|
9
|
+
import type { Style, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, ThemeSemanticColors, SceneDatum, SceneAccessibilityMetadata, SceneRenderMode, FrameGraphicsProp } from "./types";
|
|
10
10
|
import type { AnimateProp } from "./pipelineTransitionUtils";
|
|
11
11
|
import type { NetworkSymbolName } from "./symbolPath";
|
|
12
12
|
import type { GlyphDef } from "./glyphDef";
|
|
13
13
|
import type { StreamNetworkFrameHandle } from "./networkFrameHandleTypes";
|
|
14
14
|
import type { StreamNetworkInteractionProps } from "./networkInteractionTypes";
|
|
15
|
+
import type { AccessibleTableProp } from "./accessibleTableTypes";
|
|
16
|
+
/** Style-callback result, including `cursor` on legacy datum-shaped returns. */
|
|
17
|
+
export type NetworkMarkStyle = Style | (Datum & Pick<Style, "cursor">);
|
|
15
18
|
export interface TensionConfig {
|
|
16
19
|
weightChange: number;
|
|
17
20
|
newEdge: number;
|
|
@@ -47,27 +50,13 @@ export interface RealtimeNode {
|
|
|
47
50
|
_pulseIntensity?: number;
|
|
48
51
|
_pulseColor?: string;
|
|
49
52
|
_pulseGlowRadius?: number;
|
|
50
|
-
/**
|
|
51
|
-
* @internal Hierarchy-layout-only extension fields. Set by
|
|
52
|
-
* `hierarchyLayoutPlugin` / `orbitLayoutPlugin` during layout and
|
|
53
|
-
* read by `hierarchySceneBuilders`. Typed `unknown` because the d3
|
|
54
|
-
* `HierarchyNode` shape is layout-specific (rectangular, circular,
|
|
55
|
-
* point) — consumers narrow with the structural fields they need.
|
|
56
|
-
*/
|
|
53
|
+
/** @internal Hierarchy-layout metadata; consumers narrow to the plugin-specific shape. */
|
|
57
54
|
__hierarchyNode?: unknown;
|
|
58
55
|
/** @internal Circle-pack layout radius. Set by `hierarchyLayoutPlugin`. */
|
|
59
56
|
__radius?: number;
|
|
60
57
|
/** @internal Pre-resolved force-layout radius used by worker snapshots. */
|
|
61
58
|
__forceRadius?: number;
|
|
62
|
-
/**
|
|
63
|
-
* @internal Chord-layout extension. Carries the start/end angles
|
|
64
|
-
* for the arc segment representing this node, computed by
|
|
65
|
-
* `chordLayoutPlugin` and read by its `buildScene`. Concretely
|
|
66
|
-
* typed (unlike `__hierarchyNode`) because chord is the only
|
|
67
|
-
* layout that writes this field, so the shape is fixed — no
|
|
68
|
-
* narrowing-at-read needed. `__` prefix matches the convention
|
|
69
|
-
* used by `__hierarchyNode` / `__radius` on this same interface.
|
|
70
|
-
*/
|
|
59
|
+
/** @internal Chord-layout arc segment angles. */
|
|
71
60
|
__arcData?: {
|
|
72
61
|
startAngle: number;
|
|
73
62
|
endAngle: number;
|
|
@@ -331,8 +320,19 @@ export interface NetworkGlyphNode {
|
|
|
331
320
|
_pulseColor?: string;
|
|
332
321
|
_pulseGlowRadius?: number;
|
|
333
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* Semantic and interaction metadata shared by every network edge shape.
|
|
325
|
+
* Custom layouts can expose a curated accessible-table row without changing
|
|
326
|
+
* the render datum, and can opt decorative/table-only edges out of pointer
|
|
327
|
+
* hit testing with `interactive: false`.
|
|
328
|
+
*/
|
|
329
|
+
interface NetworkEdgeMetadata extends SceneAccessibilityMetadata {
|
|
330
|
+
id?: string;
|
|
331
|
+
label?: string;
|
|
332
|
+
interactive?: boolean;
|
|
333
|
+
}
|
|
334
334
|
/** Line edge — used by force */
|
|
335
|
-
export interface NetworkLineEdge {
|
|
335
|
+
export interface NetworkLineEdge extends NetworkEdgeMetadata {
|
|
336
336
|
type: "line";
|
|
337
337
|
x1: number;
|
|
338
338
|
y1: number;
|
|
@@ -344,13 +344,9 @@ export interface NetworkLineEdge {
|
|
|
344
344
|
_pulseColor?: string;
|
|
345
345
|
}
|
|
346
346
|
/** Bezier band edge — used by sankey */
|
|
347
|
-
export interface NetworkBezierEdge {
|
|
347
|
+
export interface NetworkBezierEdge extends NetworkEdgeMetadata {
|
|
348
348
|
type: "bezier";
|
|
349
349
|
pathD: string;
|
|
350
|
-
/** When false, the hit tester skips this edge. Used for
|
|
351
|
-
* decorative scene-edges like ProcessSankey's gradient stubs —
|
|
352
|
-
* they paint visually but shouldn't intercept hover. */
|
|
353
|
-
interactive?: boolean;
|
|
354
350
|
bezierCache?: BezierCache;
|
|
355
351
|
style: Style;
|
|
356
352
|
datum: SceneDatum;
|
|
@@ -370,7 +366,7 @@ export interface NetworkBezierEdge {
|
|
|
370
366
|
_cachedPath2DSource?: string;
|
|
371
367
|
}
|
|
372
368
|
/** Ribbon edge — used by chord */
|
|
373
|
-
export interface NetworkRibbonEdge {
|
|
369
|
+
export interface NetworkRibbonEdge extends NetworkEdgeMetadata {
|
|
374
370
|
type: "ribbon";
|
|
375
371
|
pathD: string;
|
|
376
372
|
style: Style;
|
|
@@ -381,7 +377,7 @@ export interface NetworkRibbonEdge {
|
|
|
381
377
|
_cachedPath2DSource?: string;
|
|
382
378
|
}
|
|
383
379
|
/** Curved edge — used by tree, cluster */
|
|
384
|
-
export interface NetworkCurvedEdge {
|
|
380
|
+
export interface NetworkCurvedEdge extends NetworkEdgeMetadata {
|
|
385
381
|
type: "curved";
|
|
386
382
|
pathD: string;
|
|
387
383
|
style: Style;
|
|
@@ -486,8 +482,8 @@ export interface NetworkPipelineConfig {
|
|
|
486
482
|
tensionConfig?: TensionConfig;
|
|
487
483
|
showParticles?: boolean;
|
|
488
484
|
particleStyle?: ParticleStyle;
|
|
489
|
-
nodeStyle?: (d: Datum) =>
|
|
490
|
-
edgeStyle?: (d: Datum) =>
|
|
485
|
+
nodeStyle?: (d: Datum) => NetworkMarkStyle;
|
|
486
|
+
edgeStyle?: (d: Datum) => NetworkMarkStyle;
|
|
491
487
|
nodeLabel?: string | ((d: Datum) => string);
|
|
492
488
|
showLabels?: boolean;
|
|
493
489
|
labelMode?: "leaf" | "parent" | "all";
|
|
@@ -595,8 +591,8 @@ export interface StreamNetworkFrameProps<T = Datum> extends StreamNetworkInterac
|
|
|
595
591
|
tensionConfig?: Partial<TensionConfig>;
|
|
596
592
|
showParticles?: boolean;
|
|
597
593
|
particleStyle?: ParticleStyle;
|
|
598
|
-
nodeStyle?: (d: Datum) =>
|
|
599
|
-
edgeStyle?: (d: Datum) =>
|
|
594
|
+
nodeStyle?: (d: Datum) => NetworkMarkStyle;
|
|
595
|
+
edgeStyle?: (d: Datum) => NetworkMarkStyle;
|
|
600
596
|
colorBy?: string | ((d: Datum) => string | number);
|
|
601
597
|
colorScheme?: string | string[] | Record<string, string>;
|
|
602
598
|
edgeColorBy?: "source" | "target" | "gradient" | ((d: Datum) => string);
|
|
@@ -618,6 +614,8 @@ export interface StreamNetworkFrameProps<T = Datum> extends StreamNetworkInterac
|
|
|
618
614
|
};
|
|
619
615
|
className?: string;
|
|
620
616
|
background?: string;
|
|
617
|
+
/** Maximum canvas backing-store DPR; defaults to the environment cap. */
|
|
618
|
+
maxDevicePixelRatio?: number;
|
|
621
619
|
legend?: LegendValue;
|
|
622
620
|
legendPosition?: "right" | "left" | "top" | "bottom";
|
|
623
621
|
legendLayout?: LegendLayout;
|
|
@@ -630,8 +628,10 @@ export interface StreamNetworkFrameProps<T = Datum> extends StreamNetworkInterac
|
|
|
630
628
|
legendHighlightedCategory?: string | null;
|
|
631
629
|
legendIsolatedCategories?: Set<string>;
|
|
632
630
|
title?: string | ReactNode;
|
|
633
|
-
|
|
634
|
-
|
|
631
|
+
/** SVG above the canvas. Network layouts have no shared scale object, so callback `scales` is null. */
|
|
632
|
+
foregroundGraphics?: FrameGraphicsProp<null>;
|
|
633
|
+
/** SVG behind the canvas. Network layouts have no shared scale object, so callback `scales` is null. */
|
|
634
|
+
backgroundGraphics?: FrameGraphicsProp<null>;
|
|
635
635
|
decay?: DecayConfig;
|
|
636
636
|
pulse?: PulseConfig;
|
|
637
637
|
transition?: TransitionConfig;
|
|
@@ -662,7 +662,7 @@ export interface StreamNetworkFrameProps<T = Datum> extends StreamNetworkInterac
|
|
|
662
662
|
orbitShowRings?: boolean;
|
|
663
663
|
orbitAnimated?: boolean;
|
|
664
664
|
/** Render a visually-hidden data table from the scene graph for screen readers */
|
|
665
|
-
accessibleTable?:
|
|
665
|
+
accessibleTable?: AccessibleTableProp;
|
|
666
666
|
/** Accessible description overriding the auto-generated aria-label on the chart container */
|
|
667
667
|
description?: string;
|
|
668
668
|
/** Accessible summary rendered as a screen-reader-only note */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
|
+
/**
|
|
3
|
+
* Normalize the grouped line shape accepted by the XY frame into the flat
|
|
4
|
+
* datum stream consumed by PipelineStore. Keeping this at the frame boundary
|
|
5
|
+
* makes controlled CSR, direct React SSR, and the static renderer agree.
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeXYData(data: Datum[], lineDataAccessor?: string): Datum[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OrdinalPipelineStore } from "./OrdinalPipelineStore";
|
|
2
|
+
import type { CursorFrameGeometry } from "./frameCursorInteraction";
|
|
3
|
+
export declare function rehitOrdinalFrameCursor(options: CursorFrameGeometry & {
|
|
4
|
+
store: OrdinalPipelineStore;
|
|
5
|
+
hoverRadius: number;
|
|
6
|
+
projection: "vertical" | "horizontal" | "radial";
|
|
7
|
+
}): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Quadtree } from "d3-quadtree";
|
|
2
|
+
import { type OrdinalHitResult } from "./OrdinalCanvasHitTester";
|
|
3
|
+
import type { HoverData, OrdinalSceneNode, OrdinalScales, StreamOrdinalFrameProps } from "./ordinalTypes";
|
|
4
|
+
import type { PointSceneNode } from "./types";
|
|
5
|
+
export type OrdinalPointerResolution = {
|
|
6
|
+
kind: "outside" | "miss";
|
|
7
|
+
} | {
|
|
8
|
+
kind: "hit";
|
|
9
|
+
hit: OrdinalHitResult;
|
|
10
|
+
};
|
|
11
|
+
export declare function resolveOrdinalPointerHit(options: {
|
|
12
|
+
pointer: {
|
|
13
|
+
clientX: number;
|
|
14
|
+
clientY: number;
|
|
15
|
+
};
|
|
16
|
+
canvasRect: Pick<DOMRect, "left" | "top">;
|
|
17
|
+
margin: {
|
|
18
|
+
left: number;
|
|
19
|
+
top: number;
|
|
20
|
+
};
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
projection: OrdinalScales["projection"];
|
|
24
|
+
hoverRadius: number;
|
|
25
|
+
scene: OrdinalSceneNode[];
|
|
26
|
+
pointQuadtree: Quadtree<PointSceneNode> | null;
|
|
27
|
+
maxPointRadius: number;
|
|
28
|
+
}): OrdinalPointerResolution;
|
|
29
|
+
export declare function ordinalHitToHover(hit: OrdinalHitResult, options: Pick<StreamOrdinalFrameProps, "oAccessor" | "rAccessor" | "chartType">): HoverData;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OrdinalSceneNode } from "./ordinalTypes";
|
|
2
|
+
import type { SceneRenderMode } from "./types";
|
|
3
|
+
import { type RenderedSceneEntry } from "./renderBackend";
|
|
4
|
+
type OrdinalSceneEntry = RenderedSceneEntry<OrdinalSceneNode>;
|
|
5
|
+
export declare function renderOrdinalSceneListWithBackend(args: {
|
|
6
|
+
nodes: OrdinalSceneNode[];
|
|
7
|
+
renderMode: SceneRenderMode<OrdinalSceneNode> | undefined;
|
|
8
|
+
idPrefix?: string;
|
|
9
|
+
}): OrdinalSceneEntry[];
|
|
10
|
+
export {};
|
|
@@ -11,6 +11,10 @@ import type { OnObservationCallback } from "../store/ObservationStore";
|
|
|
11
11
|
import type { SemanticClickBehavior, SemanticHoverBehavior } from "../charts/shared/semanticInteractions";
|
|
12
12
|
import type { OnAnnotationActivateCallback } from "../charts/shared/annotationActivation";
|
|
13
13
|
import type { GradientConfig, GradientInput } from "../charts/shared/gradient";
|
|
14
|
+
import type { AccessibleTableProp } from "./accessibleTableTypes";
|
|
15
|
+
/** A fixed radius or a deterministic radius derived from the rendered bar
|
|
16
|
+
* width (the category-axis bandwidth, in pixels). */
|
|
17
|
+
export type BarCornerRadius = number | ((barWidth: number) => number);
|
|
14
18
|
export type OrdinalChartType = "bar" | "clusterbar" | "point" | "swarm" | "pie" | "donut" | "boxplot" | "violin" | "histogram" | "ridgeline" | "timeline" | "funnel" | "bar-funnel" | "swimlane" | "custom";
|
|
15
19
|
export interface OrdinalScales {
|
|
16
20
|
o: ScaleBand<string>;
|
|
@@ -222,8 +226,8 @@ export interface OrdinalPipelineConfig {
|
|
|
222
226
|
rExtent?: [number?, number?];
|
|
223
227
|
oExtent?: string[];
|
|
224
228
|
barPadding?: number;
|
|
225
|
-
/** Rounded top corner radius for bar charts. Only the end away from the baseline is rounded. For stacked bars, only the topmost segment gets rounded. */
|
|
226
|
-
roundedTop?:
|
|
229
|
+
/** Rounded top corner radius for bar charts. Only the end away from the baseline is rounded. For stacked bars, only the topmost segment gets rounded. A callback receives the rendered bar width in pixels. */
|
|
230
|
+
roundedTop?: BarCornerRadius;
|
|
227
231
|
/** Gradient fill for bar rects. Offset 0 is the tip; offset 1 is the base. */
|
|
228
232
|
gradientFill?: GradientConfig;
|
|
229
233
|
/** Swimlane "track" fill — a rect drawn behind each lane spanning the
|
|
@@ -326,8 +330,10 @@ export interface StreamOrdinalFrameProps<T = Datum> {
|
|
|
326
330
|
bottom?: number;
|
|
327
331
|
left?: number;
|
|
328
332
|
};
|
|
333
|
+
/** Maximum canvas backing-store DPR; defaults to the environment cap. */
|
|
334
|
+
maxDevicePixelRatio?: number;
|
|
329
335
|
barPadding?: number;
|
|
330
|
-
roundedTop?:
|
|
336
|
+
roundedTop?: BarCornerRadius;
|
|
331
337
|
/** Gradient fill for bar rects. Offset 0 is the tip; offset 1 is the base. */
|
|
332
338
|
gradientFill?: GradientInput;
|
|
333
339
|
/** Swimlane "track" fill — see OrdinalPipelineConfig.trackFill */
|
|
@@ -394,6 +400,8 @@ export interface StreamOrdinalFrameProps<T = Datum> {
|
|
|
394
400
|
/** @deprecated Use valueFormat */
|
|
395
401
|
rFormat?: (d: number | string) => string;
|
|
396
402
|
enableHover?: boolean;
|
|
403
|
+
/** Maximum distance in pixels for point/symbol hover and click hit testing. */
|
|
404
|
+
hoverRadius?: number;
|
|
397
405
|
hoverAnnotation?: boolean | HoverAnnotationConfig;
|
|
398
406
|
tooltipContent?: (d: HoverData) => ReactNode;
|
|
399
407
|
customHoverBehavior?: SemanticHoverBehavior<HoverData>;
|
|
@@ -464,7 +472,7 @@ export interface StreamOrdinalFrameProps<T = Datum> {
|
|
|
464
472
|
/** Freeze logical animation time while the document is hidden. Defaults to true. */
|
|
465
473
|
suspendWhenHidden?: boolean;
|
|
466
474
|
/** Render a visually-hidden data table from the scene graph for screen readers */
|
|
467
|
-
accessibleTable?:
|
|
475
|
+
accessibleTable?: AccessibleTableProp;
|
|
468
476
|
/** Accessible description overriding the auto-generated aria-label on the chart container */
|
|
469
477
|
description?: string;
|
|
470
478
|
/** Accessible summary rendered as a screen-reader-only note */
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { PhysicsEngineAdapter } from "./PhysicsEngineAdapter";
|
|
2
2
|
import type { PhysicsBodyState } from "./PhysicsKernel";
|
|
3
|
+
export interface PhysicsBodyHitTestOptions {
|
|
4
|
+
/** Skip bodies that cannot satisfy this hit-test channel. */
|
|
5
|
+
include?: (body: PhysicsBodyState) => boolean;
|
|
6
|
+
/** Maximum center-to-pointer extent for the custom geometry. */
|
|
7
|
+
searchRadius?: number;
|
|
8
|
+
/** Return a sortable distance for a hit, or null for a miss. */
|
|
9
|
+
distanceSquared?: (body: PhysicsBodyState, x: number, y: number) => number | null;
|
|
10
|
+
}
|
|
3
11
|
/** Revision-keyed body index used by PhysicsPipelineStore hit testing. */
|
|
4
12
|
export declare class PhysicsBodySpatialIndex {
|
|
5
13
|
private maxSearchRadius;
|
|
6
14
|
private revision;
|
|
7
15
|
private tree;
|
|
8
|
-
hitTest(world: PhysicsEngineAdapter, revision: number, liveBodyOrder: readonly string[], x: number, y: number, radius?: number): PhysicsBodyState | null;
|
|
16
|
+
hitTest(world: PhysicsEngineAdapter, revision: number, liveBodyOrder: readonly string[], x: number, y: number, radius?: number, options?: PhysicsBodyHitTestOptions): PhysicsBodyState | null;
|
|
9
17
|
private ensure;
|
|
10
18
|
}
|
|
@@ -22,5 +22,30 @@ export interface PhysicsCanvasTheme {
|
|
|
22
22
|
warning: string;
|
|
23
23
|
}
|
|
24
24
|
export declare const DEFAULT_PHYSICS_CANVAS_THEME: PhysicsCanvasTheme;
|
|
25
|
+
type CSSVarCandidate = {
|
|
26
|
+
fallback: string;
|
|
27
|
+
names: string[];
|
|
28
|
+
};
|
|
29
|
+
declare const THEME_CANDIDATES: Record<"background" | "border" | "danger" | "focus" | "grid" | "primary" | "success" | "text" | "textSecondary" | "warning", CSSVarCandidate>;
|
|
30
|
+
export type PhysicsCanvasThemeCSSKey = keyof typeof THEME_CANDIDATES;
|
|
31
|
+
/**
|
|
32
|
+
* Serialize the canvas theme's ordered CSS-variable candidates for SVG/SSR.
|
|
33
|
+
*
|
|
34
|
+
* Canvas reads the first non-empty computed custom property at paint time.
|
|
35
|
+
* A nested `var()` chain gives settled SVG the same candidate order and the
|
|
36
|
+
* same unthemed fallback without requiring DOM style inspection on the server.
|
|
37
|
+
*/
|
|
38
|
+
export declare function physicsCanvasThemeCSSValue(key: PhysicsCanvasThemeCSSKey): string;
|
|
25
39
|
export declare function physicsCanvasColorWithAlpha(color: string, opacity: number): string;
|
|
26
40
|
export declare function resolvePhysicsCanvasTheme(ctx: CanvasRenderingContext2D): PhysicsCanvasTheme;
|
|
41
|
+
/**
|
|
42
|
+
* Version-keyed per-frame cache for the derived physics palette. Continuous
|
|
43
|
+
* simulations can call this every tick without forcing style recalculation;
|
|
44
|
+
* ThemeProvider and scoped CSS invalidation bump the shared color-cache
|
|
45
|
+
* version before the next paint.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createPhysicsCanvasThemeCache(): {
|
|
48
|
+
resolve(ctx: CanvasRenderingContext2D): PhysicsCanvasTheme;
|
|
49
|
+
invalidate(): void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -70,6 +70,3 @@ export declare function createPortalController(options: {
|
|
|
70
70
|
onPortal?: (body: PhysicsBodyState) => void;
|
|
71
71
|
}): PhysicsController;
|
|
72
72
|
export type PhysicsControllerFactory = typeof createCapacityQueueController;
|
|
73
|
-
export { createDependencyGateController, createServiceLevelController, createServiceResourcePoolController } from "./ServiceOperationsControllers";
|
|
74
|
-
export type { DependencyGateController, ServiceLevelController, ServiceResourcePoolController } from "./ServiceOperationsControllers";
|
|
75
|
-
export type { DependencyGateOptions, DependencyGateSnapshot, ServiceLevelCaseInfo, ServiceLevelCaseState, ServiceLevelControllerOptions, ServiceLevelSnapshot, ServiceResourceAssignment, ServiceResourceDefinition, ServiceResourcePoolOptions, ServiceResourcePoolSnapshot } from "./ServiceOperationsTypes";
|