mudlet-map-renderer 2.3.0 → 2.4.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/dist/ScenePipeline.d.ts +10 -1
- package/dist/{flushSceneShapes-Duhi0OQv.js → flushSceneShapes-c7ttw7D-.js} +637 -424
- package/dist/flushSceneShapes-c7ttw7D-.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +904 -674
- package/dist/index.mjs.map +1 -1
- package/dist/lens/hiddenAwareLens.d.ts +12 -0
- package/dist/offscreen.mjs +45 -45
- package/dist/overlay/WaypointOverlay.d.ts +70 -0
- package/dist/render/RecordingLayer.d.ts +22 -7
- package/dist/rendering/KonvaRenderBackend.d.ts +20 -0
- package/dist/rendering/SceneManager.d.ts +2 -1
- package/dist/scene/NeighborProjector.d.ts +82 -0
- package/dist/scene/RoomFlags.d.ts +36 -0
- package/dist/scene/RoomStyle.d.ts +2 -0
- package/dist/scene/elements/RoomLayout.d.ts +12 -0
- package/dist/types/Settings.d.ts +29 -0
- package/package.json +3 -1
- package/dist/flushSceneShapes-Duhi0OQv.js.map +0 -1
package/dist/ScenePipeline.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Settings } from './types/Settings';
|
|
|
5
5
|
import { default as ExitRenderer, ExitDrawData } from './ExitRenderer';
|
|
6
6
|
import { GroupShape, Shape } from './scene/Shape';
|
|
7
7
|
import { RoomLens } from './lens/RoomLens';
|
|
8
|
+
import { NeighborSpill } from './scene/NeighborProjector';
|
|
8
9
|
type Bounds = {
|
|
9
10
|
x: number;
|
|
10
11
|
y: number;
|
|
@@ -186,6 +187,7 @@ export declare class ScenePipeline {
|
|
|
186
187
|
private specialExitShapeRefs;
|
|
187
188
|
private stubShapeRefs;
|
|
188
189
|
private areaExitLabelShapeRefs;
|
|
190
|
+
private spilledRoomIds;
|
|
189
191
|
constructor(mapReader: IMapReader, settings: Settings);
|
|
190
192
|
/**
|
|
191
193
|
* Build the full scene for an area/plane.
|
|
@@ -195,7 +197,7 @@ export declare class ScenePipeline {
|
|
|
195
197
|
* The `lens` filters which rooms paint and how partially-visible exits are
|
|
196
198
|
* treated. Pass {@link ALL_VISIBLE} (or omit) for an unfiltered build.
|
|
197
199
|
*/
|
|
198
|
-
buildScene(area: IArea, plane: IPlane, zIndex: number, lens?: RoomLens): SceneBuildResult;
|
|
200
|
+
buildScene(area: IArea, plane: IPlane, zIndex: number, lens?: RoomLens, spill?: NeighborSpill): SceneBuildResult;
|
|
199
201
|
getEffectiveBounds(area: IArea, plane: IPlane): {
|
|
200
202
|
minX: number;
|
|
201
203
|
maxX: number;
|
|
@@ -203,6 +205,13 @@ export declare class ScenePipeline {
|
|
|
203
205
|
maxY: number;
|
|
204
206
|
};
|
|
205
207
|
private renderRooms;
|
|
208
|
+
/**
|
|
209
|
+
* Draw plain connector lines for the spill's regular/special exits (the room
|
|
210
|
+
* bodies, custom lines, stubs and inner exits are rendered through the normal
|
|
211
|
+
* room pass via {@link projectRoom} clones). Lines go on the link layer so
|
|
212
|
+
* they sit under the rooms, like ordinary exits.
|
|
213
|
+
*/
|
|
214
|
+
private renderSpillConnectors;
|
|
206
215
|
private renderLinkExits;
|
|
207
216
|
/**
|
|
208
217
|
* Build a stub anchored at the visible endpoint of an exit, pointing
|