semiotic 3.10.1 → 3.10.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 +64 -63
- package/ai/artifact-surface-inventory.json +4 -1
- package/ai/behaviorContracts.cjs +1 -1
- package/ai/dist/mcp-server.js +25 -24
- package/ai/examples.md +28 -0
- package/ai/reference.md +9 -4
- package/ai/schema.json +121 -5
- package/ai/surface-manifest.json +3 -2
- package/ai/system-prompt.md +1 -1
- package/ai/task-packets/compare-category-totals.json +7 -53
- package/ai/task-packets/compare-category-totals.md +4 -4
- package/ai/task-packets/correct-published-chart.json +7 -53
- package/ai/task-packets/correct-published-chart.md +4 -4
- package/ai/task-packets/index.json +9 -9
- package/ai/task-packets/update-live-chart.json +8 -54
- package/ai/task-packets/update-live-chart.md +4 -4
- package/dist/c-27DCB5T6.min.js +18 -0
- package/dist/c-2MONF2P6.min.js +1 -0
- package/dist/c-3AGX252H.min.js +1 -0
- package/dist/c-3B6JZEZT.min.js +1 -0
- package/dist/c-3BYZXCX3.min.js +4 -0
- package/dist/c-3DIPZJDO.min.js +1 -0
- package/dist/c-3FOUMWLR.min.js +1 -0
- package/dist/c-3NA6I656.min.js +2 -0
- package/dist/c-3OFVBWQY.min.js +1 -0
- package/dist/{c-QA3HMQJP.min.js → c-3PFVJFBK.min.js} +1 -1
- package/dist/c-3PPO7ZJF.min.js +4 -0
- package/dist/c-3YEW2PK6.min.js +1 -0
- package/dist/c-43XNOQNQ.min.js +391 -0
- package/dist/c-4JKDJUYD.min.js +1 -0
- package/dist/c-4LKK5YWB.min.js +1 -0
- package/dist/c-4V3CD337.min.js +1 -0
- package/dist/c-4XLHPQTP.min.js +1 -0
- package/dist/c-5NYONM6V.min.js +5 -0
- package/dist/c-5PIKBUMF.min.js +1 -0
- package/dist/c-6IVBV5NO.min.js +1 -0
- package/dist/c-7APWCEPL.min.js +1 -0
- package/dist/{c-ORLEBW72.min.js → c-7FKPPCGN.min.js} +1 -1
- package/dist/c-ABMGCCLT.min.js +1 -0
- package/dist/c-AINGQGUN.min.js +1 -0
- package/dist/c-AXJ2QI3F.min.js +1 -0
- package/dist/c-BQYD7T4E.min.js +1 -0
- package/dist/{c-V4XMSLC3.min.js → c-BYJJ7EMG.min.js} +1 -1
- package/dist/c-C4SXYFXL.min.js +1 -0
- package/dist/c-CLDCKFBE.min.js +1 -0
- package/dist/c-CLJCJSFU.min.js +1 -0
- package/dist/c-CLLCX3PT.min.js +2 -0
- package/dist/c-CO4NDAD6.min.js +51 -0
- package/dist/c-ECHBKW7U.min.js +1 -0
- package/dist/c-EPJWM2UT.min.js +1 -0
- package/dist/c-FD2BXSRG.min.js +1 -0
- package/dist/c-FHNY57SO.min.js +209 -0
- package/dist/c-FMCUQ6JX.min.js +1 -0
- package/dist/c-FOTTQHOO.min.js +1 -0
- package/dist/c-FU7A5KSY.min.js +1 -0
- package/dist/c-GHN6IR4Y.min.js +1 -0
- package/dist/{c-J6DVC236.min.js → c-GK263BF4.min.js} +1 -1
- package/dist/c-GSCO3FWL.min.js +1 -0
- package/dist/c-GYLOSK7M.min.js +1 -0
- package/dist/c-HK4OSLZA.min.js +1 -0
- package/dist/c-HLGTD5SJ.min.js +1 -0
- package/dist/c-HNHKIMIV.min.js +61 -0
- package/dist/{c-D6HAAPTX.min.js → c-IBRLFKWA.min.js} +1 -1
- package/dist/c-IIV73MUW.min.js +1 -0
- package/dist/c-IJCZGUG6.min.js +31 -0
- package/dist/c-ISA6IJ6V.min.js +41 -0
- package/dist/c-JC76YAHB.min.js +33 -0
- package/dist/c-JJKRER47.min.js +1 -0
- package/dist/c-JO6AYCU4.min.js +1 -0
- package/dist/c-JOPGDP6N.min.js +1 -0
- package/dist/c-JWHPG6S2.min.js +1 -0
- package/dist/c-JXVYIXTV.min.js +1 -0
- package/dist/c-K2ZIYDI3.min.js +1 -0
- package/dist/c-K37JAIWA.min.js +4 -0
- package/dist/c-KXH7LFIL.min.js +26 -0
- package/dist/c-M43PK7K4.min.js +1 -0
- package/dist/c-MTX2AO5S.min.js +1 -0
- package/dist/c-N5WT7TXG.min.js +1 -0
- package/dist/c-NATWERHZ.min.js +1 -0
- package/dist/{c-42PLDTX7.min.js → c-O53GOO7H.min.js} +1 -1
- package/dist/c-OVQB75PE.min.js +1 -0
- package/dist/c-P3SKRNZN.min.js +1 -0
- package/dist/c-P5NXQWIM.min.js +1 -0
- package/dist/c-P7BQMVQQ.min.js +1 -0
- package/dist/{c-GNTXRXRN.min.js → c-PDQHLOKU.min.js} +1 -1
- package/dist/c-PITYSOPK.min.js +1 -0
- package/dist/c-QPO24R7Q.min.js +1 -0
- package/dist/c-QXLDCATV.min.js +1 -0
- package/dist/c-R2HUSWKB.min.js +1 -0
- package/dist/{c-HYW2XA4Q.min.js → c-RHDOOQ4X.min.js} +1 -1
- package/dist/c-RZPP5ERV.min.js +1 -0
- package/dist/c-SAP5KY6R.min.js +9 -0
- package/dist/{c-WUWXGQYA.min.js → c-SJIB5RNI.min.js} +1 -1
- package/dist/c-SQNEVNWT.min.js +1 -0
- package/dist/c-STHZWF3D.min.js +1 -0
- package/dist/c-TIDKVMMZ.min.js +1 -0
- package/dist/c-TIMGODBG.min.js +1 -0
- package/dist/c-TR7OHUAO.min.js +2 -0
- package/dist/c-TVKZC4BY.min.js +1 -0
- package/dist/c-U5XVLSHN.min.js +1 -0
- package/dist/c-U6NLVFN4.min.js +1 -0
- package/dist/{c-VJTDST2R.min.js → c-UBHICVSC.min.js} +1 -1
- package/dist/c-UMGHCBH5.min.js +114 -0
- package/dist/c-UOPPO26M.min.js +1 -0
- package/dist/c-UUDAON4Z.min.js +1 -0
- package/dist/c-V32TPPY2.min.js +1 -0
- package/dist/c-V5KFJWQQ.min.js +1 -0
- package/dist/c-VEMCBQZZ.min.js +100 -0
- package/dist/{c-P65V6HLO.min.js → c-VN557BQE.min.js} +1 -1
- package/dist/c-WD2RL76M.min.js +116 -0
- package/dist/c-Y342FJ6K.min.js +1 -0
- package/dist/c-YL7HJL5J.min.js +1 -0
- package/dist/c-YM6CT4LJ.min.js +1 -0
- package/dist/{c-MVR3RWF3.min.js → c-YMFUIO54.min.js} +1 -1
- package/dist/c-YQVOKPKR.min.js +1 -0
- package/dist/c-YRJ3BJQZ.min.js +1 -0
- package/dist/c-YT5KPVNP.min.js +1 -0
- package/dist/c-Z6GRGS53.min.js +1 -0
- package/dist/c-ZVOFLE2P.min.js +46 -0
- package/dist/components/CategoryColors.d.ts +7 -0
- package/dist/components/LinkedCharts.d.ts +2 -1
- package/dist/components/ai/audienceProfile.d.ts +18 -1
- package/dist/components/ai/describeChart.d.ts +5 -1
- package/dist/components/ai/intentManifest.d.ts +16 -0
- package/dist/components/ai/intentRegistry.d.ts +12 -0
- package/dist/components/ai/intents.d.ts +6 -6
- package/dist/components/ai/streamSchema.d.ts +19 -0
- package/dist/components/ai/streamingTypes.d.ts +57 -11
- package/dist/components/ai/suggestCharts.d.ts +1 -1
- package/dist/components/ai/suggestStreamCharts.d.ts +43 -8
- package/dist/components/ai/suggestStreamDashboard.d.ts +35 -0
- package/dist/components/ai/variantDiscovery.d.ts +1 -1
- package/dist/components/charts/ordinal/BarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/DonutChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/GroupedBarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/PieChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeAccumulator.d.ts +14 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +6 -5
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +5 -1
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +2 -161
- package/dist/components/charts/realtime/RealtimeLineChart.types.d.ts +175 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +6 -5
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +6 -5
- package/dist/components/charts/realtime/aggregate.d.ts +11 -1
- package/dist/components/charts/realtime/resolveWindowSize.d.ts +1 -1
- package/dist/components/charts/shared/DirectLabelLayer.d.ts +25 -0
- package/dist/components/charts/shared/directLabels.d.ts +12 -0
- package/dist/components/charts/shared/knownChartComponents.d.ts +4 -1
- package/dist/components/charts/shared/lineSeriesSsr.d.ts +0 -12
- package/dist/components/charts/shared/useChartSetup.d.ts +3 -1
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +1 -1
- package/dist/components/charts/value/BigNumber.streamCapability.d.ts +2 -0
- package/dist/components/charts/value/GaugeChart.streamCapability.d.ts +2 -0
- package/dist/components/charts/xy/BubbleChart.d.ts +4 -1
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +4 -1
- package/dist/components/charts/xy/LineChart.d.ts +4 -1
- package/dist/components/charts/xy/Scatterplot.d.ts +7 -0
- package/dist/components/data/transforms.d.ts +1 -0
- package/dist/components/realtime/HyperLogLog.d.ts +19 -0
- package/dist/components/realtime/ReorderBuffer.d.ts +2 -2
- package/dist/components/realtime/TDigest.d.ts +22 -0
- package/dist/components/realtime/WindowAccumulator.d.ts +22 -5
- package/dist/components/realtime/applyChangelog.d.ts +38 -0
- package/dist/components/realtime/minHeap.d.ts +3 -0
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +1 -1
- package/dist/components/recipes/layout1d.d.ts +2 -20
- package/dist/components/recipes/minGapPlacement.d.ts +20 -0
- package/dist/components/semiotic-ai-core.d.ts +8 -3
- package/dist/components/semiotic-ai-stream.d.ts +10 -0
- package/dist/components/semiotic-ai.d.ts +4 -6
- package/dist/components/semiotic-realtime-core.d.ts +6 -2
- package/dist/components/semiotic-stream-types.d.ts +14 -0
- package/dist/components/semiotic-xy.d.ts +1 -0
- package/dist/components/semiotic.d.ts +3 -11
- package/dist/components/server/encodeSvgFramesToGif.d.ts +2 -0
- package/dist/components/server/rasterizeSVG.d.ts +2 -0
- package/dist/components/server/registerServerXYPlugins.d.ts +2 -0
- package/dist/components/server/renderEvidence.d.ts +4 -0
- package/dist/components/server/serverChartConfigs.d.ts +5 -0
- package/dist/components/server/serverChartConfigsRealtime.d.ts +6 -0
- package/dist/components/server/serverRealtimeCategoryColors.d.ts +3 -0
- package/dist/components/server/staticAnnotations.d.ts +9 -0
- package/dist/components/stream/SceneGraph.d.ts +3 -3
- package/dist/components/stream/StalenessBadge.d.ts +5 -2
- package/dist/components/stream/pipelinePathJoin.d.ts +27 -0
- package/dist/components/stream/pipelineTransitionTypes.d.ts +43 -0
- package/dist/components/stream/pipelineTransitions.d.ts +5 -35
- package/dist/components/stream/seriesGeometry.d.ts +2 -1
- package/dist/components/stream/streamEncodingTypes.d.ts +9 -0
- package/dist/components/stream/types.d.ts +25 -2
- package/dist/components/text/axisLabelAssessment.d.ts +15 -0
- package/dist/components/text/browserAxisLabelAssessment.d.ts +1 -0
- package/dist/components/text/browserLabelMeasurement.d.ts +3 -0
- package/dist/components/text/labelMeasurement.d.ts +19 -0
- package/dist/components/text/labelPlacement.d.ts +71 -0
- package/dist/components/text/useAxisLabelAssessment.d.ts +6 -0
- package/dist/components/text/useLabelMeasurer.d.ts +3 -0
- package/dist/controls.module.min.js +71 -1
- package/dist/geo.min.js +231 -1
- package/dist/geo.module.min.js +31 -1
- package/dist/network.module.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.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/rough.min.js +2 -1
- package/dist/rough.module.min.js +2 -1
- package/dist/semiotic-access.module.min.js +1 -1
- package/dist/semiotic-ai-artifact-policy-constants.module.min.js +1 -1
- package/dist/semiotic-ai-core.d.ts +8 -3
- package/dist/semiotic-ai-core.min.js +4 -1
- package/dist/semiotic-ai-core.module.min.js +4 -1
- package/dist/semiotic-ai-hash-primitives.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +4 -6
- package/dist/semiotic-ai.module.min.js +14 -1
- package/dist/semiotic-artifact-react.min.js +269 -1
- package/dist/semiotic-artifact-react.module.min.js +137 -1
- package/dist/semiotic-artifact.min.js +3 -1
- package/dist/semiotic-artifact.module.min.js +3 -1
- package/dist/semiotic-atlas-core.min.js +2 -1
- package/dist/semiotic-atlas-core.module.min.js +1 -1
- package/dist/semiotic-atlas-selection.module.min.js +1 -1
- package/dist/semiotic-atlas.module.min.js +11 -1
- package/dist/semiotic-client-cjs-shared.min.js +1530 -1
- package/dist/semiotic-client-glyph.module.min.js +3 -1
- package/dist/semiotic-client-responsive.module.min.js +1 -1
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +2 -1
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-evidence.min.js +3 -1
- package/dist/semiotic-evidence.module.min.js +3 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +8 -1
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +8 -1
- package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-vacp.min.js +1 -1
- package/dist/semiotic-experimental-vacp.module.min.js +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-realtime-core.d.ts +6 -2
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +160 -1
- package/dist/semiotic-recipes-core.module.min.js +72 -1
- package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
- package/dist/semiotic-recipes-react.min.js +3 -1
- package/dist/semiotic-server-edge-node.module.min.js +391 -1
- package/dist/semiotic-server-edge.min.js +651 -1
- package/dist/semiotic-server-edge.module.min.js +372 -1
- package/dist/semiotic-server-node.min.js +651 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-text.min.js +1 -1
- package/dist/semiotic-text.module.min.js +1 -1
- package/dist/semiotic-themes-core.min.js +1 -1
- package/dist/semiotic-themes-core.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.min.js +11 -1
- package/dist/semiotic-utils-core.module.min.js +8 -1
- package/dist/semiotic-value.module.min.js +15 -1
- package/dist/semiotic-xy.d.ts +1 -0
- package/dist/semiotic.d.ts +3 -11
- package/dist/semiotic.module.min.js +10 -1
- package/dist/server.min.js +651 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +8 -7
- package/dist/c-2N7IU2NY.min.js +0 -1
- package/dist/c-2RL2QPZJ.min.js +0 -1
- package/dist/c-2WK7YJLL.min.js +0 -1
- package/dist/c-45CQWZZ6.min.js +0 -1
- package/dist/c-4BRHKVKV.min.js +0 -1
- package/dist/c-7242NXSG.min.js +0 -1
- package/dist/c-7DVPSB5C.min.js +0 -1
- package/dist/c-7EGHJU2F.min.js +0 -1
- package/dist/c-A7OGOFSL.min.js +0 -1
- package/dist/c-AFBSWT77.min.js +0 -1
- package/dist/c-AH5HWZWS.min.js +0 -1
- package/dist/c-AJ7EC32V.min.js +0 -1
- package/dist/c-AQADQNY7.min.js +0 -1
- package/dist/c-ATM475SA.min.js +0 -1
- package/dist/c-AVO3Q7T7.min.js +0 -1
- package/dist/c-B7GW7IHJ.min.js +0 -1
- package/dist/c-BNFJMDHN.min.js +0 -1
- package/dist/c-BOHCQILI.min.js +0 -1
- package/dist/c-C3TZLTZK.min.js +0 -1
- package/dist/c-CGQAQWBV.min.js +0 -1
- package/dist/c-CPV4N35K.min.js +0 -1
- package/dist/c-DIPEYUOW.min.js +0 -1
- package/dist/c-E4JDJH4I.min.js +0 -1
- package/dist/c-E72OTUZU.min.js +0 -1
- package/dist/c-E7I2L7CU.min.js +0 -1
- package/dist/c-ELDWAO2V.min.js +0 -1
- package/dist/c-EUBTECGM.min.js +0 -1
- package/dist/c-EUMPMDCS.min.js +0 -1
- package/dist/c-EZZT2WAE.min.js +0 -1
- package/dist/c-FHBVFCQB.min.js +0 -1
- package/dist/c-G4HCO2IQ.min.js +0 -1
- package/dist/c-G5VIJEOK.min.js +0 -1
- package/dist/c-GHVOXAYH.min.js +0 -1
- package/dist/c-GXV3C3MO.min.js +0 -1
- package/dist/c-HHTK2R75.min.js +0 -1
- package/dist/c-HLLFJYTY.min.js +0 -1
- package/dist/c-HP4ZFM47.min.js +0 -1
- package/dist/c-HPOYKCCG.min.js +0 -1
- package/dist/c-HYDTS5OP.min.js +0 -1
- package/dist/c-I4QJ6YLM.min.js +0 -1
- package/dist/c-IK33LNZ6.min.js +0 -1
- package/dist/c-IK3PZHRY.min.js +0 -1
- package/dist/c-JIMJF6F6.min.js +0 -1
- package/dist/c-JUKIWTBJ.min.js +0 -1
- package/dist/c-KKPMHAZC.min.js +0 -1
- package/dist/c-L6WNDBHV.min.js +0 -1
- package/dist/c-LDEX5OFW.min.js +0 -1
- package/dist/c-LESEUVC5.min.js +0 -1
- package/dist/c-LYQMZMZQ.min.js +0 -1
- package/dist/c-MB6CV5NC.min.js +0 -1
- package/dist/c-MOKJOIPE.min.js +0 -1
- package/dist/c-N3FXLRNT.min.js +0 -1
- package/dist/c-N5NPTJVJ.min.js +0 -1
- package/dist/c-NHBL4J67.min.js +0 -1
- package/dist/c-ODG6TFSY.min.js +0 -1
- package/dist/c-PRIKOLTE.min.js +0 -1
- package/dist/c-PSKKFZNP.min.js +0 -1
- package/dist/c-PSNI6KAZ.min.js +0 -1
- package/dist/c-QAVFOEUY.min.js +0 -1
- package/dist/c-R2P4RR7Q.min.js +0 -1
- package/dist/c-RFC7UAG7.min.js +0 -1
- package/dist/c-S3AZX5PP.min.js +0 -1
- package/dist/c-SGAURYHG.min.js +0 -1
- package/dist/c-SJMWU6UX.min.js +0 -1
- package/dist/c-STIIGQOD.min.js +0 -1
- package/dist/c-T2ASIJVZ.min.js +0 -1
- package/dist/c-T2V7O2LO.min.js +0 -1
- package/dist/c-TKG2NP7G.min.js +0 -1
- package/dist/c-TX3THUTO.min.js +0 -1
- package/dist/c-TX7XJM3Z.min.js +0 -1
- package/dist/c-UC7SIU2W.min.js +0 -1
- package/dist/c-UMXSJIOV.min.js +0 -1
- package/dist/c-VRSXMLYF.min.js +0 -1
- package/dist/c-VSLWSAN2.min.js +0 -1
- package/dist/c-VXLOLYTO.min.js +0 -1
- package/dist/c-W4ZUKSEQ.min.js +0 -1
- package/dist/c-WCBRPILW.min.js +0 -1
- package/dist/c-WGHT7OCY.min.js +0 -1
- package/dist/c-WWCW3APR.min.js +0 -1
- package/dist/c-XSB27XPS.min.js +0 -1
- package/dist/c-Y6PYUMFU.min.js +0 -1
- package/dist/c-YDECTEUW.min.js +0 -1
- package/dist/c-YF3YKVQI.min.js +0 -1
- package/dist/c-YLZIV3VS.min.js +0 -1
- package/dist/c-ZIVPFTOC.min.js +0 -1
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function e({def:e,color:t,accent:r,paintOverride:
|
|
2
|
+
function e({def:e,color:t,accent:r,paintOverride:i}){/* @__PURE__ */
|
|
3
|
+
return c(a,{children:e.parts.map((e,n)=>{let a=i?"none"===e.fill?void 0:i:o(e.fill,t,r),l=i?e.stroke&&"none"!==e.stroke?i:void 0:o(e.stroke??"none",t,r);return a||l?/* @__PURE__ */c("path",{d:e.d,fill:a??"none",stroke:l,strokeWidth:l?e.strokeWidth??1:void 0,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin,opacity:e.opacity},n):null})})}function t({def:t,size:o=24,color:a="currentColor",accent:s="#ffffff",fraction:d=1,fractionStart:f=0,fractionDirection:p="horizontal",ghostColor:h,x:u=0,y:m=0,opacity:k,className:g}){let y=n.useId();if(!t?.parts?.length)return null;let[,x]=t.viewBox??r,v=o/(x>0?x:1);if(0>=v)return null;let j=i(t,d,f,p),L=j?"glyph-clip"+y.replace(/[^A-Za-z0-9_-]/g,"_"):void 0;/* @__PURE__ */
|
|
4
|
+
return l("g",{className:g,transform:`translate(${u} ${m}) scale(${v})`,opacity:k,"aria-hidden":"true",children:[j&&L&&/* @__PURE__ */c("clipPath",{id:L,children:/* @__PURE__ */c("rect",{x:j.x,y:j.y,width:j.width,height:j.height})}),j&&h?/* @__PURE__ */c(e,{def:t,color:a,accent:s,paintOverride:h}):null,j&&L?/* @__PURE__ */c("g",{clipPath:`url(#${L})`,children:/* @__PURE__ */c(e,{def:t,color:a,accent:s})}):/* @__PURE__ */c(e,{def:t,color:a,accent:s})]})}import{a as r,b as o,c as i}from"./c-C4SXYFXL.min.js";import*as n from"react";import{Fragment as a,jsx as c,jsxs as l}from"react/jsx-runtime";export{t as Glyph};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function
|
|
2
|
+
function e(e,t=0,i=1/0,n=0){let h=Number.isFinite(t)?t:0,r=Number.isFinite(i)?Math.max(h,i):1/0,s=Number.isFinite(e)?Math.floor(e):h,a=Math.max(h,Math.min(r,s));return n>0&&Number.isFinite(n)?Math.max(h,Math.min(r,Math.round(a/n)*n)):a}function t(t,h,r,a={}){let u=i(null),[o,m]=n(null);return s(()=>{if(!h&&!r)return;let t=u.current;if(!t||typeof ResizeObserver>"u")return;let i=(t,i)=>({w:e(t,a.minWidth,a.maxWidth,a.widthStep),h:e(i,a.minHeight,a.maxHeight,a.heightStep)}),n=t.getBoundingClientRect();(n.width>0||n.height>0)&&m(i(n.width,n.height));let s=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect,h=i(e,n);m(e=>e&&e.w===h.w&&e.h===h.h?e:h)}});return s.observe(t),()=>s.disconnect()},[h,r,a.minWidth,a.maxWidth,a.widthStep,a.minHeight,a.maxHeight,a.heightStep]),[u,[h&&o?o.w:t[0],r&&o?o.h:t[1]]]}import{useRef as i,useState as n,useEffect as h,useLayoutEffect as r}from"react";var s=typeof window>"u"?h:r;export{e as resolveResponsiveDimension,t as useResponsiveSize};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{b as s}from"./c-CLLCX3PT.min.js";import{j as e,k as o,l as a,o as t,u as i,v as r}from"./c-5NYONM6V.min.js";import"./c-U6NLVFN4.min.js";export{i as ThemeProvider,s as useCustomLayoutSelection,a as useHighContrast,e as useObservationSelector,o as useReducedMotion,t as useSelectionSelector,r as useTheme};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function e(){return b??(b=d.createContext(null)),b}function t({value:t,children:r}){const o=e()
|
|
2
|
+
function e(){return b??(b=d.createContext(null)),b}function t({value:t,children:r}){const o=e();/* @__PURE__ */ /* @__PURE__ */
|
|
3
|
+
return(0,v.jsx)(o.Provider,{value:t,children:r})}function r(){const t=e();return d.useContext(t)??y}function o(e,r){return null!=e?/* @__PURE__ */ /* @__PURE__ */(0,v.jsx)(t,{value:r,children:e}):e}var n,u=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||n===r||c(e,n,{get:()=>t[n],enumerable:!(o=l(t,n))||o.enumerable});return e},p={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(p,{CustomLayoutSelectionProvider:()=>t,useCustomLayoutSelection:()=>r,wrapWithCustomLayoutSelection:()=>o}),module.exports=(n=p,f(c({},"__esModule",{value:!0}),n));var b,d=((e,t,r)=>(r=null!=e?u(i(e)):{},f(e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)))(require("react")),v=require("react/jsx-runtime"),y={isActive:!1,predicate:()=>!0};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const{field:
|
|
1
|
+
function e(e){let t=1/0,a=-1/0;for(const o of e)t>o&&(t=o),o>a&&(a=o);return[t,a]}function t(t,a){const{field:o,bins:r=10}=a,n=t.map(e=>Number(e[o])).filter(e=>!isNaN(e));if(0===n.length)return[];const[s,l]=e(n),c=a.domain?a.domain[0]:s,u=a.domain?a.domain[1]:l;if(c===u){const e=n.reduce((e,t)=>e+(t===c?1:0),0);return[{category:`${c}-${u}`,value:e}]}const f=(u-c)/r,d=Array(r).fill(0);for(const e of n){if(c>e||e>u)continue;let t=Math.floor((e-c)/f);t===r&&(t=r-1),t>=0&&r>t&&d[t]++}return d.map((e,t)=>{const a=c+t*f,o=a+f;return{category:`${i(a)}-${i(o)}`,value:e}})}function a(e,t){const{groupBy:a,value:o,agg:r="sum"}=t,i=/* @__PURE__ */new Map,n="min"===r?1/0:"max"===r?-1/0:0;for(const t of e){const e=t[a]+"";let s=i.get(e);s||(s={total:n,count:0},i.set(e,s));const l=Number(t[o]);switch(s.count++,r){case"count":break;case"min":s.total>l&&(s.total=l);break;case"max":l>s.total&&(s.total=l);break;default:s.total+=l}}const s=[];for(const[e,t]of i){const o="count"===r?t.count:"mean"===r?t.total/t.count:t.total;s.push({[a]:e,value:o})}return s}function o(e,t){const{key:a,fields:o}=t,r=/* @__PURE__ */new Map;for(const t of e){const e=t[a]+"";if(r.has(e)||r.set(e,[]),o){const a={};for(const e of o)e in t&&(a[e]=t[e]);r.get(e).push(a)}else r.get(e).push({...t})}const i=[];for(const[e,t]of r)i.push({id:e,coordinates:t});return i}function r(e,t){const{columns:a,nameField:o="name",valueField:r="value"}=t,i=new Set(a),n=[];for(const t of e){const e={};for(const a of Object.keys(t))i.has(a)||(e[a]=t[a]);for(const i of a)n.push({...e,[o]:i,[r]:t[i]})}return n}function i(e){return Math.round(1e3*e)/1e3+""}function n(e){if(!e)return{type:"",markProps:{}};if("string"==typeof e)return{type:e,markProps:{}};const{type:t,...a}=e;return{type:t,markProps:a}}function s(e){if(e)return"string"==typeof e?e:e.text}function l(e){return"nominal"===e||"ordinal"===e}function c(e){return"quantitative"===e||"temporal"===e}function u(e){return e.usermeta?.idid}function f(e){return"annotation-layer"===e.usermeta?.idid?.role}function d(e){if(!u(e)||!Array.isArray(e.layer))return e;const t=e.layer.filter(e=>!f(e));if(1!==t.length)return e;const{layer:a,...o}=e,{usermeta:r,...i}=t[0];return{...o,...i}}function p(e){e=d(e);const t=[],{type:o,markProps:r}=n(e.mark),i=e.encoding||{},c=i.x,u=i.y,f=i.color,p=i.size,b=i.theta,v=i.opacity;let h;e.data?.values?h=e.data.values:e.data?.url&&t.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&t.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&t.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&t.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||i.facet||i.row||i.column)&&t.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&t.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&t.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const x={};e.width&&(x.width=e.width),e.height&&(x.height=e.height);const A=s(e.title);if(A&&(x.title=A),f?.field&&(x.colorBy=f.field,f.scale?.scheme)){const e=B[f.scale.scheme];e&&(x.colorScheme=e)}void 0!==v?.value&&(x.pointOpacity=v.value);const w=c?.aggregate,k=u?.aggregate;if(h&&(w||k)){const e=k?u:c,t=k?c:u,o=P[e.aggregate];if(o&&t?.field&&e.field)h=a(h,{groupBy:t.field,value:e.field,agg:o});else if(("count"===o||"count"===e.aggregate)&&t?.field&&h){const e=/* @__PURE__ */new Map;for(const a of h){const o=a[t.field]+"";e.set(o,(e.get(o)||0)+1)}h=Array.from(e,([e,a])=>({[t.field]:e,value:a}))}}if(c?.bin||u?.bin){const e="Histogram";h&&(x.data=h),c?.bin?(x.valueAccessor=c.field,u?.field&&(x.categoryAccessor=u.field),c.axis?.title&&(x.valueLabel=c.axis.title)):u?.bin&&(x.valueAccessor=u.field,c?.field&&(x.categoryAccessor=c.field),u.axis?.title&&(x.valueLabel=u.axis.title));const a=c?.bin||u?.bin,o="object"==typeof a?a.maxbins:void 0;return o&&(x.bins=o),g(e,x,t)}let L;switch(o){case"bar":L=m(c,u,f,x,h,w,k);break;case"line":if(L="LineChart",y(c,u,x,w,k),f?.field&&(x.lineBy=f.field),r.interpolate){const e=O[r.interpolate];e&&(x.curve=e)}!0===r.point&&(x.showPoints=!0),h&&(x.data=h);break;case"area":if(f?.field?(L="StackedAreaChart",x.areaBy=f.field):L="AreaChart",y(c,u,x,w,k),r.interpolate){const e=O[r.interpolate];e&&(x.curve=e)}void 0!==r.opacity&&(x.areaOpacity=r.opacity),h&&(x.data=h);break;case"point":case"circle":case"square":p?.field?(L="BubbleChart",x.sizeBy=p.field,p.scale?.range&&(x.sizeRange=p.scale.range)):L="Scatterplot",y(c,u,x,w,k),h&&(x.data=h);break;case"rect":L="Heatmap",c?.field&&(x.xAccessor=c.field),u?.field&&(x.yAccessor=u.field),f?.field&&(x.valueAccessor=f.field,delete x.colorBy),c?.axis?.title&&(x.xLabel=c.axis.title),u?.axis?.title&&(x.yLabel=u.axis.title),h&&(x.data=h);break;case"arc":r.innerRadius&&r.innerRadius>0?(L="DonutChart",x.innerRadius=r.innerRadius):L="PieChart",b?.field?x.valueAccessor=b.field:u?.field&&(x.valueAccessor=k?"value":u.field),f?.field&&(x.categoryAccessor=f.field),c?.field&&!b?.field&&(x.categoryAccessor=c.field),h&&(x.data=h);break;case"tick":L="DotPlot",l(c?.type)?(x.categoryAccessor=c.field,u?.field&&(x.valueAccessor=k?"value":u.field),c?.axis?.title&&(x.categoryLabel=c.axis.title),u?.axis?.title&&(x.valueLabel=u.axis.title)):l(u?.type)?(x.categoryAccessor=u.field,c?.field&&(x.valueAccessor=w?"value":c.field),x.orientation="horizontal",u?.axis?.title&&(x.categoryLabel=u.axis.title),c?.axis?.title&&(x.valueLabel=c.axis.title)):(c?.field&&(x.categoryAccessor=c.field),u?.field&&(x.valueAccessor=k?"value":u.field)),h&&(x.data=h);break;default:t.push(`Unsupported mark type "${o}". Defaulting to Scatterplot.`),L="Scatterplot",y(c,u,x,w,k),h&&(x.data=h)}return g(L,x,t)}function m(e,t,a,o,r,i,n){let s;return a?.field&&!1!==e?.stack&&!1!==t?.stack&&null!==e?.stack&&null!==t?.stack?(s="StackedBarChart",o.stackBy=a.field):s="BarChart",l(e?.type)&&c(t?.type)?(o.categoryAccessor=e.field,o.valueAccessor=n?"value":t.field,e?.axis?.title&&(o.categoryLabel=e.axis.title),t?.axis?.title&&(o.valueLabel=t.axis.title)):c(e?.type)&&l(t?.type)?(o.categoryAccessor=t.field,o.valueAccessor=i?"value":e.field,o.orientation="horizontal",t?.axis?.title&&(o.categoryLabel=t.axis.title),e?.axis?.title&&(o.valueLabel=e.axis.title)):(e?.field&&(o.categoryAccessor=e.field),t?.field&&(o.valueAccessor=n?"value":t.field),e?.axis?.title&&(o.categoryLabel=e.axis.title),t?.axis?.title&&(o.valueLabel=t.axis.title)),r&&(o.data=r),s}function y(e,t,a,o,r){e?.field&&(a.xAccessor=o?"value":e.field),t?.field&&(a.yAccessor=r?"value":t.field),e?.axis?.title&&(a.xLabel=e.axis.title),t?.axis?.title&&(a.yLabel=t.axis.title)}function g(e,t,a){const o={component:e,props:t,version:"1",createdAt:/* @__PURE__ */(new Date).toISOString()};if(a.length>0){o.warnings=a;for(const e of a)console.warn("[semiotic/fromVegaLite] "+e)}return o}function b(e,t={}){if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];const a=!1!==t.coerceBigInt,o=e.schema.fields.map(e=>e.name),r=t.fields??o,i=[];for(const t of r){const a=e.getChild(t);a?i.push({name:t,column:a}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let n=!1;const s=Array(e.numRows);for(let t=0;e.numRows>t;t++){const e={};for(const{name:o,column:r}of i){let i=r.get(t);a&&"bigint"==typeof i&&(i<BigInt(Number.MIN_SAFE_INTEGER)||i>BigInt(Number.MAX_SAFE_INTEGER)?n||(n=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):i=Number(i)),e[o]=i}s[t]=e}return s}function v(e,t,a){const{featureKey:o,dataKey:r}=a,i=/* @__PURE__ */new Map;for(const e of t){const t=(Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0)+"";i.set(t,e)}const n=e=>{const t=o.split(".");let a=e;for(const e of t)a=null!==a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;return(a??"")+""};return e.map(e=>{const t=n(e),a=i.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}var h,x=Object.defineProperty,A=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,k=Object.prototype.hasOwnProperty,L={};((e,t)=>{for(var a in t)x(e,a,{get:t[a],enumerable:!0})})(L,{bin:()=>t,fromArrow:()=>b,fromVegaLite:()=>p,groupBy:()=>o,mergeData:()=>v,pivot:()=>r,rollup:()=>a}),module.exports=(h=L,((e,t,a,o)=>{if(t)for(let a of w(t))k.call(e,a)||void 0===a||x(e,a,{get:()=>t[a],enumerable:!(o=A(t,a))||o.enumerable});return e})(x({},"__esModule",{value:!0}),h));var B={category10:"category10",category20:"category20",category20b:"category20",category20c:"category20",accent:"accent",dark2:"dark2",paired:"paired",pastel1:"pastel1",pastel2:"pastel2",set1:"set1",set2:"set2",set3:"set3",tableau10:"category10",tableau20:"category20"},O={linear:"linear","monotone-x":"monotoneX","monotone-y":"monotoneY",monotone:"monotoneX",step:"step","step-after":"stepAfter","step-before":"stepBefore",basis:"basis",cardinal:"cardinal","catmull-rom":"catmullRom"},P={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){let{field:a,bins:
|
|
1
|
+
function e(e,t){let{field:a,bins:r=10}=t,l=e.map(e=>Number(e[a])).filter(e=>!isNaN(e));if(0===l.length)return[];let[o,s]=h(l),n=t.domain?t.domain[0]:o,c=t.domain?t.domain[1]:s;if(n===c){let e=l.reduce((e,t)=>e+(t===n?1:0),0);return[{category:`${n}-${c}`,value:e}]}let u=(c-n)/r,f=Array(r).fill(0);for(let e of l){if(n>e||e>c)continue;let t=Math.floor((e-n)/u);t===r&&(t=r-1),t>=0&&r>t&&f[t]++}return f.map((e,t)=>{let a=n+t*u,r=a+u;return{category:`${i(a)}-${i(r)}`,value:e}})}function t(e,t){let{groupBy:a,value:r,agg:i="sum"}=t,l=/* @__PURE__ */new Map,o="min"===i?1/0:"max"===i?-1/0:0;for(let t of e){let e=t[a]+"",s=l.get(e);s||(s={total:o,count:0},l.set(e,s));let n=Number(t[r]);switch(s.count++,i){case"count":break;case"min":s.total>n&&(s.total=n);break;case"max":n>s.total&&(s.total=n);break;default:s.total+=n}}let s=[];for(let[e,t]of l){let r="count"===i?t.count:"mean"===i?t.total/t.count:t.total;s.push({[a]:e,value:r})}return s}function a(e,t){let{key:a,fields:r}=t,i=/* @__PURE__ */new Map;for(let t of e){let e=t[a]+"";if(i.has(e)||i.set(e,[]),r){let a={};for(let e of r)e in t&&(a[e]=t[e]);i.get(e).push(a)}else i.get(e).push({...t})}let l=[];for(let[e,t]of i)l.push({id:e,coordinates:t});return l}function r(e,t){let{columns:a,nameField:r="name",valueField:i="value"}=t,l=new Set(a),o=[];for(let t of e){let e={};for(let a of Object.keys(t))l.has(a)||(e[a]=t[a]);for(let l of a)o.push({...e,[r]:l,[i]:t[l]})}return o}function i(e){return Math.round(1e3*e)/1e3+""}function l(e){if(!e)return{type:"",markProps:{}};if("string"==typeof e)return{type:e,markProps:{}};let{type:t,...a}=e;return{type:t,markProps:a}}function o(e){if(e)return"string"==typeof e?e:e.text}function s(e){return"nominal"===e||"ordinal"===e}function n(e){return"quantitative"===e||"temporal"===e}function c(e){return e.usermeta?.idid}function u(e){return"annotation-layer"===e.usermeta?.idid?.role}function f(e){if(!c(e)||!Array.isArray(e.layer))return e;let t=e.layer.filter(e=>!u(e));if(1!==t.length)return e;let{layer:a,...r}=e,{usermeta:i,...l}=t[0];return{...r,...l}}function d(e){e=f(e);let a,r=[],{type:i,markProps:n}=l(e.mark),c=e.encoding||{},u=c.x,d=c.y,g=c.color,b=c.size,h=c.theta,w=c.opacity;e.data?.values?a=e.data.values:e.data?.url&&r.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&r.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&r.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&r.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||c.facet||c.row||c.column)&&r.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&r.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&r.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");let k={};e.width&&(k.width=e.width),e.height&&(k.height=e.height);let L=o(e.title);if(L&&(k.title=L),g?.field&&(k.colorBy=g.field,g.scale?.scheme)){let e=v[g.scale.scheme];e&&(k.colorScheme=e)}void 0!==w?.value&&(k.pointOpacity=w.value);let B,R=u?.aggregate,S=d?.aggregate;if(a&&(R||S)){let e=S?d:u,r=S?u:d,i=A[e.aggregate];if(i&&r?.field&&e.field)a=t(a,{groupBy:r.field,value:e.field,agg:i});else if(("count"===i||"count"===e.aggregate)&&r?.field&&a){let e=/* @__PURE__ */new Map;for(let t of a){let a=t[r.field]+"";e.set(a,(e.get(a)||0)+1)}a=Array.from(e,([e,t])=>({[r.field]:e,value:t}))}}if(u?.bin||d?.bin){let e="Histogram";a&&(k.data=a),u?.bin?(k.valueAccessor=u.field,d?.field&&(k.categoryAccessor=d.field),u.axis?.title&&(k.valueLabel=u.axis.title)):d?.bin&&(k.valueAccessor=d.field,u?.field&&(k.categoryAccessor=u.field),d.axis?.title&&(k.valueLabel=d.axis.title));let t=u?.bin||d?.bin,i="object"==typeof t?t.maxbins:void 0;return i&&(k.bins=i),y(e,k,r)}switch(i){case"bar":B=p(u,d,g,k,a,R,S);break;case"line":if(B="LineChart",m(u,d,k,R,S),g?.field&&(k.lineBy=g.field),n.interpolate){let e=x[n.interpolate];e&&(k.curve=e)}!0===n.point&&(k.showPoints=!0),a&&(k.data=a);break;case"area":if(g?.field?(B="StackedAreaChart",k.areaBy=g.field):B="AreaChart",m(u,d,k,R,S),n.interpolate){let e=x[n.interpolate];e&&(k.curve=e)}void 0!==n.opacity&&(k.areaOpacity=n.opacity),a&&(k.data=a);break;case"point":case"circle":case"square":b?.field?(B="BubbleChart",k.sizeBy=b.field,b.scale?.range&&(k.sizeRange=b.scale.range)):B="Scatterplot",m(u,d,k,R,S),a&&(k.data=a);break;case"rect":B="Heatmap",u?.field&&(k.xAccessor=u.field),d?.field&&(k.yAccessor=d.field),g?.field&&(k.valueAccessor=g.field,delete k.colorBy),u?.axis?.title&&(k.xLabel=u.axis.title),d?.axis?.title&&(k.yLabel=d.axis.title),a&&(k.data=a);break;case"arc":n.innerRadius&&n.innerRadius>0?(B="DonutChart",k.innerRadius=n.innerRadius):B="PieChart",h?.field?k.valueAccessor=h.field:d?.field&&(k.valueAccessor=S?"value":d.field),g?.field&&(k.categoryAccessor=g.field),u?.field&&!h?.field&&(k.categoryAccessor=u.field),a&&(k.data=a);break;case"tick":B="DotPlot",s(u?.type)?(k.categoryAccessor=u.field,d?.field&&(k.valueAccessor=S?"value":d.field),u?.axis?.title&&(k.categoryLabel=u.axis.title),d?.axis?.title&&(k.valueLabel=d.axis.title)):s(d?.type)?(k.categoryAccessor=d.field,u?.field&&(k.valueAccessor=R?"value":u.field),k.orientation="horizontal",d?.axis?.title&&(k.categoryLabel=d.axis.title),u?.axis?.title&&(k.valueLabel=u.axis.title)):(u?.field&&(k.categoryAccessor=u.field),d?.field&&(k.valueAccessor=S?"value":d.field)),a&&(k.data=a);break;default:r.push(`Unsupported mark type "${i}". Defaulting to Scatterplot.`),B="Scatterplot",m(u,d,k,R,S),a&&(k.data=a)}return y(B,k,r)}function p(e,t,a,r,i,l,o){let c;return a?.field&&!1!==e?.stack&&!1!==t?.stack&&null!==e?.stack&&null!==t?.stack?(c="StackedBarChart",r.stackBy=a.field):c="BarChart",s(e?.type)&&n(t?.type)?(r.categoryAccessor=e.field,r.valueAccessor=o?"value":t.field,e?.axis?.title&&(r.categoryLabel=e.axis.title),t?.axis?.title&&(r.valueLabel=t.axis.title)):n(e?.type)&&s(t?.type)?(r.categoryAccessor=t.field,r.valueAccessor=l?"value":e.field,r.orientation="horizontal",t?.axis?.title&&(r.categoryLabel=t.axis.title),e?.axis?.title&&(r.valueLabel=e.axis.title)):(e?.field&&(r.categoryAccessor=e.field),t?.field&&(r.valueAccessor=o?"value":t.field),e?.axis?.title&&(r.categoryLabel=e.axis.title),t?.axis?.title&&(r.valueLabel=t.axis.title)),i&&(r.data=i),c}function m(e,t,a,r,i){e?.field&&(a.xAccessor=r?"value":e.field),t?.field&&(a.yAccessor=i?"value":t.field),e?.axis?.title&&(a.xLabel=e.axis.title),t?.axis?.title&&(a.yLabel=t.axis.title)}function y(e,t,a){let r={component:e,props:t,version:"1",createdAt:/* @__PURE__ */(new Date).toISOString()};if(a.length>0){r.warnings=a;for(let e of a)console.warn("[semiotic/fromVegaLite] "+e)}return r}function g(e,t={}){if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];let a=!1!==t.coerceBigInt,r=e.schema.fields.map(e=>e.name),i=t.fields??r,l=[];for(let t of i){let a=e.getChild(t);a?l.push({name:t,column:a}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let o=!1,s=Array(e.numRows);for(let t=0;e.numRows>t;t++){let e={};for(let{name:r,column:i}of l){let l=i.get(t);a&&"bigint"==typeof l&&(l<BigInt(Number.MIN_SAFE_INTEGER)||l>BigInt(Number.MAX_SAFE_INTEGER)?o||(o=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):l=Number(l)),e[r]=l}s[t]=e}return s}function b(e,t,a){let{featureKey:r,dataKey:i}=a,l=/* @__PURE__ */new Map;for(let e of t){let t=(Object.prototype.hasOwnProperty.call(e,i)?e[i]:void 0)+"";l.set(t,e)}let o=e=>{let t=r.split("."),a=e;for(let e of t)a=null!==a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;return(a??"")+""};return e.map(e=>{let t=o(e),a=l.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}import{a as h}from"./c-3PFVJFBK.min.js";var v={category10:"category10",category20:"category20",category20b:"category20",category20c:"category20",accent:"accent",dark2:"dark2",paired:"paired",pastel1:"pastel1",pastel2:"pastel2",set1:"set1",set2:"set2",set3:"set3",tableau10:"category10",tableau20:"category20"},x={linear:"linear","monotone-x":"monotoneX","monotone-y":"monotoneY",monotone:"monotoneX",step:"step","step-after":"stepAfter","step-before":"stepBefore",basis:"basis",cardinal:"cardinal","catmull-rom":"catmullRom"},A={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};export{e as bin,g as fromArrow,d as fromVegaLite,a as groupBy,b as mergeData,r as pivot,t as rollup};
|