-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate all long titles inside of plots (#2365)
* Truncate axis titles * Truncate all titles * Self review * Change tests
- Loading branch information
Showing
4 changed files
with
100 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
import isEqual from 'lodash.isequal' | ||
|
||
export type BaseType = string | number | boolean | Object | undefined | null | ||
export type BaseType = | ||
| string | ||
| number | ||
| boolean | ||
| object | ||
| Obj | ||
| undefined | ||
| null | ||
|
||
export type Any = BaseType | BaseType[] | ||
|
||
export type Obj = { [key: string]: Any } | ||
|
||
export const keepReferenceIfEqual = (old: BaseType, recent: BaseType) => | ||
isEqual(old, recent) ? old : recent |