@mesh3d/cesium-vectortile-gl 0.2.0 → 0.3.1

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 CHANGED
@@ -1,21 +1,203 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 mesh-3d
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Copyright 2026 mesh-3d and cesium-vectortile-gl Contributors
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "{}"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright 2026 mesh-3d and cesium-vectortile-gl Contributors
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
package/README.md CHANGED
@@ -24,10 +24,25 @@
24
24
 
25
25
  ---
26
26
 
27
- > 📦 **MIT 许可证 · 欢迎贡献 · 由 [mesh-3d](https://github.com/mesh-3d) 社区维护**
27
+ > 📦 **Apache-2.0 许可证 · 欢迎贡献 · 由 [mesh-3d](https://github.com/mesh-3d) 社区维护**
28
28
 
29
29
  ---
30
30
 
31
+ #### 📜 许可证变更:MIT → Apache License 2.0
32
+
33
+ 从 **0.3.0 版本**起,本项目已将许可证由 **MIT 许可证** 更改为 **Apache License 2.0**。
34
+
35
+ 此次变更旨在:
36
+ - 为贡献者和用户提供明确的**专利授权与保护**,
37
+ - 对**商业使用和再分发**提供更清晰的法律条款,
38
+ - 与相关地理空间项目(如 CesiumJS)的许可策略保持一致。
39
+
40
+ Apache 2.0 仍是一个**宽松且对商业友好的许可证**——您依然可以自由地使用、修改和分发本软件(包括用于专有产品),只需保留原始版权声明和免责声明即可。
41
+
42
+ 本次变更后的新贡献均遵循 Apache 2.0 条款。此前发布的版本(MIT 许可)仍按其原始许可证条款继续有效。
43
+
44
+ 详情请参见 [LICENSE](./LICENSE.md) 文件。
45
+
31
46
  ## 构建
32
47
 
33
48
  安装 vite 等开发依赖项
@@ -126,6 +141,17 @@ registerSource("sourceType", XXXSource);
126
141
  - `第一个参数`为数据源类型名称,如 raster,**必选**
127
142
  - `第二个参数`为数据源类,**必选**
128
143
 
144
+ ## 依赖
145
+
146
+ 本项目依赖:
147
+
148
+ - [@mapbox/vector-tile](https://github.com/mapbox/vector-tile-js)(BSD-3-Clause)
149
+ - [@maplibre/maplibre-gl-style-spec](https://github.com/maplibre/maplibre-style-spec)(ISC)
150
+ - [@maplibre/vt-pbf](https://github.com/maplibre/vt-pbf)(MIT)
151
+ - [geojson-vt](https://github.com/mapbox/geojson-vt)(ISC)
152
+ - [maplibre-gl](https://github.com/maplibre/maplibre-gl-js)(BSD-3-Clause)
153
+ - [pbf](https://github.com/mapbox/pbf)(BSD-3-Clause)
154
+
129
155
  ## 相关项目
130
156
 
131
157
  - [CesiumVectorTile](https://github.com/MikesWei/CesiumVectorTile) - 基于 ImageryProvider 的轻量版
@@ -0,0 +1,529 @@
1
+ Name: @mapbox/point-geometry
2
+ Version: 1.1.0
3
+ License: ISC
4
+ Private: false
5
+ Description: a point geometry with transforms
6
+ Repository: git@github.com:mapbox/point-geometry.git
7
+ Homepage: https://github.com/mapbox/point-geometry
8
+ Author: Tom MacWright
9
+ License Copyright:
10
+ ===
11
+
12
+ Copyright (c) 2024, Mapbox
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted, provided that the above
16
+ copyright notice and this permission notice appear in all copies.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
19
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
20
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
21
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
23
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
24
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
+
26
+ ---
27
+
28
+ Name: @mapbox/vector-tile
29
+ Version: 2.0.4
30
+ License: BSD-3-Clause
31
+ Private: false
32
+ Description: Parses vector tiles
33
+ Repository: git+https://github.com/mapbox/vector-tile-js.git
34
+ License Copyright:
35
+ ===
36
+
37
+ Copyright (c) 2024, Mapbox
38
+
39
+ All rights reserved.
40
+
41
+ Redistribution and use in source and binary forms, with or without modification,
42
+ are permitted provided that the following conditions are met:
43
+
44
+ * Redistributions of source code must retain the above copyright notice,
45
+ this list of conditions and the following disclaimer.
46
+ * Redistributions in binary form must reproduce the above copyright notice,
47
+ this list of conditions and the following disclaimer in the documentation
48
+ and/or other materials provided with the distribution.
49
+ * Neither the name of Mapbox nor the names of its contributors
50
+ may be used to endorse or promote products derived from this software
51
+ without specific prior written permission.
52
+
53
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
54
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
55
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
56
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
57
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
58
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
59
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
60
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
61
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
62
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
63
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64
+
65
+ ---
66
+
67
+ Name: pbf
68
+ Version: 4.0.1
69
+ License: BSD-3-Clause
70
+ Private: false
71
+ Description: a low-level, lightweight protocol buffers implementation in JavaScript
72
+ Repository: git@github.com:mapbox/pbf.git
73
+ Homepage: https://github.com/mapbox/pbf
74
+ Author: Konstantin Kaefer
75
+ License Copyright:
76
+ ===
77
+
78
+ Copyright (c) 2024, Mapbox
79
+ All rights reserved.
80
+
81
+ Redistribution and use in source and binary forms, with or without
82
+ modification, are permitted provided that the following conditions are met:
83
+
84
+ * Redistributions of source code must retain the above copyright notice, this
85
+ list of conditions and the following disclaimer.
86
+
87
+ * Redistributions in binary form must reproduce the above copyright notice,
88
+ this list of conditions and the following disclaimer in the documentation
89
+ and/or other materials provided with the distribution.
90
+
91
+ * Neither the name of pbf nor the names of its
92
+ contributors may be used to endorse or promote products derived from
93
+ this software without specific prior written permission.
94
+
95
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
96
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
97
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
98
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
99
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
100
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
101
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
102
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
103
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
104
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
105
+
106
+ ---
107
+
108
+ Name: geojson-vt
109
+ Version: 4.0.2
110
+ License: ISC
111
+ Private: false
112
+ Description: Slice GeoJSON data into vector tiles efficiently
113
+ Repository: git://github.com/mapbox/geojson-vt.git
114
+ Homepage: https://github.com/mapbox/geojson-vt
115
+ Author: Vladimir Agafonkin
116
+ License Copyright:
117
+ ===
118
+
119
+ ISC License
120
+
121
+ Copyright (c) 2015, Mapbox
122
+
123
+ Permission to use, copy, modify, and/or distribute this software for any purpose
124
+ with or without fee is hereby granted, provided that the above copyright notice
125
+ and this permission notice appear in all copies.
126
+
127
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
128
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
129
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
130
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
131
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
132
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
133
+ THIS SOFTWARE.
134
+
135
+ ---
136
+
137
+ Name: @maplibre/vt-pbf
138
+ Version: 4.2.0
139
+ License: MIT
140
+ Private: false
141
+ Description: Serialize mapbox vector tiles to binary protobufs in javascript.
142
+ Repository: https://github.com/maplibre/vt-pbf
143
+ Author: Anand Thakker <vestibule@anandthakker.net> (http://anandthakker.net/)
144
+ License Copyright:
145
+ ===
146
+
147
+ The MIT License (MIT)
148
+
149
+ Copyright (c) 2025 MapLibre contributors
150
+
151
+ Copyright (c) 2015 Anand Thakker
152
+
153
+ Permission is hereby granted, free of charge, to any person obtaining a copy
154
+ of this software and associated documentation files (the "Software"), to deal
155
+ in the Software without restriction, including without limitation the rights
156
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
157
+ copies of the Software, and to permit persons to whom the Software is
158
+ furnished to do so, subject to the following conditions:
159
+
160
+ The above copyright notice and this permission notice shall be included in all
161
+ copies or substantial portions of the Software.
162
+
163
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
164
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
165
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
166
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
167
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
168
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
169
+ SOFTWARE.
170
+
171
+ --------------------------------------------------------------------------------
172
+
173
+ Contains geojson_wrapper.js from https://github.com/mapbox/mapbox-gl-js
174
+
175
+ Copyright (c) 2014, Mapbox
176
+
177
+ All rights reserved.
178
+
179
+ Redistribution and use in source and binary forms, with or without modification,
180
+ are permitted provided that the following conditions are met:
181
+
182
+ * Redistributions of source code must retain the above copyright notice,
183
+ this list of conditions and the following disclaimer.
184
+ * Redistributions in binary form must reproduce the above copyright notice,
185
+ this list of conditions and the following disclaimer in the documentation
186
+ and/or other materials provided with the distribution.
187
+ * Neither the name of Mapbox GL JS nor the names of its contributors
188
+ may be used to endorse or promote products derived from this software
189
+ without specific prior written permission.
190
+
191
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
192
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
193
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
194
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
195
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
196
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
197
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
198
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
199
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
200
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
201
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
202
+
203
+ ---
204
+
205
+ Name: maplibre-gl
206
+ Version: 5.15.0
207
+ License: BSD-3-Clause
208
+ Private: false
209
+ Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
210
+ Repository: https://github.com/maplibre/maplibre-gl-js
211
+ Homepage: https://maplibre.org/
212
+ License Copyright:
213
+ ===
214
+
215
+ Copyright (c) 2023, MapLibre contributors
216
+
217
+ All rights reserved.
218
+
219
+ Redistribution and use in source and binary forms, with or without modification,
220
+ are permitted provided that the following conditions are met:
221
+
222
+ * Redistributions of source code must retain the above copyright notice,
223
+ this list of conditions and the following disclaimer.
224
+ * Redistributions in binary form must reproduce the above copyright notice,
225
+ this list of conditions and the following disclaimer in the documentation
226
+ and/or other materials provided with the distribution.
227
+ * Neither the name of MapLibre GL JS nor the names of its contributors
228
+ may be used to endorse or promote products derived from this software
229
+ without specific prior written permission.
230
+
231
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
232
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
233
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
234
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
235
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
236
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
237
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
238
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
239
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
240
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
241
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
242
+
243
+
244
+ -------------------------------------------------------------------------------
245
+
246
+ Contains code from mapbox-gl-js v1.13 and earlier
247
+
248
+ Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license
249
+
250
+ Copyright (c) 2020, Mapbox
251
+ Redistribution and use in source and binary forms, with or without modification,
252
+ are permitted provided that the following conditions are met:
253
+
254
+ * Redistributions of source code must retain the above copyright notice,
255
+ this list of conditions and the following disclaimer.
256
+ * Redistributions in binary form must reproduce the above copyright notice,
257
+ this list of conditions and the following disclaimer in the documentation
258
+ and/or other materials provided with the distribution.
259
+ * Neither the name of Mapbox GL JS nor the names of its contributors
260
+ may be used to endorse or promote products derived from this software
261
+ without specific prior written permission.
262
+
263
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
264
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
265
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
266
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
267
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
268
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
269
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
270
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
271
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
272
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
273
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
274
+
275
+
276
+ -------------------------------------------------------------------------------
277
+
278
+ Contains code from glfx.js
279
+
280
+ Copyright (C) 2011 by Evan Wallace
281
+
282
+ Permission is hereby granted, free of charge, to any person obtaining a copy
283
+ of this software and associated documentation files (the "Software"), to deal
284
+ in the Software without restriction, including without limitation the rights
285
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
286
+ copies of the Software, and to permit persons to whom the Software is
287
+ furnished to do so, subject to the following conditions:
288
+
289
+ The above copyright notice and this permission notice shall be included in
290
+ all copies or substantial portions of the Software.
291
+
292
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
293
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
294
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
295
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
296
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
297
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
298
+ THE SOFTWARE.
299
+
300
+ --------------------------------------------------------------------------------
301
+
302
+ Contains a portion of d3-color https://github.com/d3/d3-color
303
+
304
+ Copyright 2010-2016 Mike Bostock
305
+ All rights reserved.
306
+
307
+ Redistribution and use in source and binary forms, with or without modification,
308
+ are permitted provided that the following conditions are met:
309
+
310
+ * Redistributions of source code must retain the above copyright notice, this
311
+ list of conditions and the following disclaimer.
312
+
313
+ * Redistributions in binary form must reproduce the above copyright notice,
314
+ this list of conditions and the following disclaimer in the documentation
315
+ and/or other materials provided with the distribution.
316
+
317
+ * Neither the name of the author nor the names of contributors may be used to
318
+ endorse or promote products derived from this software without specific prior
319
+ written permission.
320
+
321
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
322
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
323
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
324
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
325
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
326
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
327
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
328
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
329
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
330
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331
+
332
+ ---
333
+
334
+ Name: @maplibre/maplibre-gl-style-spec
335
+ Version: 24.4.1
336
+ License: ISC
337
+ Private: false
338
+ Description: a specification for maplibre styles
339
+ Repository: https://github.com/maplibre/maplibre-style-spec
340
+ Homepage: https://maplibre.org/maplibre-style-spec/
341
+ Author: MapLibre
342
+ License Copyright:
343
+ ===
344
+
345
+ Copyright (c) 2020, MapLibre contributors
346
+
347
+ All rights reserved.
348
+
349
+ Redistribution and use in source and binary forms, with or without modification,
350
+ are permitted provided that the following conditions are met:
351
+
352
+ * Redistributions of source code must retain the above copyright notice,
353
+ this list of conditions and the following disclaimer.
354
+ * Redistributions in binary form must reproduce the above copyright notice,
355
+ this list of conditions and the following disclaimer in the documentation
356
+ and/or other materials provided with the distribution.
357
+ * Neither the name of MapLibre GL JS nor the names of its contributors
358
+ may be used to endorse or promote products derived from this software
359
+ without specific prior written permission.
360
+
361
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
362
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
363
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
364
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
365
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
366
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
367
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
368
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
369
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
370
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
371
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
372
+
373
+
374
+ -------------------------------------------------------------------------------
375
+
376
+ Contains code from mapbox-gl-js v1.13 and earlier
377
+
378
+ Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license
379
+
380
+ Copyright (c) 2020, Mapbox
381
+ Redistribution and use in source and binary forms, with or without modification,
382
+ are permitted provided that the following conditions are met:
383
+
384
+ * Redistributions of source code must retain the above copyright notice,
385
+ this list of conditions and the following disclaimer.
386
+ * Redistributions in binary form must reproduce the above copyright notice,
387
+ this list of conditions and the following disclaimer in the documentation
388
+ and/or other materials provided with the distribution.
389
+ * Neither the name of Mapbox GL JS nor the names of its contributors
390
+ may be used to endorse or promote products derived from this software
391
+ without specific prior written permission.
392
+
393
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
394
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
395
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
396
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
397
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
398
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
399
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
400
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
401
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
402
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
403
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
404
+
405
+
406
+ -------------------------------------------------------------------------------
407
+
408
+ Contains code from glfx.js
409
+
410
+ Copyright (C) 2011 by Evan Wallace
411
+
412
+ Permission is hereby granted, free of charge, to any person obtaining a copy
413
+ of this software and associated documentation files (the "Software"), to deal
414
+ in the Software without restriction, including without limitation the rights
415
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
416
+ copies of the Software, and to permit persons to whom the Software is
417
+ furnished to do so, subject to the following conditions:
418
+
419
+ The above copyright notice and this permission notice shall be included in
420
+ all copies or substantial portions of the Software.
421
+
422
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
423
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
424
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
425
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
426
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
427
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
428
+ THE SOFTWARE.
429
+
430
+ --------------------------------------------------------------------------------
431
+
432
+ Contains a portion of d3-color https://github.com/d3/d3-color
433
+
434
+ Copyright 2010-2016 Mike Bostock
435
+ All rights reserved.
436
+
437
+ Redistribution and use in source and binary forms, with or without modification,
438
+ are permitted provided that the following conditions are met:
439
+
440
+ * Redistributions of source code must retain the above copyright notice, this
441
+ list of conditions and the following disclaimer.
442
+
443
+ * Redistributions in binary form must reproduce the above copyright notice,
444
+ this list of conditions and the following disclaimer in the documentation
445
+ and/or other materials provided with the distribution.
446
+
447
+ * Neither the name of the author nor the names of contributors may be used to
448
+ endorse or promote products derived from this software without specific prior
449
+ written permission.
450
+
451
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
452
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
453
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
454
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
455
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
456
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
457
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
458
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
459
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
460
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
461
+
462
+ ---
463
+
464
+ Name: earcut
465
+ Version: 3.0.2
466
+ License: ISC
467
+ Private: false
468
+ Description: The fastest and smallest JavaScript polygon triangulation library for your WebGL apps
469
+ Repository: git://github.com/mapbox/earcut.git
470
+ Author: Vladimir Agafonkin
471
+ License Copyright:
472
+ ===
473
+
474
+ ISC License
475
+
476
+ Copyright (c) 2024, Mapbox
477
+
478
+ Permission to use, copy, modify, and/or distribute this software for any purpose
479
+ with or without fee is hereby granted, provided that the above copyright notice
480
+ and this permission notice appear in all copies.
481
+
482
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
483
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
484
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
485
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
486
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
487
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
488
+ THIS SOFTWARE.
489
+
490
+ ---
491
+
492
+ Name: @mapbox/unitbezier
493
+ Version: 0.0.1
494
+ License: BSD-2-Clause
495
+ Private: false
496
+ Description: unit bezier curve interpolation
497
+ Repository: git@github.com:mapbox/unitbezier.git
498
+ Homepage: https://github.com/mapbox/unitbezier
499
+ License Copyright:
500
+ ===
501
+
502
+ BSD-2-Clause
503
+
504
+ Copyright (C) 2008 Apple Inc. All Rights Reserved.
505
+
506
+ Redistribution and use in source and binary forms, with or without
507
+ modification, are permitted provided that the following conditions
508
+ are met:
509
+
510
+ 1. Redistributions of source code must retain the above copyright
511
+ notice, this list of conditions and the following disclaimer.
512
+ 2. Redistributions in binary form must reproduce the above copyright
513
+ notice, this list of conditions and the following disclaimer in the
514
+ documentation and/or other materials provided with the distribution.
515
+
516
+ THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
517
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
518
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
519
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
520
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
521
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
522
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
523
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
524
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
525
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
526
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
527
+
528
+ Ported from Webkit
529
+ http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mesh3d/cesium-vectortile-gl",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "CesiumJS 矢量瓦片渲染库",
5
- "main": "dist/cesium-vectortile-gl.js",
5
+ "main": "dist/cvt-gl.js",
6
6
  "module": "index.js",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -21,10 +21,11 @@
21
21
  "name": "mesh-3d",
22
22
  "url": "https://github.com/mesh-3d"
23
23
  },
24
- "license": "MIT",
24
+ "license": "Apache-2.0",
25
25
  "devDependencies": {
26
26
  "cesium": "^1.136.0",
27
- "vite": "^7.3.0"
27
+ "vite": "^7.3.0",
28
+ "vite-plugin-license": "^0.0.2"
28
29
  },
29
30
  "dependencies": {
30
31
  "@mapbox/vector-tile": "^2.0.4",
@@ -37,4 +38,4 @@
37
38
  "maintainers": [
38
39
  "weixiuyong"
39
40
  ]
40
- }
41
+ }