superset/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-encodable
Krist Wongsuphasawat 1978d9bc2e feat(encodable): fill missing fields in user-specified channel definition (#222)
* feat: fill missing fields in user-specified channel definition

* fix: type

* test: add unit tests

* fix: lint

* test: add more unit tests

* test: add unit tests

* test: fix unit tests

* fix: unit tests

* refactor: change order of parameters

* fix: type annotation

* fix: type annotation

* feat: add generic support

* refactor: reorder params

* fix: rename variables
2021-11-26 11:44:57 +08:00
..
src feat(encodable): fill missing fields in user-specified channel definition (#222) 2021-11-26 11:44:57 +08:00
test feat(encodable): fill missing fields in user-specified channel definition (#222) 2021-11-26 11:44:57 +08:00
package.json v0.12.3 2021-11-26 11:44:56 +08:00
README.md refactor: rename encodeable to encodable (#214) 2021-11-26 11:44:56 +08:00

@superset-ui/encodable

Version David (path)

This package provides standardized API for encodable components and adopts the grammar from vega-lite grammar and copy their logic for determining smart defaults (e.g. choosing scale type based on data type, etc.) In addition, it leverages sibling superset-ui packages to use the number and time formatters as well as color scales.

Example usage

import { xxx } from '@superset-ui/encodable';

API

fn(args)

  • Do something

Development

@data-ui/build-config is used to manage the build configuration for this package including babel builds, jest testing, eslint, and prettier.