gis-view-webgl2 0.1.6 → 0.1.7
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +86 -7
- package/dist/index.js +1 -1
- package/docs/AI/345/257/271/350/257/235/346/261/207/346/200/273.md +57 -0
- package/docs/GisView.md +1 -1
- package/docs/ai/06-/344/274/232/350/257/235/347/264/242/345/274/225/344/270/216/345/244/215/346/237/245/346/226/271/346/263/225.md +62 -0
- package/docs/demos/LabelDemo.vue +2 -2
- package/docs/demos/StyleDemo.vue +1 -1
- package/docs/demos/api-index.js +8 -7
- package/docs/demos/gis-view-demo/useGisViewDemo.js +2 -2
- package/docs/manual/04-/344/272/213/344/273/266/344/270/216/345/233/236/350/260/203.md +36 -8
- package/docs/manual/07-/346/214/207/351/222/210/344/270/216/350/246/201/347/264/240/347/274/226/350/276/221.md +7 -6
- package/docs/manual/08-/351/200/211/344/270/255/344/270/216/346/213/220/347/202/271.md +59 -3
- package/docs/manual/09-/351/200/232/351/201/223/344/270/216/345/244/232/345/233/236/347/272/277.md +14 -1
- package/docs/manual/16-/345/256/236/344/276/213/346/226/271/346/263/225/346/200/273/350/241/250.md +6 -5
- package/docs/manual/17-/345/217/202/346/225/260/351/200/237/346/237/245.md +7 -6
- package/docs/manual/18-/351/200/220/346/226/271/346/263/225/347/244/272/344/276/213.md +7 -1
- package/docs/manual/20-/346/200/247/350/203/275/344/270/216/345/244/247/346/225/260/346/215/256.md +1 -0
- package/docs/steps/README.md +4 -4
- package/docs/steps/selftest-demos.html +2 -2
- package/docs/steps/selftest-docs.html +3 -3
- package/docs/steps/selftest-features.html +1 -1
- package/docs/steps/selftest-select.html +168 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
不依赖任何图形库的 WebGL2 矢量视图:点、线、背景层(图片 / GeoJSON)与首屏落位(`initialView`)都通过 `createGisView(dom, options)` 创建,宽高默认跟随传入的 DOM 容器;跨项目复用的视图级逻辑用 `plugins` 挂载。
|
|
4
4
|
|
|
5
|
-
本轮按 `问题.txt` 继续深挖整体性能,并补上后续做增量与自建视图时常用的三个公开能力:线路样式新增「只改线宽 / 颜色 / 透明度」的窄路(1000 点 + 50000 线连续 5 次交替,换色稳态 **10.1 ~ 11.7 ms → 6.1 ~ 7.4 ms**、换宽 **9.2 ~ 10.4 ms → 5.8 ~ 6.4 ms**,均约 40%;存在线路规则、热力图、虚线或效果时自动回退整份解析),解析与窄路共用 `resolveLinePaintInto`,逐线自身样式仍优先;实例新增 `flyToCamera({ center?, scale? }, { duration, easing })`(直接飞相机、不经过要素解析,缺省字段沿用当前相机)、只读 `dataVersion`(数据变更递增,样式变更不递增,并与 `onDataChange` 载荷同步)与 `getLineStyle(index)`(线路解析后的线宽 / RGBA / 透明度 / 层级快照)。`?demo=search-filter` 增加固定相机飞行、线路换色 / 加宽、改点与版本读数,可直接试这三个能力;相关手册、API
|
|
5
|
+
本轮按 `问题.txt` 继续深挖整体性能,并补上后续做增量与自建视图时常用的三个公开能力:线路样式新增「只改线宽 / 颜色 / 透明度」的窄路(1000 点 + 50000 线连续 5 次交替,换色稳态 **10.1 ~ 11.7 ms → 6.1 ~ 7.4 ms**、换宽 **9.2 ~ 10.4 ms → 5.8 ~ 6.4 ms**,均约 40%;存在线路规则、热力图、虚线或效果时自动回退整份解析),解析与窄路共用 `resolveLinePaintInto`,逐线自身样式仍优先;实例新增 `flyToCamera({ center?, scale? }, { duration, easing })`(直接飞相机、不经过要素解析,缺省字段沿用当前相机)、只读 `dataVersion`(数据变更递增,样式变更不递增,并与 `onDataChange` 载荷同步)与 `getLineStyle(index)`(线路解析后的线宽 / RGBA / 透明度 / 层级快照)。`?demo=search-filter` 增加固定相机飞行、线路换色 / 加宽、改点与版本读数,可直接试这三个能力;相关手册、API 速查、逐方法示例、性能页与自测同步扩充。另新增 `selectAt(clientX, clientY)`:按客户端坐标模拟普通单击选中,通道回线仍按 `channelSelectMode` 摊开。公开实例成员增至 **265**(**260** 个方法 + **5** 个属性),options / 数据字段 / 事件 / 功能开关保持 **96 / 250 / 43 / 17**。
|
|
6
6
|
|
|
7
7
|
- 渲染层:原生 WebGL2(GLSL ES 3.00 + 实例化绘制),没有任何运行时依赖,也不需要 Vue。
|
|
8
8
|
- 交互层:拖拽平移、滚轮缩放、按关键字搜索并定位(节点 / 线路 / 通道)、点击 / 双击拾取、点拖拽(相连线路同步移动)、Shift 拖动框选与 Ctrl 点击累加多选(多选后整组同步移动;`selectionKinds` 可限定只选节点 / 线路 / 通道或任意组合)、复制只带选中要素、节点合并可指定保留端并改写最终信息与样式、线路拐点编辑与通道多回线,全部走配置与回调 —— **这些能力缺省全关**,要哪一项显式打开(`features` 预设 / 开关表,或 `interactive: true` / `clickable: true` / `draggable: true` 这类详细配置,见 `docs/GisView.md` 的「功能开关」)。
|