@toclocoinc/lattice-grid 1.46.0 → 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.
Files changed (71) hide show
  1. package/README.md +131 -1
  2. package/docs/API.html +68 -4
  3. package/docs/api-detail.html +5 -2
  4. package/lattice-grid.d.ts +228 -6
  5. package/lattice-grid.esm.min.js +26 -5
  6. package/lattice-grid.min.cjs +26 -5
  7. package/lattice-grid.min.js +26 -5
  8. package/modules/ai.esm.min.js +195 -27
  9. package/modules/ai.min.cjs +193 -26
  10. package/modules/ai.min.js +193 -26
  11. package/modules/angular.esm.min.js +2 -2
  12. package/modules/angular.min.cjs +2 -2
  13. package/modules/angular.min.js +2 -2
  14. package/modules/chart-alluvial.esm.min.js +1 -1
  15. package/modules/chart-arc.esm.min.js +1 -1
  16. package/modules/chart-bubblemap.esm.min.js +1 -1
  17. package/modules/chart-bump.esm.min.js +1 -1
  18. package/modules/chart-calendar.esm.min.js +1 -1
  19. package/modules/chart-decomposition.esm.min.js +1 -1
  20. package/modules/chart-diverging.esm.min.js +1 -1
  21. package/modules/chart-dumbbell.esm.min.js +1 -1
  22. package/modules/chart-fan.esm.min.js +1 -1
  23. package/modules/chart-hexbin.esm.min.js +1 -1
  24. package/modules/chart-hexmap.esm.min.js +1 -1
  25. package/modules/chart-icicle.esm.min.js +1 -1
  26. package/modules/chart-parallel.esm.min.js +8 -3
  27. package/modules/chart-ridgeline.esm.min.js +1 -1
  28. package/modules/chart-roc.esm.min.js +1 -1
  29. package/modules/chart-slope.esm.min.js +1 -1
  30. package/modules/chart-splom.esm.min.js +1 -1
  31. package/modules/chart-waffle.esm.min.js +1 -1
  32. package/modules/charts.esm.min.js +225 -13
  33. package/modules/charts.min.cjs +225 -13
  34. package/modules/charts.min.js +225 -13
  35. package/modules/data-router.esm.min.js +4 -4
  36. package/modules/data-router.min.cjs +4 -4
  37. package/modules/data-router.min.js +4 -4
  38. package/modules/devtools.esm.min.js +2 -2
  39. package/modules/devtools.min.cjs +2 -2
  40. package/modules/devtools.min.js +2 -2
  41. package/modules/dhtmlx-compat.esm.min.js +4 -4
  42. package/modules/dhtmlx-compat.min.cjs +4 -4
  43. package/modules/dhtmlx-compat.min.js +4 -4
  44. package/modules/gantt.esm.min.js +13 -4
  45. package/modules/gantt.min.cjs +13 -4
  46. package/modules/gantt.min.js +13 -4
  47. package/modules/htmx.esm.min.js +26 -5
  48. package/modules/htmx.min.cjs +26 -5
  49. package/modules/htmx.min.js +26 -5
  50. package/modules/kanban.esm.min.js +59 -8
  51. package/modules/kanban.min.cjs +59 -8
  52. package/modules/kanban.min.js +59 -8
  53. package/modules/kpi.esm.min.js +4 -4
  54. package/modules/kpi.min.cjs +4 -4
  55. package/modules/kpi.min.js +4 -4
  56. package/modules/mock-socket.esm.min.js +2 -2
  57. package/modules/mock-socket.min.cjs +2 -2
  58. package/modules/mock-socket.min.js +2 -2
  59. package/modules/react.esm.min.js +2 -2
  60. package/modules/react.min.cjs +2 -2
  61. package/modules/react.min.js +2 -2
  62. package/modules/svelte.esm.min.js +2 -2
  63. package/modules/svelte.min.cjs +2 -2
  64. package/modules/svelte.min.js +2 -2
  65. package/modules/vue.esm.min.js +2 -2
  66. package/modules/vue.min.cjs +2 -2
  67. package/modules/vue.min.js +2 -2
  68. package/modules/webcomponent.esm.min.js +26 -5
  69. package/modules/webcomponent.min.cjs +26 -5
  70. package/modules/webcomponent.min.js +26 -5
  71. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-alluvial module
2
+ * Lattice Grid 1.47.0, chart-alluvial module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-arc module
2
+ * Lattice Grid 1.47.0, chart-arc module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-bubblemap module
2
+ * Lattice Grid 1.47.0, chart-bubblemap module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-bump module
2
+ * Lattice Grid 1.47.0, chart-bump module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-calendar module
2
+ * Lattice Grid 1.47.0, chart-calendar module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-decomposition module
2
+ * Lattice Grid 1.47.0, chart-decomposition module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-diverging module
2
+ * Lattice Grid 1.47.0, chart-diverging module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-dumbbell module
2
+ * Lattice Grid 1.47.0, chart-dumbbell module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-fan module
2
+ * Lattice Grid 1.47.0, chart-fan module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-hexbin module
2
+ * Lattice Grid 1.47.0, chart-hexbin module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-hexmap module
2
+ * Lattice Grid 1.47.0, chart-hexmap module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-icicle module
2
+ * Lattice Grid 1.47.0, chart-icicle module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-parallel module
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
- return{rows:rows.length,dimensions:columns.length,legend:[]};
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;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-ridgeline module
2
+ * Lattice Grid 1.47.0, chart-ridgeline module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-roc module
2
+ * Lattice Grid 1.47.0, chart-roc module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-slope module
2
+ * Lattice Grid 1.47.0, chart-slope module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-splom module
2
+ * Lattice Grid 1.47.0, chart-splom module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.46.0, chart-waffle module
2
+ * Lattice Grid 1.47.0, chart-waffle module
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */