mudlet-map-renderer 0.40.0-konva → 0.41.1-konva
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 +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +229 -219
- package/dist/index.mjs.map +1 -1
- package/dist/rendering/KonvaRenderBackend.d.ts +2 -1
- package/dist/rendering/MapRenderer.d.ts +9 -1
- package/dist/scene/StubStyle.d.ts +2 -0
- package/package.json +1 -1
package/dist/ScenePipeline.d.ts
CHANGED
|
@@ -74,12 +74,30 @@ export type DrawnSpecialExitEntry = {
|
|
|
74
74
|
};
|
|
75
75
|
readonly bounds: Bounds;
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* One drawn stub — a room's one-way exit indicator (the short line sticking
|
|
79
|
+
* out of the edge for every entry in `room.stubs`). Rendered directly from
|
|
80
|
+
* these coordinates by {@link ScenePipeline}, so hit-testing against them
|
|
81
|
+
* matches what's on screen. Non-planar stubs (up/down/in/out) are still
|
|
82
|
+
* recorded — x1==x2 and y1==y2 — so consumers can filter them out.
|
|
83
|
+
*/
|
|
84
|
+
export type DrawnStubEntry = {
|
|
85
|
+
readonly roomId: number;
|
|
86
|
+
readonly direction: MapData.direction;
|
|
87
|
+
readonly x1: number;
|
|
88
|
+
readonly y1: number;
|
|
89
|
+
readonly x2: number;
|
|
90
|
+
readonly y2: number;
|
|
91
|
+
readonly stroke: string;
|
|
92
|
+
readonly strokeWidth: number;
|
|
93
|
+
};
|
|
77
94
|
export type SceneBuildResult = {
|
|
78
95
|
roomNodes: Map<number, RoomNodeEntry>;
|
|
79
96
|
standaloneExitNodes: StandaloneExitEntry[];
|
|
80
97
|
areaExitHitZones: AreaExitHitZone[];
|
|
81
98
|
drawnExits: DrawnExitEntry[];
|
|
82
99
|
drawnSpecialExits: DrawnSpecialExitEntry[];
|
|
100
|
+
drawnStubs: DrawnStubEntry[];
|
|
83
101
|
};
|
|
84
102
|
/**
|
|
85
103
|
* Backend-agnostic scene composition pipeline.
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { Settings, ViewportBounds, RendererEventMap, PerfSnapshot, CullingM
|
|
|
3
3
|
export { darkenColor, colorLightness, hexToRgba } from './utils/color';
|
|
4
4
|
export { MapRenderer } from './rendering/MapRenderer';
|
|
5
5
|
export type { InteractiveBackend } from './rendering/MapRenderer';
|
|
6
|
-
export type { DrawnExitEntry, DrawnSpecialExitEntry } from './ScenePipeline';
|
|
6
|
+
export type { DrawnExitEntry, DrawnSpecialExitEntry, DrawnStubEntry } from './ScenePipeline';
|
|
7
7
|
export type { ExitDrawData, ExitDrawLine, ExitDrawArrow, ExitDrawDoor } from './ExitRenderer';
|
|
8
8
|
export { MapState } from './MapState';
|
|
9
9
|
export type { MapStateEventMap, HighlightEntry, PathEntry } from './MapState';
|