@teeechina/teee-map 0.0.34 → 0.0.35

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.
Files changed (2) hide show
  1. package/index.d.ts +8 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -425,6 +425,14 @@ export declare class TeeeMap {
425
425
  initGeoJsonState(): void;
426
426
  initMixGeoJsonMapState(): void;
427
427
  stashAllFeature(): void;
428
+
429
+ // ── 要素缓存就绪信号 ──
430
+ /** 使当前要素缓存就绪信号失败并唤醒所有等待方(destroy 时内部调用) */
431
+ invalidateStashReady(reason?: string): void;
432
+ /** 等待要素缓存(stashFeatures)就绪,超时或地图销毁时 reject */
433
+ whenStashed(timeout?: number): Promise<void>;
434
+ /** 注册要素缓存就绪回调(事件风格 API,内部等价于 whenStashed().then(cb)) */
435
+ onStashReady(cb: () => void, onError?: (err: unknown) => void): void;
428
436
  updateFeatureState(code: string | number, state: any): void;
429
437
 
430
438
  // ── 地图创建方法 ──
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teeechina/teee-map",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "",
5
5
  "main": "dist/teee-map.umd.js",
6
6
  "module": "dist/teee-map.mjs",