\ No newline at end of file
diff --git a/docs/api/v3/interfaces/Layout.html b/docs/api/v3/interfaces/Layout.html
index 3c402fc..844b704 100644
--- a/docs/api/v3/interfaces/Layout.html
+++ b/docs/api/v3/interfaces/Layout.html
@@ -1,7 +1,7 @@
Layout | Landscape
\ No newline at end of file
diff --git a/docs/api/v3/interfaces/Style.html b/docs/api/v3/interfaces/Style.html
index 6dc9492..7298c18 100644
--- a/docs/api/v3/interfaces/Style.html
+++ b/docs/api/v3/interfaces/Style.html
@@ -1,7 +1,7 @@
Style | Landscape
\ No newline at end of file
diff --git a/docs/dist/landscape.min.js b/docs/dist/landscape.min.js
index a27430b..40b8ae5 100644
--- a/docs/dist/landscape.min.js
+++ b/docs/dist/landscape.min.js
@@ -1 +1 @@
-var landscape;(()=>{"use strict";var e={};(()=>{var a=e;Object.defineProperty(a,"__esModule",{value:!0}),a.merge=a.table=void 0,a.table=(e,a,t,s,o=Math.max)=>{const p=e.map((e=>e.map((e=>l(e,t))))),n=a.x.map(((e,a)=>s?o(...p.map((e=>e[a].length))):1));return m(p,p.map((e=>s?1:o(...e.map((e=>e.length))))),a.x[0].metadata.map(((e,t)=>m(a.x,n,a.y[0].metadata.map((()=>r("axis xy"))),(e=>r(`axis x ${e.metadata[t].key}`,e.metadata[t].value))))),((e,t,l,s)=>m(e,n,a.y[s].metadata.map((e=>r(`axis y ${e.key}`,e.value))),((e,a,s)=>({...e[Math.floor(e.length*(l+s)/(a*t))]})))))},a.merge=(e,a,l)=>p(e,((s,r)=>p(r,((m,o)=>l&&s&&t(e[s-1][m],o,"cols","rows",r,m)||a&&m&&t(r[m-1],o,"rows","cols",r,m)))));const t=(e,a,t,l,s,r)=>!!o(e,a,t)&&(e[l]+=a[l],s.splice(r,1),!0),l=(e,a)=>e.reduce(((t,l,r)=>{const m=a(l,r,e);return t.some((e=>o(e,m)))||t.push(s(m)),t}),e.length?[]:[r("empty")]),s=e=>({...e,rows:1,cols:1}),r=(e,a="")=>s({key:"",value:a,style:e}),m=(e,a,t,l)=>{for(let s=e.length,r=0;re?.value===a.value&&e.style===a.style&&(!t||e[t]===a[t]),p=(e,a)=>{for(let t=e.length;t--;)a(t,e[t])}})(),landscape=e})();
\ No newline at end of file
+var landscape;(()=>{"use strict";var e={};(()=>{var a=e;Object.defineProperty(a,"__esModule",{value:!0}),a.merge=a.table=void 0,a.table=(e,a,t,r,o=Math.max)=>{const n=e.map((e=>e.map((e=>l(e,t))))),p=a.x.map(((e,a)=>r?o(...n.map((e=>e[a].length))):1));return m(n,n.map((e=>r?1:o(...e.map((e=>e.length))))),a.x[0].metadata.map(((e,t)=>m(a.x,p,a.y[0].metadata.map((()=>s("axis xy"))),(e=>s(`axis x ${String(e.metadata[t].key)}`,e.metadata[t].value))))),((e,t,l,r)=>m(e,p,a.y[r].metadata.map((e=>s(`axis y ${String(e.key)}`,e.value))),((e,a,r)=>({...e[Math.floor(e.length*(l+r)/(a*t))]})))))},a.merge=(e,a,l)=>n(e,((r,s)=>n(s,((m,o)=>l&&r&&t(e[r-1][m],o,"cols","rows",s,m)||a&&m&&t(s[m-1],o,"rows","cols",s,m)))));const t=(e,a,t,l,r,s)=>!!o(e,a,t)&&(e[l]+=a[l],r.splice(s,1),!0),l=(e,a)=>e.reduce(((t,l,s)=>{const m=a(l,s,e);return t.some((e=>o(e,m)))||t.push(r(m)),t}),e.length?[]:[s("empty")]),r=e=>({...e,rows:1,cols:1}),s=(e,a="")=>r({key:"",value:a,style:e}),m=(e,a,t,l)=>{for(let r=e.length,s=0;se?.value===a.value&&e.style===a.style&&(!t||e[t]===a[t]),n=(e,a)=>{for(let t=e.length;t--;)a(t,e[t])}})(),landscape=e})();
\ No newline at end of file
diff --git a/docs/dynamic/index.html b/docs/dynamic/index.html
index e021973..c45fe34 100644
--- a/docs/dynamic/index.html
+++ b/docs/dynamic/index.html
@@ -359,7 +359,7 @@
- Preparing search index...
- The search index is not available
LandscapeLandscape
Index
Interfaces
Type Aliases
Functions
Type Aliases
Cell
An extension of Element, adding the number of rows and columns the element will occupy in the final table rendering.
-Element
Element
The final text and class name to use when rendering cells in a table.
-Functions
merge
Functions
merge
Merge adjacent cells in a split table on the y and/or x axes.
Parameters
cells: Cell[][]
A table of Cells created by a previous call to splitX or splitY.
@@ -10,7 +10,7 @@A flag to indicate that cells should be merged on the x axis.
onY: boolean
A flag to indicate that cells should be merged on the y axis.
-Returns void
table
Returns void
table
Generates a table from a cube and it's axis.
Type Parameters
TRow
Parameters
cube: Cube<TRow>
The source cube.
diff --git a/docs/api/v3/interfaces/Axes.html b/docs/api/v3/interfaces/Axes.html index 2aeba97..ddae921 100644 --- a/docs/api/v3/interfaces/Axes.html +++ b/docs/api/v3/interfaces/Axes.html @@ -1,7 +1,7 @@- Preparing search index...
- The search index is not available
LandscapeInterface Axes<TRow>
The pair of axes to be used in a pivot operation.
-Type Parameters
TRow
Hierarchy
Index
Properties
Properties
x
Type Parameters
TRow
Hierarchy
Index
Properties
Properties
x
The x axis; columns in the resultant pivot table.
-y
y
The y axis; rows in the resultant pivot table.
Generated using TypeDoc
- Preparing search index...
- The search index is not available
LandscapeInterface Layout
Table layout for rendering purposes.
-Hierarchy
Index
Properties
Properties
cols
Hierarchy
Index
Properties
Properties
cols
The number of columns to occupy.
-rows
rows
The number of rows to occupy.
Generated using TypeDoc
- Preparing search index...
- The search index is not available
LandscapeInterface Style
Styling information for rendering purposes.
-Hierarchy
Index
Properties
Properties
style
Hierarchy
Index
Properties
Properties
style
The class name to use in the final table rendering.
-Optional text
Optional text
Optional text to display in place of Pair.value (which is used to de-dup); this should have a single value for any given Pair.value.
Generated using TypeDoc
e?.value===a.value&&e.style===a.style&&(!t||e[t]===a[t]),p=(e,a)=>{for(let t=e.length;t--;)a(t,e[t])}})(),landscape=e})(); \ No newline at end of file +var landscape;(()=>{"use strict";var e={};(()=>{var a=e;Object.defineProperty(a,"__esModule",{value:!0}),a.merge=a.table=void 0,a.table=(e,a,t,r,o=Math.max)=>{const n=e.map((e=>e.map((e=>l(e,t))))),p=a.x.map(((e,a)=>r?o(...n.map((e=>e[a].length))):1));return m(n,n.map((e=>r?1:o(...e.map((e=>e.length))))),a.x[0].metadata.map(((e,t)=>m(a.x,p,a.y[0].metadata.map((()=>s("axis xy"))),(e=>s(`axis x ${String(e.metadata[t].key)}`,e.metadata[t].value))))),((e,t,l,r)=>m(e,p,a.y[r].metadata.map((e=>s(`axis y ${String(e.key)}`,e.value))),((e,a,r)=>({...e[Math.floor(e.length*(l+r)/(a*t))]})))))},a.merge=(e,a,l)=>n(e,((r,s)=>n(s,((m,o)=>l&&r&&t(e[r-1][m],o,"cols","rows",s,m)||a&&m&&t(s[m-1],o,"rows","cols",s,m)))));const t=(e,a,t,l,r,s)=>!!o(e,a,t)&&(e[l]+=a[l],r.splice(s,1),!0),l=(e,a)=>e.reduce(((t,l,s)=>{const m=a(l,s,e);return t.some((e=>o(e,m)))||t.push(r(m)),t}),e.length?[]:[s("empty")]),r=e=>({...e,rows:1,cols:1}),s=(e,a="")=>r({key:"",value:a,style:e}),m=(e,a,t,l)=>{for(let r=e.length,s=0;se?.value===a.value&&e.style===a.style&&(!t||e[t]===a[t]),n=(e,a)=>{for(let t=e.length;t--;)a(t,e[t])}})(),landscape=e})();
\ No newline at end of file
diff --git a/docs/dynamic/index.html b/docs/dynamic/index.html
index e021973..c45fe34 100644
--- a/docs/dynamic/index.html
+++ b/docs/dynamic/index.html
@@ -359,7 +359,7 @@ Social