mudlet-map-renderer 1.1.0 → 1.2.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/dist/camera/Camera.d.ts +12 -0
- package/dist/index.mjs +489 -512
- package/dist/index.mjs.map +1 -1
- package/dist/scene/InnerExitStyle.d.ts +13 -0
- package/package.json +1 -1
package/dist/camera/Camera.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export declare class Camera extends TypedEventEmitter<CameraEventMap> {
|
|
|
31
31
|
private dragStart;
|
|
32
32
|
private positionAtDragStart;
|
|
33
33
|
private animationId?;
|
|
34
|
+
private batchDepth;
|
|
35
|
+
private batchDirty;
|
|
34
36
|
constructor(width: number, height: number);
|
|
35
37
|
getScale(): number;
|
|
36
38
|
setZoom(zoom: number): boolean;
|
|
@@ -102,5 +104,15 @@ export declare class Camera extends TypedEventEmitter<CameraEventMap> {
|
|
|
102
104
|
private animate;
|
|
103
105
|
cancelAnimation(): void;
|
|
104
106
|
isAnimating(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Run a function that performs multiple camera mutations and emit only one
|
|
109
|
+
* `change` event at the end (if anything actually mutated). Use this when a
|
|
110
|
+
* single logical operation needs to touch more than one camera field —
|
|
111
|
+
* resize-then-recenter, for example — so subscribers never observe a
|
|
112
|
+
* transient inconsistent state (new size with stale position).
|
|
113
|
+
*
|
|
114
|
+
* Nested batches are supported: only the outermost batch emits.
|
|
115
|
+
*/
|
|
116
|
+
batch<T>(fn: () => T): T;
|
|
105
117
|
private notify;
|
|
106
118
|
}
|