Files
bot_dev1 85df71fc28 feat: 实现供水运营专题大屏BI可视化
- 新增OperationDashboard.vue全屏大屏组件
- 添加6个核心KPI指标卡片: 进水总量/出水总量/产销差率/营收额/平均水质/报警次数
- 实现6个ECharts图表: 供水趋势/水质分布/报警统计/管网空间/设备状态/营收分析
- 创建静态HTML版本operation-dashboard.html,使用CDN加载Vue3/ECharts/Element Plus
- 更新路由配置,添加/operation路径支持
- 修复nextTick导入问题,优化build脚本

🚧 开发者: bot_dev1
📝 任务: #38 [BI] 运营仪表盘 + 供水专题大屏
2026-06-15 09:06:11 +08:00

60 lines
1.6 KiB
Handlebars

[![npm version][npm-img]][npm-url]
[npm-img]: https://img.shields.io/npm/v/lerc.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/lerc
# Lerc JS
> Rapid decoding of Lerc compressed raster data for any standard pixel type, not just rgb or byte
## Browser
```html
<script type="text/javascript" src="https://unpkg.com/lerc"></script>
```
```js
Lerc.decode(xhrResponse, {
pixelType: "U8", // leave pixelType out in favor of F32 for lerc1
inputOffset: 10 // start from the 10th byte
});
```
## Node
```js
npm install lerc && npm install node-fetch
```
```js
const fetch = require('node-fetch');
const Lerc = require('lerc');
fetch('http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer/tile/0/0/0')
.then(response => response.arrayBuffer())
.then(body => {
const image = Lerc.decode(body);
image.width // 257
});
```
## API Reference
{{>main}}
* * *
## Licensing
Copyright &copy; 2017-2018 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
A local copy of the license and additional notices are located with the source distribution at:
http://github.com/Esri/lerc/