Skip to content

Commit

Permalink
Prep 3.8.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
David Mesquita-Morris committed May 16, 2022
1 parent 610e0f6 commit 9379440
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/node/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { Callback, FunctionVA, Pair } from '@steelbreeze/types';
import { Axes, Cube } from '@steelbreeze/pivot';
/** The final text and class name to use when rendering cells in a table. */
export interface Element extends Pair {
export interface Style {
/** The class name to use in the final table rendering. */
style: 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. */
text?: string;
}
/** An extension of Element, adding the number of rows and columns the element will occupy in the final table rendering. */
export interface Cell extends Element {
export interface Layout {
/** The number of rows to occupy. */
rows: number;
/** The number of columns to occupy. */
cols: number;
}
export declare type Element = Pair & Style;
export declare type Cell = Element & Layout;
/**
* Generates a table from a cube and it's axis.
* @param cube The source cube.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steelbreeze/landscape",
"version": "3.8.3",
"version": "3.8.4",
"description": "Landscape map viewpoint visualisation",
"main": "lib/node/index.js",
"module": "lib/node/index.js",
Expand Down
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Callback, FunctionVA, Pair } from '@steelbreeze/types';
import { Axes, Cube } from '@steelbreeze/pivot';

/** The final text and class name to use when rendering cells in a table. */
export interface Element extends Pair {
export interface Style {
/** The class name to use in the final table rendering. */
style: string;

Expand All @@ -11,14 +11,18 @@ export interface Element extends Pair {
}

/** An extension of Element, adding the number of rows and columns the element will occupy in the final table rendering. */
export interface Cell extends Element {
export interface Layout {
/** The number of rows to occupy. */
rows: number;

/** The number of columns to occupy. */
cols: number;
}

export type Element = Pair & Style;

export type Cell = Element & Layout;

/**
* Generates a table from a cube and it's axis.
* @param cube The source cube.
Expand Down

0 comments on commit 9379440

Please sign in to comment.