@astrato-io/visualizations 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -24
- package/chunks/{requirements-PAoRaJyb.js → requirements-Dvd8jqYF.js} +296 -268
- package/chunks/{standalone-DVTJwsTY.js → standalone-vBnBS2YC.js} +564 -555
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +1 -1
- package/docs/operations/line.md +1 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/index.js +1185 -3
- package/metadata.js +14 -15
- package/package.json +3 -39
- package/src/getters/index.d.ts +3 -3
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +3 -3
- package/src/runtime/index.d.ts +2 -2
- package/src/types.d.ts +4 -8
- package/src/web-components/index.d.ts +3 -3
- package/chunks/registry-KervaxqJ.js +0 -31
- package/chunks/web-components-DqClFkgO.js +0 -1185
- package/render.js +0 -10
- package/src/charts/bar.d.ts +0 -1
- package/src/charts/combo.d.ts +0 -1
- package/src/charts/dot.d.ts +0 -1
- package/src/charts/gauge-distribution.d.ts +0 -1
- package/src/charts/gauge.d.ts +0 -1
- package/src/charts/heat-map.d.ts +0 -1
- package/src/charts/histogram.d.ts +0 -1
- package/src/charts/line.d.ts +0 -1
- package/src/charts/pie.d.ts +0 -1
- package/src/charts/radar.d.ts +0 -1
- package/src/charts/sankey.d.ts +0 -1
- package/src/charts/scatter.d.ts +0 -1
- package/src/charts/table.d.ts +0 -1
- package/src/charts/tree.d.ts +0 -1
- package/src/charts/treemap.d.ts +0 -1
- package/src/charts/waterfall.d.ts +0 -1
- package/src/charts/word-cloud.d.ts +0 -1
- package/src/objects/app-filter-bar.d.ts +0 -1
- package/src/objects/date-picker.d.ts +0 -1
- package/src/objects/filter.d.ts +0 -1
- package/src/objects/iframe.d.ts +0 -1
- package/src/objects/image.d.ts +0 -1
- package/src/objects/number.d.ts +0 -1
- package/src/objects/shape.d.ts +0 -1
- package/src/objects/slider.d.ts +0 -1
- package/src/objects/text.d.ts +0 -1
- package/src/registry/create-visualization-registry.d.ts +0 -5
- package/src/render/index.d.ts +0 -34
package/README.md
CHANGED
|
@@ -788,29 +788,6 @@ import {
|
|
|
788
788
|
} from '@astrato-io/visualizations';
|
|
789
789
|
```
|
|
790
790
|
|
|
791
|
-
### Choosing Visualization Types
|
|
792
|
-
|
|
793
|
-
The root `registry` includes every visualization type. A bundle that cannot load implementations on demand, such as a
|
|
794
|
-
single self-contained page, then includes all of them. Import the types you draw from
|
|
795
|
-
`@astrato-io/visualizations/render` and build a registry from them instead:
|
|
796
|
-
|
|
797
|
-
```ts
|
|
798
|
-
import {
|
|
799
|
-
barVisualization,
|
|
800
|
-
createVisualizationRegistry,
|
|
801
|
-
createVisualizationRuntime,
|
|
802
|
-
filterVisualization,
|
|
803
|
-
lineVisualization,
|
|
804
|
-
} from '@astrato-io/visualizations/render';
|
|
805
|
-
|
|
806
|
-
const registry = createVisualizationRegistry([barVisualization, lineVisualization, filterVisualization]);
|
|
807
|
-
const runtime = createVisualizationRuntime({ client, registry });
|
|
808
|
-
const vSpec = registry.bar?.createDefaultVSpec();
|
|
809
|
-
```
|
|
810
|
-
|
|
811
|
-
The runtime rejects an instance whose type is missing from its registry. Pass the same registry to `applyOperations`
|
|
812
|
-
and `processGetterRequests` to limit them to those types too.
|
|
813
|
-
|
|
814
791
|
## Selection Groups
|
|
815
792
|
|
|
816
793
|
Instances with the same `groupId` share SDK selection and filter state. Instances without a group use `default`.
|
|
@@ -866,7 +843,6 @@ to browser storage.
|
|
|
866
843
|
| Export | Contents |
|
|
867
844
|
| ---------------------------------------- | -------------------------------------------------------------------- |
|
|
868
845
|
| `@astrato-io/visualizations` | Runtime, registry, web-component bootstrap, and shared runtime types |
|
|
869
|
-
| `@astrato-io/visualizations/render` | Runtime and per-type registry entries, for bundles of chosen types |
|
|
870
846
|
| `@astrato-io/visualizations/operations` | Runtime-managed and low-level vSpec operation execution |
|
|
871
847
|
| `@astrato-io/visualizations/getters` | Optional vSpec getter execution |
|
|
872
848
|
| `@astrato-io/visualizations/metadata` | Optional serializable visualization metadata |
|