@antv/gpt-vis 1.3.0 → 1.3.2
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 +25 -2
- package/dist/cjs/theme/g6.d.ts +1 -1
- package/dist/cjs/theme/presets.d.ts +5 -0
- package/dist/cjs/theme/presets.js +663 -0
- package/dist/cjs/theme/resolve.js +2 -1
- package/dist/cjs/theme/table.js +1 -1
- package/dist/cjs/types/index.d.ts +3 -3
- package/dist/cjs/types/theme.d.ts +2 -0
- package/dist/cjs/vis/table/index.js +2 -0
- package/dist/cjs/vis-wrapper/index.js +2 -1
- package/dist/esm/theme/g6.d.ts +1 -1
- package/dist/esm/theme/presets.d.ts +5 -0
- package/dist/esm/theme/presets.js +1070 -0
- package/dist/esm/theme/resolve.js +5 -1
- package/dist/esm/theme/table.js +1 -1
- package/dist/esm/types/index.d.ts +3 -3
- package/dist/esm/types/theme.d.ts +2 -0
- package/dist/esm/vis/table/index.js +1 -1
- package/dist/esm/vis-wrapper/index.js +2 -1
- package/dist/umd/index.min.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type ChartType = 'area' | 'bar' | 'boxplot' | 'column' | 'dual-axes' | 'fishbone-diagram' | 'flow-diagram' | 'funnel' | 'histogram' | 'indented-tree' | 'line' | 'liquid' | 'mindmap' | 'network-graph' | 'organization-chart' | 'pie' | 'radar' | 'sankey' | 'scatter' | 'summary' | 'table' | 'treemap' | 'venn' | 'violin' | 'waterfall' | 'word-cloud';
|
|
2
|
+
/** Stable names accepted by the constructor, chart JSON, and visualization Syntax. */
|
|
3
|
+
export type BuiltinThemeName = 'default' | 'light' | 'dark' | 'academy' | 'gpt-vis' | 'midnight' | 'paper' | 'product' | 'neon-circuit' | 'terra-print' | 'mono-signal' | 'candy-pop' | 'pop' | 'bauhaus';
|
|
2
4
|
/** Reusable visual theme. Local chart config takes precedence over this spec. */
|
|
3
5
|
export interface ThemeSpec {
|
|
4
6
|
/** Stable identifier; does not register a theme name. */
|
|
@@ -104,7 +104,7 @@ function createVisWrapper(container, config = {}) {
|
|
|
104
104
|
<div class="gpt-vis-wrapper-chart">
|
|
105
105
|
<div class="gpt-vis-wrapper-chart-container"></div>
|
|
106
106
|
</div>
|
|
107
|
-
<div class="gpt-vis-wrapper-code gpt-vis-wrapper-tab-hide"
|
|
107
|
+
<div class="gpt-vis-wrapper-code gpt-vis-wrapper-tab-hide"></div>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
110
|
`;
|
|
@@ -114,6 +114,7 @@ function createVisWrapper(container, config = {}) {
|
|
|
114
114
|
const codeTabButton = wrapperContainer.querySelector('[data-tab="code"]');
|
|
115
115
|
const chartWrapper = wrapperContainer.querySelector(".gpt-vis-wrapper-chart");
|
|
116
116
|
const codeContainer = wrapperContainer.querySelector(".gpt-vis-wrapper-code");
|
|
117
|
+
codeContainer.textContent = syntaxString;
|
|
117
118
|
const chartContainer = wrapperContainer.querySelector(
|
|
118
119
|
".gpt-vis-wrapper-chart-container"
|
|
119
120
|
);
|
package/dist/esm/theme/g6.d.ts
CHANGED