@toclocoinc/lattice-grid 1.46.1 → 1.47.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 +131 -1
- package/docs/API.html +68 -4
- package/docs/api-detail.html +5 -2
- package/lattice-grid.d.ts +228 -6
- package/lattice-grid.esm.min.js +13 -5
- package/lattice-grid.min.cjs +13 -5
- package/lattice-grid.min.js +13 -5
- package/modules/ai.esm.min.js +195 -27
- package/modules/ai.min.cjs +193 -26
- package/modules/ai.min.js +193 -26
- package/modules/angular.esm.min.js +2 -2
- package/modules/angular.min.cjs +2 -2
- package/modules/angular.min.js +2 -2
- package/modules/chart-alluvial.esm.min.js +1 -1
- package/modules/chart-arc.esm.min.js +1 -1
- package/modules/chart-bubblemap.esm.min.js +1 -1
- package/modules/chart-bump.esm.min.js +1 -1
- package/modules/chart-calendar.esm.min.js +1 -1
- package/modules/chart-decomposition.esm.min.js +1 -1
- package/modules/chart-diverging.esm.min.js +1 -1
- package/modules/chart-dumbbell.esm.min.js +1 -1
- package/modules/chart-fan.esm.min.js +1 -1
- package/modules/chart-hexbin.esm.min.js +1 -1
- package/modules/chart-hexmap.esm.min.js +1 -1
- package/modules/chart-icicle.esm.min.js +1 -1
- package/modules/chart-parallel.esm.min.js +8 -3
- package/modules/chart-ridgeline.esm.min.js +1 -1
- package/modules/chart-roc.esm.min.js +1 -1
- package/modules/chart-slope.esm.min.js +1 -1
- package/modules/chart-splom.esm.min.js +1 -1
- package/modules/chart-waffle.esm.min.js +1 -1
- package/modules/charts.esm.min.js +225 -13
- package/modules/charts.min.cjs +225 -13
- package/modules/charts.min.js +225 -13
- package/modules/data-router.esm.min.js +4 -4
- package/modules/data-router.min.cjs +4 -4
- package/modules/data-router.min.js +4 -4
- package/modules/devtools.esm.min.js +2 -2
- package/modules/devtools.min.cjs +2 -2
- package/modules/devtools.min.js +2 -2
- package/modules/dhtmlx-compat.esm.min.js +4 -4
- package/modules/dhtmlx-compat.min.cjs +4 -4
- package/modules/dhtmlx-compat.min.js +4 -4
- package/modules/gantt.esm.min.js +13 -4
- package/modules/gantt.min.cjs +13 -4
- package/modules/gantt.min.js +13 -4
- package/modules/htmx.esm.min.js +13 -5
- package/modules/htmx.min.cjs +13 -5
- package/modules/htmx.min.js +13 -5
- package/modules/kanban.esm.min.js +59 -8
- package/modules/kanban.min.cjs +59 -8
- package/modules/kanban.min.js +59 -8
- package/modules/kpi.esm.min.js +4 -4
- package/modules/kpi.min.cjs +4 -4
- package/modules/kpi.min.js +4 -4
- package/modules/mock-socket.esm.min.js +2 -2
- package/modules/mock-socket.min.cjs +2 -2
- package/modules/mock-socket.min.js +2 -2
- package/modules/react.esm.min.js +2 -2
- package/modules/react.min.cjs +2 -2
- package/modules/react.min.js +2 -2
- package/modules/svelte.esm.min.js +2 -2
- package/modules/svelte.min.cjs +2 -2
- package/modules/svelte.min.js +2 -2
- package/modules/vue.esm.min.js +2 -2
- package/modules/vue.min.cjs +2 -2
- package/modules/vue.min.js +2 -2
- package/modules/webcomponent.esm.min.js +13 -5
- package/modules/webcomponent.min.cjs +13 -5
- package/modules/webcomponent.min.js +13 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Lattice Grid 1.
|
|
2
|
+
* Lattice Grid 1.47.0, chart-parallel module
|
|
3
3
|
* Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
|
|
4
4
|
* https://latticegrid.dev
|
|
5
5
|
*/
|
|
@@ -55,13 +55,14 @@ return{rows,columns,groups:groupSet,empty:rows.length===0||columns.length<2};
|
|
|
55
55
|
}
|
|
56
56
|
function drawParallel(ctx){
|
|
57
57
|
const{
|
|
58
|
-
plot,bound,scheme,fontSize,groups,helpers,
|
|
58
|
+
plot,bound,scheme,fontSize,groups,helpers,hidden,
|
|
59
59
|
}=ctx;
|
|
60
60
|
const{
|
|
61
61
|
extent,linearScale,Pool,attrs,path,round,setText,resolveScheme,NS,
|
|
62
62
|
}=helpers;
|
|
63
63
|
const sch=scheme||resolveScheme();
|
|
64
64
|
const{rows,columns}=bound;
|
|
65
|
+
const isHidden=(group)=>!!(hidden&&typeof hidden.has==='function'&&hidden.has(group));
|
|
65
66
|
const axisX=columns.map((_,i)=>(columns.length===1
|
|
66
67
|
?(plot.left+plot.right)/2
|
|
67
68
|
:plot.left+(plot.right-plot.left)*(i/(columns.length-1))));
|
|
@@ -86,7 +87,9 @@ x:round(axisX[i]),y:round(plot.top-4),
|
|
|
86
87
|
});
|
|
87
88
|
});
|
|
88
89
|
const marks=new Pool(groups.marks);
|
|
90
|
+
let drawn=0;
|
|
89
91
|
for(const r of rows){
|
|
92
|
+
if(r.group!==null&&isHidden(r.group))continue;
|
|
90
93
|
const parts=[];
|
|
91
94
|
columns.forEach((col,i)=>{
|
|
92
95
|
const v=r.values[col];
|
|
@@ -98,11 +101,13 @@ const colour=r.group!==null?sch.series(Math.max(0,bound.groups.indexOf(r.group))
|
|
|
98
101
|
attrs(marks.next('path',`${NS}__pc-line ${NS}__mark`),{
|
|
99
102
|
d:path(parts),stroke:colour,'stroke-width':1,'stroke-opacity':0.4,fill:'none',
|
|
100
103
|
});
|
|
104
|
+
drawn+=1;
|
|
101
105
|
}
|
|
102
106
|
axisPool.finish();
|
|
103
107
|
labelPool.finish();
|
|
104
108
|
marks.finish();
|
|
105
|
-
|
|
109
|
+
const legend=bound.groups.map((group,index)=>({key:group,label:String(group),index}));
|
|
110
|
+
return{rows:drawn,dimensions:columns.length,legend};
|
|
106
111
|
}
|
|
107
112
|
registerChartType('parallel',{draw:drawParallel,bind:bindParallel,freeform:true,labelled:false});
|
|
108
113
|
const __default=drawParallel;
|