antv-l7/stories/layerbuild/map.stories.tsx

112 lines
4.2 KiB
TypeScript
Raw Normal View History

feat: 渲染流程异步改造、部分支持 worker (#1224) * feat: 去处事件节流 * feat: 创建图层流程改造 + worker 功能验证 * style: lint style * feat: 修改 worker 引入 * feat: 调整 worker 的拼接 * style: lint style * feat: 修改 source 构建流程为异步 * style: lint style * feat: 在点图层中去除 global 的耦合 * style: lint style * fix: 修复更新 style 的同时更新了 option 带来的问题 * style: lint style * feat: 拆除 arc3d 地球模式和普通模式的耦合 * style: lint style * feat: 修改 worker * style: lint style * feat: 优化图层创建渲染流程 * style: lint style * Merge branch 'workspace' into tileDemo * style: style lint * feat: 改在点图层的创建流程 * style: lint style * style: lint style * chore: worker helper (#1241) * chore: worker helper * chore: 修改注册流程 * chore: 修改打包方式 * chore: 集成打包环境 * style: lint style * feat: add worker pool failed * style: lint style * style: lint style * feat: 更新 worker 的使用 * chore: 更新 scripts 标签 (#1242) * feat: remove utils triangulation * feat: 完成 pointLayer/earthLayer 的异步改造 * style: lint style * style: lint style * style: lint style * chore: 修改 worker 执行函数 (#1246) * chore: 修改 worker 执行函数 * chore: remove console * feat: 完成线图层和线图层的异步创建流程改造 * style: lint style * style: lint style * feat: 完成 polygon 创建流程的异步改造 * style: lint style * feat: 完成 heatmap 创建流程的异步改造 * style: lint style * feat: 完成 citybuildingLayer 图层创建的异步改造 * style: lint style * feat: 完成 imageLayer 创建异步改造 * style: lint style * feat: 完成 ImageLayer/RasterLayer 创建的异步改造 * style: lint style * feat: 完成 geometryLayer 创建的异步改造 * style: lint style * feat: 完成 WindLayer 创建的异步改造 * style: lint style * feat: 完成 tileLayer 瓦片图层创建图层的异步改造 * style: lint style * feat: 调整 worker 调用的参数和 worker 代码的位置 * style: lint style * chore: 调整 worker 代码结构 * style: lint style * feat: 梳理完善 layer 的 modelName * style: lint style * chore: 调整部分 modeName 的命名 * feat: 线图层的 lineModel 支持 worker 计算 * style: lint style * feat: 完善 source 异步改造,增加测试 * style: lint style * feat: 支持 polygonFill 的 worker 计算 * style: lint style * feat: tile point/line/polygon 支持 worker 计算 * style: lint style * chore: 调整 worker 目录结构 * style: lint style * chore: 修改 worker 打包路径 * feat: 增加 ISrource 时间的类型定义 * chore: change function getPureDescriptors -> getDescriptorsWithOutFunc * feat: 完善类型定义,去除额外 worker 代码 * chore: worker 注册放到 utils 里面 (#1253) * chore: 代码清理 * style: lint style * fix: 修复 encodeData 可能的空值 * feat: 地球模式的点、线图层兼容写法 * style: lint style * feat: 完成对 dataImage 的异步改造 * fix: 修复 demo 中对时序数据的使用 * style: lint style * fix: 修复点图层文字重新布局未重绘问题 * fix: 修复 pointLayer fillImage 失效 * style: lint style * chore: 在官网 demo 中去除 multipass * chore: 调整官网 demo 效果 * style: lint style * chore: 调整官网 demo * style: lint style * fix: 修复 layerModel 使用的报错 * chore: update l7plot version Co-authored-by: lvisei <yunji.me@outlook.com>
2022-08-02 19:05:27 +08:00
import { storiesOf } from '@storybook/react';
import * as React from 'react';
import PointFill from './components/Points';
import PointExtrue from './components/PointsExtrude';
import PointText from './components/PointsText';
import PointSimple from './components/PointsSimple';
import PointsNormal from './components/PointsNormal';
import PointsFillImage from './components/PointsFillImage';
import PointImage from './components/PointsImage';
import PointIconFont from './components/PointsIconFont';
import PointRader from './components/PointsRadar';
import PointTile from './components/PointsTile';
import PointsTextTile from './components/PointsTextTile';
import PointEarthFill from './components/PointsEarthFill';
import PointEarthExtrude from './components/PointsEarthExtrude';
import Line from './components/Line';
import LineArc from './components/LineArc';
import LineArc3d from './components/LineArc3d';
import LineLinear from './components/LineLinear';
import LineSimple from './components/LineSimple';
import LineHalf from './components/LineHalf';
import LineGreatCircle from './components/LineGreatCircle';
import LineWall from './components/LineWall';
import LineEarthArc3D from './components/LineEarthArc3D';
import LineTile from './components/LineTile';
import PolygonFill from './components/Polygon';
import PolygonExtrude from './components/PolygonExtrude';
import PolygonOcean from './components/PolygonOcean';
import PolygonWater from './components/PolygonWater';
import PolygonTile from './components/PolygonTile';
import Heatmap from './components/Heatmap';
import Heatmap3d from './components/Heatmap3d';
import HeatmapGrid from './components/HeatmapGrid';
import HeatmapGrid3d from './components/HeatmapGrid3d';
import HeatmapHexagon from './components/HeatmapHexagon';
import CityBuilding from './components/CityBuilding';
import ImageLayer from './components/ImageLayer';
import RasterLayer from './components/RasterLayer';
import Billboard from './components/Billboard';
import Sprite from './components/Sprite';
import Plane from './components/Plane';
import Wind from './components/Wind';
import RasterImageTile from './components/RasterImageTile';
import RasterDataTile from './components/RasterDataTile';
import SourceTest from './components/SourceTest';
storiesOf('图层渲染流程改造', module)
.add('pointFill', () => <PointFill />)
.add('PointExtrue', () => <PointExtrue />)
.add('PointText', () => <PointText />)
.add('PointSimple', () => <PointSimple />)
.add('PointsNormal', () => <PointsNormal />)
.add('PointsFillImage', () => <PointsFillImage />)
.add('PointImage', () => <PointImage />)
.add('PointIconFont', () => <PointIconFont />)
.add('PointRader', () => <PointRader />)
.add('PointEarthFill', () => <PointEarthFill />)
.add('PointEarthExtrude', () => <PointEarthExtrude />)
.add('Line', () => <Line />)
.add('LineArc', () => <LineArc />)
.add('LineArc3d', () => <LineArc3d />)
.add('LineLinear', () => <LineLinear />)
.add('LineSimple', () => <LineSimple />)
.add('LineHalf', () => <LineHalf />)
.add('LineGreatCircle', () => <LineGreatCircle />)
.add('LineWall', () => <LineWall />)
.add('LineEarthArc3D', () => <LineEarthArc3D />)
.add('PolygonFill', () => <PolygonFill />)
.add('PolygonExtrude', () => <PolygonExtrude />)
.add('PolygonOcean', () => <PolygonOcean />)
.add('PolygonWater', () => <PolygonWater />)
.add('Heatmap', () => <Heatmap />)
.add('Heatmap3d', () => <Heatmap3d />)
.add('HeatmapGrid', () => <HeatmapGrid />)
.add('HeatmapGrid3d', () => <HeatmapGrid3d />)
.add('HeatmapHexagon', () => <HeatmapHexagon />)
.add('CityBuilding', () => <CityBuilding />)
.add('ImageLayer', () => <ImageLayer />)
.add('RasterLayer', () => <RasterLayer />)
.add('Billboard', () => <Billboard />)
.add('Sprite', () => <Sprite />)
.add('Plane', () => <Plane />)
.add('Wind', () => <Wind />)
.add('TilePoint', () => <PointTile />)
.add('TileLine', () => <LineTile />)
.add('TilePolygon', () => <PolygonTile />)
.add('TilePointText', () => <PointsTextTile />)
.add('TileRasterImage', () => <RasterImageTile />)
.add('TileRasterData', () => <RasterDataTile />)
.add('SourceTest', () => <SourceTest />)