mudlet-map-renderer 2.0.0 → 2.1.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/MapState.d.ts +6 -1
- package/dist/SvgTypes.d.ts +1 -1
- package/dist/export/CanvasExporter.d.ts +1 -1
- package/dist/index.mjs +735 -645
- package/dist/index.mjs.map +1 -1
- package/dist/rendering/KonvaRenderBackend.d.ts +1 -1
- package/dist/rendering/MapRenderer.d.ts +6 -1
- package/dist/scene/OverlayStyle.d.ts +7 -3
- package/dist/scene/Shape.d.ts +7 -0
- package/dist/scene/elements/OverlayLayout.d.ts +3 -0
- package/dist/types/Settings.d.ts +11 -3
- package/package.json +1 -1
package/dist/MapState.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { SvgOverlays } from './SvgTypes';
|
|
|
6
6
|
import { TypedEventEmitter } from './TypedEventEmitter';
|
|
7
7
|
import { RoomLens } from './lens/RoomLens';
|
|
8
8
|
export type HighlightEntry = {
|
|
9
|
+
/** Highlight colours; one draws a ring, two or more split it into pie wedges. */
|
|
10
|
+
colors: string[];
|
|
11
|
+
/** @deprecated Use {@link colors}. Kept for back-compat; equals `colors[0]`. */
|
|
9
12
|
color: string;
|
|
10
13
|
area: number;
|
|
11
14
|
z: number;
|
|
@@ -30,6 +33,8 @@ export type MapStateEventMap = {
|
|
|
30
33
|
};
|
|
31
34
|
highlight: {
|
|
32
35
|
roomId: number;
|
|
36
|
+
colors: string[] | undefined;
|
|
37
|
+
/** @deprecated Use {@link colors}. Equals `colors?.[0]`. */
|
|
33
38
|
color: string | undefined;
|
|
34
39
|
};
|
|
35
40
|
path: undefined;
|
|
@@ -78,7 +83,7 @@ export declare class MapState {
|
|
|
78
83
|
clearPosition(): void;
|
|
79
84
|
setCenterRoom(roomId: number, instant?: boolean): boolean;
|
|
80
85
|
needsAreaRedraw(room: MapData.Room): boolean;
|
|
81
|
-
addHighlight(roomId: number, color: string): boolean;
|
|
86
|
+
addHighlight(roomId: number, color: string | string[]): boolean;
|
|
82
87
|
removeHighlight(roomId: number): void;
|
|
83
88
|
hasHighlight(roomId: number): boolean;
|
|
84
89
|
clearHighlights(): void;
|
package/dist/SvgTypes.d.ts
CHANGED