semiotic 3.0.1 → 3.1.1
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/CLAUDE.md +227 -27
- package/README.md +147 -11
- package/ai/dist/componentRegistry.js +5 -0
- package/ai/dist/mcp-server.js +305 -30
- package/ai/examples.md +358 -18
- package/ai/schema.json +64 -2
- package/ai/system-prompt.md +50 -12
- package/dist/components/Legend.d.ts +7 -1
- package/dist/components/charts/geo/ChoroplethMap.d.ts +53 -0
- package/dist/components/charts/geo/DistanceCartogram.d.ts +90 -0
- package/dist/components/charts/geo/FlowMap.d.ts +83 -0
- package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +67 -0
- package/dist/components/charts/geo/index.d.ts +8 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/charts/network/ChordDiagram.d.ts +6 -5
- package/dist/components/charts/network/CirclePack.d.ts +2 -2
- package/dist/components/charts/network/ForceDirectedGraph.d.ts +9 -7
- package/dist/components/charts/network/OrbitDiagram.d.ts +21 -20
- package/dist/components/charts/network/SankeyDiagram.d.ts +6 -5
- package/dist/components/charts/network/TreeDiagram.d.ts +2 -2
- package/dist/components/charts/network/Treemap.d.ts +2 -2
- package/dist/components/charts/ordinal/BarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/BoxPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/DonutChart.d.ts +8 -6
- package/dist/components/charts/ordinal/DotPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/Histogram.d.ts +8 -5
- package/dist/components/charts/ordinal/PieChart.d.ts +8 -6
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +8 -5
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +24 -6
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +28 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +23 -5
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +24 -6
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +23 -5
- package/dist/components/charts/shared/ChartError.d.ts +3 -1
- package/dist/components/charts/shared/colorUtils.d.ts +5 -0
- package/dist/components/charts/shared/hooks.d.ts +13 -1
- package/dist/components/charts/shared/legendUtils.d.ts +2 -3
- package/dist/components/charts/shared/statisticalOverlays.d.ts +1 -2
- package/dist/components/charts/shared/statisticalOverlaysLazy.d.ts +10 -0
- package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
- package/dist/components/charts/shared/types.d.ts +10 -4
- package/dist/components/charts/shared/useChartSetup.d.ts +112 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +65 -0
- package/dist/components/charts/shared/withChartWrapper.d.ts +4 -3
- package/dist/components/charts/xy/AreaChart.d.ts +11 -6
- package/dist/components/charts/xy/BubbleChart.d.ts +11 -6
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +7 -6
- package/dist/components/charts/xy/Heatmap.d.ts +16 -5
- package/dist/components/charts/xy/LineChart.d.ts +21 -5
- package/dist/components/charts/xy/MinimapChart.d.ts +3 -0
- package/dist/components/charts/xy/QuadrantChart.d.ts +120 -0
- package/dist/components/charts/xy/Scatterplot.d.ts +9 -6
- package/dist/components/charts/xy/StackedAreaChart.d.ts +11 -6
- package/dist/components/geo/mergeData.d.ts +18 -0
- package/dist/components/geo/referenceGeography.d.ts +10 -0
- package/dist/components/geo/useReferenceAreas.d.ts +13 -0
- package/dist/components/realtime/RingBuffer.d.ts +1 -0
- package/dist/components/realtime/types.d.ts +17 -0
- package/dist/components/semiotic-data.d.ts +1 -0
- package/dist/components/semiotic-geo.d.ts +16 -0
- package/dist/components/semiotic-server.d.ts +1 -1
- package/dist/components/semiotic-xy.d.ts +1 -0
- package/dist/components/semiotic.d.ts +4 -4
- package/dist/components/server/renderToStaticSVG.d.ts +4 -2
- package/dist/components/stream/AccessibleDataTable.d.ts +50 -0
- package/dist/components/stream/CanvasHitTester.d.ts +8 -2
- package/dist/components/stream/DataSourceAdapter.d.ts +33 -4
- package/dist/components/stream/GeoCanvasHitTester.d.ts +19 -0
- package/dist/components/stream/GeoParticlePool.d.ts +46 -0
- package/dist/components/stream/GeoPipelineStore.d.ts +81 -0
- package/dist/components/stream/GeoTileRenderer.d.ts +31 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +16 -4
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -1
- package/dist/components/stream/OrdinalPipelineStore.d.ts +8 -4
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +23 -1
- package/dist/components/stream/PipelineStore.d.ts +57 -5
- package/dist/components/stream/SVGOverlay.d.ts +28 -1
- package/dist/components/stream/SceneGraph.d.ts +7 -3
- package/dist/components/stream/SceneToSVG.d.ts +2 -0
- package/dist/components/stream/StreamGeoFrame.d.ts +4 -0
- package/dist/components/stream/accessorUtils.d.ts +1 -0
- package/dist/components/stream/canvasSetup.d.ts +26 -0
- package/dist/components/stream/geoTypes.d.ts +186 -0
- package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +0 -7
- package/dist/components/stream/layouts/index.d.ts +2 -1
- package/dist/components/stream/layouts/orbitLayoutPlugin.d.ts +2 -0
- package/dist/components/stream/legendRenderer.d.ts +33 -0
- package/dist/components/stream/networkTypes.d.ts +49 -1
- package/dist/components/stream/ordinalTypes.d.ts +10 -0
- package/dist/components/stream/pipelineTransitionUtils.d.ts +42 -0
- package/dist/components/stream/renderers/geoCanvasRenderer.d.ts +9 -0
- package/dist/components/stream/renderers/heatmapCanvasRenderer.d.ts +2 -1
- package/dist/components/stream/renderers/lineCanvasRenderer.d.ts +1 -0
- package/dist/components/stream/renderers/renderPulse.d.ts +50 -0
- package/dist/components/stream/types.d.ts +77 -3
- package/dist/components/types/legendTypes.d.ts +27 -3
- package/dist/geo.min.js +1 -0
- package/dist/geo.module.min.js +1 -0
- 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/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.d.ts +1 -0
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +16 -0
- package/dist/semiotic-server.d.ts +1 -1
- package/dist/semiotic-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/semiotic-xy.d.ts +1 -0
- package/dist/semiotic.d.ts +4 -4
- 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/test-utils/canvasMock.d.ts +3 -0
- package/dist/xy-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +76 -8
- package/dist/test/canvasMock.d.ts +0 -2
package/dist/semiotic-data.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e,t){const{groupBy:l,value:
|
|
1
|
+
"use strict";function e(e,t){const{groupBy:l,value:o,agg:i="sum"}=t,a=new Map;for(const t of e){const e=t[l]+"";a.has(e)||a.set(e,[]),a.get(e).push(Number(t[o]))}const n=[];for(const[e,t]of a){let o;switch(i){case"count":o=t.length;break;case"mean":o=t.reduce((e,t)=>e+t,0)/t.length;break;case"min":o=Math.min(...t);break;case"max":o=Math.max(...t);break;default:o=t.reduce((e,t)=>e+t,0)}n.push({[l]:e,value:o})}return n}function t(e){return Math.round(1e3*e)/1e3+""}function l(e){return"nominal"===e||"ordinal"===e}function o(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const i={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"},a={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"},n={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function r(e,t,l,o,i){var a,n;(null==e?void 0:e.field)&&(l.xAccessor=o?"value":e.field),(null==t?void 0:t.field)&&(l.yAccessor=i?"value":t.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(l.xLabel=e.axis.title),(null===(n=null==t?void 0:t.axis)||void 0===n?void 0:n.title)&&(l.yLabel=t.axis.title)}function s(e,t,l){const o={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(l.length>0){o.warnings=l;for(const e of l)console.warn("[semiotic/fromVegaLite] "+e)}return o}exports.bin=function(e,l){const{field:o,bins:i=10}=l,a=e.map(e=>Number(e[o])).filter(e=>!isNaN(e));if(0===a.length)return[];const n=l.domain?l.domain[0]:Math.min(...a),r=l.domain?l.domain[1]:Math.max(...a);if(n===r)return[{category:`${n}-${r}`,value:a.length}];const s=(r-n)/i,c=Array(i).fill(0);for(const e of a){let t=Math.floor((e-n)/s);t===i&&(t=i-1),t>=0&&i>t&&c[t]++}return c.map((e,l)=>{const o=n+l*s,i=o+s;return{category:`${t(o)}-${t(i)}`,value:e}})},exports.fromVegaLite=function(t){var c,d,u,v,f,p,g,y,m,b,h,x,k,A;const L=[],{type:w,markProps:O}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:t}=e;return{type:t,markProps:function(e,t){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(l[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);o.length>i;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(l[o[i]]=e[o[i]])}return l}(e,["type"])}}(t.mark),S=t.encoding||{},j=S.x,B=S.y,C=S.color,P=S.size,M=S.theta,R=S.opacity;let z;(null===(c=t.data)||void 0===c?void 0:c.values)?z=t.data.values:(null===(d=t.data)||void 0===d?void 0:d.url)&&L.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),t.transform&&t.transform.length>0&&L.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),t.layer&&L.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(t.hconcat||t.vconcat||t.concat)&&L.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(t.facet||t.encoding&&t.encoding.facet||t.encoding&&(t.encoding.row||t.encoding.column))&&L.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),t.repeat&&L.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(t.params||t.selection)&&L.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const D={};t.width&&(D.width=t.width),t.height&&(D.height=t.height);const $=function(e){if(e)return"string"==typeof e?e:e.text}(t.title);if($&&(D.title=$),(null==C?void 0:C.field)&&(D.colorBy=C.field,null===(u=C.scale)||void 0===u?void 0:u.scheme)){const e=i[C.scale.scheme];e&&(D.colorScheme=e)}void 0!==(null==R?void 0:R.value)&&(D.pointOpacity=R.value);const N=null==j?void 0:j.aggregate,V=null==B?void 0:B.aggregate;if(z&&(N||V)){const t=V?B:j,l=V?j:B,o=n[t.aggregate];if(o&&(null==l?void 0:l.field)&&t.field)z=e(z,{groupBy:l.field,value:t.field,agg:o});else if(("count"===o||"count"===t.aggregate)&&(null==l?void 0:l.field)&&z){const e=new Map;for(const t of z){const o=t[l.field]+"";e.set(o,(e.get(o)||0)+1)}z=Array.from(e,([e,t])=>({[l.field]:e,value:t}))}}if((null==j?void 0:j.bin)||(null==B?void 0:B.bin)){const e="Histogram";z&&(D.data=z),(null==j?void 0:j.bin)?(D.valueAccessor=j.field,(null==B?void 0:B.field)&&(D.categoryAccessor=B.field),(null===(v=j.axis)||void 0===v?void 0:v.title)&&(D.valueLabel=j.axis.title)):(null==B?void 0:B.bin)&&(D.valueAccessor=B.field,(null==j?void 0:j.field)&&(D.categoryAccessor=j.field),(null===(f=B.axis)||void 0===f?void 0:f.title)&&(D.valueLabel=B.axis.title));const t="object"==typeof((null==j?void 0:j.bin)||(null==B?void 0:B.bin))?(null===(p=null==j?void 0:j.bin)||void 0===p?void 0:p.maxbins)||(null===(g=null==B?void 0:B.bin)||void 0===g?void 0:g.maxbins):void 0;return t&&(D.bins=t),s(e,D,L)}let E;switch(w){case"bar":E=function(e,t,i,a,n,r,s){var c,d,u,v,f,p;let g;return(null==i?void 0:i.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==t?void 0:t.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==t?void 0:t.stack)?(g="StackedBarChart",a.stackBy=i.field):g="BarChart",l(null==e?void 0:e.type)&&o(null==t?void 0:t.type)?(a.categoryAccessor=e.field,a.valueAccessor=s?"value":t.field,(null===(c=null==e?void 0:e.axis)||void 0===c?void 0:c.title)&&(a.categoryLabel=e.axis.title),(null===(d=null==t?void 0:t.axis)||void 0===d?void 0:d.title)&&(a.valueLabel=t.axis.title)):o(null==e?void 0:e.type)&&l(null==t?void 0:t.type)?(a.categoryAccessor=t.field,a.valueAccessor=r?"value":e.field,a.orientation="horizontal",(null===(u=null==t?void 0:t.axis)||void 0===u?void 0:u.title)&&(a.categoryLabel=t.axis.title),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(a.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(a.categoryAccessor=e.field),(null==t?void 0:t.field)&&(a.valueAccessor=s?"value":t.field),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(a.categoryLabel=e.axis.title),(null===(p=null==t?void 0:t.axis)||void 0===p?void 0:p.title)&&(a.valueLabel=t.axis.title)),n&&(a.data=n),g}(j,B,C,D,z,N,V);break;case"line":if(E="LineChart",r(j,B,D,N,V),(null==C?void 0:C.field)&&(D.lineBy=C.field),O.interpolate){const e=a[O.interpolate];e&&(D.curve=e)}!0===O.point&&(D.showPoints=!0),z&&(D.data=z);break;case"area":if((null==C?void 0:C.field)?(E="StackedAreaChart",D.areaBy=C.field):E="AreaChart",r(j,B,D,N,V),O.interpolate){const e=a[O.interpolate];e&&(D.curve=e)}void 0!==O.opacity&&(D.areaOpacity=O.opacity),z&&(D.data=z);break;case"point":case"circle":case"square":(null==P?void 0:P.field)?(E="BubbleChart",D.sizeBy=P.field,(null===(y=P.scale)||void 0===y?void 0:y.range)&&(D.sizeRange=P.scale.range)):E="Scatterplot",r(j,B,D,N,V),z&&(D.data=z);break;case"rect":E="Heatmap",(null==j?void 0:j.field)&&(D.xAccessor=j.field),(null==B?void 0:B.field)&&(D.yAccessor=B.field),(null==C?void 0:C.field)&&(D.valueAccessor=C.field,delete D.colorBy),(null===(m=null==j?void 0:j.axis)||void 0===m?void 0:m.title)&&(D.xLabel=j.axis.title),(null===(b=null==B?void 0:B.axis)||void 0===b?void 0:b.title)&&(D.yLabel=B.axis.title),z&&(D.data=z);break;case"arc":O.innerRadius&&O.innerRadius>0?(E="DonutChart",D.innerRadius=O.innerRadius):E="PieChart",(null==M?void 0:M.field)?D.valueAccessor=M.field:(null==B?void 0:B.field)&&(D.valueAccessor=V?"value":B.field),(null==C?void 0:C.field)&&(D.categoryAccessor=C.field),(null==j?void 0:j.field)&&!(null==M?void 0:M.field)&&(D.categoryAccessor=j.field),z&&(D.data=z);break;case"tick":E="DotPlot",l(null==j?void 0:j.type)?(D.categoryAccessor=j.field,(null==B?void 0:B.field)&&(D.valueAccessor=V?"value":B.field),(null===(h=null==j?void 0:j.axis)||void 0===h?void 0:h.title)&&(D.categoryLabel=j.axis.title),(null===(x=null==B?void 0:B.axis)||void 0===x?void 0:x.title)&&(D.valueLabel=B.axis.title)):l(null==B?void 0:B.type)?(D.categoryAccessor=B.field,(null==j?void 0:j.field)&&(D.valueAccessor=N?"value":j.field),D.orientation="horizontal",(null===(k=null==B?void 0:B.axis)||void 0===k?void 0:k.title)&&(D.categoryLabel=B.axis.title),(null===(A=null==j?void 0:j.axis)||void 0===A?void 0:A.title)&&(D.valueLabel=j.axis.title)):((null==j?void 0:j.field)&&(D.categoryAccessor=j.field),(null==B?void 0:B.field)&&(D.valueAccessor=V?"value":B.field)),z&&(D.data=z);break;default:L.push(`Unsupported mark type "${w}". Defaulting to Scatterplot.`),E="Scatterplot",r(j,B,D,N,V),z&&(D.data=z)}return s(E,D,L)},exports.groupBy=function(e,t){const{key:l,fields:o}=t,i=new Map;for(const t of e){const e=t[l]+"";if(i.has(e)||i.set(e,[]),o){const l={};for(const e of o)e in t&&(l[e]=t[e]);i.get(e).push(l)}else i.get(e).push(Object.assign({},t))}const a=[];for(const[e,t]of i)a.push({id:e,coordinates:t});return a},exports.mergeData=function(e,t,l){const{featureKey:o,dataKey:i}=l,a=new Map;for(const e of t)a.set(e[i]+"",e);return e.map(e=>{const t=(e=>{const t=o.split(".");let l=e;for(const e of t)l=null==l?void 0:l[e];return(null!=l?l:"")+""})(e),l=a.get(t);return l?Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),l)}):e})},exports.pivot=function(e,t){const{columns:l,nameField:o="name",valueField:i="value"}=t,a=new Set(l),n=[];for(const t of e){const e={};for(const l of Object.keys(t))a.has(l)||(e[l]=t[l]);for(const a of l)n.push(Object.assign(Object.assign({},e),{[o]:a,[i]:t[a]}))}return n},exports.rollup=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const{field:l,bins:i=10}=t,a=e.map(e=>Number(e[l])).filter(e=>!isNaN(e));if(0===a.length)return[];const n=t.domain?t.domain[0]:Math.min(...a),
|
|
1
|
+
function e(e,t){const{field:l,bins:i=10}=t,a=e.map(e=>Number(e[l])).filter(e=>!isNaN(e));if(0===a.length)return[];const n=t.domain?t.domain[0]:Math.min(...a),s=t.domain?t.domain[1]:Math.max(...a);if(n===s)return[{category:`${n}-${s}`,value:a.length}];const r=(s-n)/i,c=Array(i).fill(0);for(const e of a){let t=Math.floor((e-n)/r);t===i&&(t=i-1),t>=0&&i>t&&c[t]++}return c.map((e,t)=>{const l=n+t*r,i=l+r;return{category:`${o(l)}-${o(i)}`,value:e}})}function t(e,t){const{groupBy:l,value:i,agg:o="sum"}=t,a=new Map;for(const t of e){const e=t[l]+"";a.has(e)||a.set(e,[]),a.get(e).push(Number(t[i]))}const n=[];for(const[e,t]of a){let i;switch(o){case"count":i=t.length;break;case"mean":i=t.reduce((e,t)=>e+t,0)/t.length;break;case"min":i=Math.min(...t);break;case"max":i=Math.max(...t);break;default:i=t.reduce((e,t)=>e+t,0)}n.push({[l]:e,value:i})}return n}function l(e,t){const{key:l,fields:i}=t,o=new Map;for(const t of e){const e=t[l]+"";if(o.has(e)||o.set(e,[]),i){const l={};for(const e of i)e in t&&(l[e]=t[e]);o.get(e).push(l)}else o.get(e).push(Object.assign({},t))}const a=[];for(const[e,t]of o)a.push({id:e,coordinates:t});return a}function i(e,t){const{columns:l,nameField:i="name",valueField:o="value"}=t,a=new Set(l),n=[];for(const t of e){const e={};for(const l of Object.keys(t))a.has(l)||(e[l]=t[l]);for(const a of l)n.push(Object.assign(Object.assign({},e),{[i]:a,[o]:t[a]}))}return n}function o(e){return Math.round(1e3*e)/1e3+""}function a(e){return"nominal"===e||"ordinal"===e}function n(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const s={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"},r={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"},c={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function d(e){var l,i,o,d,f,p,g,y,m,b,h,x,k,A;const L=[],{type:w,markProps:O}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:t}=e;return{type:t,markProps:function(e,t){var l={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(l[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);i.length>o;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(l[i[o]]=e[i[o]])}return l}(e,["type"])}}(e.mark),S=e.encoding||{},j=S.x,B=S.y,C=S.color,P=S.size,M=S.theta,R=S.opacity;let z;(null===(l=e.data)||void 0===l?void 0:l.values)?z=e.data.values:(null===(i=e.data)||void 0===i?void 0:i.url)&&L.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&L.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&L.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&L.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||e.encoding&&e.encoding.facet||e.encoding&&(e.encoding.row||e.encoding.column))&&L.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&L.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&L.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const $={};e.width&&($.width=e.width),e.height&&($.height=e.height);const D=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(D&&($.title=D),(null==C?void 0:C.field)&&($.colorBy=C.field,null===(o=C.scale)||void 0===o?void 0:o.scheme)){const e=s[C.scale.scheme];e&&($.colorScheme=e)}void 0!==(null==R?void 0:R.value)&&($.pointOpacity=R.value);const N=null==j?void 0:j.aggregate,E=null==B?void 0:B.aggregate;if(z&&(N||E)){const e=E?B:j,l=E?j:B,i=c[e.aggregate];if(i&&(null==l?void 0:l.field)&&e.field)z=t(z,{groupBy:l.field,value:e.field,agg:i});else if(("count"===i||"count"===e.aggregate)&&(null==l?void 0:l.field)&&z){const e=new Map;for(const t of z){const i=t[l.field]+"";e.set(i,(e.get(i)||0)+1)}z=Array.from(e,([e,t])=>({[l.field]:e,value:t}))}}if((null==j?void 0:j.bin)||(null==B?void 0:B.bin)){const e="Histogram";z&&($.data=z),(null==j?void 0:j.bin)?($.valueAccessor=j.field,(null==B?void 0:B.field)&&($.categoryAccessor=B.field),(null===(d=j.axis)||void 0===d?void 0:d.title)&&($.valueLabel=j.axis.title)):(null==B?void 0:B.bin)&&($.valueAccessor=B.field,(null==j?void 0:j.field)&&($.categoryAccessor=j.field),(null===(f=B.axis)||void 0===f?void 0:f.title)&&($.valueLabel=B.axis.title));const t="object"==typeof((null==j?void 0:j.bin)||(null==B?void 0:B.bin))?(null===(p=null==j?void 0:j.bin)||void 0===p?void 0:p.maxbins)||(null===(g=null==B?void 0:B.bin)||void 0===g?void 0:g.maxbins):void 0;return t&&($.bins=t),v(e,$,L)}let F;switch(w){case"bar":F=function(e,t,l,i,o,s,r){var c,d,u,v,f,p;let g;return(null==l?void 0:l.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==t?void 0:t.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==t?void 0:t.stack)?(g="StackedBarChart",i.stackBy=l.field):g="BarChart",a(null==e?void 0:e.type)&&n(null==t?void 0:t.type)?(i.categoryAccessor=e.field,i.valueAccessor=r?"value":t.field,(null===(c=null==e?void 0:e.axis)||void 0===c?void 0:c.title)&&(i.categoryLabel=e.axis.title),(null===(d=null==t?void 0:t.axis)||void 0===d?void 0:d.title)&&(i.valueLabel=t.axis.title)):n(null==e?void 0:e.type)&&a(null==t?void 0:t.type)?(i.categoryAccessor=t.field,i.valueAccessor=s?"value":e.field,i.orientation="horizontal",(null===(u=null==t?void 0:t.axis)||void 0===u?void 0:u.title)&&(i.categoryLabel=t.axis.title),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(i.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(i.categoryAccessor=e.field),(null==t?void 0:t.field)&&(i.valueAccessor=r?"value":t.field),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(i.categoryLabel=e.axis.title),(null===(p=null==t?void 0:t.axis)||void 0===p?void 0:p.title)&&(i.valueLabel=t.axis.title)),o&&(i.data=o),g}(j,B,C,$,z,N,E);break;case"line":if(F="LineChart",u(j,B,$,N,E),(null==C?void 0:C.field)&&($.lineBy=C.field),O.interpolate){const e=r[O.interpolate];e&&($.curve=e)}!0===O.point&&($.showPoints=!0),z&&($.data=z);break;case"area":if((null==C?void 0:C.field)?(F="StackedAreaChart",$.areaBy=C.field):F="AreaChart",u(j,B,$,N,E),O.interpolate){const e=r[O.interpolate];e&&($.curve=e)}void 0!==O.opacity&&($.areaOpacity=O.opacity),z&&($.data=z);break;case"point":case"circle":case"square":(null==P?void 0:P.field)?(F="BubbleChart",$.sizeBy=P.field,(null===(y=P.scale)||void 0===y?void 0:y.range)&&($.sizeRange=P.scale.range)):F="Scatterplot",u(j,B,$,N,E),z&&($.data=z);break;case"rect":F="Heatmap",(null==j?void 0:j.field)&&($.xAccessor=j.field),(null==B?void 0:B.field)&&($.yAccessor=B.field),(null==C?void 0:C.field)&&($.valueAccessor=C.field,delete $.colorBy),(null===(m=null==j?void 0:j.axis)||void 0===m?void 0:m.title)&&($.xLabel=j.axis.title),(null===(b=null==B?void 0:B.axis)||void 0===b?void 0:b.title)&&($.yLabel=B.axis.title),z&&($.data=z);break;case"arc":O.innerRadius&&O.innerRadius>0?(F="DonutChart",$.innerRadius=O.innerRadius):F="PieChart",(null==M?void 0:M.field)?$.valueAccessor=M.field:(null==B?void 0:B.field)&&($.valueAccessor=E?"value":B.field),(null==C?void 0:C.field)&&($.categoryAccessor=C.field),(null==j?void 0:j.field)&&!(null==M?void 0:M.field)&&($.categoryAccessor=j.field),z&&($.data=z);break;case"tick":F="DotPlot",a(null==j?void 0:j.type)?($.categoryAccessor=j.field,(null==B?void 0:B.field)&&($.valueAccessor=E?"value":B.field),(null===(h=null==j?void 0:j.axis)||void 0===h?void 0:h.title)&&($.categoryLabel=j.axis.title),(null===(x=null==B?void 0:B.axis)||void 0===x?void 0:x.title)&&($.valueLabel=B.axis.title)):a(null==B?void 0:B.type)?($.categoryAccessor=B.field,(null==j?void 0:j.field)&&($.valueAccessor=N?"value":j.field),$.orientation="horizontal",(null===(k=null==B?void 0:B.axis)||void 0===k?void 0:k.title)&&($.categoryLabel=B.axis.title),(null===(A=null==j?void 0:j.axis)||void 0===A?void 0:A.title)&&($.valueLabel=j.axis.title)):((null==j?void 0:j.field)&&($.categoryAccessor=j.field),(null==B?void 0:B.field)&&($.valueAccessor=E?"value":B.field)),z&&($.data=z);break;default:L.push(`Unsupported mark type "${w}". Defaulting to Scatterplot.`),F="Scatterplot",u(j,B,$,N,E),z&&($.data=z)}return v(F,$,L)}function u(e,t,l,i,o){var a,n;(null==e?void 0:e.field)&&(l.xAccessor=i?"value":e.field),(null==t?void 0:t.field)&&(l.yAccessor=o?"value":t.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(l.xLabel=e.axis.title),(null===(n=null==t?void 0:t.axis)||void 0===n?void 0:n.title)&&(l.yLabel=t.axis.title)}function v(e,t,l){const i={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(l.length>0){i.warnings=l;for(const e of l)console.warn("[semiotic/fromVegaLite] "+e)}return i}function f(e,t,l){const{featureKey:i,dataKey:o}=l,a=new Map;for(const e of t)a.set(e[o]+"",e);return e.map(e=>{const t=(e=>{const t=i.split(".");let l=e;for(const e of t)l=null==l?void 0:l[e];return(null!=l?l:"")+""})(e),l=a.get(t);return l?Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),l)}):e})}export{e as bin,d as fromVegaLite,l as groupBy,f as mergeData,i as pivot,t as rollup};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geo entry point — geographic visualization: choropleth, proportional symbol, flow maps.
|
|
3
|
+
* Import from "semiotic/geo" instead of the full bundle to reduce bundle size.
|
|
4
|
+
*/
|
|
5
|
+
import StreamGeoFrame from "./stream/StreamGeoFrame";
|
|
6
|
+
export { StreamGeoFrame };
|
|
7
|
+
export { ChoroplethMap } from "./charts/geo/ChoroplethMap";
|
|
8
|
+
export { ProportionalSymbolMap } from "./charts/geo/ProportionalSymbolMap";
|
|
9
|
+
export { FlowMap } from "./charts/geo/FlowMap";
|
|
10
|
+
export { DistanceCartogram } from "./charts/geo/DistanceCartogram";
|
|
11
|
+
export type { StreamGeoFrameProps, StreamGeoFrameHandle, GeoAreaSceneNode, GeoSceneNode, GeoScales, ProjectionProp, ProjectionName, GraticuleConfig, DistanceCartogramConfig, GeoPipelineConfig } from "./stream/geoTypes";
|
|
12
|
+
export type { GeoParticleStyle } from "./stream/GeoParticlePool";
|
|
13
|
+
export { mergeData } from "./geo/mergeData";
|
|
14
|
+
export { resolveReferenceGeography } from "./geo/referenceGeography";
|
|
15
|
+
export type { ReferenceGeography } from "./geo/referenceGeography";
|
|
16
|
+
export type { AreasProp } from "./geo/useReferenceAreas";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { renderToStaticSVG, renderXYToStaticSVG, renderOrdinalToStaticSVG, renderNetworkToStaticSVG } from "./server/renderToStaticSVG";
|
|
1
|
+
export { renderToStaticSVG, renderXYToStaticSVG, renderOrdinalToStaticSVG, renderNetworkToStaticSVG, renderGeoToStaticSVG } from "./server/renderToStaticSVG";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="__forecastSegment";function n(o,n){return"function"==typeof n?n(o):!!o[n]}function a(o){var n,a,t;return[{type:"anomaly-band",threshold:null!==(n=o.threshold)&&void 0!==n?n:2,showBand:!1!==o.showBand,fill:o.bandColor||"#6366f1",fillOpacity:null!==(a=o.bandOpacity)&&void 0!==a?a:.1,anomalyColor:o.anomalyColor||"#ef4444",anomalyRadius:null!==(t=o.anomalyRadius)&&void 0!==t?t:6,label:o.label}]}function t(a,t,e,s,l){return(r=s).isTraining||r.isForecast||r.isAnomaly||r.upperBounds||r.lowerBounds?function(a,t,e,s,l){var r,i,c;const{isTraining:u,isForecast:f,isAnomaly:p,upperBounds:h,lowerBounds:d,color:y="#6366f1",bandOpacity:b=.15,anomalyColor:g="#ef4444",anomalyRadius:O=6,label:m}=s,v=a.map(a=>{let t="observed";return f&&n(a,f)?t="forecast":u&&n(a,u)&&(t="training"),Object.assign(Object.assign({},a),{[o]:t})}),j=[];for(let n=0;v.length>n;n++)j.push(v[n]),v.length-1>n&&v[n][o]!==v[n+1][o]&&j.push(Object.assign(Object.assign({},v[n]),{[o]:v[n+1][o]}));const w=[];if(h&&d){const o="string"==typeof h?h:"__envUpper",n="string"==typeof d?d:"__envLower";if("function"==typeof h||"function"==typeof d)for(const a of j)"function"==typeof h&&(a[o]=h(a)),"function"==typeof d&&(a[n]=d(a));w.push({type:"envelope",upperAccessor:o,lowerAccessor:n,fill:y,fillOpacity:b,label:m})}return p&&w.push({type:"highlight",filter:o=>n(o,p),color:g,r:O,style:{stroke:g,strokeWidth:1.5,fill:g,fillOpacity:.7}}),l&&w.push({type:"anomaly-band",threshold:null!==(r=l.threshold)&&void 0!==r?r:2,showBand:!1!==l.showBand,fill:l.bandColor||"#6366f1",fillOpacity:null!==(i=l.bandOpacity)&&void 0!==i?i:.1,anomalyColor:l.anomalyColor||"#ef4444",anomalyRadius:null!==(c=l.anomalyRadius)&&void 0!==c?c:6,label:l.label}),{processedData:j,annotations:w}}(a,0,0,s,l):function(n,a,t,e,s){var l,r,i;const{trainEnd:c,steps:u=10,confidence:f=.95,color:p="#6366f1",bandOpacity:h=.15,label:d}=e;if(null==c)return{processedData:n,annotations:[]};const y=[],b=[];for(const t of n)t[a]>c?b.push(Object.assign(Object.assign({},t),{[o]:"observed"})):y.push(Object.assign(Object.assign({},t),{[o]:"training"}));const g=y.map(o=>[o[a],o[t]]).filter(o=>null!=o[0]&&null!=o[1]&&isFinite(o[0])&&isFinite(o[1])).sort((o,n)=>o[0]-n[0]),O=[],m=[];if(g.length>=3){const e=g.length;let s=0,l=0,r=0,i=0;for(const[o,n]of g)s+=o,l+=n,r+=o*o,i+=o*n;const c=e*r-s*s;if(Math.abs(c)>1e-12){const r=(e*i-s*l)/c,y=(l-r*s)/e,b=o=>y+r*o,v=g.map(([o,n])=>n-b(o)).reduce((o,n)=>o+n*n,0),j=Math.sqrt(v/Math.max(e-2,1)),w=g.reduce((o,n)=>o+n[0],0)/e,_=g.reduce((o,n)=>o+Math.pow(n[0]-w,2),0),B=.99>f?.95>f?.9>f?1:1.645:1.96:2.576,C=n.map(o=>o[a]).filter(o=>null!=o&&isFinite(o)),D=Math.max(...C),k=g.length>1?(g[e-1][0]-g[0][0])/(e-1):1;for(let n=1;u>=n;n++){const s=D+n*k,l=b(s),r=j*Math.sqrt(1+1/e+(_>0?Math.pow(s-w,2)/_:0))*B;m.push({[a]:s,[t]:l,[o]:"forecast",__forecastUpper:l+r,__forecastLower:l-r})}O.push({type:"envelope",upperAccessor:"__forecastUpper",lowerAccessor:"__forecastLower",fill:p,fillOpacity:h,label:d})}}O.push({type:"x-threshold",x:c,color:"#94a3b8",strokeWidth:1,strokeDasharray:"4,2",label:"Train / Forecast"}),s&&O.push({type:"anomaly-band",threshold:null!==(l=s.threshold)&&void 0!==l?l:2,showBand:!1!==s.showBand,fill:s.bandColor||"#6366f1",fillOpacity:null!==(r=s.bandOpacity)&&void 0!==r?r:.1,anomalyColor:s.anomalyColor||"#ef4444",anomalyRadius:null!==(i=s.anomalyRadius)&&void 0!==i?i:6,label:s.label});const v=[];if(v.push(...y),y.length>0&&b.length>0&&v.push(Object.assign(Object.assign({},y[y.length-1]),{[o]:"observed"})),v.push(...b),m.length>0){const n=b.length>0?b[b.length-1]:y[y.length-1];n&&v.push(Object.assign(Object.assign({},n),{[o]:"forecast"})),v.push(...m)}return{processedData:v,annotations:O}}(a,t,e,s,l);var r}function e(n,a){var t,e;const s=null!==(t=a.trainDasharray)&&void 0!==t?t:"8,4",l=null!==(e=a.forecastDasharray)&&void 0!==e?e:"4,4",r=a.color||"#6366f1";return a=>{const t=n(a),e=a[o];return"training"===e?Object.assign(Object.assign({},t),{strokeDasharray:s}):"forecast"===e?Object.assign(Object.assign({},t),{stroke:r,strokeDasharray:l}):t}}export{o as SEGMENT_FIELD,a as buildAnomalyAnnotations,t as buildForecast,e as createSegmentLineStyle};
|
package/dist/semiotic-xy.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ export { BubbleChart } from "./charts/xy/BubbleChart";
|
|
|
13
13
|
export { Heatmap } from "./charts/xy/Heatmap";
|
|
14
14
|
export { ScatterplotMatrix } from "./charts/xy/ScatterplotMatrix";
|
|
15
15
|
export { MinimapChart } from "./charts/xy/MinimapChart";
|
|
16
|
+
export { QuadrantChart } from "./charts/xy/QuadrantChart";
|
|
16
17
|
export type { StreamXYFrameProps, StreamXYFrameHandle } from "./stream/types";
|
package/dist/semiotic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import StreamXYFrame from "./stream/StreamXYFrame";
|
|
2
2
|
import StreamOrdinalFrame from "./stream/StreamOrdinalFrame";
|
|
3
3
|
import StreamNetworkFrame from "./stream/StreamNetworkFrame";
|
|
4
|
-
import { Scatterplot, ConnectedScatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, PieChart, DonutChart, GroupedBarChart, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, Treemap, CirclePack, OrbitDiagram, ScatterplotMatrix, MinimapChart } from "./charts";
|
|
4
|
+
import { Scatterplot, ConnectedScatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, PieChart, DonutChart, GroupedBarChart, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, Treemap, CirclePack, OrbitDiagram, ScatterplotMatrix, MinimapChart, QuadrantChart } from "./charts";
|
|
5
5
|
import { LinkedCharts } from "./LinkedCharts";
|
|
6
6
|
import { ThemeProvider, useTheme } from "./ThemeProvider";
|
|
7
7
|
import { exportChart } from "./export/exportChart";
|
|
@@ -22,8 +22,8 @@ import { RealtimeTemporalHistogram, RealtimeHistogram } from "./charts/realtime/
|
|
|
22
22
|
import { RealtimeSwarmChart } from "./charts/realtime/RealtimeSwarmChart";
|
|
23
23
|
import { RealtimeWaterfallChart } from "./charts/realtime/RealtimeWaterfallChart";
|
|
24
24
|
import { RealtimeHeatmap } from "./charts/realtime/RealtimeHeatmap";
|
|
25
|
-
export { StreamXYFrame, StreamOrdinalFrame, StreamNetworkFrame, Scatterplot, ConnectedScatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, PieChart, DonutChart, GroupedBarChart, Treemap, CirclePack, OrbitDiagram, ScatterplotMatrix, MinimapChart, LinkedCharts, ThemeProvider, useTheme, exportChart, toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX, serializeSelections, deserializeSelections, fromVegaLite, ChartErrorBoundary, ChartContainer, ChartGrid, CategoryColorProvider, useCategoryColors, ContextLayout, DetailsPanel, Tooltip, MultiLineTooltip, normalizeTooltip, RingBuffer, IncrementalExtent, RealtimeLineChart, RealtimeTemporalHistogram, RealtimeHistogram, RealtimeSwarmChart, RealtimeWaterfallChart, RealtimeHeatmap };
|
|
26
|
-
export { ScatterplotProps, ConnectedScatterplotProps, LineChartProps, AreaChartProps, StackedAreaChartProps, HeatmapProps, BubbleChartProps, BarChartProps, StackedBarChartProps, SwarmPlotProps, BoxPlotProps, HistogramProps, ViolinPlotProps, DotPlotProps, PieChartProps, DonutChartProps, GroupedBarChartProps, RidgelinePlotProps, OrbitDiagramProps, OrbitNode, ForceDirectedGraphProps, ChordDiagramProps, SankeyDiagramProps, TreeDiagramProps, TreemapProps, CirclePackProps, ScatterplotMatrixProps, MinimapChartProps, MinimapConfig, BaseChartProps, AxisConfig, Accessor, ChartAccessor, ChartMode } from "./charts";
|
|
25
|
+
export { StreamXYFrame, StreamOrdinalFrame, StreamNetworkFrame, Scatterplot, ConnectedScatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, PieChart, DonutChart, GroupedBarChart, Treemap, CirclePack, OrbitDiagram, ScatterplotMatrix, MinimapChart, QuadrantChart, LinkedCharts, ThemeProvider, useTheme, exportChart, toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX, serializeSelections, deserializeSelections, fromVegaLite, ChartErrorBoundary, ChartContainer, ChartGrid, CategoryColorProvider, useCategoryColors, ContextLayout, DetailsPanel, Tooltip, MultiLineTooltip, normalizeTooltip, RingBuffer, IncrementalExtent, RealtimeLineChart, RealtimeTemporalHistogram, RealtimeHistogram, RealtimeSwarmChart, RealtimeWaterfallChart, RealtimeHeatmap };
|
|
26
|
+
export { ScatterplotProps, ConnectedScatterplotProps, LineChartProps, AreaChartProps, StackedAreaChartProps, HeatmapProps, BubbleChartProps, BarChartProps, StackedBarChartProps, SwarmPlotProps, BoxPlotProps, HistogramProps, ViolinPlotProps, DotPlotProps, PieChartProps, DonutChartProps, GroupedBarChartProps, RidgelinePlotProps, OrbitDiagramProps, OrbitNode, ForceDirectedGraphProps, ChordDiagramProps, SankeyDiagramProps, TreeDiagramProps, TreemapProps, CirclePackProps, ScatterplotMatrixProps, MinimapChartProps, MinimapConfig, QuadrantChartProps, QuadrantsConfig, QuadrantConfig, CenterlineStyle, BaseChartProps, AxisConfig, Accessor, ChartAccessor, ChartMode } from "./charts";
|
|
27
27
|
export type { StreamXYFrameProps, StreamXYFrameHandle, StreamChartType, RuntimeMode, SceneNode, Changeset, StreamScales, StreamLayout, CurveType, CanvasRendererFn } from "./stream/types";
|
|
28
28
|
export type { StreamRendererFn } from "./stream/renderers/types";
|
|
29
29
|
export type { StreamOrdinalFrameProps, StreamOrdinalFrameHandle, OrdinalChartType, OrdinalScales, OrdinalSceneNode } from "./stream/ordinalTypes";
|
|
@@ -49,7 +49,7 @@ export type { VegaLiteSpec, VegaLiteEncoding } from "./data/fromVegaLite";
|
|
|
49
49
|
export type { SerializedSelections, SerializedSelection, SerializedFieldSelection } from "./export/selectionSerializer";
|
|
50
50
|
export { smartTickFormat } from "./charts/shared/formatUtils";
|
|
51
51
|
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig } from "./Tooltip/Tooltip";
|
|
52
|
-
export type { ArrowOfTime, WindowMode, ThresholdType, LineStyle, BarStyle, WaterfallStyle, SwarmStyle, AnnotationContext, CrosshairStyle, HoverAnnotationConfig, HoverData } from "./realtime/types";
|
|
52
|
+
export type { ArrowOfTime, WindowMode, ThresholdType, LineStyle, BarStyle, WaterfallStyle, SwarmStyle, AnnotationContext, AnnotationAnchorMode, CrosshairStyle, HoverAnnotationConfig, HoverData } from "./realtime/types";
|
|
53
53
|
export type { RealtimeLineChartProps } from "./charts/realtime/RealtimeLineChart";
|
|
54
54
|
export type { RealtimeTemporalHistogramProps, RealtimeHistogramProps } from "./charts/realtime/RealtimeHistogram";
|
|
55
55
|
export type { RealtimeSwarmChartProps } from "./charts/realtime/RealtimeSwarmChart";
|