mirror of
https://github.com/apache/superset.git
synced 2026-05-25 09:45:18 +00:00
Introduce `defineChart()` — a declarative pattern that bundles metadata,
arguments (control-panel config), buildQuery, transform, and render into
a single chart-plugin file. Migrate every chart plugin to this pattern:
* plugin-chart-echarts: Pie, Funnel, Gauge, Sankey, Waterfall,
Histogram, Tree, Bubble, BoxPlot, Sunburst, Radar, Treemap, Graph,
Heatmap, Gantt, BigNumber (Total, WithTrendline, PoP, Glyph demo),
MixedTimeseries, and the Timeseries family (Generic, Scatter,
SmoothLine, Step, Area, Line, Bar)
* legacy-plugin-chart-*: calendar, horizon, chord, country-map,
world-map, paired-t-test, parallel-coordinates, partition, rose,
map-box
* other plugins: handlebars, word-cloud, pivot-table, table,
ag-grid-table, cartodiagram
* legacy-preset-chart-nvd3: Bubble, Bullet, Compare, TimePivot
* legacy-preset-chart-deckgl: Grid, Hex, Polygon, Scatter (single-file
defineChart); Arc, Contour, Geojson, Heatmap, Path, Screengrid kept
on the original multi-file ChartPlugin pattern pending follow-up
Glyph-core lives as @superset-ui/glyph-core (extracted package) and
provides: defineChart, ~14 argument types (Metric, Dimension, Select,
Checkbox, Text, Int, Slider, etc.), reusable presets (ShowLegend,
HeaderFontSize, Subtitle, etc.), cross-filter utilities
(extractCrossFilterProps, createSelectedValuesMap, isDataPointFiltered,
createLabelMap), and visibility-condition helpers
(resolveArgClass, getArgVisibleWhen, evaluateGlyphCondition).
Customize-tab rendering uses a new GlyphOptionsPanel — a native React
renderer that hybrids glyph args with additionalControls, with
inlined sharedControls in the Query section.
Imports are routed through @apache-superset/core subpath entrypoints
(/translation for t, /common for GenericDataType).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
84 lines
2.2 KiB
JSON
84 lines
2.2 KiB
JSON
{
|
|
"name": "@superset-ui/preset-chart-deckgl",
|
|
"version": "1.0.0",
|
|
"description": "Superset Chart Plugin - deck.gl (MapLibre)",
|
|
"keywords": [
|
|
"superset"
|
|
],
|
|
"homepage": "https://superset.apache.org/",
|
|
"bugs": {
|
|
"url": "https://github.com/apache/superset/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/apache/superset.git",
|
|
"directory": "superset-frontend/plugins/preset-chart-deckgl"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"author": "Superset",
|
|
"sideEffects": true,
|
|
"main": "lib/index.js",
|
|
"module": "esm/index.js",
|
|
"files": [
|
|
"esm",
|
|
"lib"
|
|
],
|
|
"dependencies": {
|
|
"@deck.gl/aggregation-layers": "~9.2.11",
|
|
"@deck.gl/core": "~9.2.5",
|
|
"@deck.gl/extensions": "~9.2.9",
|
|
"@deck.gl/geo-layers": "~9.2.5",
|
|
"@deck.gl/layers": "~9.2.5",
|
|
"@deck.gl/mapbox": "~9.3.2",
|
|
"@deck.gl/mesh-layers": "~9.2.5",
|
|
"@luma.gl/constants": "~9.2.5",
|
|
"@luma.gl/core": "~9.2.5",
|
|
"@luma.gl/engine": "~9.2.6",
|
|
"@luma.gl/shadertools": "~9.2.6",
|
|
"@luma.gl/webgl": "~9.2.6",
|
|
"@mapbox/geojson-extent": "^1.0.1",
|
|
"@mapbox/tiny-sdf": "^2.0.7",
|
|
"@math.gl/web-mercator": "^4.1.0",
|
|
"@types/d3-array": "^3.2.2",
|
|
"@types/geojson": "^7946.0.16",
|
|
"bootstrap-slider": "^11.0.2",
|
|
"d3-array": "^3.2.4",
|
|
"d3-color": "^3.1.0",
|
|
"d3-scale": "^4.0.2",
|
|
"handlebars": "^4.7.9",
|
|
"lodash": "^4.18.1",
|
|
"maplibre-gl": "^5.24.0",
|
|
"mousetrap": "^1.6.5",
|
|
"ngeohash": "^0.6.3",
|
|
"prop-types": "^15.8.1",
|
|
"react-map-gl": "^8.1.1",
|
|
"underscore": "^1.13.7",
|
|
"urijs": "^1.19.11",
|
|
"xss": "^1.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mapbox__geojson-extent": "^1.0.3",
|
|
"@types/ngeohash": "^0.6.8",
|
|
"@types/underscore": "^1.13.0",
|
|
"@types/urijs": "^1.19.26"
|
|
},
|
|
"peerDependencies": {
|
|
"@apache-superset/core": "*",
|
|
"@superset-ui/chart-controls": "*",
|
|
"@superset-ui/core": "*",
|
|
"@superset-ui/glyph-core": "*",
|
|
"dayjs": "^1.11.19",
|
|
"mapbox-gl": ">=1.0.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"mapbox-gl": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|