diff --git a/docs/api/v3/index.html b/docs/api/v3/index.html index ba54fdf..80892aa 100644 --- a/docs/api/v3/index.html +++ b/docs/api/v3/index.html @@ -1,8 +1,8 @@ -Landscape
Options
All
  • Public
  • Public/Protected
  • All
Menu

Landscape

Index

Interfaces

Type Aliases

Functions

Type Aliases

Cell: Element & Layout
+Landscape
Options
All
  • Public
  • Public/Protected
  • All
Menu

Landscape

Index

Interfaces

Type Aliases

Functions

Type Aliases

Cell: Element & Layout

An extension of Element, adding the number of rows and columns the element will occupy in the final table rendering.

-
Element: Pair & Style
+
Element: Pair<string | number, any> & Style

The final text and class name to use when rendering cells in a table.

-

Functions

  • merge(cells: Cell[][], onX: boolean, onY: boolean): void

Functions

  • merge(cells: Cell[][], onX: boolean, onY: boolean): void
  • 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<TRow>(cube: Cube<TRow>, axes: Axes<TRow>, getElement: Callback<TRow, Element>, onX: boolean, method?: FunctionVA<number, number>): Cell[][]

Returns void

  • table<TRow>(cube: Cube<TRow>, axes: Axes<TRow>, getElement: Callback<TRow, Element>, onX: boolean, method?: FunctionVA<number, number>): Cell[][]
  • 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 @@ Axes | Landscape
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface Axes<TRow>

      The pair of axes to be used in a pivot operation.

      -

      Type Parameters

      • TRow

      Hierarchy

      • Axes

      Index

      Properties

      Properties

      x: Dimension<TRow>
      +

      Type Parameters

      • TRow

      Hierarchy

      • Axes

      Index

      Properties

      Properties

      x: Dimension<TRow>

      The x axis; columns in the resultant pivot table.

      -
      y: Dimension<TRow>
      +
      y: Dimension<TRow>

      The y axis; rows in the resultant pivot table.

      Legend

      • Property

      Settings

      Theme

      Generated using TypeDoc

      \ 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
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface Layout

      Table layout for rendering purposes.

      -

      Hierarchy

      • Layout

      Index

      Properties

      Properties

      cols: number
      +

      Hierarchy

      • Layout

      Index

      Properties

      Properties

      cols: number

      The number of columns to occupy.

      -
      rows: number
      +
      rows: number

      The number of rows to occupy.

      Legend

      • Property

      Settings

      Theme

      Generated using TypeDoc

      \ 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
      Options
      All
      • Public
      • Public/Protected
      • All
      Menu

      Interface Style

      Styling information for rendering purposes.

      -

      Hierarchy

      • Style

      Index

      Properties

      Properties

      style: string
      +

      Hierarchy

      • Style

      Index

      Properties

      Properties

      style: string

      The class name to use in the final table rendering.

      -
      text?: string
      +
      text?: string

      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.

      Legend

      • Property

      Settings

      Theme

      Generated using TypeDoc

      \ 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 @@

      Social