diff options
author | bobzel <zzzman@gmail.com> | 2024-05-20 13:13:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-20 13:13:11 -0400 |
commit | a5aa41e60dc72881e1aa2f14743b9f00c1160eed (patch) | |
tree | a2f275118455c1f34b76aeca694325ff2839b3fc /src/Utils.ts | |
parent | aab428589c07ef6ecb92d3c2ed7fe5f6e8ff9104 (diff) |
fixed pivotView to provide a white background to docs with no background so that images will show up, and so text doesn't blend in to column. changed image labeling to show a pivot view and assigne metadata instead of creating collections.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 44f1d55c2..23ae38bdb 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -211,6 +211,11 @@ export type Without<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; export type Predicate<K, V> = (entry: [K, V]) => boolean; +/** + * creates a list of numbers ordered from 0 to 'num' + * @param num range of numbers + * @returns list of values from 0 to num -1 + */ export function numberRange(num: number) { return num > 0 && num < 1000 ? Array.from(Array(num)).map((v, i) => i) : []; } |