deck.gl 专注大规模数据的 GPU 可视化,渲染层建立在 WebGL2 上,并已向 WebGPU 扩展。它的组织方式是图层加视图:把数据(通常是 JSON 对象数组)映射成一层层视觉元素,图标、多边形、文字各成一类,再由地图、第一人称、正交等视图观看。图层负责画什么,视图负责从哪个角度看成,两者解耦后同一份数据可以反复换视角;现成图层拼起来就能出效果,不够用时按可扩展架构写自定义图层。大数据集的渲染与更新、交互响应这些麻烦事由框架接管。地理空间数据、点线面密集的场景是主要用武之地,适合要在浏览器里保持流畅交互的前端与数据团队。以 TypeScript 编写,MIT 许可,修改与商用只需保留版权声明。
deck.gl is designed to simplify high-performance, WebGL2/WebGPU based visualization of large data sets. Users can quickly get impressive visual results with minimal effort by composing existing layers, or leverage deck.gl's extensible architecture to address custom needs.
deck.gl maps data (usually an array of JSON objects) into a stack of visual layers - e.g. icons, polygons, texts; and look at them with views: e.g. map, first-person, orthographic.
deck.gl handles a number of challenges out of the box:
Deck.gl is designed to be highly customizable. All layers come with flexible APIs to allow programmatic control of each aspect of the rendering. All core classes such are easily extendable by the users to address custom use cases.
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
npm install deck.gl
pip install pydeck
deck.gl is part of vis.gl, an OpenJS Foundation project. Read the contribution guidelines if you are interested in contributing.
Data sources are listed in each example.
| 日期 | 榜单 | 排名 | 周期新增 | 总 STAR |
|---|