@mesh3d/cesium-vectortile-gl 0.1.0
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/LICENSE.md +21 -0
- package/README.md +120 -0
- package/Source/Cesium.d.ts +2692 -0
- package/Source/VectorTileLOD.js +494 -0
- package/Source/VectorTileRenderList.js +65 -0
- package/Source/VectorTileset.js +309 -0
- package/Source/layers/BackgroundRenderLayer.js +82 -0
- package/Source/layers/FillRenderLayer.js +18 -0
- package/Source/layers/IRenderLayer.js +128 -0
- package/Source/layers/LineRenderLayer.js +94 -0
- package/Source/layers/SymbolRenderLayer.js +31 -0
- package/Source/layers/index.js +16 -0
- package/Source/layers/registerRenderLayer.js +24 -0
- package/Source/layers/visualizers/FillLayerVisualizer.js +420 -0
- package/Source/layers/visualizers/ILayerVisualizer.js +73 -0
- package/Source/layers/visualizers/LineLayerVisualizer.js +565 -0
- package/Source/layers/visualizers/SymbolLayerVisualizer.js +179 -0
- package/Source/sources/GeoJSONSource.js +46 -0
- package/Source/sources/ISource.js +39 -0
- package/Source/sources/VectorSource.js +45 -0
- package/Source/sources/granularitySettings.js +20 -0
- package/Source/sources/index.js +11 -0
- package/Source/sources/registerSource.js +19 -0
- package/Source/style/StyleLayer.js +43 -0
- package/Source/style/StyleLayerProperties.js +43 -0
- package/Source/style/index.js +2 -0
- package/dist/cvt-gl.js +10642 -0
- package/dist/cvt-gl.js.map +1 -0
- package/dist/cvt-gl.min.js +135 -0
- package/dist/cvt-gl.min.js.map +1 -0
- package/index.js +6 -0
- package/logo.svg +47 -0
- package/package.json +36 -0
package/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./Source/sources";
|
|
2
|
+
export * from "./Source/style";
|
|
3
|
+
export * from "./Source/layers";
|
|
4
|
+
export { VectorTileLOD } from "./Source/VectorTileLOD";
|
|
5
|
+
export { VectorTileRenderList } from "./Source/VectorTileRenderList";
|
|
6
|
+
export { VectorTileset } from "./Source/VectorTileset";
|
package/logo.svg
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- 背景透明 -->
|
|
3
|
+
<rect width="400" height="400" fill="transparent"/>
|
|
4
|
+
|
|
5
|
+
<!-- 地球:经纬线 + 瓦片网格 -->
|
|
6
|
+
<g stroke="#2196F3" stroke-width="1.5" fill="none" opacity="0.8">
|
|
7
|
+
<!-- 外圆(赤道) -->
|
|
8
|
+
<circle cx="200" cy="200" r="70" />
|
|
9
|
+
|
|
10
|
+
<!-- 经线(3条) -->
|
|
11
|
+
<path d="M200,130 A70,70 0 0,1 200,270" />
|
|
12
|
+
<path d="M200,130 A70,70 0 0,0 200,270" />
|
|
13
|
+
<line x1="130" y1="200" x2="270" y2="200" />
|
|
14
|
+
|
|
15
|
+
<!-- 瓦片网格(示意 MVT 分块) -->
|
|
16
|
+
<rect x="165" y="165" width="35" height="35" stroke-dasharray="2,2" opacity="0.6"/>
|
|
17
|
+
<rect x="200" y="165" width="35" height="35" stroke-dasharray="2,2" opacity="0.6"/>
|
|
18
|
+
<rect x="165" y="200" width="35" height="35" stroke-dasharray="2,2" opacity="0.6"/>
|
|
19
|
+
</g>
|
|
20
|
+
|
|
21
|
+
<!-- Mapbox 风格水滴(POI) -->
|
|
22
|
+
<path d="M200,165
|
|
23
|
+
C205,160 210,165 210,170
|
|
24
|
+
C210,190 200,200 200,200
|
|
25
|
+
C200,200 190,190 190,170
|
|
26
|
+
C190,165 195,160 200,165 Z"
|
|
27
|
+
fill="#2196F3" opacity="0.95"/>
|
|
28
|
+
|
|
29
|
+
<!-- 矢量数据流(从水滴延伸出的 MVT 折线) -->
|
|
30
|
+
<path d="M200,200
|
|
31
|
+
L210,210
|
|
32
|
+
L230,205
|
|
33
|
+
L250,220
|
|
34
|
+
L270,210"
|
|
35
|
+
fill="none"
|
|
36
|
+
stroke="#2196F3"
|
|
37
|
+
stroke-width="2.5"
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"/>
|
|
40
|
+
|
|
41
|
+
<!-- 项目名称 -->
|
|
42
|
+
<text x="200" y="330" text-anchor="middle"
|
|
43
|
+
font-family="ui-monospace, SFMono-Regular, 'JetBrains Mono', monospace"
|
|
44
|
+
font-size="24" fill="#2196F3" font-weight="600">
|
|
45
|
+
CVT-GL
|
|
46
|
+
</text>
|
|
47
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mesh3d/cesium-vectortile-gl",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CesiumJS 矢量瓦片渲染库",
|
|
5
|
+
"main": "dist/cesium-vectortile-gl.js",
|
|
6
|
+
"module": "index.js",
|
|
7
|
+
"private": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "vite build",
|
|
13
|
+
"dev": "vite dev",
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
},
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "mesh-3d",
|
|
18
|
+
"url": "https://github.com/mesh-3d"
|
|
19
|
+
},
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"cesium": "^1.136.0",
|
|
23
|
+
"vite": "^7.3.0"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@mapbox/vector-tile": "^2.0.4",
|
|
27
|
+
"@maplibre/maplibre-gl-style-spec": "^24.4.1",
|
|
28
|
+
"@maplibre/vt-pbf": "^4.2.0",
|
|
29
|
+
"geojson-vt": "^4.0.2",
|
|
30
|
+
"maplibre-gl": "^5.15.0",
|
|
31
|
+
"pbf": "^4.0.1"
|
|
32
|
+
},
|
|
33
|
+
"maintainers": [
|
|
34
|
+
"weixiuyong"
|
|
35
|
+
]
|
|
36
|
+
}
|