gltf-parser-plugin 1.1.7 → 1.1.9
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/build/gltf-parser-plugin.module.js +1591 -435
- package/build/gltf-parser-plugin.module.js.map +1 -1
- package/build/index.d.ts +233 -45
- package/package.json +9 -8
package/build/index.d.ts
CHANGED
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
import { Box3 } from 'three';
|
|
2
2
|
import { Color } from 'three';
|
|
3
|
+
import { Euler } from 'three';
|
|
3
4
|
import { EventDispatcher } from 'three';
|
|
4
5
|
import { Intersection } from 'three';
|
|
5
6
|
import { Material } from 'three';
|
|
6
7
|
import { Mesh } from 'three';
|
|
7
8
|
import { Texture } from 'three';
|
|
9
|
+
import { Tileset } from '3d-tiles-renderer/core';
|
|
8
10
|
import { TilesRenderer } from '3d-tiles-renderer';
|
|
9
11
|
import { Vector3 } from 'three';
|
|
10
12
|
import { WebGLRenderer } from 'three';
|
|
11
13
|
|
|
14
|
+
/**
|
|
15
|
+
* 与 StyleHelper 中 `show`、`conditions` 条件项的表达式求值一致
|
|
16
|
+
* 在 propertyData 的键作为变量名的上下文中执行 `Boolean(expr)`
|
|
17
|
+
*
|
|
18
|
+
* 实现:对每个表达式字符串只编译一次 `new Function('data', 'with(d){...}')`,
|
|
19
|
+
* 避免按「表达式 × 属性键集合」重复编译,也避免每次求值排序/拼接 cacheKey。
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* 清空表达式编译缓存(热更新或单测可调用)
|
|
23
|
+
*/
|
|
24
|
+
export declare function clearStyleConditionCache(): void;
|
|
25
|
+
|
|
26
|
+
/** 可解析为 THREE.Color 的输入 */
|
|
12
27
|
export declare type ColorInput = number | string | Color;
|
|
13
28
|
|
|
29
|
+
/**
|
|
30
|
+
* 同步解析 `data:application/x-gzip;base64,...`:base64 → 二进制 → gunzip → UTF-8 文本。
|
|
31
|
+
*/
|
|
32
|
+
export declare function decodeGzipBase64DataUriSync(dataUri: string): string;
|
|
33
|
+
|
|
34
|
+
export declare function evaluateStyleCondition(expr: string | boolean, propertyData: Record<string, unknown> | null): boolean;
|
|
35
|
+
|
|
14
36
|
/**
|
|
15
37
|
* Hit object feature information interface
|
|
16
38
|
*/
|
|
@@ -23,6 +45,9 @@ export declare interface FeatureInfo {
|
|
|
23
45
|
error?: string;
|
|
24
46
|
}
|
|
25
47
|
|
|
48
|
+
/** 从 tileset 取内嵌 structure 的 data URI(优先 MapTalks:`asset.extras.maptalks.structureUri`) */
|
|
49
|
+
export declare function getStructureDataUriFromTileset(root: Tileset | null): string | null;
|
|
50
|
+
|
|
26
51
|
export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
27
52
|
name: string;
|
|
28
53
|
private tiles;
|
|
@@ -31,18 +56,21 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
31
56
|
private readonly _options;
|
|
32
57
|
private _structureData;
|
|
33
58
|
private _oidNodeMap;
|
|
34
|
-
|
|
59
|
+
/** rootTileset 已存在且已尝试过内嵌解析后仍为 null,则不再重复 gunzip */
|
|
60
|
+
private _structureEmbedResolved;
|
|
35
61
|
private _modelInfo;
|
|
36
62
|
private _modelInfoPromise;
|
|
37
63
|
private _interactionFilter;
|
|
38
64
|
private _partColorHelper;
|
|
39
65
|
private _partBlinkHelper;
|
|
40
66
|
private _partFrameHelper;
|
|
67
|
+
private _styleHelper;
|
|
68
|
+
private _partHighlightHelper;
|
|
41
69
|
oids: number[];
|
|
42
|
-
|
|
70
|
+
/** WebGLRenderer 实例,用于 mesh helper 等扩展 */
|
|
71
|
+
get renderer(): WebGLRenderer | null;
|
|
72
|
+
private _renderer;
|
|
43
73
|
private splitMeshCache;
|
|
44
|
-
private maxUniformVectors;
|
|
45
|
-
private featureIdCount;
|
|
46
74
|
private collectors;
|
|
47
75
|
private collectorCache;
|
|
48
76
|
/**
|
|
@@ -54,6 +82,7 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
54
82
|
* Plugin initialization, called by TilesRenderer
|
|
55
83
|
*/
|
|
56
84
|
init(tiles: TilesRenderer): void;
|
|
85
|
+
private _createPartEffectHost;
|
|
57
86
|
/**
|
|
58
87
|
* Fetch tile data with IndexedDB caching support
|
|
59
88
|
*/
|
|
@@ -63,42 +92,51 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
63
92
|
*/
|
|
64
93
|
clearCache(): Promise<void>;
|
|
65
94
|
parseTile(buffer: ArrayBuffer, tile: any, extension: any, uri: string, abortSignal: AbortSignal): Promise<any>;
|
|
66
|
-
|
|
95
|
+
/** 与 tileset 同目录的侧车 JSON,如 structure.json / modelInfo.json */
|
|
96
|
+
private _sidecarJsonUrl;
|
|
67
97
|
private _buildOidNodeMap;
|
|
68
|
-
|
|
69
|
-
private
|
|
98
|
+
/** 仅根 tileset 变化时重解析 structureUri(子 tileset 的 load-tileset 不会触发) */
|
|
99
|
+
private _onLoadRootTilesetCB;
|
|
100
|
+
/**
|
|
101
|
+
* 从已加载根 tileset 的内嵌 structure(优先 asset.extras.maptalks.structureUri)同步解压并建索引。
|
|
102
|
+
* rootTileset 尚未就绪时返回 null,可稍后再次调用;已成功或已判定无内嵌数据后见 _structureEmbedResolved。
|
|
103
|
+
*/
|
|
104
|
+
private _syncStructureFromTileset;
|
|
105
|
+
/**
|
|
106
|
+
* 根据 oid 获取结构树节点(数据来自 tileset 内嵌 structureUri 同步解压)
|
|
107
|
+
*/
|
|
108
|
+
getNodeTreeByOid(oid: number): StructureNode | null;
|
|
109
|
+
/**
|
|
110
|
+
* 根据 oid 数组批量获取结构树节点
|
|
111
|
+
*/
|
|
112
|
+
getNodeTreeByOids(oids: number[]): Map<number, StructureNode>;
|
|
113
|
+
/**
|
|
114
|
+
* 根据 oid 从结构数据取轴对齐包围盒(`bbox` 为 `[minX,minY,minZ,maxX,maxY,maxZ]`,与 `selectByBox` 一致)
|
|
115
|
+
* @returns 无对应节点或缺少有效 bbox 时返回 `null`
|
|
116
|
+
*/
|
|
117
|
+
getBoundingBoxByOid(oid: number): Box3 | null;
|
|
70
118
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* 首次调用时会自动从 tileset URL 推导并请求 structure.json
|
|
119
|
+
* 计算给定 OID 集合的几何中心(世界坐标系与结构 bbox / 瓦片 mesh 一致)。
|
|
120
|
+
* 优先合并结构树中的轴对齐 bbox;若无有效 bbox 则合并对应 split mesh 的世界包围盒。
|
|
74
121
|
*/
|
|
75
|
-
|
|
122
|
+
getCenterByOids(oids: readonly number[]): Vector3 | null;
|
|
76
123
|
/**
|
|
77
|
-
*
|
|
124
|
+
* 按属性条件筛选构件(语义同 `setStyle` 的 `show` / conditions 中的表达式字符串),
|
|
125
|
+
* 返回筛选结果的整体中心点;合并方式同 {@link getCenterByOids}。
|
|
78
126
|
*/
|
|
79
|
-
|
|
127
|
+
getCenterByCondition(condition: string): Vector3 | null;
|
|
80
128
|
/**
|
|
81
|
-
*
|
|
82
|
-
* 首次调用时会自动请求
|
|
129
|
+
* 完整结构数据(与内嵌 structure JSON 一致)
|
|
83
130
|
*/
|
|
84
|
-
getStructureData():
|
|
131
|
+
getStructureData(): StructureData | null;
|
|
85
132
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @param box 查询用的 Box3 范围,坐标系与 structure.json 中 bbox 一致
|
|
88
|
-
* @returns 范围内所有构件的 oid 数组
|
|
133
|
+
* 选择包围盒范围内的构件(坐标系与结构 bbox 一致)
|
|
89
134
|
*/
|
|
90
|
-
selectByBox(box: Box3):
|
|
135
|
+
selectByBox(box: Box3): number[];
|
|
91
136
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @param polygon 多边形顶点数组(Vector3),按顺序连接构成闭合多边形
|
|
94
|
-
* @param axis 投影平面,决定使用 bbox 的哪两个轴做 2D 判定
|
|
95
|
-
* - 'xz'(默认):俯视图,取 bbox 的 x/z 坐标
|
|
96
|
-
* - 'xy':正视图,取 bbox 的 x/y 坐标
|
|
97
|
-
* - 'yz':侧视图,取 bbox 的 y/z 坐标
|
|
98
|
-
* @returns 范围内所有构件的 oid 数组
|
|
137
|
+
* 选择多边形(平面投影)范围内的构件
|
|
99
138
|
*/
|
|
100
|
-
selectByPolygon(polygon: Vector3[], axis?: "xy" | "xz" | "yz"):
|
|
101
|
-
private _getModelInfoUrl;
|
|
139
|
+
selectByPolygon(polygon: Vector3[], axis?: "xy" | "xz" | "yz"): number[];
|
|
102
140
|
private _fetchModelInfo;
|
|
103
141
|
private _ensureModelInfoLoaded;
|
|
104
142
|
/**
|
|
@@ -119,13 +157,12 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
119
157
|
private _notifyCollectors;
|
|
120
158
|
_registerCollector(collector: MeshCollector): void;
|
|
121
159
|
_unregisterCollector(collector: MeshCollector): void;
|
|
122
|
-
private _updateWebGLLimits;
|
|
123
160
|
/**
|
|
124
|
-
*
|
|
161
|
+
* 遍历所有已加载瓦片,应用可见性过滤
|
|
125
162
|
*/
|
|
126
|
-
private
|
|
163
|
+
private _applyVisibilityToAllTiles;
|
|
127
164
|
/**
|
|
128
|
-
*
|
|
165
|
+
* 设置材质(DoubleSide 等基础配置)
|
|
129
166
|
*/
|
|
130
167
|
private _setupMaterial;
|
|
131
168
|
/**
|
|
@@ -146,13 +183,35 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
146
183
|
unisolate(): void;
|
|
147
184
|
getIsolatedOids(): number[];
|
|
148
185
|
/**
|
|
149
|
-
*
|
|
186
|
+
* 合并 OID 列表对应的结构 bbox;若无可用 bbox 则使用 split mesh 世界包围盒并求中心。
|
|
187
|
+
*/
|
|
188
|
+
private _getCenterFromOidList;
|
|
189
|
+
/**
|
|
190
|
+
* 按 OID 集合:每个瓦片 mesh 只生成 **一个** 合并后的 split mesh(同一组 oid / condition 一条几何)
|
|
191
|
+
*/
|
|
192
|
+
private _getMergedSplitMeshesForOidSet;
|
|
193
|
+
/**
|
|
194
|
+
* 内部方法:根据单个 oid 获取 split mesh(每瓦片合并为一条)
|
|
150
195
|
*/
|
|
151
196
|
_getMeshesByOidInternal(oid: number): Mesh[];
|
|
152
197
|
/**
|
|
153
|
-
*
|
|
154
|
-
|
|
155
|
-
|
|
198
|
+
* 内部方法:根据多个 oid 获取合并 split mesh(每瓦片一条,而非每 oid 一条)
|
|
199
|
+
*/
|
|
200
|
+
_getMeshesByOidsInternal(oids: readonly number[]): Mesh[];
|
|
201
|
+
/**
|
|
202
|
+
* 按查询收集 mesh:可只传 oids、只传 condition(全场景 OID 上筛选)、或两者组合
|
|
203
|
+
* condition 与 setStyle 的 show / conditions 中字符串表达式语义一致
|
|
204
|
+
*/
|
|
205
|
+
_getMeshesForCollectorQueryInternal(params: {
|
|
206
|
+
oids: readonly number[];
|
|
207
|
+
condition?: string;
|
|
208
|
+
}): Mesh[];
|
|
209
|
+
/**
|
|
210
|
+
* 根据查询获取 MeshCollector(oids + 可选 condition,缓存键相同则复用实例)
|
|
211
|
+
*/
|
|
212
|
+
getMeshCollectorByCondition(query: MeshCollectorQuery): MeshCollector;
|
|
213
|
+
/**
|
|
214
|
+
* 根据单个 oid 获取 MeshCollector(等价于 getMeshCollectorByCondition({ oids: [oid] }))
|
|
156
215
|
*/
|
|
157
216
|
getMeshCollectorByOid(oid: number): MeshCollector;
|
|
158
217
|
/**
|
|
@@ -227,12 +286,40 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
227
286
|
* @param color 颜色值,支持 hex 数字、颜色字符串(如 "#ff0000")、THREE.Color 对象
|
|
228
287
|
*/
|
|
229
288
|
setFrameEdgeColor(oids: number[], color: ColorInput): void;
|
|
289
|
+
/**
|
|
290
|
+
* 设置构件样式(条件可见性 + 条件材质)
|
|
291
|
+
* @param style 样式配置,传 null 清除样式
|
|
292
|
+
*/
|
|
293
|
+
setStyle(style: StyleConfig | null): void;
|
|
294
|
+
/**
|
|
295
|
+
* 当前样式配置。赋值与 `setStyle(...)` 等价,例如 `plugin.style = { show, conditions }`。
|
|
296
|
+
*/
|
|
297
|
+
get style(): StyleConfig | null;
|
|
298
|
+
set style(style: StyleConfig | null);
|
|
299
|
+
/**
|
|
300
|
+
* 清除构件样式
|
|
301
|
+
*/
|
|
302
|
+
clearStyle(): void;
|
|
303
|
+
/**
|
|
304
|
+
* 高亮指定构件(语义与 setStyle 一致:show、conditions、可选 oids,另需 name 标识分组)
|
|
305
|
+
* @param options 高亮配置
|
|
306
|
+
*/
|
|
307
|
+
highlight(options: HighlightOptions): void;
|
|
308
|
+
/**
|
|
309
|
+
* 取消指定名称的高亮
|
|
310
|
+
* @param name 高亮组名称
|
|
311
|
+
*/
|
|
312
|
+
cancelHighlight(name: string): void;
|
|
313
|
+
/**
|
|
314
|
+
* 取消所有高亮
|
|
315
|
+
*/
|
|
316
|
+
cancelAllHighlight(): void;
|
|
230
317
|
/**
|
|
231
318
|
* Restore the original materials of the mesh
|
|
232
319
|
*/
|
|
233
320
|
showAllParts(): void;
|
|
234
321
|
/**
|
|
235
|
-
*
|
|
322
|
+
* 获取当前隐藏的 OID 数量(兼容旧 API)
|
|
236
323
|
*/
|
|
237
324
|
getFeatureIdCount(): number;
|
|
238
325
|
/**
|
|
@@ -278,6 +365,35 @@ export declare interface GLTFParserPluginOptions {
|
|
|
278
365
|
useIndexedDB?: boolean;
|
|
279
366
|
}
|
|
280
367
|
|
|
368
|
+
/** 条件命中后的外观:材质可为简写,位姿与 setStyle 一致 */
|
|
369
|
+
export declare interface HighlightAppearance {
|
|
370
|
+
material: HighlightMaterial;
|
|
371
|
+
translation?: StyleVec3Input;
|
|
372
|
+
scale?: StyleVec3Input;
|
|
373
|
+
rotation?: StyleEulerInput;
|
|
374
|
+
origin?: StyleVec3Input;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export declare type HighlightCondition = [string | boolean, HighlightAppearance];
|
|
378
|
+
|
|
379
|
+
/** 高亮材质:Three.js Material 或 { color, opacity } */
|
|
380
|
+
export declare type HighlightMaterial = Material | {
|
|
381
|
+
color?: ColorInput;
|
|
382
|
+
opacity?: number;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/** 高亮配置:语义与 setStyle 一致,并多一个 name 用于命名分组 */
|
|
386
|
+
export declare interface HighlightOptions {
|
|
387
|
+
/** 高亮组名称,用于 cancelHighlight(name) 取消 */
|
|
388
|
+
name: string;
|
|
389
|
+
/** 可见性表达式,仅满足条件的构件参与高亮,如 'foo === bar' */
|
|
390
|
+
show?: string;
|
|
391
|
+
/** 条件外观数组,第一个满足条件的应用对应外观;[true, appearance] 为默认 */
|
|
392
|
+
conditions?: HighlightCondition[];
|
|
393
|
+
/** 若指定,仅在这些 OID 与属性数据的交集中应用(与 conditions 组合) */
|
|
394
|
+
oids?: number[];
|
|
395
|
+
}
|
|
396
|
+
|
|
281
397
|
declare type MaterialBuilder = (matData: unknown, textureMap: Map<number, Texture>) => Material;
|
|
282
398
|
|
|
283
399
|
export declare interface MeshChangeEvent {
|
|
@@ -286,18 +402,25 @@ export declare interface MeshChangeEvent {
|
|
|
286
402
|
}
|
|
287
403
|
|
|
288
404
|
/**
|
|
289
|
-
* MeshCollector -
|
|
290
|
-
* 随着瓦片变化,会自动更新 meshes 并触发 mesh-change 事件
|
|
405
|
+
* MeshCollector - 按查询条件监听并收集 split mesh
|
|
291
406
|
*/
|
|
292
407
|
export declare class MeshCollector extends EventDispatcher<MeshCollectorEventMap> {
|
|
293
|
-
private
|
|
408
|
+
private readonly queryOids;
|
|
409
|
+
private readonly condition;
|
|
410
|
+
private readonly cacheKey;
|
|
294
411
|
private plugin;
|
|
295
412
|
private _meshes;
|
|
296
413
|
private _disposed;
|
|
297
|
-
constructor(
|
|
414
|
+
constructor(query: MeshCollectorQuery, plugin: MeshHelperHost);
|
|
415
|
+
getCacheKey(): string;
|
|
416
|
+
/** 查询里显式传入的 OID(规范化后);仅用 condition 筛选时可能为空数组 */
|
|
417
|
+
getOids(): readonly number[];
|
|
418
|
+
/** 有显式 OID 时返回第一个;否则无意义(可能为 undefined) */
|
|
419
|
+
getOid(): number | undefined;
|
|
298
420
|
get meshes(): Mesh[];
|
|
421
|
+
/** 与 setStyle 一致的条件表达式(若有) */
|
|
422
|
+
getCondition(): string | undefined;
|
|
299
423
|
_updateMeshes(): void;
|
|
300
|
-
getOid(): number;
|
|
301
424
|
dispose(): void;
|
|
302
425
|
}
|
|
303
426
|
|
|
@@ -305,10 +428,33 @@ export declare type MeshCollectorEventMap = {
|
|
|
305
428
|
"mesh-change": MeshChangeEvent;
|
|
306
429
|
};
|
|
307
430
|
|
|
308
|
-
|
|
431
|
+
/** @deprecated 请使用 meshCollectorQueryCacheKey({ oids }) */
|
|
432
|
+
export declare function meshCollectorGroupKey(oids: readonly number[]): string;
|
|
433
|
+
|
|
434
|
+
/** 收集器查询:OID 范围 + 可选属性条件(语义同 setStyle 的 show / conditions 中的表达式字符串) */
|
|
435
|
+
export declare interface MeshCollectorQuery {
|
|
436
|
+
/**
|
|
437
|
+
* 限定在这些 OID 内收集;不传或空数组时,若提供 condition 则从全场景 OID 中筛选
|
|
438
|
+
*/
|
|
439
|
+
oids?: readonly number[];
|
|
440
|
+
/**
|
|
441
|
+
* 属性表达式,如 `type === "wall"`,与 setStyle 里 `show` 或 `conditions[i][0]`(为 string 时)相同
|
|
442
|
+
*/
|
|
443
|
+
condition?: string;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* 与 MeshCollector.getCacheKey()、插件 collectorCache 键一致
|
|
448
|
+
*/
|
|
449
|
+
export declare function meshCollectorQueryCacheKey(query: MeshCollectorQuery): string;
|
|
450
|
+
|
|
451
|
+
export declare interface MeshHelperHost {
|
|
309
452
|
_registerCollector(collector: MeshCollector): void;
|
|
310
453
|
_unregisterCollector(collector: MeshCollector): void;
|
|
311
|
-
|
|
454
|
+
_getMeshesForCollectorQueryInternal(params: {
|
|
455
|
+
oids: readonly number[];
|
|
456
|
+
condition?: string;
|
|
457
|
+
}): Mesh[];
|
|
312
458
|
}
|
|
313
459
|
|
|
314
460
|
/**
|
|
@@ -324,6 +470,18 @@ export declare interface ModelInfo {
|
|
|
324
470
|
vertices: number;
|
|
325
471
|
}
|
|
326
472
|
|
|
473
|
+
/** 去重并排序 OID */
|
|
474
|
+
export declare function normalizeMeshCollectorOids(oids: readonly number[]): number[];
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* 从已加载的根 tileset 读取内嵌 structure(`asset.extras.maptalks.structureUri`,
|
|
478
|
+
* 若无则回退根级 `structureUri`),同步解码并解析。
|
|
479
|
+
* - 无有效 URI 或解析失败时返回 `null`(不抛错)。
|
|
480
|
+
*/
|
|
481
|
+
export declare function parseEmbeddedStructureDataFromTilesSync(tiles: {
|
|
482
|
+
rootTileset: Tileset | null;
|
|
483
|
+
}): StructureData | null;
|
|
484
|
+
|
|
327
485
|
/**
|
|
328
486
|
* structure.json 的完整数据结构
|
|
329
487
|
*/
|
|
@@ -344,4 +502,34 @@ export declare interface StructureNode {
|
|
|
344
502
|
[key: string]: unknown;
|
|
345
503
|
}
|
|
346
504
|
|
|
505
|
+
/** 条件命中后的外观:材质必填,位姿可选(未传则不改对应分量) */
|
|
506
|
+
export declare interface StyleAppearance {
|
|
507
|
+
material: Material;
|
|
508
|
+
translation?: StyleVec3Input;
|
|
509
|
+
scale?: StyleVec3Input;
|
|
510
|
+
rotation?: StyleEulerInput;
|
|
511
|
+
/** mesh 局部空间中的枢轴;未传则 (0,0,0) */
|
|
512
|
+
origin?: StyleVec3Input;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/** 条件项:[条件表达式或 true, 外观对象] */
|
|
516
|
+
export declare type StyleCondition = [string | boolean, StyleAppearance];
|
|
517
|
+
|
|
518
|
+
/** 样式配置 */
|
|
519
|
+
export declare interface StyleConfig {
|
|
520
|
+
show?: string;
|
|
521
|
+
conditions?: StyleCondition[];
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** 与 Euler 等价:Three 的 Euler,或 [x,y,z] / [x,y,z,order] */
|
|
525
|
+
export declare type StyleEulerInput = Euler | readonly number[];
|
|
526
|
+
|
|
527
|
+
/** 与 Vector3 等价:Three 的 Vector3 或长度≥3 的 [x,y,z] 数组 */
|
|
528
|
+
export declare type StyleVec3Input = Vector3 | readonly number[];
|
|
529
|
+
|
|
530
|
+
/** 兼容:少数 tileset 在根级挂 structureUri */
|
|
531
|
+
export declare type TilesetWithStructureUri = Tileset & {
|
|
532
|
+
structureUri?: string;
|
|
533
|
+
};
|
|
534
|
+
|
|
347
535
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gltf-parser-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "A plugin for parsing GLTF files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/gltf-parser-plugin.module.js",
|
|
@@ -30,18 +30,19 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^25.5.0",
|
|
32
32
|
"@types/three": "^0.183.1",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^8.57.
|
|
34
|
-
"@typescript-eslint/parser": "^8.57.
|
|
35
|
-
"eslint": "^10.0
|
|
36
|
-
"typescript": "^5.
|
|
37
|
-
"vite": "^8.0.
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
34
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
35
|
+
"eslint": "^10.1.0",
|
|
36
|
+
"typescript": "^5.8.2",
|
|
37
|
+
"vite": "^8.0.2",
|
|
38
38
|
"vite-plugin-dts": "^4.5.4",
|
|
39
|
-
"vitest": "^4.1.
|
|
39
|
+
"vitest": "^4.1.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"3d-tiles-renderer": "^0.4.
|
|
42
|
+
"3d-tiles-renderer": "^0.4.23",
|
|
43
43
|
"@maptalks/gltf-loader": "^0.124.4",
|
|
44
44
|
"@maptalks/transcoders.draco": "^0.124.4",
|
|
45
|
+
"fflate": "^0.8.2",
|
|
45
46
|
"three": "^0.183.2"
|
|
46
47
|
}
|
|
47
48
|
}
|