forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 4
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 (apache#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
1 parent
0a589b4
commit 7e7d114
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
28 changes: 0 additions & 28 deletions
28
...nd/temporary_superset_ui/superset-ui/plugins/plugin-chart-word-cloud/src/chart/Encoder.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
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
2 changes: 1 addition & 1 deletion
2
...mporary_superset_ui/superset-ui/plugins/plugin-chart-word-cloud/src/legacyPlugin/index.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
3 changes: 1 addition & 2 deletions
3
...uperset_ui/superset-ui/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
2 changes: 1 addition & 1 deletion
2
...end/temporary_superset_ui/superset-ui/plugins/plugin-chart-word-cloud/src/plugin/index.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