diff options
author | bobzel <zzzman@gmail.com> | 2021-04-23 14:15:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-23 14:15:11 -0400 |
commit | 51b234e66dc819bb6fb714e55a62d8515a9c8886 (patch) | |
tree | 235e72515a05a82e2e46d9ba4ee4bdfc564bfb45 /src/client/views/StyleProvider.tsx | |
parent | 18cee14d5a1273e2db26fec7654dde3e67ec8f27 (diff) |
fixed code warnings. updated some npm pacakges including typescript.
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 96f9eab97..0fca61913 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -81,7 +81,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps const backgroundCol = () => props?.styleProvider?.(doc, props, StyleProp.BackgroundColor); const opacity = () => props?.styleProvider?.(doc, props, StyleProp.Opacity); const showTitle = () => props?.styleProvider?.(doc, props, StyleProp.ShowTitle); - const random = (min: number, max: number, x: number, y: number) => { /* min should not be equal to max */ return min + ((Math.abs(x * y) * 9301 + 49297) % 233280 / 233280) * (max - min); } + const random = (min: number, max: number, x: number, y: number) => /* min should not be equal to max */ min + ((Math.abs(x * y) * 9301 + 49297) % 233280 / 233280) * (max - min); switch (property.split(":")[0]) { case StyleProp.TreeViewIcon: return Doc.toIcon(doc, isOpen); case StyleProp.DocContents: return undefined; |