This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Word cloud typography update (#518)
* feat: adding style package for Emotion support * importing supersetTheme * using theme (directly) * updating encoder with direct font implementation * fixing query bug! * remove groupby * using theme via Emotion for type styles - various TS-driven refactoring * bug: whoops, this file is effectively a duplicate! * cleaning up package paths. * another relative path * nixing debug junk
- Loading branch information
Showing
7 changed files
with
44 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +0,0 @@ | ||
import { createEncoderFactory, DeriveEncoding } from 'encodable'; | ||
|
||
type WordCloudEncodingConfig = { | ||
color: ['Color', string]; | ||
fontFamily: ['Category', string]; | ||
fontSize: ['Numeric', number]; | ||
fontWeight: ['Category', string | number]; | ||
text: ['Text', string]; | ||
}; | ||
|
||
export const wordCloudEncoderFactory = createEncoderFactory<WordCloudEncodingConfig>({ | ||
channelTypes: { | ||
color: 'Color', | ||
fontFamily: 'Category', | ||
fontSize: 'Numeric', | ||
fontWeight: 'Category', | ||
text: 'Text', | ||
}, | ||
defaultEncoding: { | ||
color: { value: 'black' }, | ||
fontFamily: { value: 'Helvetica' }, | ||
fontSize: { value: 20 }, | ||
fontWeight: { value: 'bold' }, | ||
text: { value: '' }, | ||
}, | ||
}); | ||
|
||
export type WordCloudEncoding = DeriveEncoding<WordCloudEncodingConfig>; | ||
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
3 changes: 1 addition & 2 deletions
3
plugins/plugin-chart-word-cloud/src/legacyPlugin/transformProps.ts
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
873973b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: